message
stringlengths
6
474
diff
stringlengths
8
5.22k
Added code to synthesize only once for call function/method expression
@@ -668,7 +668,14 @@ end -- type conversion. function FunChecker:check_exp_synthesize(exp) local tag = exp._tag - if tag == "ast.Exp.Nil" then + + if exp._type then + -- Fallthrough + -- Expression already synthesized. This occurs when + -- expand_function_returns is called. This ensures the work is done + -- only once...
actions: use AdoptOpenJDK 16
@@ -35,7 +35,7 @@ jobs: - uses: actions/setup-java@v2 with: distribution: 'adopt' # Use AdoptOpenJDK - java-version: '14' + java-version: '16' - name: Install Dependencies run: |
Ensure --html-custom-css and --html-custom-js allow filesnames without HTML special chars.
#include <string.h> #include <getopt.h> #include <errno.h> +#include <unistd.h> #ifdef HAVE_LIBGEOIP #include <GeoIP.h> @@ -348,12 +349,22 @@ parse_long_opt (const char *name, const char *oarg) { conf.color_scheme = atoi (oarg); /* html custom CSS */ - if (!strcmp ("html-custom-css", name)) + if (!strcmp ("html-custom-...
Use mipmaps and filtering for OpenVR Canvas; It leads to a prettier mirror window. There is some performance overhead, that can be dealt with as needed.
@@ -489,10 +489,11 @@ static void openvrRenderTo(void (*callback)(void*), void* userdata) { if (!state.canvas) { uint32_t width, height; state.system->GetRecommendedRenderTargetSize(&width, &height); - CanvasFlags flags = { .depth = { true, false, FORMAT_D24S8 }, .stereo = true, .msaa = state.msaa }; + CanvasFlags flag...
[awm2] Fix bug while computing drawable rects of multiple overlapping elements
@@ -561,7 +561,16 @@ impl Desktop { continue; } //println!("\tOccluding {} by view with frame {}", elem.frame(), occluding_elem.frame()); - let mut new_drawable_rects = vec![]; + // Keep rects that don't intersect with the occluding elem + let mut new_drawable_rects: Vec<Rect> = elem.drawable_rects().iter().filter_map(...
Fix analyzer error with nil return value
@@ -44,9 +44,9 @@ typedef NSMutableDictionary<NSData *, NSData *> SPKICacheDictionnary; @param certificate The certificate containing the public key that will be hashed @param publicKeyAlgorithm The public algorithm to expect was used in this certificate - @return The hash of the public key assuming it used the provide...
Add documentation on EIP712 filtering APDU
@@ -776,7 +776,7 @@ Sets the size of the upcoming array the following N fields will be apart of. Sets the raw value of the next field in order in the current root structure. Raw as in, an integer in the JSON file represented as "128" would only be 1 byte long (0x80) -instead of 3 as an array of ASCII characters. same f...
Fixed BlockchainStats.BlockHeight for Monero
@@ -141,7 +141,7 @@ namespace MiningCore.Blockchain.Monero var info = infoResponse.Response.ToObject<GetInfoResponse>(); - BlockchainStats.BlockHeight = (int) info.TargetHeight; + BlockchainStats.BlockHeight = (int) info.Height; BlockchainStats.NetworkDifficulty = info.Difficulty; BlockchainStats.NetworkHashRate = (dou...
Update: deeper linkage level to allow to re-interpret instances in preconditions to derive new contingencies based on similarities
//Usage boost for input #define ETERNAL_INPUT_USAGE_BOOST 1000000 //Unification depth, 2^(n+1)-1, n=2 levels lead to value 7 -#define UNIFICATION_DEPTH 15 +#define UNIFICATION_DEPTH 31 /*------------------*/ /* Space parameters */
Fix typos in README Fix a broken link as well as updating the text. Merges
## SPI master example -This code displays a simple graphics with varying pixel colors on the 320x240 LCD on an ESP-WROVER-KIT board. +This code displays some simple graphics with varying pixel colors on the 320x240 LCD on an ESP-WROVER-KIT board. -If you like to adopt this example to another type of display or pinout, ...
install emdk
@@ -9,6 +9,8 @@ before_install: - unzip -q $HOME/ndk.zip -d $HOME - export ANDROID_NDK_HOME=$HOME/android-ndk-r12b - rm $HOME/ndk.zip +- wget https://s3.amazonaws.com/files.tau-technologies.com/buildenv/addon-symbol-emdk_v4.2-API-22.zip -O $HOME/emdk.zip +- unzip -q $HOME/emdk.zip -d $ANDROID_HOME/add-ons install: - ge...
updates authors
# Authors ordered by first contribution. # Generated by tools/update-authors.sh -# and modified to reflect works in the public domain (denoted by ***) Lew Rossman <LRossman@cinci.rr.com> *** Michael Tryby <tryby.michael@epa.gov> *** @@ -20,3 +19,7 @@ Elad Salomons <selad@optiwater.com> Maurizio Cingi <mrzcng2@gmail.com...
limesdr - enumerate set media and device name The device name was set to "USB 3.0 (LimeSDR USB)" which looked odd. Now the device name field reports as LimeSDR USB, and the media name reports as USB 3.0.
@@ -157,25 +157,22 @@ std::vector<ConnectionHandle> ConnectionSTREAMEntry::enumerate(const ConnectionH printf("Cannot Claim Interface\n"); } - std::string fullName; + ConnectionHandle handle; + //check operating speed int speed = libusb_get_device_speed(devs[i]); if(speed == LIBUSB_SPEED_HIGH) - fullName = "USB 2.0"; +...
Fix crash when error delivery fails.
@@ -1498,10 +1498,9 @@ _raft_lame(u3_noun ovo, u3_noun why, u3_noun tan) bov = u3nc(u3k(u3h(ovo)), u3nc(c3__hole, u3k(u3t(u3t(ovo))))); u3z(why); - u3z(tan); } else { - bov = u3nc(u3k(u3h(ovo)), u3nt(c3__crud, why, tan)); + bov = u3nc(u3k(u3h(ovo)), u3nt(c3__crud, why, u3k(tan))); } // u3_lo_show("data", u3k(u3t(u3t(ov...
Fix Z capitalization Lerp operator Z now respects capitalization based on the right port.
@@ -735,11 +735,12 @@ BEGIN_OPERATOR(lerp) PORT(0, 1, IN); PORT(1, 0, IN | OUT); Glyph g = PEEK(0, -1); + Glyph b = PEEK(0, 1); Isz rate = g == '.' || g == '*' ? 1 : (Isz)index_of(g); - Isz goal = (Isz)index_of(PEEK(0, 1)); + Isz goal = (Isz)index_of(b); Isz val = (Isz)index_of(PEEK(1, 0)); Isz mod = val <= goal - rate...
Do not restart timer on bounce
@@ -630,6 +630,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { We disable interrupts and clear this early interrupt flag before re-enabling them so that the *real* interrupt can fire. */ + if(!((&htim2)->Instance->CR1 & TIM_CR1_CEN)){ HAL_NVIC_DisableIRQ(TIM2_IRQn); __HAL_TIM_SetCounter(&htim2, 0); __HAL_TIM_SetC...
tests/run-natmodtests: Update for Pycopy.
@@ -14,7 +14,7 @@ import pyboard # Paths for host executables CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3') -MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../ports/unix/micropython_coverage') +MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../ports/unix/pycopy_coverage') NATMOD_EXAMPLE_DIR = '../examples/natmo...
Test -f report.
6 July 2017: Wouter - Fix tests to use .tdir (from Manu Bretelle) instead of .tpkg. - - Fix svn hooks for tdir (selected if testcode/mini_tdir.sh exists).. + - Fix svn hooks for tdir (selected if testcode/mini_tdir.sh exists). 4 July 2017: Wouter - Fix 1332: Bump verbosity of failed chown'ing of the control socket.
BTS: Save high PC addresses when kernelOnly is enabled
@@ -69,8 +69,9 @@ static inline void arch_perfBtsCount(honggfuzz_t * hfuzz, fuzzer_t * fuzzer) * Kernel sometimes reports branches from the kernel (iret), we are not interested in that as it * makes the whole concept of unique branch counting less predictable */ - if (__builtin_expect(br->from > 0xFFFFFFFF00000000, fal...
enforce invariants: stars direct only, indirect target already bound
|= [for=ship him=ship tar=target] ^- (quip move _this) ~& [%bind src=src.bow for=for him=him tar=tar] - ~| %bind-yoself - ?< =(for him) + ?: =(for him) + ~|(%bind-yoself !!) + ?: ?& ?=(%king (clan:title him)) + ?=(%indirect -.tar) + == + ~& [%indirect-star +<] + :: XX crash? + [~ this] :: always forward, there may be m...
dbug: order rcv's nax
'fragments'^(set-array ~(key by fragments) numb) == :: - 'nax'^(set-array nax numb) + 'nax'^a+(turn (sort ~(tap in nax) vor) numb) :: (bone-to-pairs bone ossuary) ==
Autotool new options : --with/--without -getrandom and --with/--without -sysgetrandom. Autodetect works by default for getrandom and sysgetrandom. With the these options user can use the detected functions or ignore them.
@@ -183,8 +183,16 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([ AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])]) +AC_ARG_WITH([getrandom], + [AS_HELP_STRING([--with-getrandom], + [enforce the use of getrandom function in the system @<:@default=check@:>@]) +AS_HELP_STRING([--without-getrandom], + [skip auto detect of getrandom @<:...
Make sure we also cleanse the finished key
@@ -820,6 +820,7 @@ int tls_construct_ctos_psk(SSL *s, WPACKET *pkt, X509 *x, size_t chainidx, ret = 1; err: OPENSSL_cleanse(binderkey, sizeof(binderkey)); + OPENSSL_cleanse(finishedkey, sizeof(finishedkey)); EVP_PKEY_free(mackey); EVP_MD_CTX_free(mctx);
Turned on -Werror for gcc.
@@ -16,6 +16,7 @@ tool_specific: - -Os - -g3 # - -Wall + - -Werror - -ffunction-sections - -fdata-sections - -std=gnu99
disabled s7 thread locking on n3ds and baremetalpi, fingers crossed
@@ -95162,7 +95162,7 @@ static void init_rootlet(s7_scheme *sc) init_setters(sc); } -#if (!MS_WINDOWS) +#if (!MS_WINDOWS) && !defined(S7_BAREMETALPI) && !defined(S7_N3DS) static pthread_mutex_t init_lock = PTHREAD_MUTEX_INITIALIZER; #endif @@ -95172,7 +95172,7 @@ s7_scheme *s7_init(void) s7_scheme *sc; static bool alre...
improved --info
@@ -1116,6 +1116,9 @@ return; /*===========================================================================*/ static void writepmkideapolhashlineinfo(FILE *fh_pmkideapol, hashlist_t *zeiger) { +static eapauth_t *eapa; +static wpakey_t *wpak; +static uint8_t keyver; static char *vendor; if((zeiger->essidlen < essidlenmi...
CI: attempt to fix PR test workflow.
@@ -10,7 +10,7 @@ jobs: - name: Install deps run: | sudo apt-get update -y - sudo apt-get install -y libevent-dev libseccomp-dev git libsasl2-dev + sudo apt-get install -y libevent-dev libseccomp-dev git libsasl2-dev libio-socket-ssl-perl - name: Build run: | gcc --version
config_tools: use python3 in configurator clean Use python3 in configurator clean for Debian-based Linux is preferred in this case.
@@ -240,7 +240,7 @@ def clean_configurator_deb(version, build_dir): add_cmd_list(cmd_list, 'bash -c "find -name "build" -prune -exec rm -rf {} \;"', config_tools_path) add_cmd_list(cmd_list, 'bash -c "find -name "target" -prune -exec rm -rf {} \;"', config_tools_path) add_cmd_list(cmd_list, 'bash -c "rm -rf dist"', con...
fixes mkstemp file handle-leaking behavior
#include <stdlib.h> #include <stdio.h> #include <string.h> +#include <unistd.h> //*** For the Windows SDK _tempnam function ***// #ifdef _WIN32 @@ -1091,8 +1092,11 @@ char *getTmpName(char *fname) // --- for non-Windows systems: #else // --- use system function mkstemp() to create a temporary file name + int f = -1; st...
Fix a possible memory leak in engine_table_register
@@ -109,6 +109,11 @@ int engine_table_register(ENGINE_TABLE **table, ENGINE_CLEANUP_CB *cleanup, } fnd->funct = NULL; (void)lh_ENGINE_PILE_insert(&(*table)->piles, fnd); + if (lh_ENGINE_PILE_retrieve(&(*table)->piles, &tmplate) != fnd) { + sk_ENGINE_free(fnd->sk); + OPENSSL_free(fnd); + goto end; + } } /* A registratio...
[BSP][K210]Add interface reboot
@@ -117,3 +117,10 @@ void rt_hw_board_init(void) rt_components_board_init(); #endif } +void rt_hw_cpu_reset(void) +{ + sysctl->soft_reset.soft_reset = 1; + while(1); +} + +MSH_CMD_EXPORT_ALIAS(rt_hw_cpu_reset, reboot, reset machine);
Add Build instructions for Android A huge thanks for Larry Sachs for his help getting the code working on Android and his help adding this documentation Tested-by: IoTivity Jenkins
@@ -73,7 +73,7 @@ tested against Oracle Java 8 and OpenJDK 1.8. Oracle Java 8 JDK can be [downloaded here](https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html). -On Ubuntu Linux OpenJDK can be downloade using the following command. +On Ubuntu Linux OpenJDK can be downloaded using the fo...
Mushu: Free up flash space Mushu is down to 700 bytes of free flash on ToT, so remove some commands in order to bring it up to almost 2k free. BRANCH=None TEST=make -j buildall
/* Baseboard features */ #include "baseboard.h" -/* Remove PRL state names to free flash space */ +/* Reduce flash usage */ #define CONFIG_USB_PD_DEBUG_LEVEL 2 +#undef CONFIG_CMD_ACCELSPOOF +#undef CONFIG_CMD_CHARGER_DUMP +#undef CONFIG_CMD_PPC_DUMP #define CONFIG_POWER_BUTTON #define CONFIG_KEYBOARD_PROTOCOL_8042
Enhance detection of required MinGW DDL files.
@@ -478,16 +478,29 @@ if(TINYSPLINE_RUNTIME_LIBRARIES STREQUAL "") DIRECTORY) list(APPEND CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS - "${basedir}/libstdc++-6.dll" - "${basedir}/libwinpthread-1.dll") - if(TINYSPLINE_PLATFORM_ARCH STREQUAL "x86") + "${basedir}/libstdc++-6.dll") + # Determining the used exception model is not qui...
multiline: added extra argument to flb_sched_timer_cb_create call
@@ -846,7 +846,7 @@ int flb_ml_auto_flush_init(struct flb_ml *ml) FLB_SCHED_TIMER_CB_PERM, ml->flush_ms, cb_ml_flush_timer, - ml); + ml, NULL); return ret; }
Use correct GetDatum() in pg_relation_check_pages() UInt32GetDatum() was getting used, while the result needs Int64GetDatum(). Oversight in Per buildfarm member florican. Discussion:
@@ -214,7 +214,7 @@ check_relation_fork(TupleDesc tupdesc, Tuplestorestate *tupstore, memset(nulls, 0, sizeof(nulls)); values[i++] = CStringGetTextDatum(path); - values[i++] = UInt32GetDatum(blkno); + values[i++] = Int64GetDatum((int64) blkno); Assert(i == PG_CHECK_RELATION_COLS);
testpath fix
@@ -21,7 +21,7 @@ tests_general.append([1, 0, workdir + 'client_http_get -u /cgi-bin/he -v 2 not.r tests_general.append([1, 0, workdir + 'client_http_get -u /cgi-bin/he -v 2 buildbot.nplab.de']) tests_general.append([0, 0, workdir + 'client_http_get -n 2 -u /files/4M bsd10.nplab.de']) if (platform.system() == "FreeBSD"...
Tests: initialising log params before first _print_log().
@@ -400,6 +400,8 @@ def unit_run(): with open(temp_dir + '/unit.log', 'w') as log: unit_instance['process'] = subprocess.Popen(unitd_args, stderr=log) + Log.temp_dir = temp_dir + if not waitforfiles(temp_dir + '/control.unit.sock'): _print_log() exit('Could not start unit') @@ -409,7 +411,6 @@ def unit_run(): unit_inst...
mmap: fixed the issue mmap cannot be called with pointers to psram
@@ -157,6 +157,8 @@ esp_err_t IRAM_ATTR spi_flash_mmap_pages(const int *pages, size_t page_count, sp const void** out_ptr, spi_flash_mmap_handle_t* out_handle) { esp_err_t ret; + const void* temp_ptr = *out_ptr = NULL; + spi_flash_mmap_handle_t temp_handle = *out_handle = (spi_flash_mmap_handle_t)NULL; bool need_flush ...
printer BUGFIX ignore NP state containers for explicit print
@@ -129,9 +129,11 @@ ly_should_print(const struct lyd_node *node, int options) /* LYDP_WD_EXPLICIT * - print only if it contains status data in its subtree */ LYD_TREE_DFS_BEGIN(node, next, elem) { + if ((elem->schema->nodetype != LYS_CONTAINER) || (elem->schema->flags & LYS_PRESENCE)) { if (elem->schema->flags & LYS_C...
driver/usb_mux/anx7440.c: Format with clang-format BRANCH=none TEST=none
#define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ##args) #define CPRINTF(format, args...) cprintf(CC_USBCHARGE, format, ##args) -static inline int anx7440_read(const struct usb_mux *me, - uint8_t reg, int *val) +static inline int anx7440_read(const struct usb_mux *me, uint8_t reg, int *val) { return i2c_r...
fixed GetCycleCount() crash under 32bit arm darwin
@@ -72,10 +72,10 @@ Y_FORCE_INLINE ui64 GetCycleCount() noexcept { __asm__ volatile("rdtscp\n\t" : "=A"(x)::"%ecx"); return x; -#elif defined(__clang__) && !defined(_arm64_) - return __builtin_readcyclecounter(); #elif defined(_darwin_) return mach_absolute_time(); +#elif defined(__clang__) && !defined(_arm64_) + retur...
docs - update correlation statistic support
</dlentry> <dlentry> <dt>correlation</dt> - <dd>Greenplum Database does not calculate the correlation statistic. </dd> + <dd>Greenplum Database computes correlation statistics for heap tables. These + statistics are used by the Postgres Planner. Greenplum does not compute + correlation statistics for AO and AOCO tables...
[STM32] Fix crypto driver IV/nonce handling
@@ -65,11 +65,16 @@ stm32_has_support(struct crypto_dev *crypto, uint8_t op, uint16_t algo, static uint32_t stm32_crypto_op(struct crypto_dev *crypto, uint8_t op, uint16_t algo, - uint16_t mode, const uint8_t *key, uint16_t keylen, const uint8_t *iv, + uint16_t mode, const uint8_t *key, uint16_t keylen, uint8_t *iv, co...
vere: remove dependency on nix-store path for static darwin binary Poached from work in
@@ -54,6 +54,12 @@ in stdenv.mkDerivation { mkdir -p $out/bin cp ./build/urbit $out/bin/urbit cp ./build/urbit-worker $out/bin/urbit-worker + '' + lib.optionalString (stdenv.isDarwin && enableStatic) '' + # Hack stolen from //nixpkgs/pkgs/stdenv/darwin/portable-libsystem.sh + find "$out/bin" -exec \ + install_name_tool...
Fix +test-five-oh-cache-reclamation
|= moves=(list move:ford-turbo) ^- tang :: - :: ~| %didnt-get-two-moves + =+ length=(lent moves) + :: deal with mug ordering + :: + :: This test depends on the mugs of types stored in ford, which is + :: dependent on the parse tree of this file. There are two valid + :: responses, one where we send a spurious move abou...
dev-tools/mpi4py: pivot to python3 only build
%define pname mpi4py %define PNAME %(echo %{pname} | tr [a-z] [A-Z]) -Name: python-%{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} +%if 0%{?sles_version} || 0%{?suse_version} +%define python3_prefix python3 +%else +%define python3_prefix python34 +%endif + +Name: %{python3_prefix}-%{pname}-%{compiler_family}-%{m...
rbd: misc fixes
@@ -96,7 +96,7 @@ static void tcmu_rbd_service_status_update(struct tcmu_device *dev, ret = rados_service_update_status(state->cluster, status_buf); if (ret < 0) { - tcmu_dev_err(dev, "Could not update service status. (Err %d\n", + tcmu_dev_err(dev, "Could not update service status. (Err %d)\n", ret); } @@ -247,7 +247,...
fix code that sets sample rate in sdr-receiver-wide.c
@@ -145,6 +145,7 @@ int main () /* set sample rate */ if(value < 6 || value > 64) continue; *rx_rate = value; + break; case 1: /* set first phase increment */ if(value < 0 || value > 61440000) continue;
Add test for ompx_<ext> extensions for fast/unsafe/safe FP atomic hint values.
@@ -25,10 +25,64 @@ int main() { sum+=1.0; } + if (sum != (double) n) { + printf("Error with fast fp atomics, got %lf, expected %lf", sum, (double) n); + err = 1; + } + + sum = 0.0; + + #pragma omp target teams distribute parallel for map(tofrom:sum) + for(int i = 0; i < n; i++) { + #pragma omp atomic hint(AMD_unsafe_f...
Document YR_NAMESPACE structure in C API It is referenced in Python documentation but not mentioned in the C API one.
@@ -315,6 +315,10 @@ Data structures Pointer to a sequence of :c:type:`YR_STRING` structures. To iterate over the structures use :c:func:`yr_rule_strings_foreach`. + .. c:member:: YR_NAMESPACE* ns + + Pointer to a :c:type:`YR_NAMESPACE` structure. + .. c:type:: YR_RULES Data structure representing a set of compiled rul...
pkarse: Update `pk_group_id_from_specified()` clean-up. This path updates the clean-up logic of to individually free each of the the group's structure members rather than invoke `mbedtls_ecp_group_free()`.
@@ -429,7 +429,11 @@ static int pk_group_id_from_specified(const mbedtls_asn1_buf *params, ret = pk_group_id_from_group(&grp, grp_id); cleanup: - mbedtls_ecp_group_free(&grp); + mbedtls_mpi_free(&grp.N); + mbedtls_mpi_free(&grp.P); + mbedtls_mpi_free(&grp.A); + mbedtls_mpi_free(&grp.B); + mbedtls_ecp_point_free(&grp.G)...
add logging to /tmp
@@ -6,8 +6,10 @@ import ( "io/ioutil" "os" "os/exec" + "path/filepath" "strconv" + "github.com/criblio/scope/internal" "github.com/criblio/scope/libscope" "github.com/criblio/scope/loader" "github.com/criblio/scope/run" @@ -316,6 +318,9 @@ func extract(filterFile string) error { // Start performs setup of scope in the ...
fix coverity warning in api_format.c
@@ -2699,7 +2699,7 @@ vl_api_dhcp_compl_event_t_handler (vl_api_dhcp_compl_event_t * mp) { u8 *s, i; - s = format (s, "DHCP compl event: pid %d %s hostname %s host_addr %U " + s = format (0, "DHCP compl event: pid %d %s hostname %s host_addr %U " "host_mac %U router_addr %U", ntohl (mp->pid), mp->lease.is_ipv6 ? "ipv6"...
BugID:17401886: fix white scan missing break in LoRaMacFCntHandler.c
@@ -177,9 +177,11 @@ LoRaMacFCntHandlerStatus_t LoRaMacGetFCntDown( AddressIdentifier_t addrID, FType case MULTICAST_1_ADDR: *fCntID = MC_FCNT_DOWN_1; previousDown = FCntHandlerNvmCtx.FCntList.McFCntDown1; + break; case MULTICAST_2_ADDR: *fCntID = MC_FCNT_DOWN_2; previousDown = FCntHandlerNvmCtx.FCntList.McFCntDown3; +...
Fixed fpgaOpen() error case goto.
@@ -164,7 +164,7 @@ int main(int argc, char *argv[]) goto out_destroy_tok; } else { res = fpgaOpen(fpga_device_token, &fpga_device_handle, FPGA_OPEN_SHARED); - ON_ERR_GOTO(res, out_close, "opening accelerator"); + ON_ERR_GOTO(res, out_destroy_tok, "opening accelerator"); res = fpgaCreateEventHandle(&eh); ON_ERR_GOTO(re...
advanced_https_ota_example: Demonstrate use of init_complete_callback to set custom headers
@@ -52,6 +52,14 @@ static esp_err_t validate_image_header(esp_app_desc_t *new_app_info) return ESP_OK; } +static esp_err_t _http_client_init_cb(esp_http_client_handle_t http_client) +{ + esp_err_t err = ESP_OK; + /* Uncomment to add custom headers to HTTP request */ + // err = esp_http_client_set_header(http_client, "C...
Allow calling ResourceImporter.find_spec without path. This is undocumented but Python expects that it works when it calls finder.find_spec(final_name) in pkgutil.extend_path. Note: mandatory check (NEED_CHECK) was skipped
@@ -137,7 +137,7 @@ class ResourceImporter(object): if k not in self.memory: self.memory.add(k) - def find_spec(self, fullname, path, target=None): + def find_spec(self, fullname, path=None, target=None): try: is_package = self.is_package(fullname) except ImportError:
Minor variable naming change
<readlist name="QCB" cond="RTX_En &amp;&amp; (QCB_Rd == 0) &amp;&amp; os_Info.mpi_message_queue" type="osRtxMessageQueue_t" offset="mp_mqueue.block_base" count="mp_mqueue.max_blocks" /> <!-- Read common memory pool block info (MEM) --> - <readlist name="mem_info" cond="RTX_En &amp;&amp; os_Info.mem_common" type="mem_he...
mesh: shell: Disable input actions and disable output string action Disable for convenience when using Mesh Android app.
@@ -438,11 +438,11 @@ static struct bt_mesh_prov prov = { .static_val = NULL, .static_val_len = 0, .output_size = 4, - .output_actions = (BT_MESH_BLINK | BT_MESH_BEEP | BT_MESH_DISPLAY_NUMBER | BT_MESH_DISPLAY_STRING), + .output_actions = (BT_MESH_BLINK | BT_MESH_BEEP | BT_MESH_DISPLAY_NUMBER), .output_number = output_...
imgtool: Fix output of confirmed image in HEX format The image_ok was written to the wrong offset when outputting HEX format. This commit fixes that. Drive-by change: Use actual length of boot magic instead of assuming it's 16 bytes long.
@@ -243,12 +243,11 @@ class Image(): self.enctlv_len) trailer_addr = (self.base_addr + self.slot_size) - trailer_size if self.confirm and not self.overwrite_only: - magic_size = 16 - magic_align_size = align_up(magic_size, self.max_align) + magic_align_size = align_up(len(self.boot_magic), self.max_align) image_ok_idx ...
pbio/drivebase: Consolidate active check. This was used in two places and a third will be added shortly, so define one function for it.
@@ -154,6 +154,16 @@ static void pbio_drivebase_stop_servo_control(pbio_drivebase_t *db) { pbio_control_stop(&db->right->control); } +/** + * Checks if both drive base controllers are active. + * + * @param [in] drivebase Pointer to this drivebase instance. + * @return True if heading and distance control are active, e...
util/mkerr.pl: avoid getting an annoying warning about negative count
@@ -486,6 +486,7 @@ EOF print OUT "\n/*\n * $lib function codes.\n */\n"; foreach my $i ( @function ) { my $z = 48 - length($i); + $z = 0 if $z < 0; if ( $fcodes{$i} eq "X" ) { $fassigned{$lib} =~ m/^:([^:]*):/; my $findcode = $1; @@ -503,6 +504,7 @@ EOF print OUT "\n/*\n * $lib reason codes.\n */\n"; foreach my $i ( @...
Fix segfault on recording with old FFmpeg The AVPacket fields side_data and side_data_elems were not initialized by av_packet_ref() in old FFmpeg versions (prior to [1]). As a consequence, on av_packet_unref(), side_data was freed, causing a segfault. Fixes <https://github.com/Genymobile/scrcpy/issues/707> [1]: <http:/...
@@ -33,6 +33,11 @@ record_packet_new(const AVPacket *packet) { if (!rec) { return NULL; } + + // av_packet_ref() does not initialize all fields in old FFmpeg versions + // See <https://github.com/Genymobile/scrcpy/issues/707> + av_init_packet(&rec->packet); + if (av_packet_ref(&rec->packet, packet)) { SDL_free(rec); re...
gpexpand: refactor table_expand_error global variable Remove global variable table_expand_error by checking the pool of done ExpandCommand(s).
@@ -58,7 +58,6 @@ FILE_SPACES_INPUT_FILE_LINE_1_PREFIX = "filespaceOrder" #global var _gp_expand = None -table_expand_error = False description = (""" Adds additional segments to a pre-existing GPDB Array. @@ -2219,7 +2218,6 @@ UPDATE gp_distribution_policy def perform_expansion(self): """Performs the actual table re-o...
libppd: In string.c added _ppdMutexUnlock() also before abort() Issue Note: This actually only applied when building with DEBUG_GUARDS set.
@@ -93,7 +93,10 @@ _ppdStrAlloc(const char *s) /* I - String */ item->ref_count)); if (item->guard != _PPD_STR_GUARD) + { + _ppdMutexUnlock(&sp_mutex); abort(); + } #endif /* DEBUG_GUARDS */ _ppdMutexUnlock(&sp_mutex); @@ -292,6 +295,7 @@ _ppdStrFree(const char *s) /* I - String to free */ if (key->guard != _PPD_STR_GU...
linux-raspberrypi: Updating the linux revision to resolve video rendering issue
-LINUX_VERSION ?= "4.19.71" +LINUX_VERSION ?= "4.19.75" LINUX_RPI_BRANCH ?= "rpi-4.19.y" -SRCREV = "13ce09db830e0c2fe524460b0673afb974359bc2" +SRCREV = "642e12d892e694214e387208ebd9feb4a654d287" require linux-raspberrypi_4.19.inc
os/board/rtl8721csm: Enable RTK debug message
@@ -1325,6 +1325,8 @@ void app_start(void) app_section_init(); _memset((void *) __bss_start__, 0, (__bss_end__ - __bss_start__)); + DBG_ERR_MSG_ON(MODULE_MISC); /* Enable debug log for hard fault handler */ + #ifdef CONFIG_AMEBAD_TRUSTZONE BOOT_IMG3(); #endif
update comments in sdr_receiver_hpsdr/rx.tcl
-# Create xlslice +# Create port_slicer cell pavel-demin:user:port_slicer:1.0 slice_0 { DIN_WIDTH 8 DIN_FROM 0 DIN_TO 0 } -# Create xlslice +# Create port_slicer cell pavel-demin:user:port_slicer:1.0 slice_1 { DIN_WIDTH 288 DIN_FROM 15 DIN_TO 0 } for {set i 0} {$i <= 7} {incr i} { - # Create xlslice + # Create port_sli...
modules/robotics: fix backwards compat the start method does not exist anymore
@@ -11,6 +11,6 @@ from tools import wait class DriveBase(DriveBase_c): # Add Legacy EV3 MicroPython 1.0 function def drive_time(self, speed, steering, time): - self.start(speed, steering) + self.drive(speed, steering) wait(time) self.stop()
Update windres file name use windres.exe name
@@ -60,6 +60,7 @@ toolchain("mingw") toolchain:add("toolset", "ex", path.join(bindir, "ar")) toolchain:add("toolset", "strip", path.join(bindir, "strip")) toolchain:add("toolset", "ranlib", path.join(bindir, "ranlib")) + toolchain:add("toolset", "mrc", path.join(bindir, "windres")) end toolchain:add("toolset", "cc", cr...
fix: make install should include common/ header files
@@ -95,7 +95,7 @@ install : all install -d $(PREFIX)/lib/ install -m 644 $(LIBDISCORD) $(PREFIX)/lib/ install -d $(PREFIX)/include/ - install -m 644 *.h *.hpp $(PREFIX)/include/ + install -m 644 *.h *.hpp common/*.h common/*.hpp $(PREFIX)/include/ clean : rm -rf $(OBJDIR) *.exe test/*.exe bots/*.exe
Add CMake gitignore.
@@ -349,3 +349,16 @@ hardware/Middlewares/ hardware/STM32H750VBTx_FLASH.ld hardware/Src/ hardware/startup_stm32h750xx.s + +#CMAKE from https://github.com/github/gitignore/blob/master/CMake.gitignore +CMakeLists.txt.user +CMakeCache.txt +CMakeFiles +CMakeScripts +Testing +Makefile +cmake_install.cmake +install_manifest....
do final commit for _link files after all packages complete
@@ -102,8 +102,6 @@ update_pkg_if_link () { perl -pi -e 's/project=\'\S+\'/project=\'${branchNew}\'/ ${localdir}/_link || ERROR "unable to update parent in _link for $1" fi - osc ci ${localdir} -m "committing updated _link file for $1" - cd - } # end update_pkg_if_link() @@ -192,5 +190,8 @@ done if [[ $found_link -eq 1...
Fix UT for markbits.
@@ -20,8 +20,6 @@ import ( . "github.com/onsi/ginkgo/extensions/table" . "github.com/onsi/gomega" "github.com/projectcalico/felix/markbits" - "fmt" - "golang.org/x/tools/cmd/guru/testdata/src/alias" ) const ( @@ -112,21 +110,14 @@ func init() { ) DescribeTable("MarkBits map number to mark", - func(mask uint32, number i...
BugID:23722169:Fix for http resp buffer not memset to 0 issue
@@ -236,6 +236,7 @@ static int32_t httpc_auth(const char *device_id, const char *product_key, goto exit; } + memset(rsp_buf, 0, sizeof(rsp_buf)); ret = httpc_recv_response(httpc_handle, rsp_buf, RSP_BUF_SIZE, &rsp_info, 10000); if (ret < 0) { ++auth_req_fail_times; @@ -290,6 +291,7 @@ static int32_t httpc_ota(const cha...
travis BUGFIX copy-paste mistake
@@ -60,7 +60,7 @@ jobs: - cd cmocka-1.1.2 && mkdir build && cd build && cmake .. && make -j2 && sudo make install && cd ../.. - wget https://ftp.pcre.org/pub/pcre/pcre2-10.30.tar.gz - tar -xzf pcre2-10.30.tar.gz - - cd pcre2-10.30 && ./configure && make -j2 && sudo make install && cd ../.. + - cd pcre2-10.30 && ./confi...
Bind a zero pixel unpack buffer if necessary when uploading fonts texture
@@ -111,11 +111,17 @@ bool ImGui_ImplOpenGL3_CreateFontsTexture() int width, height; io.Fonts->GetTexDataAsAlpha8(&pixels, &width, &height); + GLint last_texture, last_unpack_buffer; + // Upload texture to graphics system - GLint last_texture; glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); glGenTextures(1, &g_Fon...
Add ".module" to all scripts for better compile errors
@@ -3973,7 +3973,9 @@ class ScriptBuilder { toScriptString = (name: string, lock: boolean) => { this._assertStackNeutral(); - return `${this.headers.map((header) => `.include "${header}"`).join("\n")} + return `.module ${name} + +${this.headers.map((header) => `.include "${header}"`).join("\n")} ${ this.dependencies.le...
hammer: Enable USB suspend and remote wake-up config options BRANCH=none TEST=See CLs that enables USB suspend and remote wake-up option. Commit-Ready: Nicolas Boichat Tested-by: Nicolas Boichat
#undef CONFIG_USB_MAXPOWER_MA #define CONFIG_USB_MAXPOWER_MA 100 +#define CONFIG_USB_REMOTE_WAKEUP +#define CONFIG_USB_SUSPEND + #define CONFIG_USB_SERIALNO /* TODO(drinkcat): Replace this by proper serial number. Note that according to * USB standard, we must either unset this (iSerialNumber = 0), or have a unique
mimxrt: Fix MIMXRT1060 stack and buffer pointers
@@ -139,10 +139,10 @@ static const program_target_t flash = { { 0x20000001, 0x20000934, - 0x20000c00 + 0x20008000 }, - 0x20000000 + 0x00000A00, // mem buffer location + 0x20000000 + 0x00004000, // mem buffer location 0x20000000, // location to write prog_blob in target RAM sizeof(MIMXRT106x_QSPI_4KB_SEC_flash_prog_blob...
Order macros according to documentation
@@ -57,10 +57,10 @@ License: MIT !defined(FIO_HASH_KEY2UINT) || !defined(FIO_HASH_KEY_INVALID) || \ !defined(FIO_HASH_KEY_ISINVALID) || !defined(FIO_HASH_KEY_COPY) || \ !defined(FIO_HASH_KEY_DESTROY) -#define FIO_HASH_COMPARE_KEYS(k1, k2) ((k1) == (k2)) #define FIO_HASH_KEY_TYPE uint64_t -#define FIO_HASH_KEY2UINT(key)...
ci: Update `wpa_supplicant` codeowners
/components/vfs/ @esp-idf-codeowners/storage /components/wear_levelling/ @esp-idf-codeowners/storage /components/wifi_provisioning/ @esp-idf-codeowners/app-utilities/provisioning -/components/wpa_supplicant/ @esp-idf-codeowners/wifi +/components/wpa_supplicant/ @esp-idf-codeowners/wifi @esp-idf-codeowners/app-utilities...
ivshmem: use v142 toolkit for test app
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win10 Release|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> + <PlatformToolset>v142</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicod...
Lua links properly mlib required to build Lua, dl lib used to load compiled plugins from shared libraries.
@@ -117,6 +117,9 @@ else() ) list(TRANSFORM LUA_SRC PREPEND deps/lua/) add_library(lua SHARED ${LUA_SRC}) + target_link_libraries(lua m) + target_link_libraries(lua dl) + target_compile_definitions(lua PRIVATE -DLUA_USE_DLOPEN) include_directories(deps/lua) set(LOVR_LUA lua) endif()
OSSL_CMP_MSG_read(): Fix mem leak on file read error
@@ -1100,9 +1100,8 @@ OSSL_CMP_MSG *OSSL_CMP_MSG_read(const char *file, OSSL_LIB_CTX *libctx, return NULL; } - if ((bio = BIO_new_file(file, "rb")) == NULL) - return NULL; - if (d2i_OSSL_CMP_MSG_bio(bio, &msg) == NULL) { + if ((bio = BIO_new_file(file, "rb")) == NULL + || d2i_OSSL_CMP_MSG_bio(bio, &msg) == NULL) { OSSL...
Avoid some NULL dereferences
@@ -202,9 +202,15 @@ static bool internal_ht_insert(SdbHash* ht, bool update, const char* key, kv->value = (void *)value; } kv->key_len = ht->calcsizeK ((void *)kv->key); + if (ht->calcsizeV) { kv->value_len = ht->calcsizeV ((void *)kv->value); + } else { + kv->value_len = 0; + } if (!internal_ht_insert_kv (ht, kv, upd...
Fix docu of ts_bspline_interpolate_catmull_rom.
@@ -1056,7 +1056,7 @@ tsError ts_bspline_interpolate_cubic(const tsReal *points, size_t num_points, * @return TS_DIM_ZERO * If \p dimension is 0. * @return TS_NUM_POINTS - * If \p num_points is 1. + * If \p num_points is 0. * @return TS_MALLOC * If allocating memory failed. */
CGO: use correct linker and linker flags when linking GO_PROGRAM module
@@ -3679,12 +3679,12 @@ module GO_BASE_UNIT: BASE_UNIT { when ($OS_DARWIN) { GO_TOOLCHAIN_ENV += ${env:"CC=clang"} ${env:"PATH=$(DEFAULT_DARWIN_X86_64)/bin:$MACOS_SDK_RESOURCE_GLOBAL/usr/bin:$CCTOOLS_ROOT_RESOURCE_GLOBAL/bin"} - GO_EXTLD = ++extld clang ++extldflags $LD_SDK_VERSION -undefined dynamic_lookup $C_FLAGS_PL...
enlarge example cmake build job parallel num
@@ -193,7 +193,7 @@ build_examples_make: # same as above, but for CMake .build_examples_cmake: &build_examples_cmake extends: .build_template - parallel: 5 + parallel: 8 artifacts: when: always paths:
Copy extra information from 3.1.2 release notes from 3.1RC to develop.
@@ -19,6 +19,7 @@ enhancements and bug-fixes that were added to this release.</p> <li><a href="#Bugs_fixed">Bug Fixes</a></li> <li><a href="#Enhancements">Enhancements</a></li> <li><a href="#Dev_changes">Changes for VisIt developers</a></li> + <li><a href="#Doc_changes">Changes to Visit documentation</a></li> </ul> <a ...
VERSION bump to version 0.10.4
@@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 10) -set(LIBNETCONF2_MICRO_VERSION 3) +set(LIBNETCONF2_MICRO_VERSION 4) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LIB...
KDB Find: Use underscore to separate test name
@@ -9,7 +9,7 @@ add_msr_test (issue_template "${CMAKE_SOURCE_DIR}/.github/ISSUE_TEMPLATE.md") add_msr_test (tutorial_cascading "${CMAKE_SOURCE_DIR}/doc/tutorials/cascading.md") add_msr_test (kdb_complete "${CMAKE_SOURCE_DIR}/doc/help/kdb-complete.md") add_msr_test (kdb_ls "${CMAKE_SOURCE_DIR}/doc/help/kdb-ls.md" REQUIR...
ChatWindow: stop unread notice disappearing
@@ -61,6 +61,7 @@ class ChatWindow extends Component< private virtualList: VirtualScroller | null; private unreadMarkerRef: React.RefObject<HTMLDivElement>; private prevSize = 0; + private unreadSet = false; INITIALIZATION_MAX_TIME = 100; @@ -116,7 +117,9 @@ class ChatWindow extends Component< dismissedInitialUnread() ...
Update README.md Added the Pwm column
@@ -60,15 +60,15 @@ The **preview** versions are continuous builds of the reference targets. They in The above firmware builds include support for the class libraries and features marked bellow. -| Target | Gpio | Spi | I2c | Events | Native | SWO | -|:-|:-:|:-:|:-:|:-:|:-:|:-:| -| ST_STM32F4_DISCOVERY | :heavy_check_m...
apps/examples/flowc: Add some syslog output to flush the syslog interrupt buffer
@@ -203,6 +203,14 @@ int flowc_receiver(int argc, char **argv) usleep(1000 * CONFIG_EXAMPLES_FLOWC_RECEIVER_DELAY); #endif + +#ifdef CONFIG_SYSLOG_INTBUFFER + /* Just to force a flush of syslog interrupt buffer. May also provide + * a handy indication that the test is still running. + */ + + syslog(LOG_INFO, "."); +#en...
CLEANUP: refactored do_item_unlink() function.
@@ -1009,6 +1009,7 @@ static void do_item_unlink(hash_item *it, enum item_unlink_cause cause) if ((it->iflag & ITEM_LINKED) != 0) { CLOG_ITEM_UNLINK(it, cause); + /* unlink the item from LUR list */ item_unlink_q(it); @@ -1019,14 +1020,21 @@ static void do_item_unlink(hash_item *it, enum item_unlink_cause cause) /* unl...
Gateway scanner: cleanup reply only after finish or error
@@ -129,6 +129,7 @@ void GatewayScanner::requestFinished(QNetworkReply *reply) { d->handleEvent(EventGotReply); } + reply->deleteLater(); } void GatewayScannerPrivate::processReply() @@ -139,8 +140,7 @@ void GatewayScannerPrivate::processReply() } QNetworkReply *r = reply; - reply = 0; - r->deleteLater(); + reply = nul...
driver/accelgyro_icm_common.c: Format with clang-format BRANCH=none TEST=none
#define CPRINTS(format, args...) cprints(CC_ACCEL, format, ##args) #ifdef CONFIG_ACCELGYRO_ICM_COMM_SPI -static int icm_spi_raw_read(const int addr, const uint8_t reg, - uint8_t *data, const int len) +static int icm_spi_raw_read(const int addr, const uint8_t reg, uint8_t *data, + const int len) { uint8_t cmd = 0x80 | r...
Fix synthesis error [ci skip]
@@ -285,9 +285,9 @@ module de2_115_top( // state. // sld_virtual_jtag #( - .SLD_AUTO_INSTANCE_INDEX("NO"), - .SLD_INSTANCE_INDEX(0), - .SLD_IR_WIDTH(4) + .sld_auto_instance_index("NO"), + .sld_instance_index(0), + .sld_ir_width(4) ) virtual_jtag( .tck(virt_tck), .tdi(virt_tdi),