message
stringlengths
6
474
diff
stringlengths
8
5.22k
Update boat_demo.c Instructions for adjusting the c file
-/****************************************************************************** -Copyright (C) 2018-2020 aitos.io - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, includin...
Turn off non-aggregated http events for now.
@@ -580,9 +580,10 @@ doHttpHeader(protocol_info *proto) char *mtx_name = (proto->isServer) ? "http.server.duration" : "http.client.duration"; event_t http_dur = INT_EVENT(mtx_name, map->duration, DELTA, fields); - cmdSendMetric(g_mtc, &http_dur); + // TBD AGG Only cmdSendMetric(g_mtc, &http_dur); httpAggAddMetric(g_htt...
add powershell check
@@ -59,6 +59,19 @@ catch [System.Management.Automation.CommandNotFoundException] { Test-Git-Config -Option "user.name" -ErrMsg "Git username not set!`nRun: git config --global user.name 'My Name'" Test-Git-Config -Option "user.email" -ErrMsg "Git email not set!`nRun: git config --global user.name 'example@myemail.com'"...
Tests: fixed "skip" descriptors check flag for controller.
@@ -275,7 +275,7 @@ def run(request): _fds_check['main']['skip'] = False _fds_check['router']['skip'] = False - _fds_check['router']['skip'] = False + _fds_check['controller']['skip'] = False yield
roller: get suggested gas price only for mainnet
(pure:m fallback-gas-price) ?. ?& ?=([~ %finished *] rep) ?=(^ full-file.u.rep) + :: get suggested price only for mainnet txs + :: + =(chain-id 1) == fallback ?~ jon=(de-json:html q.data.u.full-file.u.rep)
Update for LifeControl environmental sensor, pt2
@@ -4205,10 +4205,6 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ:: case TEMPERATURE_MEASUREMENT_CLUSTER_ID: { - if (modelId == QLatin1String("VOC_Sensor")) - { - fpHumiditySensor.inClusters.push_back(ci->id()); - } fpTemperatureSensor.inClusters.push_back(ci->id()); } break;
Find Tools: Correct minor spelling mistake
@@ -18,7 +18,7 @@ tags = { 'configure': "This script is used for the build configuration", 'benchmark': "This script runs benchmarks", 'debian': "Special script for debian system"} -# No changes below this line necassary! +# No changes below this line necessary! from itertools import islice import os
docs: reorder content in mem_alloc section We should avoid hiding sections between long lists of API documentation.
@@ -121,14 +121,8 @@ generate a fatal LoadStoreError exception. To use the region above the 4MiB limit, you can use the :doc:`himem API</api-reference/system/himem>`. - -API Reference - Heap Allocation -------------------------------- - -.. include-build-file:: inc/esp_heap_caps.inc - Thread Safety -^^^^^^^^^^^^^ +----...
Rust: Document LookupOptions
@@ -19,19 +19,16 @@ bitflags! { /// Bitflags to be passed to [`lookup`](struct.KeySet.html#method.lookup) and [`lookup_by_name`](struct.KeySet.html#method.lookup_by_name). #[derive(Default)] pub struct LookupOption: elektra_sys::option_t { + /// No Option set const KDB_O_NONE = elektra_sys::KDB_O_NONE as elektra_sys::o...
ip: mfib CLI 'via local' fix Type: fix
@@ -896,6 +896,8 @@ vnet_ip_mroute_cmd (vlib_main_t * vm, */ rpath.frp_proto = fib_proto_to_dpo (pfx.fp_proto); rpath.frp_mitf_flags = MFIB_ITF_FLAG_FORWARD; + + vec_add1 (rpaths, rpath); } else if (unformat (line_input, "via %U", unformat_fib_route_path, &rpath, &payload_proto))
Fix "press Enter key" message The message said "Press any key to continue...", whereas only Enter/Return is accepted. PR <https://github.com/Genymobile/scrcpy/pull/1783> Fixes <https://github.com/Genymobile/scrcpy/issues/1757>
@@ -100,7 +100,7 @@ main(int argc, char *argv[]) { #if defined (__WINDOWS__) && ! defined (WINDOWS_NOCONSOLE) if (res != 0) { - fprintf(stderr, "Press any key to continue...\n"); + fprintf(stderr, "Press Enter to continue...\n"); getchar(); } #endif
Changelog entry for Merge from Maryse47: contrib/unbound.service.in: do not fork into the background.
in unbound.service. - Merge #81 from Maryse47: Consistently use /dev/urandom instead of /dev/random in scripts and docs. + - Merge #83 from Maryse47: contrib/unbound.service.in: do not fork + into the background. 19 September 2019: Wouter - Fix #78: Memory leak in outside_network.c.
show functions in the coverage summary
@@ -52,7 +52,7 @@ coverage: _coverage_report: llvm-profdata merge -sparse -o h2o.profdata /home/ci/profraw/*.profraw - llvm-cov report -instr-profile h2o.profdata h2o $(SRC_DIR)/lib $(SRC_DIR)/src $(SRC_DIR)/deps/quicly/lib $(SRC_DIR)/deps/picotls/lib | tee /home/ci/summary.txt + llvm-cov report -show-region-summary=0 ...
Replace POINT_EPSILON with ANGLE_EPSILON.
@@ -336,9 +336,9 @@ vector_vec_angle_domain(CuTest *tc) ___THEN___ /* Always the smaller of the two possible angles. */ - CuAssertDblEquals(tc, 45.0, angle_x_y, POINT_EPSILON); - CuAssertDblEquals(tc, 45.0, angle_y_x, POINT_EPSILON); - CuAssertDblEquals(tc, 45.0, angle_x_z, POINT_EPSILON); + CuAssertDblEquals(tc, 45.0,...
Manually install Ruby in cross Actions containers
@@ -248,9 +248,13 @@ jobs: submodules: recursive fetch-depth: 0 - - uses: ruby/setup-ruby@v1 - with: - ruby-version: 2.6 + # - uses: ruby/setup-ruby@v1 + # with: + # ruby-version: 2.6 + + - name: Install Host toolchain + run: | + apt-get install --assume-yes build-essential ruby-full - name: Build run: | @@ -288,9 +292...
memif: fix the maxmimum number of txqs Type: fix With multi-txq in VPP, user should be able to create more txqs than vpp threads. MEMIF_MAX_M2S_RING should be defined to 256 instead of number of vpp threads.
#define MEMIF_DEFAULT_TX_QUEUES 1 #define MEMIF_DEFAULT_BUFFER_SIZE 2048 -#define MEMIF_MAX_M2S_RING (vlib_get_n_threads ()) +#define MEMIF_MAX_M2S_RING 256 #define MEMIF_MAX_S2M_RING 256 #define MEMIF_MAX_REGION 256 #define MEMIF_MAX_LOG2_RING_SIZE 14
industry/foc: fix compilation for smo
@@ -291,7 +291,7 @@ static int foc_angle_osmo_run_f32(FAR foc_angle_f32_t *h, /* Update observer */ motor_aobserver_smo(&ob->data, &in->state->iab, &in->state->vab, - &ob->cfg.phy, ob->dir); + &ob->cfg.phy, in->dir, in->vel); /* Copy data */
hobbit1_evb: fix mqttapp build error
+#ifndef _INTTYPES_H +#define _INTTYPES_H 1 + +#if !defined __cplusplus || defined __STDC_FORMAT_MACROS + +# if __WORDSIZE == 64 +# define __PRI64_PREFIX "l" +# define __PRIPTR_PREFIX "l" +# else +# define __PRI64_PREFIX "ll" +# define __PRIPTR_PREFIX +# endif + +/* Unsigned integers. */ +# define PRIu8 "u" +# define P...
Pop the value off the stack after printing and table resize
@@ -861,12 +861,13 @@ static DictuInterpretResult run(DictuVM *vm) { DISPATCH(); CASE_CODE(POP_REPL): { - Value v = pop(vm); + Value v = peek(vm, 0); if (!IS_NIL(v)) { setReplVar(vm, v); printValue(v); printf("\n"); } + pop(vm); DISPATCH(); }
Adjust clap_plugin_factory documentation
@@ -11,7 +11,8 @@ extern "C" { // Every method must be thread-safe. // It is very important to be able to scan the plugin as quickly as possible. // -// If the content of the factory may change due to external events, like the user installed +// The host may use clap_plugin_invalidation_factory to detect filesystem cha...
restyling fixes
@@ -208,6 +208,7 @@ sudo kdb umount user:/tests/storage ``` ## Storing Comments + Most markup languages provide the possibility of adding comments. Elektra can store those comments in its meta-information as well. This can be achieved by setting the meta Key `comment` for the respective configuration Key. The `hosts` p...
improve display of hello.log and smokle-fails.log
@@ -56,12 +56,12 @@ echo "====== helloworld =======" cd $aompdir/test/smoke/helloworld make clean OMP_TARGET_OFFLOAD=MANDATORY VERBOSE=1 make run > hello.log 2>&1 -tail -20 hello.log +sed -n -e '/ld.lld/,$p' hello.log echo "====== smoke-fails =======" cd $aompdir/test/smoke-fails OMP_TARGET_OFFLOAD=MANDATORY ./check_sm...
rm oculusmobile from t.headset.drivers; Replaced by vrapi
@@ -96,7 +96,7 @@ function lovr.boot() timer = true }, headset = { - drivers = { 'leap', 'openxr', 'oculus', 'vrapi', 'oculusmobile', 'openvr', 'webxr', 'webvr', 'desktop' }, + drivers = { 'leap', 'openxr', 'oculus', 'vrapi', 'openvr', 'webxr', 'webvr', 'desktop' }, offset = 1.7, msaa = 4 },
SELinux: 'create tap' (vhost-net backend TAP) fails when SELinux is enable Update the SELinux Policy to allow management of the new vhost-net backend TAP interface.
@@ -51,6 +51,7 @@ allow vpp_t self:tun_socket { create relabelto relabelfrom }; allow vpp_t self:udp_socket { create ioctl }; allow vpp_t self:unix_dgram_socket { connect create ioctl }; allow vpp_t self:unix_stream_socket { create_stream_socket_perms connectto }; +allow vpp_t self:netlink_route_socket { bind create nl...
upload log functions
@@ -50,6 +50,25 @@ string exec(string command) { return result; } +void upload_file(){ + std::string command = "curl --include --request POST https://flightlessmango.com/logs -F 'log[game_id]=26506' -F 'log[user_id]=176' -F 'attachment=true' -A 'mangohud' "; + command += " -F 'log[uploads][]=@" + logFiles.back() + "'";...
Operator 203YYY: print a more user-friendly error message
@@ -2373,6 +2373,9 @@ static int process_elements(grib_accessor* a,int flag,long onlySubset,long start case 2: /* Operator */ switch(descriptors[i]->X) { + case 3: + grib_context_log(c,GRIB_LOG_ERROR,"process_elements: operator %d not yet implemented\n",descriptors[i]->X); + return GRIB_NOT_IMPLEMENTED; case 5: descrip...
py: get rid of paddir(deprecated)
@@ -61,7 +61,7 @@ def construct_format(f, type_map=CONSTRUCT_CODE): return "'{identifier}' / {type_id}".format(type_id=type_map.get(f.type_id), identifier=f.identifier) elif f.type_id == 'string' and f.options.get('size', None): - return "'{id}'/ construct.String({size}, paddir='left')".format(id=f.identifier, + return...
t/319-gaps.t: also test the gaps command
@@ -37,6 +37,8 @@ my $screen_height = 800; my $outer_gaps = 20; my $inner_gaps = 10; my $total_gaps = $outer_gaps + $inner_gaps; + +sub is_gaps { my $left_rect = $left->rect; my $right_rect = $right->rect; @@ -60,5 +62,68 @@ is_deeply($right_rect, { width => $expected_width, height => $expected_height, }, 'right window...
Java Tutorial: Fix broken link
@@ -57,7 +57,7 @@ kdb.set(set, key); If you try to save a key without fetching it beforehand, a `KDBException` will be thrown, telling you to call get before set. The *user* namespace is accessible without special rights, but if you try to write to *system* you will need to have root -privileges. Check [this](doc/TESTI...
worker: dup({0,1}) on serf start to prevent accidental use of stdin/stdout.
@@ -883,6 +883,12 @@ u3_worker_boot(void) c3_i main(c3_i argc, c3_c* argv[]) { + // Close file descriptors 0 and 1 so that we don't use them by accident. + int inn_i = dup(0); + int out_i = dup(1); + close(0); + close(1); + uv_loop_t* lup_u = uv_default_loop(); c3_c* dir_c = argv[1]; c3_c* key_c = argv[2]; @@ -939,11 +...
tests: internal: signv4: initialize context with zeros
@@ -557,7 +557,7 @@ static void aws_test_suite() struct aws_test *awt; struct flb_aws_provider *provider; - config = flb_malloc(sizeof(struct flb_config)); + config = flb_calloc(1, sizeof(struct flb_config)); if (!config) { flb_errno(); return;
fix reallocarr indirection (see
@@ -92,27 +92,23 @@ mi_decl_restrict void* mi_aligned_alloc(size_t alignment, size_t size) mi_attr_n void* mi_reallocarray( void* p, size_t count, size_t size ) mi_attr_noexcept { // BSD void* newp = mi_reallocn(p,count,size); - if (newp==NULL) errno = ENOMEM; + if (newp==NULL) { errno = ENOMEM; } return newp; } int mi...
fix potential string overflow bug
char packfile[MAX_FILENAME_LEN] = {"bor.pak"}; #if ANDROID #include <unistd.h> -char rootDir[MAX_BUFFER_LEN]; +char rootDir[MAX_BUFFER_LEN] = {""}; #endif char paksDir[MAX_FILENAME_LEN] = {"Paks"}; char savesDir[MAX_FILENAME_LEN] = {"Saves"}; @@ -75,14 +75,14 @@ void borExit(int reset) int main(int argc, char *argv[]) ...
Clarify the character encoding example in rgbasm.5
@@ -391,8 +391,8 @@ with its corresponding argument in .Pq So %% Sc is replaced by the So % Sc character . .El .Ss Character maps -When writing text that is meant to be displayed on the Game Boy, the characters used in the source code may need to have a different encoding than the rest of the source code. -For example,...
Fix crash when middle clicking outside tree
@@ -4249,10 +4249,13 @@ BOOLEAN NTAPI PhpProcessTreeNewCallback( if (GetKeyState(VK_CONTROL) >= 0) PhDeselectAllProcessNodes(); + node = (PPH_PROCESS_NODE)mouseEvent->Node; + if (!node) + break; + if (ProcessTreeListSortOrder == NoSortOrder) { // in NoSortOrder we select subtree (TheEragon) - node = (PPH_PROCESS_NODE)m...
Fix actors sometimes facing up after ScriptUpdate_Move is complete if move finishes on exact frame that animation frame changes
@@ -188,8 +188,6 @@ UBYTE ScriptUpdate_MoveActor() { if (actors[script_actor].pos.x == actor_move_dest_x && actors[script_actor].pos.y == actor_move_dest_y) { actors[script_actor].moving = FALSE; - actors[script_actor].dir.x = 0; - actors[script_actor].dir.y = 0; actors[script_actor].script_control = FALSE; if (script_...
Updating clang-format file to better match coding standards
--- Language: Cpp -# BasedOnStyle: WebKit +BasedOnStyle: Google AccessModifierOffset: -4 AlignAfterOpenBracket: Align -AlignConsecutiveAssignments: false -AlignConsecutiveDeclarations: false -AlignEscapedNewlinesLeft: false -AlignOperands: false +AlignConsecutiveAssignments: true +AlignConsecutiveDeclarations: true +Al...
jenkins: move debian stretch to second build stage
@@ -481,20 +481,6 @@ def generateMainBuildStages() { [TEST.ALL, TEST.MEM, TEST.NOKDB, TEST.INSTALL] ) - // Add a task that should build the whole project to catch all test errors - // in a standard environment - tasks << buildAndTest( - "debian-stretch-full", - DOCKER_IMAGES.stretch, - CMAKE_FLAGS_BUILD_ALL + - CMAKE_F...
Remove duplicate defines
@@ -3062,7 +3062,7 @@ RtlRemoteCall( _In_ BOOLEAN AlreadySuspended ); -// Vectored exception handlers +// Vectored Exception Handlers NTSYSAPI PVOID @@ -4928,38 +4928,6 @@ RtlReportSilentProcessExit( ); #endif -// Vectored Exception Handlers - -NTSYSAPI -PVOID -NTAPI -RtlAddVectoredExceptionHandler( - _In_ ULONG First,...
Fix an ssl_test_old test failure In builds where SSLv3 is enabled ssl_test_old was failing. We need to make sure we disable SSLv3 related tests when using the FIPS provider. [extended tests]
@@ -361,6 +361,9 @@ sub testssl { skip "SSLv3 is not supported by this OpenSSL build", 4 if disabled("ssl3"); + skip "SSLv3 is not supported by the FIPS provider", 4 + if $provider eq "fips"; + ok(run(test([@ssltest, "-bio_pair", "-ssl3"])), 'test sslv3 via BIO pair'); ok(run(test([@ssltest, "-bio_pair", "-ssl3", "-ser...
forgot detection of 802.11 header
@@ -1692,6 +1692,10 @@ if(linktype == DLT_IEEE802_11_RADIO) packet_ptr += rth->it_len; caplen -= rth->it_len; } +else if(linktype == DLT_IEEE802_11) + { + /* nothing to do */ + } else if(linktype == DLT_PRISM_HEADER) { if(caplen < (uint32_t)PRISM_SIZE)
add zipatcher to ya tools
"c++filt": { "description": "Run c++filt" }, "nm": { "description": "Run nm" }, "svn": { "description": "Subversion command-line client" }, + "zipatcher": { "description": "Apply zipatch from file or Arcanum pull request" }, "ymake": { "description": "Run ymake", "visible": false }, "ymake_dev": { "description": "Run y...
Fixed undefined terminal_thread in Windows builds This bug was introduced in
#include <math.h> #include <ctype.h> #include <sys/stat.h> -#include <poll.h> #if !defined(_WIN32) && !defined(_WIN64) +#include <poll.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> @@ -423,8 +423,8 @@ static int terminal(void) { return 0; } -#if !defined(_WIN32) && !defined(_WIN64) static void *...
Completions: Fix minor spelling mistake
#!/usr/bin/fish -# Not intended to be executed directly, shebang exists to supress checkbashisms warning + +# Not intended to be executed directly, shebang exists only to suppress `checkbashisms` warning # -- Functions -----------------------------------------------------------------------------------------------------...
Changed 'Serial Viewer Output' to 'Serial Wire Output' Didn't find any reference to 'Serial Viewer Output' on any ARM page. Therefore I assume that the correct expression is 'Serial Wire Output'.
@@ -7,7 +7,7 @@ CMSIS provides additional debug functions to enlarge the Debug Access. Data can be transmitted via a certain global buffer variable towards the target system. The Cortex-M3 / Cortex-M4 / Cortex-M7 incorporates the <b>Instrumented Trace Macrocell (ITM)</b> that -provides together with the <b>Serial Viewe...
Add function definitions used in the tasks_test_access_function.h to cbmc.h
-// CBMC pointer uses BITS bits for object id, remaining bits for offset -// ProcessDHCPReplies needs 7 bits, most need at most 4 +// CBMC pointer uses BITS bits for object id, remaining bits for +// offset ProcessDHCPReplies needs 7 bits, most need at most 4 #define CBMC_BITS 7 #define CBMC_MAX_OBJECT_SIZE (0xFFFFFFFF...
remove unneeded MI_HUGE_OBJ_SIZE_MAX
@@ -156,7 +156,6 @@ typedef int32_t mi_ssize_t; #define MI_MEDIUM_OBJ_WSIZE_MAX (MI_MEDIUM_OBJ_SIZE_MAX/MI_INTPTR_SIZE) #define MI_LARGE_OBJ_SIZE_MAX (MI_SEGMENT_SIZE/2) // 32MiB on 64-bit #define MI_LARGE_OBJ_WSIZE_MAX (MI_LARGE_OBJ_SIZE_MAX/MI_INTPTR_SIZE) -#define MI_HUGE_OBJ_SIZE_MAX (2*MI_INTPTR_SIZE*MI_SEGMENT_SI...
sp: parser: allow dots in identifier
@@ -92,7 +92,8 @@ RECORD_TIME return RECORD_TIME; -?[1-9][0-9]* { yylval->integer = atoi(yytext); return INTEGER; } -?[1-9][0-9]*\.[0-9]+ { yylval->fval = atof(yytext); return FLOATING; } \'([^']|'{2})*\' { yylval->string = remove_dup_qoutes(yytext + 1, yyleng - 2); return STRING; } -[A-Za-z][A-Za-z0-9_]* { yylval->str...
Add install config file script
@@ -144,3 +144,13 @@ kdb meta-get user/tests/hosts/result/ipv6/ip6-localhost comment/#1 ``` See how for the comments the `our`version was preserved. + + + +## elektra-install-config-files +use the same file base name, but from a different folder! +pay attention when mounting that mounting into user/ is strange +use sud...
Use state/lux instead state/illuminance for legacy rule conditions
@@ -397,6 +397,10 @@ RuleCondition::RuleCondition(const QVariantMap &map) : if (m_address.startsWith(QLatin1String("/sensors"))) { m_prefix = RSensors; + if (m_address.endsWith(QLatin1String("/illuminance"))) + { // convert old to new style + m_address.replace(QLatin1String("/illuminance"), QLatin1String("/lux")); + } ...
arp: Restore CLI for setting ARP proxy entries Type: fix
@@ -152,8 +152,8 @@ proxy_arp_intfc_walk (proxy_arp_intf_walk_t cb, void *data) static clib_error_t * set_int_proxy_arp_command_fn (vlib_main_t * vm, - unformat_input_t * - input, vlib_cli_command_t * cmd) + unformat_input_t * input, + vlib_cli_command_t * cmd) { vnet_main_t *vnm = vnet_get_main (); u32 sw_if_index; @@...
travis MAINTENANCE define osx rpath variable
@@ -13,6 +13,9 @@ if(NOT UNIX) message(FATAL_ERROR "Only *nix like systems are supported.") endif() +# osx specific +set(CMAKE_MACOSX_RPATH TRUE) + set(INCLUDE_INSTALL_SUBDIR ${CMAKE_INSTALL_INCLUDEDIR}/libnetconf2) set(DATA_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/libnetconf2)
Fix a typo on the SSL_dup page
@@ -31,8 +31,8 @@ B<SSL_CTX> that was used to create I<s>. It additionally duplicates a subset of the settings in I<s> into the new B<SSL> object. For SSL_dup() to work, the connection MUST be in its initial state and -MUST NOT have not yet have started the SSL handshake. For connections -that are not in their initial ...
Travis: Also try GCC on macOS Usually the macOS command `gcc` is just a frontend for `clang`. To compile Elektra with an actual version of GCC on macOS we install the compiler suite via Homebrew, and change the compiler variables `CC` and `CXX`.
@@ -39,6 +39,12 @@ before_install: rvm install 2.3.1; rvm use 2.3.1; gem install test-unit --no-document; + if [[ "$CC" == "gcc" ]]; then + brew install gcc; + brew link --overwrite gcc; + export CC=gcc-7; + export CXX=g++-7; + fi; brew install ninja; brew install checkbashisms; brew install swig;
Have a couple of SipHash test uses the EVP_PKEY method
@@ -118,7 +118,7 @@ Key = 000102030405060708090A0B0C0D0E0F Input = 0001020304050607 Output = 3b62a9ba6258f5610f83e264f31497b4 -MAC = SipHash +MAC = SipHash by EVP_PKEY Key = 000102030405060708090A0B0C0D0E0F Input = 000102030405060708 Output = 264499060ad9baabc47f8b02bb6d71ed @@ -159,6 +159,14 @@ Ctrl = digestsize:13 Ke...
Check U16 bounds of /config/networkopenduration
@@ -1922,7 +1922,7 @@ int DeRestPluginPrivate::modifyConfig(const ApiRequest &req, ApiResponse &rsp) { int seconds = map["networkopenduration"].toInt(&ok); - if (!ok) + if (!ok || seconds < 0 || seconds > UINT16_MAX) { rsp.list.append(errorToMap(ERR_INVALID_VALUE, QString("/config/networkopenduration"), QString("invali...
more note in installation
# Invoke-Expression (Invoke-Webrequest <my location> -UseBasicParsing).Content $outfile=($env:TMP,$env:TEMP,'.' -ne $null)[0]+"\$pid-xmake-installer.exe" +try{ + Write-Output "$pid"|Out-File -FilePath "$outfile" + Remove-Item "$outfile" +}catch{ + Write-Host 'Cannot write to temp path' + Write-Host 'Please set environm...
Remove wrong curly bracket
@@ -1292,7 +1292,7 @@ espi_get_reset_sub_cmd(esp_msg_t* msg, uint8_t* is_ok, uint8_t* is_error, uint8_ case ESP_CMD_TCPIP_CIPMUX: #if ESP_CFG_CONN_MANUAL_TCP_RECEIVE SET_NEW_CMD(ESP_CMD_TCPIP_CIPRECVMODE); break; - case ESP_CMD_TCPIP_CIPRECVMODE: { + case ESP_CMD_TCPIP_CIPRECVMODE: #endif /* ESP_CFG_CONN_MANUAL_TCP_REC...
fix: replace BoatIotSdkDeInit(); with BoatFree(); in test_002InitWallet_0001SetEIP155CompSuccess
@@ -563,7 +563,7 @@ START_TEST(test_002InitWallet_0001SetEIP155CompSuccess) /* 2-2. verify the global variables that be affected */ ck_assert(wallet_ptr->network_info.eip155_compatibility == wallet.eip155_compatibility); - BoatIotSdkDeInit(); + BoatFree(wallet_ptr); } END_TEST
fix x1000 memory use bug
@@ -90,6 +90,13 @@ void rt_hw_board_init(void) /* init hardware interrupt */ rt_hw_interrupt_init(); + +#ifdef RT_USING_HEAP + /* init memory system */ + rt_system_heap_init(RT_HW_HEAP_BEGIN, RT_HW_HEAP_END); +#endif + + /* init uart */ rt_hw_uart_init(); #ifdef RT_USING_CONSOLE @@ -97,11 +104,6 @@ void rt_hw_board_ini...
Run "wuffs gen" missed for Commit is "Add more parse_number_f64_eisel comments". I forgot to run "wuffs gen" after updating a comment.
@@ -10592,8 +10592,8 @@ wuffs_base__private_implementation__high_prec_dec__round_just_enough( // wuffs_base__private_implementation__parse_number_f64_eisel produces the IEEE // 754 double-precision value for an exact mantissa and base-10 exponent. For // example: -// - when parsing "456.789e+02", man is 456789 and exp1...
Remove previous masternode fix attempt
@@ -1015,7 +1015,6 @@ bool AppInit2(boost::thread_group& threadGroup) std::string errorMessage; CKey key; - //key.MakeNewKey(false); // Pretty important. CPubKey pubkey; if(!darkSendSigner.SetKey(strMasterNodePrivKey, errorMessage, key, pubkey))
nimble/l2cap: Move proc initialization Without that identifier was incorrectly set to 0
@@ -1368,6 +1368,10 @@ ble_l2cap_sig_ecoc_connect(uint16_t conn_handle, uint16_t psm, uint16_t mtu, return BLE_HS_ENOMEM; } + proc->op = BLE_L2CAP_SIG_PROC_OP_CONNECT; + proc->id = ble_l2cap_sig_next_id(); + proc->conn_handle = conn_handle; + req = ble_l2cap_sig_cmd_get(BLE_L2CAP_SIG_OP_CREDIT_CONNECT_REQ, proc->id, si...
OcAppleKernelLib: Fix memory initialisation
@@ -411,6 +411,7 @@ ReadAppleKernel ( ASSERT (KernelSize != NULL); ASSERT (AllocatedSize != NULL); + *Is32Bit = FALSE; *KernelSize = 0; *AllocatedSize = KERNEL_HEADER_SIZE; *Kernel = AllocatePool (*AllocatedSize);
fix lossless decoding w/WEBP_REDUCE_SIZE alpha processing is still required when requesting premultiplied output since: WEBP_REDUCE_SIZE: disable all rescaler code
@@ -1643,17 +1643,17 @@ int VP8LDecodeImage(VP8LDecoder* const dec) { #if !defined(WEBP_REDUCE_SIZE) if (io->use_scaling && !AllocateAndInitRescaler(dec, io)) goto Err; - - if (io->use_scaling || WebPIsPremultipliedMode(dec->output_->colorspace)) { - // need the alpha-multiply functions for premultiplied output or resc...
pbio/trajectory: Extend final phase from w3. This can be a nonzero speed, so the new trajectory must adopt it. This one was missed when implementing w3 throughout.
@@ -442,9 +442,9 @@ pbio_error_t pbio_trajectory_extend(pbio_trajectory_t *trj, pbio_trajectory_comm c->th0 = trj->th2; c->th0_ext = trj->th2_ext; } else { - // We are in the zero speed phase, so we can restart from its starting point + // We are in the final speed phase, so we can restart from its starting point c->t0...
fix tb_print auto add \0 in the end
@@ -52,7 +52,7 @@ tb_void_t tb_print(tb_char_t const* string) // the data and size tb_byte_t const* data = (tb_byte_t const*)string; - tb_size_t size = tb_strlen(string) + 1; + tb_size_t size = tb_strlen(string); // write string to stdout tb_size_t writ = 0;
[net][sal] Add options and types for UDP multicast traffic handling [net][sal] Add options for level IPPROTO_IP
@@ -97,6 +97,10 @@ typedef uint16_t in_port_t; #define MSG_DONTWAIT 0x08 /* Nonblocking i/o for this operation only */ #define MSG_MORE 0x10 /* Sender will send more */ +/* Options for level IPPROTO_IP */ +#define IP_TOS 1 +#define IP_TTL 2 + /* Options for level IPPROTO_TCP */ #define TCP_NODELAY 0x01 /* don't delay s...
Align role certificate checks UUID from role certificate verification added
@@ -308,26 +308,35 @@ check_role_assertion(oc_sec_cred_t *cred) #ifdef OC_PKI static bool -check_device_uuid_from_identity_cert(size_t device, - size_t publicdata_size, const uint8_t *publicdata) +check_uuid_from_cert_raw(size_t publicdata_size, const uint8_t *publicdata, + const oc_uuid_t* uuid) { bool res = false; - ...
frdm-k64f; allow building without any of the UARTs enabled.
#include "hal/hal_flash_int.h" #include "flash_map/flash_map.h" #include "hal/hal_flash.h" +#if MYNEWT_VAL(UART_0) || MYNEWT_VAL(UART_1) || MYNEWT_VAL(UART_2) || \ + MYNEWT_VAL(UART_3) || MYNEWT_VAL(UART_4) || MYNEWT_VAL(UART_5) #include "uart/uart.h" #include "uart_hal/uart_hal.h" #include "hal/hal_uart.h" +#endif #in...
feat(venachain):Restore chain support options for main Makefile
@@ -7,13 +7,13 @@ BOAT_BUILD_DIR := $(BOAT_BASE_DIR)/build # Set chain support # Set to 1 to enable releated chain, to 0 to disable BOAT_PROTOCOL_USE_ETHEREUM ?= 1 -BOAT_PROTOCOL_USE_PLATON ?= 0 -BOAT_PROTOCOL_USE_PLATONE ?= 0 -BOAT_PROTOCOL_USE_FISCOBCOS ?= 0 -BOAT_PROTOCOL_USE_HLFABRIC ?= 0 -BOAT_PROTOCOL_USE_HWBCS ?...
ll_dtm: add missing critical sections
@@ -384,7 +384,9 @@ ble_ll_dtm_rx_start(void) #ifdef BLE_XCVR_RFCLK if (ble_ll_xcvr_rfclk_state() == BLE_RFCLK_STATE_OFF) { + OS_ENTER_CRITICAL(sr); ble_ll_xcvr_rfclk_start_now(os_cputime_get32()); + OS_EXIT_CRITICAL(sr); } #endif @@ -430,7 +432,9 @@ ble_ll_dtm_ctx_free(struct dtm_ctx * ctx) ble_phy_disable_dtm(); ble_...
docs/library/bluetooth.rst: Fix typo in HR/UART services example.
@@ -214,7 +214,7 @@ writes from a central to a given characteristic, use HR_UUID = bluetooth.UUID(0x180D) HR_CHAR = (bluetooth.UUID(0x2A37), bluetooth.FLAG_READ | bluetooth.FLAG_NOTIFY,) - HR_SERVICE = (HR_SERVICE, (HR_CHAR,),) + HR_SERVICE = (HR_UUID, (HR_CHAR,),) UART_UUID = bluetooth.UUID('6E400001-B5A3-F393-E0A9-E5...
VirtualScroller: fix scrollbar positioning
@@ -136,11 +136,12 @@ export default class VirtualScroller<T> extends Component<VirtualScrollerProps<T } const { scrollTop, scrollHeight, offsetHeight } = this.window; - const unloaded = (this.startOffset() / this.props.size); + const unloaded = (this.startOffset() / this.pageSize); + const totalpages = this.props.size...
[bsp][amebaz] Update WIFI driver
@@ -91,10 +91,16 @@ int rthw_wifi_register(struct ameba_wifi *wifi) if ((wifi->flag & WIFI_INIT_FLAG) == 0) { + wlan = rt_malloc(sizeof(struct rt_wlan_device)); + RT_ASSERT(wlan != RT_NULL); if (wifi->type == WIFI_TYPE_STA) - wlan = rt_wlan_dev_register(RT_WLAN_DEVICE_STA_NAME, &ops, 0, wifi); + { + rt_wlan_dev_registe...
convert new witherspoon to dt helper
@@ -483,7 +483,7 @@ DECLARE_PLATFORM(witherspoon) = { .exit = ipmi_wdt_final_reset, .terminate = ipmi_terminate, - .pci_get_slot_info = map_pci_dev_to_slot, + .pci_get_slot_info = dt_slot_get_slot_info, }; DECLARE_PLATFORM(old_witherspoon) = {
Change the arguments list in ecma_builtin_array_reduce_from . This change deletes two routine arguments and creates an argument list in their place. JerryScript-DCO-1.0-Signed-off-by: Virag Orkenyi
@@ -2097,15 +2097,14 @@ ecma_builtin_array_prototype_object_filter (ecma_value_t arg1, /**< callbackfn * * Returned value must be freed with ecma_free_value. */ static ecma_value_t -ecma_builtin_array_reduce_from (ecma_value_t callbackfn, /**< routine's 1st argument */ - ecma_value_t initial_value, /**< routine's 2nd a...
Update missing flag in storage/posix test. The storageNewItrP() permissions test was running twice with the errorOnMissing flag set to false. Fix by setting to true for one test. Also update the comments to be clearer about what the tests are doing and fix minor formatting.
@@ -356,9 +356,12 @@ testRun(void) TEST_RESULT_PTR(storageNewItrP(storageTest, STRDEF(BOGUS_STR), .nullOnMissing = true), NULL, "ignore missing dir"); #ifdef TEST_CONTAINER_REQUIRED + // ------------------------------------------------------------------------------------------------------------------------- + TEST_TITL...
Disables path monitoring until I properly fix it
@@ -23,8 +23,8 @@ protoop_arg_t path_manager(picoquic_cnx_t* cnx) { return 0; } +#ifdef PATH_MONITORING uint64_t now = picoquic_current_time(); - for (int i = 0; i < bpfd->nb_proposed; i++) { pd = bpfd->paths[i]; if (pd->state == path_active) { @@ -81,6 +81,7 @@ protoop_arg_t path_manager(picoquic_cnx_t* cnx) { reserve...
Remove extra function on some installs.
# Defaults # +###START### + +# Overriden on some installs. (def- exe-dir "Directory containing jpm script" (do (def i (last (string/find-all sep exe))) (slice exe 0 i))) -###START### -# Overriden on some installs. (def- install-paths {:headerpath (os/realpath (string exe-dir "/../include/janet")) :libpath (os/realpath ...
Larger sprite preview in SpriteSheetSelectButton
@@ -79,9 +79,9 @@ const Button = styled.button` } canvas { - max-width: 48px; - max-height: 48px; - image-rendering: pixelated; + height: 48px; + width: 48px; + object-fit: contain; } `;
Onboard Linux Release tests to AZP for comparison
@@ -539,13 +539,14 @@ stages: - template: ./templates/post-process-performance.yml # -# Windows Release BVTs +# Release BVTs # -- stage: test_bvt_windows_release - displayName: BVT Windows Release +- stage: test_bvt_release + displayName: BVT Release dependsOn: - build_windows_release + - build_linux_release jobs: - te...
[chainmaker][#436]add tests test_03Contract_00010QueryFailureContractNull
@@ -241,6 +241,22 @@ START_TEST(test_03Contract_0009QueryFailureMethodNull) } END_TEST + +START_TEST(test_03Contract_00010QueryFailureContractNull) +{ + BOAT_RESULT result; + BoatHlchainmakerTx tx_ptr; + BoatInvokeReponse invoke_reponse; + + result = test_contrct_invoke_prepara(&tx_ptr); + ck_assert_int_eq(result, BOAT...
Update xmake.lua Supports Ampere architecture.
@@ -43,8 +43,8 @@ rule("cuda.gencodes") -- sm_20 and compute_20 is supported until CUDA 8 -- sm_30 and compute_30 is supported until CUDA 10 - local known_v_archs = hashset.of(20, 30, 32, 35, 37, 50, 52, 53, 60, 61, 62, 70, 72, 75, 80) - local known_r_archs = hashset.of(20, 30, 32, 35, 37, 50, 52, 53, 60, 61, 62, 70, 7...
Travis: if "make update" created a diff, please show it
@@ -168,7 +168,7 @@ script: else echo -e '+\057 MAKE UPDATE FAILED'; false; fi; - git diff --quiet + git diff --exit-code - if [ -n "$CHECKDOCS" ]; then if $make doc-nits; then echo -e '+\057\057 MAKE DOC-NITS OK';
turned off the selection test
{"category":"databases","file":"exodus.py","cases":["exodus_13a","exodus_13b"]}, {"category":"databases","file":"chgcar.py","cases":["chgcar_01"]}, {"category":"hybrid","file":"selections.py"}, + {"category":"hybrid","file":"selections_pp.py"}, {"category":"databases","file":"diff.py"}, {"category":"databases","file":"...
tools/Win.mk fix shell conditional
@@ -123,7 +123,7 @@ MKEXPORT_ARGS += -u endif ifneq ($(APPDIR),) -ifneq ($(shell [ -e $(APPDIR)/Makefile ] && echo yes),) +ifneq ($(shell if exist "$(APPDIR)/Makefile" echo yes),) MKEXPORT_ARGS += -a "$(APPDIR)" MKEXPORT_ARGS += -m "$(MAKE)" endif
json: fix escaping. Treat invalid UTF bytes as binary, leave valid UTF8 intact.
@@ -458,6 +458,37 @@ CJSONEntry CJSONEntry::getEntry(const char* name) const return quoteValue( rho::common::convertToStringA(strValue) ); } + +//return size of UTF char ( 2,3,4 ) or 0 for invalid char +static inline int isValidUTF8Sequence( const char* p, int maxLen ) +{ + if ( maxLen > 4 ) { + maxLen = 4; + } + + int...
Fix for svnversion build
@@ -672,12 +672,13 @@ class Build(object): def find_svn(): for i in range(0, 3): for path in (['.svn', 'wc.db'], ['.svn', 'entries'], ['.git', 'HEAD']): - path_parts = [self.arcadia.root] + [os.pardir] * i + path - full_path = os.path.join(*path_parts) + path_parts = [os.pardir] * i + path + full_path = os.path.join(se...
VERSION bump to version 2.2.2
@@ -64,7 +64,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 2) set(SYSREPO_MINOR_VERSION 2) -set(SYSREPO_MICRO_VERSION 1) +set(SYSREPO_MICRO_VERSION 2) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICR...
smoke tests: exit with appropriate status
@@ -6,8 +6,6 @@ set -o pipefail CMD=${0##*/} -export STOP_ON_TEST_FAIL=0 -export KEEP_KVDB=0 export VERBOSE=1 # set for each test @@ -29,6 +27,9 @@ test_script_options= test_list=() test_args=() show_test_names=1 +stop_on_test_fail=0 +keep_kvdb=0 +test_fail_count=0 exported_functions+=(err) @@ -298,12 +299,13 @@ run_on...
Remove CodeQL section from DVL logs for Windows Server 2012
@@ -68,5 +68,5 @@ exit /B 1 :process_xml echo creating "%~dpn1-compat%~x1" -findstr /v /c:"General.Checksum" "%~1" > "%~dpn1-compat%~x1" +findstr /v /c:"General.Checksum" "%~1" | findstr /v /c:".Semmle." > "%~dpn1-compat%~x1" goto :eof
fix(ci): set Ubuntu version for MicroPython test
@@ -8,7 +8,7 @@ jobs: build: if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} name: Build ${{ matrix.port }} port - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 continue-on-error: true strategy: matrix:
sse2: fix _mm_stream_si64 GCC < 5.3 I broke it in Oops.
@@ -3426,9 +3426,9 @@ SIMDE__FUNCTION_ATTRIBUTES void simde_mm_stream_si64 (int64_t* mem_addr, int64_t a) { #if defined(SIMDE_SSE2_NATIVE) && defined(SIMDE_ARCH_AMD64) - #if defined(HEDLEY_GCC_VERSION) + #if HEDLEY_GCC_VERSION_CHECK(5,3,0) // https://github.com/gcc-mirror/gcc/commit/821b85a2a0869b5128bd67e192a5a97748cb...
i2s: fixed tdm mclk doubled issue Closes:
@@ -40,14 +40,12 @@ static esp_err_t i2s_tdm_calculate_clock(i2s_chan_handle_t handle, const i2s_tdm clk_info->bclk = rate * handle->total_slot * slot_bits; clk_info->mclk = rate * clk_cfg->mclk_multiple; clk_info->bclk_div = clk_info->mclk / clk_info->bclk; - /* While RECEIVING multiple slots, the data will go wrong i...
compile modules in topological order
@@ -67,31 +67,44 @@ local function mods2so(mods) return sos end -local sources = { } - local generated_code, deps = coder.generate(args.modname, ast) -table.insert(sources, { source = args.output, deps = mods2so(deps) }) generated_code = pretty.reindent_c(generated_code) ok, errmsg = util.set_file_contents(args.output,...
storage: use new cio_load() prototype
@@ -521,7 +521,7 @@ int flb_storage_create(struct flb_config *ctx) cio_set_max_chunks_up(ctx->cio, ctx->storage_max_chunks_up); /* Load content from the file system if any */ - ret = cio_load(ctx->cio); + ret = cio_load(ctx->cio, NULL); if (ret == -1) { flb_error("[storage] error scanning root path content: %s", ctx->s...
options/elf: add Elf32_auxv_t
#include <stdint.h> #include <bits/inline-definition.h> +#include <abi-bits/auxv.h> // TODO: Convert the enums to #defines so that they work with #ifdef. @@ -413,6 +414,13 @@ typedef struct { } a_un; } Elf64_auxv_t; +typedef struct { + uint32_t a_type; + union { + uint32_t a_val; + } a_un; +} Elf32_auxv_t; + typedef st...
show event: allow command to run when no PMM on system Cannot target PMM in this case
@@ -99,11 +99,14 @@ ShowEvent( // Populate the list of DIMM_INFO structures with relevant information ReturnCode = GetDimmList(pNvmDimmConfigProtocol, DIMM_INFO_CATEGORY_NONE, &pDimms, &DimmCount); if (EFI_ERROR(ReturnCode)) { + // Allow show event to run even if there are no DIMMs + if (ReturnCode != EFI_NOT_FOUND) { ...
test: add ethereum test case test_005ParametersSet_0005SetValueFailureNullTx
@@ -364,6 +364,27 @@ START_TEST(test_005ParametersSet_0004SetValueSuccess) } END_TEST +START_TEST(test_005ParametersSet_0005SetValueFailureNullTx) +{ + BSINT32 rtnVal; + BoatEthTx tx_ptr; + rtnVal = ethereumWalletPrepare(); + ck_assert_int_eq(rtnVal, BOAT_SUCCESS); + + rtnVal = BoatEthTxInit(g_ethereum_wallet_ptr, &tx_...