message
stringlengths
6
474
diff
stringlengths
8
5.22k
Prevent unsafe memcpy Some tests cause a zero length input or output, which can mean the allocated test output buffers can be zero length. Protect against calling memcpy blindly in these situations.
@@ -3292,7 +3292,10 @@ void aead_multipart_encrypt( int key_type_arg, data_t *key_data, part_length, part_data, part_data_size, &output_part_length ) ); + if( output_data && output_part_length ) + { memcpy( ( output_data + part_offset ), part_data, output_part_length ); + } part_offset += part_length; output_length += ...
Fix copy so that plugins can work on mac
@@ -666,12 +666,21 @@ elseif(APPLE) endif() function(move_lib) if(TARGET ${ARGV0}) + get_target_property(TARGET_TYPE ${ARGV0} TYPE) + if(${TARGET_TYPE} STREQUAL "MODULE_LIBRARY") + add_custom_command(TARGET lovr POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy + $<TARGET_FILE:${ARGV0}> + ${EXE_DIR}/$<TARGET_FILE_NAME:${AR...
Fixed NULL pointer error, if no label is provided after the rule keyword.
@@ -237,7 +237,13 @@ int ruledata() { case -1: err = 201; /* Unrecognized keyword */ break; - case r_RULE: Nrules++; + case r_RULE: /* Missing the rule label -> set error */ + if (parser->Ntokens != 2) + { + err = 201; + break; + } + Nrules++; newrule(); RuleState = r_RULE; break;
vere: fix refcounting in _ames_forward Make sure we fully lose the list of lanes that's passed in, not just the individual items.
@@ -627,12 +627,13 @@ _ames_forward(u3_panc* pac_u, u3_noun las) } { + u3_noun los = las; u3_noun pac = _ames_serialize_packet(pac_u, c3y); while (u3_nul != las) { - _ames_ef_send(pac_u->sam_u, u3h(las), u3k(pac)); + _ames_ef_send(pac_u->sam_u, u3k(u3h(las)), u3k(pac)); las = u3t(las); } - u3z(pac); + u3z(los); u3z(pac...
fix casts in readUInt shifts
@@ -920,8 +920,8 @@ static inline uint32_t readUInt (const uint8_t* b) { return ( - ((uint32_t) (b[0])) | ((uint32_t) (b[1] << 8)) | - ((uint32_t) (b[2] << 16)) | ((uint32_t) (b[3] << 24))); + ((uint32_t) b[0]) | (((uint32_t) b[1]) << 8u) | + (((uint32_t) b[2]) << 16u) | (((uint32_t) b[3]) << 24u)); } /****************...
stm32/boards/PYBD_SF2: Configure LEDs as inverted, for LED.intensity().
@@ -154,6 +154,7 @@ extern struct _spi_bdev_t spi_bdev2; #define MICROPY_HW_USRSW_PRESSED (0) // LEDs +#define MICROPY_HW_LED_INVERTED (1) // LEDs are on when pin is driven low #define MICROPY_HW_LED1 (pyb_pin_LED_RED) #define MICROPY_HW_LED2 (pyb_pin_LED_GREEN) #define MICROPY_HW_LED3 (pyb_pin_LED_BLUE)
Fix tool script for gcc build in cygwin
@@ -187,7 +187,11 @@ build_target() { case "$1" in debug) build_subdir=debug - add cc_flags -DDEBUG -ggdb -fsanitize=address -fsanitize=undefined + add cc_flags -DDEBUG -ggdb + # cygwin gcc doesn't seem to have this stuff, just elide for now + if [[ $os != cygwin ]]; then + add cc_flags -fsanitize=address -fsanitize=un...
MUCH better tracking Works with 2 lighthouses. Tracking from both lighthouses agree *much* better than before Inverting the tracker no longer screws up tracking Still much work to do to remove all axis angle and speed up/ make predictable the algorithm to estimate the rotation of the LH relative to the tracked object.
@@ -1161,8 +1161,8 @@ static void RefineRotationEstimateQuaternion(FLT *rotOut, Point lhPoint, FLT *in //#ifdef TORI_DEBUG //printf("+ %8.8f, (%8.8f, %8.8f, %8.8f) %f\n", newMatchFitness, point4[0], point4[1], point4[2], point4[3]); //#endif - g *= 1.02; - printf("+"); + g *= 1.04; + //printf("+"); //WhereIsTheTrackedO...
Test including `<gui/gui.hpp>` in TravisCI.
@@ -38,6 +38,7 @@ before_script: script: - 'if [[ "$BUILD_TOOL" == "autotools" ]]; then echo "#include <libtcod.h>" | gcc -xc -c -I$HOME/.local/include/libtcod -; fi' - 'if [[ "$BUILD_TOOL" == "autotools" ]]; then echo "#include <libtcod.hpp>" | gcc -xc++ -c -I$HOME/.local/include/libtcod -; fi' +- 'if [[ "$BUILD_TOOL"...
commit: parse_commit_options returns an int This looks like an oversight from some years ago when we were extracting functionality. This function returns an `int` and not a `VALUE` like it states.
@@ -425,7 +425,7 @@ struct commit_data { * Note that parents may be set even when the function errors, so make * sure to free this data. */ -static VALUE parse_commit_options(struct commit_data *out, git_repository *repo, VALUE rb_data) +static int parse_commit_options(struct commit_data *out, git_repository *repo, VAL...
Clear all the notify messages in cdbconn_discardResults() Currently, notify messages are not used in GPDB by QE's except for sequence nextval messages. While cleaning the connection for reuse best to remove all the notify messages as well to be safe than sorry even later if we start using it for more things.
@@ -572,6 +572,7 @@ cdbconn_discardResults(SegmentDatabaseDescriptor *segdbDesc, PGresult *pRes = NULL; ExecStatusType stat; int i = 0; + bool retval = true; /* PQstatus() is smart enough to handle NULL */ while (NULL != (pRes = PQgetResult(segdbDesc->conn))) @@ -584,13 +585,31 @@ cdbconn_discardResults(SegmentDatabase...
pbio/doc/control: Copy-edit math. Fix a few typos.
@@ -506,7 +506,7 @@ gray regions of Figure \ref{fig:positions}, which holds if: % \begin{align} \label{eq:a:decreaselimit} - - \dfrac{1}{2 \a_2}\lr{\w_0^2 - \w_3^2} < \th_3 - \th_0 + \dfrac{1}{2 \a_2}\lr{\w_3^2 - \w_0^2} < \th_3 - \th_0 \end{align} % If it holds, then there is a nonzero constant speed phase ($\th_1 \ne...
added assertions for assumptions in the IR
@@ -49,7 +49,7 @@ end -- Does not currently recognize non-trivial constant expressions as being constant. function constant_propagation.run(module) - -- 1) Find what toplevel variables are initialized to a constant. + -- 1) Find which variables are initialized to a constant. local data_of_func = {} -- list of FuncData ...
Fix win32u typo
@@ -2064,7 +2064,7 @@ VOID PhpGenerateSyscallLists( { static PH_STRINGREF ntdllPath = PH_STRINGREF_INIT(L"\\SystemRoot\\System32\\ntdll.dll"); static PH_STRINGREF win32kPath = PH_STRINGREF_INIT(L"\\SystemRoot\\System32\\win32k.sys"); - static PH_STRINGREF win32uPath = PH_STRINGREF_INIT(L"\\SystemRoot\\System32\\win32u....
cast neg cache stats to long long
@@ -139,8 +139,8 @@ set_neg_cache_stats(struct worker* worker, struct ub_server_stats* svr, return; neg = ve->neg_cache; lock_basic_lock(&neg->lock); - svr->num_neg_cache_noerror = neg->num_neg_cache_noerror; - svr->num_neg_cache_nxdomain = neg->num_neg_cache_nxdomain; + svr->num_neg_cache_noerror = (long long)neg->num...
unit-test/test_keystore: fix C lints ``` /bitbox02-firmware/test/unit-test/test_keystore.c:229:22: error: 4th argument 'host_nonce_commitment' (passed to 'host_commitment') looks like it might be swapped with the 5th, 'commitment' (passed to 'client_commitment_out') [readability-suspicious-call-argument,-warnings-as-er...
@@ -219,24 +219,32 @@ static void _test_keystore_secp256k1_nonce_commit(void** state) { uint8_t msg[32] = {0}; memset(msg, 0x88, sizeof(msg)); - uint8_t commitment[EC_PUBLIC_KEY_LEN] = {0}; - uint8_t host_nonce_commitment[32] = {0}; - memset(host_nonce_commitment, 0xAB, sizeof(host_nonce_commitment)); + uint8_t client_...
Redact x-amz-security-token header in errors. This header should not be displayed to the user in error output, even if it is useless by itself.
@@ -861,6 +861,7 @@ storageS3New( driver->headerRedactList = strLstNew(); strLstAdd(driver->headerRedactList, HTTP_HEADER_AUTHORIZATION_STR); strLstAdd(driver->headerRedactList, S3_HEADER_DATE_STR); + strLstAdd(driver->headerRedactList, S3_HEADER_TOKEN_STR); this = storageNew( STORAGE_S3_TYPE_STR, path, 0, 0, write, pa...
Update readme.md Fixed link to Crundal's presentation
@@ -390,7 +390,7 @@ how the design of _tbb_ avoids the false cache line sharing. Available at <https://github.com/kuszmaul/SuperMalloc/tree/master/tests> - \[6] Timothy Crundal. _Reducing Active-False Sharing in TCMalloc._ - 2016. <http://courses.cecs.anu.edu.au/courses/CSPROJECTS/16S1/Reports/Timothy*Crundal*Report.pd...
[scripts] Split trace at `trace` csr access
@@ -751,14 +751,8 @@ def main(): 'cfg_buf': deque(), 'curr_cfg': None } - # all values initially 0, also 'start' time of measurement 0 - perf_metrics_bench = [defaultdict(int)] - # all values initially 0, also 'start' time of measurement 0 - perf_metrics_setup = [defaultdict(int)] - perf_metrics_bench[0]['start'] = Non...
Fix mirror PowerShell Script (try 2)
@@ -35,7 +35,7 @@ git reset --hard origin/$Branch # Push to the AzDO repo. $Result = (git push azdo-mirror $Branch) -if ($Result.Contains("Head is now at")) { +if (($Result -as [String]).Contains("Head is now at")) { Write-Host "Successfully mirrored latest changes to https://mscodehub.visualstudio.com/msquic/_git/msqu...
Make match macro prettier.
@@ -1079,7 +1079,7 @@ value, one key will be ignored." [pattern expr onmatch seen] (cond - (and (symbol? pattern) (not (keyword? pattern))) + (symbol? pattern) (if (get seen pattern) ~(if (= ,pattern ,expr) ,(onmatch) ,sentinel) (do @@ -1138,8 +1138,7 @@ value, one key will be ignored." ((fn aux [i] (cond (= i len-1) (...
bricks/movehub: Disable iodevices module. This saves about 500 bytes now, and more considering future additions like UARTDevice and I2CDevice.
#define PYBRICKS_PY_EXPERIMENTAL (0) #define PYBRICKS_PY_GEOMETRY (0) #define PYBRICKS_PY_HUBS (1) -#define PYBRICKS_PY_IODEVICES (1) +#define PYBRICKS_PY_IODEVICES (0) #define PYBRICKS_PY_MEDIA (0) #define PYBRICKS_PY_PARAMETERS (1) #define PYBRICKS_PY_PARAMETERS_BUTTON (1)
[core] comment out ck_getenv_s() (unused) ck_getenv_s() not currently used in lighttpd; lighttpd process env is stable
@@ -149,6 +149,7 @@ ck_memclear_s (void * const s, const rsize_t smax, rsize_t n) } +#if 0 /*(not currently used in lighttpd; lighttpd process env is stable)*/ errno_t ck_getenv_s (size_t * const restrict len, char * const restrict value, const rsize_t maxsize, @@ -198,6 +199,7 @@ ck_getenv_s (size_t * const restrict l...
FlatValuePool should use a vector of items
@@ -45,10 +45,11 @@ struct FlatValuePool }; struct Item { + HashType hash; uint32_t useCount; int32_t tdbOffset; - Item(int32_t aTDBOffset); + Item(HashType aHash, int32_t aTDBOffset); void DecUseCount(); void IncUseCount(); RED4ext::TweakDB::FlatValue* ToFlatValue(); @@ -70,7 +71,7 @@ struct FlatValuePool private: Typ...
fix versus damage
@@ -18457,7 +18457,7 @@ entity *spawn(float x, float z, float a, int direction, char *name, int index, s e->speedmul = 1; ent_set_colourmap(e, 0); e->lifespancountdown = model->lifespan; // new life span countdown - if((e->modeldata.type & TYPE_PLAYER) && ((level && level->nohit == DAMAGE_FROM_PLAYER_ON) || savedata.mo...
examples/elf: Drop the 0x when printing pointers.
@@ -42,14 +42,14 @@ int main(int argc, char **argv) /* Print arguments */ printf("argc\t= %d\n", argc); - printf("argv\t= 0x%p\n", argv); + printf("argv\t= %p\n", argv); for (i = 0; i < argc; i++) { printf("argv[%d]\t= ", i); if (argv[i]) { - printf("(0x%p) \"%s\"\n", argv[i], argv[i]); + printf("(%p) \"%s\"\n", argv[i...
vell: Limit input current to fraction of negotiated limit Limit input current to 96% of negotiated limit BRANCH=none TEST=Connect adapter then check input current.
@@ -82,9 +82,14 @@ int board_set_active_charge_port(int port) return EC_SUCCESS; } -__overridable void board_set_charge_limit(int port, int supplier, int charge_ma, +void board_set_charge_limit(int port, int supplier, int charge_ma, int max_ma, int charge_mv) { + /* + * Limit the input current to 96% negotiated limit, ...
cpeng: update examples in readme
@@ -93,8 +93,8 @@ hps will enumerate the AFU for that subcommand before executing it. mode which will increment the upper 16 bits in the HPS2HOST register. ## EXAMPLES ## -The following example loads the image from a file called 'hps.img' into -offset 0x0000 in one chunk +The following example loads the image from a fi...
Updated json file for release.
"version": "1.0.0" } ] + }, + { + "name": "OpenCR", + "architecture": "OpenCR", + "version": "1.4.2", + "category": "Arduino", + "help": { + "online": "https://github.com/ROBOTIS-GIT/OpenCR" + }, + "url": "https://github.com/ROBOTIS-GIT/OpenCR/releases/download/1.4.2/opencr_core_1.4.2.tar.bz2", + "archiveFileName": "op...
Update sammple_c
@@ -38,11 +38,29 @@ uint8_t * load_mrb_file(const char *filename) void mrubyc(uint8_t *mrbbuf) { - mrbc_init(memory_pool, MEMORY_SIZE); + mrbc_init_alloc(memory_pool, MEMORY_SIZE); + init_static(); - if( mrbc_create_task(mrbbuf, 0) != NULL ){ - mrbc_run(); + struct VM *vm = mrbc_vm_open(NULL); + if( vm == 0 ) { + fprin...
Docker: Sort Alpine Linux packages alphabetically
@@ -2,13 +2,13 @@ FROM alpine:3.8 RUN apk update \ && apk add --no-cache \ + bison \ build-base \ cmake \ - git \ - file \ curl \ - yaml-cpp-dev \ - bison + file \ + git \ + yaml-cpp-dev # Google Test ENV GTEST_ROOT=/opt/gtest
IO support on win32/rhosim
@@ -650,7 +650,17 @@ void rb_io_check_closed(rb_io_t *fptr) { rb_io_check_initialized(fptr); + +//RHO, MSDN docs: +//In Visual C++ 2005, there is a behavior change. +//If stdout or stderr is not associated with an output stream (for example, in a Windows application without a console window), the file descriptor return...
doc: added a component-specific property description for FreeRTOS: ORIG_INCLUDE_PATH
@@ -14,6 +14,8 @@ entries of arbitrary lengths. :ref:`hooks`: ESP-IDF FreeRTOS hooks provides support for registering extra Idle and Tick hooks at run time. Moreover, the hooks can be asymmetric amongst both CPUs. +:ref:`component-specific-properties`: Currently added only one component specific property `ORIG_INCLUDE_...
Change semantics of -l flag to be more useful.
3) "-" (fn [&] (set *handleopts* false) 1) "l" (fn [i &] - (dofile (get process/args (+ i 1)) + (import* (get process/args (+ i 1)) :prefix "" :exit *exit-on-error*) 2) "e" (fn [i &]
Disable code generation on dry-run.
@@ -247,6 +247,14 @@ eval pod2usage(); } + ################################################################################################################################ + # Disable code generation on dry-run + ###########################################################################################################...
avoid asprintf
@@ -69,12 +69,13 @@ static int prepare_http_response(struct http_flow *http_flow, unsigned char **buffer, uint32_t *buffer_len) { int header_length = 0; - unsigned char *header_buffer = NULL; int payload_length = 0; unsigned char *payload_buffer = NULL; + unsigned char *header_buffer = NULL; int i = 0; char misc_buffer...
doc: remove "Glossary" icon box on home page Adding a big box for the glossary disturbed the home page layout and is overkill for this one document. Adding the glossary to the left navigation menu is sufficient.
@@ -64,13 +64,6 @@ through an open source platform. </a> <p>Supported hardware platforms and boards</p> </li> - <li class="grid-item"> - <a href="glossary.html"> - <img alt="" src="_static/images/ACRNlogo80w.png"/> - <h2>Glossary<br/>of Terms</h2> - </a> - <p>Glossary of useful terms</p> - </li> </ul>
Configure: allow conditions and variable values to have variable references This will allow building variables on other variables, and to have conditions based on variable contents.
@@ -1881,7 +1881,7 @@ if ($builder eq "unified") { qr/^\s*IF\[((?:\\.|[^\\\]])*)\]\s*$/ => sub { if (! @skip || $skip[$#skip] > 0) { - push @skip, !! $1; + push @skip, !! $expand_variables->($1); } else { push @skip, -1; } @@ -1890,7 +1890,7 @@ if ($builder eq "unified") { => sub { die "ELSIF out of scope" if ! @skip; ...
vell: Lower host shutdown percentage to 3% Regarding to b/215338892 to lower host shutdown percentage to 3% BRANCH=none TEST=Pass battery RTC battery life on S5.
#define CONFIG_KEYBOARD_FACTORY_TEST #define CONFIG_KEYBOARD_REFRESH_ROW3 +#undef CONFIG_BATT_HOST_SHUTDOWN_PERCENTAGE +#define CONFIG_BATT_HOST_SHUTDOWN_PERCENTAGE 3 + /* * Older boards have a different ADC assignment. */
Git Resolver: Fix detection of LibGit2 Before this update detecting LibGit2 would fail, if we treated warnings as errors (`-Werror`). The cause of this problem was that compiling `gitresolver_test.c` produced a warning about an incorrect return value.
#include <git2.h> -void main (void) +int main (void) { git_libgit2_init (); git_index_add_frombuffer (NULL, NULL, NULL, (size_t) NULL); git_libgit2_shutdown (); + return 0; }
Python: improving ASGI http send message processing.
@@ -262,22 +262,23 @@ nxt_py_asgi_http_send(PyObject *self, PyObject *dict) nxt_unit_req_debug(http->req, "asgi_http_send type is '%.*s'", (int) type_len, type_str); - if (type_len == (Py_ssize_t) response_start.length - && memcmp(type_str, response_start.start, type_len) == 0) - { - return nxt_py_asgi_http_response_st...
adding libm __fpclassify and __fpclassifyf
@@ -191,8 +191,8 @@ GOW(fmodf, fFff) // __fmodf_finite // __fmod_finite GOW(fmodl, DFDD) -// __fpclassify -// __fpclassifyf +GO(__fpclassify, iFd) +GO(__fpclassifyf, iFf) GOW(frexp, dFdp) GOW(frexpf, fFfp) GO2(frexpl, LFLp, frexp)
tools: trying to fix key generation in gen-gpg-testkey Big thank you goes to the GnuPG developers for guiding me into the right direction. This is hopefully the cure for .
*/ #include <gpgme.h> +#include <locale.h> #include <stdio.h> -#define ELEKTRA_GEN_GPG_TESTKEY_UNUSED __attribute__ ((unused)) #define ELEKTRA_GEN_GPG_TESTKEY_DESCRIPTION "elektra testkey (gen-gpg-testkey)" -gpgme_error_t passphrase_cb (void * hook ELEKTRA_GEN_GPG_TESTKEY_UNUSED, const char * uid_hint ELEKTRA_GEN_GPG_T...
put run_epsdb into aomp-dev branch, so aomp_clone_test will succeed
@@ -9,6 +9,8 @@ aompdir="$(dirname "$parentdir")" set -x +(cd $aompdir/bin ; git checkout aomp-dev ) + # we have a new Target memory manager appearing soon in aomp 12 # it seems to either cause or reveal double free or corruption # in lots of tests. This set to 0, disables the new TMM.
add profil log
//#define MAP_DEBUG +//#define MAP_PROFIL // we don't want to share them @@ -199,6 +200,10 @@ static void setMapColumn(Map *map, u16 column, u16 x, u16 y) static void setMapColumnEx(Map *map, u16 column, u16 y, u16 h, u16 xm, u16 ym) { +#ifdef MAP_PROFIL + u16 start = GET_VCOUNTER; +#endif + const u16 addr = VDP_getPla...
Change Binance Smart Chain to BSC
@@ -210,7 +210,7 @@ APPNAME = "Theta" else ifeq ($(CHAIN),bsc) APP_LOAD_PARAMS += --path "44'/60'" DEFINES += CHAINID_UPCASE=\"BSC\" CHAINID_COINNAME=\"BNB\" CHAIN_KIND=CHAIN_KIND_BSC CHAIN_ID=56 -APPNAME = "Binance Smart Chain" +APPNAME = "BSC" else ifeq ($(filter clean,$(MAKECMDGOALS)),) $(error Unsupported CHAIN - u...
Ensure protocol is properly parsed given a full request string. This attempts to extract the protocol given the full request string (METHOD REQ PROTO) by finding first the last space character and comparing the remaining string against a valid HTTP protocol.
@@ -796,14 +796,16 @@ contains_usecs (void) * * If not valid, 1 is returned. * If valid, 0 is returned. */ -static int +static const char * invalid_protocol (const char *token) { const char *lookfor; - return !((lookfor = "HTTP/1.0", !strncmp (token, lookfor, 8)) || + if ((lookfor = "HTTP/1.0", !strncmp (token, lookfor...
openssl ca: open the output file as late as possible Fixes
@@ -726,10 +726,6 @@ end_of_options: output_der = 1; batch = 1; } - Sout = bio_open_default(outfile, 'w', - output_der ? FORMAT_ASN1 : FORMAT_TEXT); - if (Sout == NULL) - goto end; } if (md == NULL && (md = lookup_conf(conf, section, ENV_DEFAULT_MD)) == NULL) @@ -1025,6 +1021,11 @@ end_of_options: if (verbose) BIO_prin...
unit-test: make a fresh coverage report every time It is easier to use if everytime you run all tests or a specific test, that the coverage report only shows the result of the last run, and not the result of all previous runs combined.
@@ -416,7 +416,7 @@ else() add_custom_command( OUTPUT gcovr/coverage.html __dummy COMMAND ${CMAKE_COMMAND} -E make_directory gcovr - COMMAND ${GCOVR} --gcov-executable gcov-8 --html-details -o gcovr/coverage.html -r ${CMAKE_SOURCE_DIR} -f ${CMAKE_SOURCE_DIR}/src + COMMAND ${GCOVR} --gcov-executable gcov-8 --delete --ht...
fix expedited typo
@@ -27,7 +27,7 @@ TO build the toolchains, you should run: ./scripts/build-toolchains.sh .. Note:: If you are planning to use the Hwacha vector unit, or other RoCC-based accelerators, you should build the esp-tools toolchains by adding the ``esp-tools`` argument to the script above. - If you are running on an Amazon We...
Markdown Shell Recorder: Fix typo in CMake file
@@ -14,7 +14,7 @@ add_s_test (conditionals "${CMAKE_SOURCE_DIR}/src/plugins/conditionals/README.md add_s_test (hosts "${CMAKE_SOURCE_DIR}/src/plugins/hosts/README.md") add_s_test (line "${CMAKE_SOURCE_DIR}/src/plugins/line/README.md") add_s_test (mathcheck "${CMAKE_SOURCE_DIR}/src/plugins/mathcheck/README.md") -add_s_t...
apps/netutils/netinit/netinit.c: Improve cleanup, removing 1 of 2 warnings. Unhook PHY notification signal handler when cleaning up, if an error occurs after the signal handler is put into place.
@@ -555,6 +555,7 @@ static int netinit_monitor(void) struct timespec reltime; struct ifreq ifr; struct sigaction act; + struct sigaction oact; bool devup; int ret; int sd; @@ -584,7 +585,7 @@ static int netinit_monitor(void) act.sa_sigaction = netinit_signal; act.sa_flags = SA_SIGINFO; - ret = sigaction(CONFIG_NETINIT_...
Add anchors in generated docs This allows us to link to specific functions.
:ref ref :source-map sm :doc docstring} env-entry + html-key (html-escape key) binding-type (cond macro :macro ref (string :var " (" (type (get ref 0)) ")") source-ref (if-let [[path start end] sm] (string "<span class=\"source-map\">" path " (" start ":" end ")</span>") "")] - (string "<h2 class=\"binding\">" (html-es...
Remove unused llContainer value from ctx.tx
@@ -24,7 +24,6 @@ typedef struct { volatile uint8_t lock; // Transmit lock state uint8_t *data; // data to compare for collision detection - ll_container_t llContainer; // Container sending the message volatile transmitStatus_t status; // data to compare for collision detection volatile uint8_t collision; // true is a ...
fix config reload
@@ -84,7 +84,9 @@ od_instance_main(od_instance_t *instance, int argc, char **argv) od_router_free(&router); return 0; } - instance->config_file = argv[1]; + + instance->config_file = malloc(sizeof(char) * strlen(argv[1])); + strcpy(instance->config_file, argv[1]); /* read config file */ od_error_t error;
fix error in basic plugin
@@ -25,7 +25,10 @@ protoop_arg_t update_rtt(picoquic_cnx_t *cnx) if (ack_delay < PICOQUIC_ACK_DELAY_MAX) { /* if the ACK is reasonably recent, use it to update the RTT */ /* find the stored copy of the largest acknowledged packet */ - uint64_t sequence_number = get_pkt(packet, PKT_AK_SEQUENCE_NUMBER); + uint64_t sequen...
Change node port proxy by overriding require directly in Module.
@@ -43,19 +43,16 @@ const addon = (() => { return addon; })(); -/* Monkey patch require for simplifying load */ -Module.prototype.require = new Proxy(Module.prototype.require, { - apply(target, module, args) { - - const node_require = () => { - return Reflect.apply(target, module, args); - }; +const node_require = Modu...
update with latest Makefile
@@ -9,15 +9,16 @@ OBJS := $(addprefix $(OBJDIR)/, $(_OBJS)) LIBDISCORD_CFLAGS := -I./ LIBDISCORD_LDFLAGS := -L./$(LIBDIR) -ldiscord -lcurl + LIBDISCORD_LDFLAGS += -lbearssl -static + LIBS_CFLAGS := $(LIBDISCORD_CFLAGS) LIBS_LDFLAGS := $(LIBDISCORD_LDFLAGS) LIBDISCORD_SLIB := $(LIBDIR)/libdiscord.a -CFLAGS := -Wall -Wex...
Removes MBEDTLS_ECDH_LEGACY_CONTEXT from check_config.h Commit removes MBEDTLS_ECDH_LEGACY_CONTEXT checks from check_config.h.
#error "MBEDTLS_ECP_RESTARTABLE defined, but it cannot coexist with an alternative or PSA-based ECP implementation" #endif -#if defined(MBEDTLS_ECP_RESTARTABLE) && \ - ! defined(MBEDTLS_ECDH_LEGACY_CONTEXT) -#error "MBEDTLS_ECP_RESTARTABLE defined, but not MBEDTLS_ECDH_LEGACY_CONTEXT" -#endif - -#if defined(MBEDTLS_ECD...
state what we want to achieve
# A project to support using C for high-level programming +The project is spawned from our internal projects to replace our C++ backend +with C code. We hope it serves the following goals: + +1. Demonstrate how to implement/use containers in C + +2. Make C easy to use for developing "high-level" programs + +3. Create m...
checkcall for ffmpeg so it can throws error
@@ -10,7 +10,7 @@ def concat_videos(settings): # if os.name == 'nt': # command = '"' + command + '"' # os.system(command) - subprocess.call([settings.ffmpeg, '-safe', '0', '-f', 'concat', '-i', settings.temp + 'listvideo.txt', '-c', 'copy', f, '-y']) + subprocess.check_call([settings.ffmpeg, '-safe', '0', '-f', 'concat...
naive: another spawn proxy test
spawn-proxy.own:(~(got by points.state) ~sambud) :: ++ test-l2-sambud-spawn-proxy-predeposit-spawn ^- tang + =/ l2-sproxy [[~sambud %spawn] %set-spawn-proxy (addr %sambud-skey-1)] =/ lf-spawn [[~sambud %spawn] %spawn ~lisdur-fodrys (addr %lf-key-0)] + ;: weld %+ expect-eq !> [`@ux`(addr %lf-key-0) 0] :: !> =| =^state:n...
Doc: Update the documentation for spilled transaction statistics. Reported-by: Sawada Masahiko Author: Sawada Masahiko, Amit Kapila Discussion:
@@ -2518,6 +2518,12 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i mechanism will simply display NULL lag. </para> + <para> + Tracking of spilled transactions works only for logical replication. In + physical replication, the tracking mechanism will display 0 for spilled + statistic...
README.md: Use version 2.04.99
@@ -8,7 +8,11 @@ As hardware the [RaspBee](https://www.dresden-elektronik.de/raspbee?L=1&ref=gh) To learn more about the REST API itself please visit the [REST API Documentation](http://dresden-elektronik.github.io/deconz-rest-doc/) page. ### Phoscon App Beta -The *Phoscon App* is the successor of the current WebApp (W...
Fix old cascade format function to work with Python3.
@@ -223,7 +223,7 @@ def cascade_binary_old(path, n_stages, name): n_stages = max_stages # read stages - stages = [len(t.childNodes)/2 for t in trees][0:n_stages] + stages = [len(t.childNodes)//2 for t in trees][0:n_stages] stage_threshold = xmldoc.getElementsByTagName('stage_threshold')[0:n_stages] # total number of fe...
missing negation
@@ -805,7 +805,7 @@ static void encoder_state_encode_leaf(encoder_state_t * const state) // Very spesific bug that happens when owf length is longer than the // gop length. Takes care of that. - if(state->encoder_control->cfg.gop_lowdelay && + if(!state->encoder_control->cfg.gop_lowdelay && !state->encoder_control->cfg...
dill: "downcast" +call error notification to %crud
wrapped-task=(hobo task:able) == ^+ [*(list move) ..^$] - ?< ?=(^ dud) + ~| wrapped-task =/ task=task:able ((harden task:able) wrapped-task) + :: + :: error notifications "downcast" to %crud + :: + =? task ?=(^ dud) + ~| %crud-in-crud + ?< ?=(%crud -.task) + [%crud -.task tang.u.dud] + :: :: the boot event passes thru ...
symbolic link from history to tmp
@@ -100,27 +100,31 @@ func (rc *Config) createWorkDir(cmd string, attach bool) { sessionID := getSessionID() tmpDirName := path.Base(cmd) + "_" + sessionID + "_" + pid + "_" + ts + // History directory + histDir := HistoryDir() + err := os.MkdirAll(histDir, 0755) + util.CheckErrSprintf(err, "error creating history dir:...
wamr: Add a new option to enable semaphore support
@@ -89,6 +89,11 @@ config INTERPRETERS_WAMR_LIB_PTHREAD bool "Enable lib pthread" default n +config INTERPRETERS_WAMR_LIB_PTHREAD_SEMAPHORE + bool "Enable semaphore" + depends on INTERPRETERS_WAMR_LIB_PTHREAD + default n + config INTERPRETERS_WAMR_SHARED_MEMORY bool "Enable shared memory" default n
pg_upgrade: add a test to catch VACUUM FREEZE failures VACUUM FREEZE must function correctly during binary upgrade so that the new cluster's catalogs don't contain bogus transaction IDs. Do a simple check on the QD in our test script, by querying the age of all the rows in gp_segment_configuration.
@@ -91,6 +91,43 @@ restore_cluster() fi } +# Test for a nasty regression -- if VACUUM FREEZE doesn't work correctly during +# upgrade, things fail later in mysterious ways. As a litmus test, check to make +# sure that catalog tables have been frozen. (We use gp_segment_configuration +# because the upgrade shouldn't hav...
ames: don't skip closing flows in +on-stir Yes, there is a global timer for closing flows, but all that does is enqueue a cork message. +on-stir needs to set _pump_ timers for all flows that might still have messages to send, which includes closing flows.
=/ snds=(list (list [ship bone message-pump-state])) %+ turn states |= [=ship peer-state] - %+ murn ~(tap by snd) + %+ turn ~(tap by snd) |= [=bone =message-pump-state] - ?: (~(has in closing) bone) ~ - `[ship bone message-pump-state] + [ship bone message-pump-state] =/ next-wakes %+ turn `(list [ship bone message-pump...
naive: use gen-tx-octs from naive-transactions library
:: !! [raw tx]:-.u.batch - :: %don [(encode-tx:naive +.part-tx) +.part-tx] + :: + %don [(gen-tx-octs:lib +.part-tx) +.part-tx] %ful +.part-tx == :: +pending-state
doc(coder) Improve documentation comments in coder.lua
@@ -102,8 +102,11 @@ local function c_float(n) return string.format("%f", n) end +-- @param ctype: (string) C datatype, as produced by ctype() +-- @param varname: (string) C variable name +-- @returns A syntactically valid variable declaration local function c_declaration(ctyp, varname) - -- This simple concatenation w...
Implement RADIO_CONST_MAX_PAYLOAD_LEN: cooja-radio
#include "dev/radio.h" #include "dev/cooja-radio.h" -#define COOJA_RADIO_BUFSIZE cooja_radio_driver_max_payload_len +/* + * The maximum number of bytes this driver can accept from the MAC layer for + * transmission or will deliver to the MAC layer after reception. Includes + * the MAC header and payload, but not the FC...
Rename macosx package before installation
@@ -535,6 +535,7 @@ jobs: elif [ "$RUNNER_OS" == "Windows" ]; then find . -name "*$(python -c "import platform; print(''.join(platform.python_version_tuple()[0:2]))")*win*.whl" -exec python -m pip install {} \; elif [ "$RUNNER_OS" == "macOS" ]; then + find . -name "*$(python -c "import platform; print(''.join(platform....
lv_img_decoder: fix incorrect debug assert
@@ -392,9 +392,9 @@ lv_res_t lv_img_decoder_built_in_open(lv_img_decoder_t * decoder, lv_img_decoder user_data->opa = lv_mem_alloc(palette_size * sizeof(lv_opa_t)); if(user_data->palette == NULL || user_data->opa == NULL) { LV_LOG_ERROR("img_decoder_built_in_open: out of memory"); -#if LV_USE_FILESYSTEM - LV_ASSERT_MEM...
Check for thread handle
@@ -61,7 +61,7 @@ Thread* lovrThreadCreate(int (*runner)(void*), Blob* body) { void lovrThreadDestroy(void* ref) { Thread* thread = ref; mtx_destroy(&thread->lock); - thrd_detach(thread->handle); + if (thread->handle) thrd_detach(thread->handle); lovrRelease(thread->body, lovrBlobDestroy); free(thread->error); free(thr...
Adding IDE Proj location for Mediatek
@@ -34,6 +34,9 @@ afr_set_board_metadata(IDE_uVision_NAME "uVision") afr_set_board_metadata(IDE_uVision_COMPILER "Keil-ARM") afr_set_board_metadata(IS_ACTIVE "TRUE") +afr_set_board_metadata(IDE_uVision_PROJECT_LOCATION "${CMAKE_CURRENT_LIST_DIR}/aws_demos/uvision") +afr_set_board_metadata(AWS_DEMOS_CONFIG_FILES_LOCATIO...
test_case.py: add new line between test cases
@@ -81,7 +81,7 @@ class TestCase: out.write(self.description + '\n') if self.dependencies: out.write('depends_on:' + ':'.join(self.dependencies) + '\n') - out.write(self.function + ':' + ':'.join(self.arguments)) + out.write(self.function + ':' + ':'.join(self.arguments) + '\n') def write_data_file(filename: str, test_...
Fix doc example code to follow coding style
@@ -89,14 +89,13 @@ Code that looked like this: { int rv; char *stmp, *vtmp = NULL; + stmp = OPENSSL_strdup(value); - if (!stmp) + if (stmp == NULL) return -1; vtmp = strchr(stmp, ':'); - if (vtmp) { - *vtmp = 0; - vtmp++; - } + if (vtmp != NULL) + *vtmp++ = '\0'; rv = EVP_MAC_ctrl_str(ctx, stmp, vtmp); OPENSSL_free(st...
Drop wrong front() - spotted by elric@
@@ -197,12 +197,7 @@ public: return Ptr()[Len() - 1]; } - inline const TCharType& front() const noexcept { - Y_ASSERT(!empty()); - return Ptr()[0]; - } - - inline TCharType& front() noexcept { + inline const TCharType front() const noexcept { Y_ASSERT(!empty()); return Ptr()[0]; }
ls2k1000 cpu frequency 1GHz
extern unsigned char __bss_end; -#define CPU_HZ (100 * 1000 * 1000) +#define CPU_HZ (1000 * 1000 * 1000) //QEMU 200*1000*1000 #define RT_HW_HEAP_BEGIN KSEG1BASE//(void*)&__bss_end #define RT_HW_HEAP_END (void*)(RT_HW_HEAP_BEGIN + 64 * 1024 * 1024)
add MinGW build guideline, add new version of Visual Studio
@@ -84,6 +84,11 @@ Generating make files on unix: cd build cmake .. # or ccmake .. for a GUI. +.. note:: + + If you don't want to build docs or ``Sphinx`` is not installed, you should add ``"-DJANSSON_BUILD_DOCS=OFF"`` in the ``cmake`` command. + + Then to build:: make @@ -115,6 +120,7 @@ Creating Visual Studio project...
TINC: Stop sleeping, why ? let system work.
@@ -62,7 +62,6 @@ class GPDBStorageBaseTestCase(): self.filereputil.inject_fault(f=fault_name, y='reset', r=role, p=port , o=occurence, sleeptime=sleeptime, seg_id=seg_id) self.filereputil.inject_fault(f=fault_name, y=type, r=role, p=port , o=occurence, sleeptime=sleeptime, seg_id=seg_id) tinctest.logger.info('Successf...
sched/spawn: Fix the minor typo error
@@ -218,10 +218,10 @@ int task_spawnattr_getstacksize(FAR const posix_spawnattr_t *attr, int task_spawnattr_setstacksize(FAR posix_spawnattr_t *attr, size_t stacksize); #else -# define task_spawnattr_getstackaddr(fa, addr) (*(addr) = NULL, 0) -# define task_spawnattr_setstackaddr(fa) (0) -# define task_spawnattr_getsta...
docs: fix broken link to lcd example
@@ -225,9 +225,9 @@ Application Example LCD examples are located under: :example:`peripherals/lcd`: +* Universal SPI LCD example with SPI touch - :example:`peripherals/lcd/spi_lcd_touch` * Jpeg decoding and LCD display - :example:`peripherals/lcd/tjpgd` * i80 controller based LCD and LVGL animation UI - :example:`perip...
parser: json: reset time lookup, do not use current time
@@ -165,7 +165,7 @@ int flb_parser_json_do(struct flb_parser *parser, tmp[len] = '\0'; flb_warn("[parser:%s] invalid time format %s for '%s'", parser->name, parser->time_fmt_full, tmp); - time_lookup = time(NULL); + time_lookup = 0; } else { time_lookup = flb_parser_tm2time(&tm);
input_chunk: fix variables definition if metrics are disabled
@@ -66,10 +66,12 @@ int flb_input_chunk_write_at(void *data, off_t offset, struct flb_input_chunk *flb_input_chunk_map(struct flb_input_instance *in, void *chunk) { +#ifdef FLB_HAVE_METRICS int ret; int records; char *buf_data; size_t buf_size; +#endif struct flb_input_chunk *ic; /* Create context for the input instanc...
Free up regexes/strings after benchmark. It's not important to do, but we want to be a good example for newbies.
@@ -6,12 +6,11 @@ var str var dotstar, hello, world const main = { - str = std.sldup("hello world!") - str = std.strcat(str, str) - str = std.strcat(str, str) - str = std.strcat(str, str) - str = std.strcat(str, str) - str = std.strcat(str, "x") + str = "" + for var i = 0; i < 16; i++ + std.sljoin(&str, "hello world!")...
fix(example) scroll example sqort types line 32 of lv_example_scroll_6.c, if LV_USE_LARGE_COORD not configured, x_sqr will overflow when r is greater than 256.
@@ -29,7 +29,7 @@ static void scroll_event_cb(lv_event_t * e) x = r; } else { /*Use Pythagoras theorem to get x from radius and y*/ - lv_coord_t x_sqr = r * r - diff_y * diff_y; + uint32_t x_sqr = r * r - diff_y * diff_y; lv_sqrt_res_t res; lv_sqrt(x_sqr, &res, 0x8000); /*Use lvgl's built in sqrt root function*/ x = r ...
Removed $glyph case from the talk-report mark.
?- -.rep $cabal (cabl +.rep) $house a+(turn (~(tap by +.rep)) jose) - $glyph ((jome |=(a/char a) nack) +.rep) $grams (jobe num+(jone p.rep) tele+[%a (turn q.rep gram)] ~) $group (jobe local+(grop p.rep) global+%.(q.rep (jome parn grop)) ~) ==
Fix assignment to uninitialized pointer One of these things is not like the others... Refs
@@ -1132,7 +1132,7 @@ void dotnet_parse_tilde_2( pe->object, "assembly_refs[%i].version.minor", i); set_integer(assemblyref_table->BuildNumber, pe->object, "assembly_refs[%i].version.build_number", i); - set_integer(assembly_table->RevisionNumber, + set_integer(assemblyref_table->RevisionNumber, pe->object, "assembly_r...
Make sure the dpb is more than max_num_reorder_pics
@@ -146,6 +146,7 @@ static void encoder_state_write_bitstream_vid_parameter_set(bitstream_t* stream, int max_buffer = max_required_dpb_size(encoder); int max_reorder = max_num_reorder_pics(encoder); + if (max_buffer - 1 < max_reorder) max_buffer = max_reorder + 1; WRITE_UE(stream, max_buffer - 1, "vps_max_dec_pic_buffe...
Add warning message if name or architecture is unknown.
@@ -300,12 +300,18 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Emscripten") set(TINYSPLINE_PLATFORM_NAME "wasm" CACHE INTERNAL "") set(TINYSPLINE_PLATFORM_IS_WINDOWS False CACHE INTERNAL "") else() + message(WARNING "Undefined target name: ${CMAKE_SYSTEM_NAME}" + " -- Builds might be broken") set(TINYSPLINE_PLATFORM_NAME ...
esp_http_client: fix issue where http parser was not invoking `message_complete` callback
@@ -849,7 +849,16 @@ int esp_http_client_read(esp_http_client_handle_t client, char *buffer, int len) if (rlen <= 0) { if (errno != 0) { - ESP_LOGW(TAG, "esp_transport_read returned : %d and errno : %d ", rlen, errno); + esp_log_level_t sev = ESP_LOG_WARN; + /* On connection close from server, recv should ideally retur...
Error handling: helpful message when concept fails
@@ -356,13 +356,17 @@ static int grib_concept_apply(grib_accessor* a, const char* name) err = nofail ? GRIB_SUCCESS : GRIB_CONCEPT_NO_MATCH; if (err) { size_t i = 0, concept_count = 0; - long editionNumber = 0; + long dummy = 0, editionNumber = 0; char* all_concept_vals[MAX_NUM_CONCEPT_VALUES] = { NULL, }; /* sorted ar...
[viostor] introduce SENSE_INFO structure
@@ -135,6 +135,12 @@ typedef struct virtio_bar { BOOLEAN bPortSpace; } VIRTIO_BAR, *PVIRTIO_BAR; +typedef struct _SENSE_INFO { + UCHAR senseKey; + UCHAR additionalSenseCode; + UCHAR additionalSenseCodeQualifier; +} SENSE_INFO, *PSENSE_INFO; + typedef struct _ADAPTER_EXTENSION { VirtIODevice vdev; @@ -172,11 +178,15 @@ ...
BugID:21372370:[hal tcp]improve hal tcp read
@@ -208,8 +208,6 @@ int32_t HAL_TCP_Read(uintptr_t fd, char *buf, uint32_t len, uint32_t timeout_ms) do { t_left = aliot_platform_time_left(t_end, HAL_UptimeMs()); if (0 == t_left) { - PLATFORM_LOG_D("%s no time left", __func__); - err_code = -1; break; } FD_ZERO(&sets);
Improve text for events
@@ -417,11 +417,18 @@ typedef enum lwesp_evt_type_t { Optionally enabled with \ref LWESP_CFG_KEEP_ALIVE */ #if LWESP_CFG_MODE_STATION || __DOXYGEN__ - LWESP_EVT_WIFI_CONNECTED, /*!< Station just connected to AP */ + LWESP_EVT_WIFI_CONNECTED, /*!< Station just connected to access point. + When received, station may not ...
fix cmake options for building rocprofiler, especially the CMAKE_PREFIX_PATH to find includes
@@ -86,18 +86,17 @@ if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then fi BUILD_TYPE="release" export CMAKE_BUILD_TYPE=$BUILD_TYPE - CMAKE_PREFIX_PATH="$ROCM_DIR/include/platform;$ROCM_DIR/include;$ROCM_DIR/lib;$ROCM_DIR" + CMAKE_PREFIX_PATH="$ROCM_DIR/roctracer/include/ext;$ROCM_DIR/include/platform;$ROCM_DIR/in...