message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix String.split going into an infinite loop for partial matches. Sample case: `"abc.def".split(".xyz")`
@@ -2856,7 +2856,7 @@ static lily_container_val *string_split_by_val(lily_state *s, char *input, if (*input_ch != *splitby_ch) { is_match = 0; - input_ch = restore_ch; + input_ch = restore_ch + 1; break; } }
don't return error when OIDC_NO_USERINFO_SUB is set and sub is NULL
@@ -2344,13 +2344,11 @@ apr_byte_t oidc_proto_resolve_userinfo(request_rec *r, oidc_cfg *cfg, return FALSE; } - if (id_token_sub != NULL) { - if ((user_info_sub == NULL) - || (apr_strnatcmp(id_token_sub, user_info_sub) != 0)) { + if ((id_token_sub != NULL) && (user_info_sub != NULL)) { + if (apr_strnatcmp(id_token_sub,...
tls: removed extra white spaces and other minor fix
@@ -2867,7 +2867,7 @@ static int ssl_prepare_server_key_exchange( mbedtls_ssl_context *ssl, } *out_p = MBEDTLS_ECP_TLS_NAMED_CURVE; MBEDTLS_PUT_UINT16_BE( curve_info->tls_id, out_p, 1 ); - output_offset += sizeof( uint8_t ) + sizeof( uint16_t ); + output_offset += 3; ret = mbedtls_psa_ecjpake_write_round( &ssl->handsha...
clarify confusing wording
@@ -11,9 +11,7 @@ cd <your-appscope-directory> curl -Lo scope https://s3-us-west-2.amazonaws.com/io.cribl.cdn/dl/scope/cli/linux/scope && chmod 755 ./scope ``` -Next, confirm the overwrite. - -After updating, verify AppScope's version and build date: +Then, to confirm the overwrite, verify AppScope's version and build ...
prepare OpenSSL 3.0 - remove deprecated warning
@@ -16,7 +16,6 @@ HOSTOS := $(shell uname -s) CC ?= gcc CFLAGS ?= -O3 -Wall -Wextra -CFLAGS += -Wno-error=deprecated-declarations DCFLAGS += -std=gnu99 DEFS = -DVERSION_TAG=\"$(VERSION_TAG)\" -DVERSION_YEAR=\"$(VERSION_YEAR)\" DEFS += -DWANTZLIB
ossl_provider_add_to_store: Avoid use-after-free Avoid freeing a provider that was not up-ref-ed before. Fixes
@@ -602,6 +602,9 @@ int ossl_provider_add_to_store(OSSL_PROVIDER *prov, OSSL_PROVIDER **actualprov, OSSL_PROVIDER tmpl = { 0, }; OSSL_PROVIDER *actualtmp = NULL; + if (actualprov != NULL) + *actualprov = NULL; + if ((store = get_provider_store(prov->libctx)) == NULL) return 0; @@ -658,7 +661,7 @@ int ossl_provider_add_...
hv: dm: Remove aligned attribute of common structures Common structures are used by DM, kernel, HV. Aligned attribute might caused structures size mismatch between DM/HV and kernel, as kernel uses default GCC alignment. So, make DM/HV also use the default GCC alignment.
@@ -102,7 +102,7 @@ struct acrn_mmio_request { * @brief The value read for I/O reads or to be written for I/O writes */ uint64_t value; -} __aligned(8); +}; /** * @brief Representation of a port I/O request @@ -134,7 +134,7 @@ struct acrn_pio_request { * @brief The value read for I/O reads or to be written for I/O writ...
use 2M size pages for pagecache to reduce pressure on cache, rangemap and block I/O
@@ -111,7 +111,7 @@ closure_function(2, 3, void, attach_storage, heap h = heap_general(&heaps); u64 offset = bound(fs_offset); length -= offset; - pagecache pc = allocate_pagecache(h, heap_backed(&heaps), length, PAGESIZE, SECTOR_SIZE, + pagecache pc = allocate_pagecache(h, heap_backed(&heaps), length, PAGESIZE_2M, SEC...
Fix test failure The test was checking for an obsolete error.
@@ -5375,7 +5375,7 @@ run_test "PSK callback: no psk, no callback" \ "$P_CLI force_ciphersuite=TLS-PSK-WITH-AES-128-CBC-SHA \ psk_identity=foo psk=abc123" \ 1 \ - -s "SSL - None of the common ciphersuites is usable" \ + -s "SSL - The handshake negotiation failed" \ -S "SSL - Unknown identity received" \ -S "SSL - Verif...
Use stringbuilder in static_snapshot_error_unsupported_literal JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi
@@ -295,20 +295,21 @@ static void static_snapshot_error_unsupported_literal (snapshot_globals_t *globals_p, /**< snapshot globals */ ecma_value_t literal) /**< literal form the literal pool */ { - const lit_utf8_byte_t error_prefix[] = "Unsupported static snapshot literal: "; + ecma_stringbuilder_t builder = ecma_strin...
Use new PSA to mbedtls PK error mapping functions in pk_wrap.c
@@ -282,7 +282,7 @@ static int rsa_encrypt_wrap( void *ctx, &key_id ); if( status != PSA_SUCCESS ) { - ret = mbedtls_psa_err_translate_pk( status ); + ret = mbedtls_pk_error_from_psa( status ); goto cleanup; } @@ -290,7 +290,7 @@ static int rsa_encrypt_wrap( void *ctx, NULL, 0, output, osize, olen); if( status != PSA_S...
frsky: manually revert telemetry frame drop user testing did not show any improvment
@@ -418,8 +418,6 @@ static uint8_t frsky_d_handle_packet() { static uint32_t frames_lost = 0; static uint32_t max_sync_delay = 50 * SYNC_DELAY_MAX; - static uint8_t in_tx_mode = 0; - static uint8_t telemetry[20]; const uint32_t current_packet_received_time = debug_timer_micros(); @@ -441,10 +439,10 @@ static uint8_t fr...
tests: avoid use of deprecated function _sleep
@@ -187,10 +187,7 @@ static int ip_address_from_container(char *container_id, char **ip_address_out) } else { #ifdef WIN32 -#pragma warning(push) -#pragma warning(disable : 4996) - _sleep(wait_time); -#pragma warning(pop) + Sleep(wait_time); #else sleep(wait_time); #endif
board/scarlet/board.h: Format with clang-format BRANCH=none TEST=none
/* Camera VSYNC */ #define CONFIG_SYNC #define CONFIG_SYNC_COMMAND -#define CONFIG_SYNC_INT_EVENT \ - TASK_EVENT_MOTION_SENSOR_INTERRUPT(VSYNC) +#define CONFIG_SYNC_INT_EVENT TASK_EVENT_MOTION_SENSOR_INTERRUPT(VSYNC) /* To be able to indicate the device is in tablet mode. */ #define CONFIG_TABLET_MODE
Add destruction of python function wrapping metacall function by hooking into tp_dealloc method of PyCFunction_Type.
@@ -225,6 +225,9 @@ static PyMethodDef py_loader_impl_function_type_invoke_defs[] = { static int py_loader_impl_run_main = 1; static char *py_loader_impl_main_module = NULL; +/* Holds reference to the original PyCFunction.tp_dealloc method */ +static void (*py_loader_impl_pycfunction_dealloc)(PyObject *) = NULL; + void...
Performance: reduce number of calls to strlen
@@ -87,12 +87,13 @@ int grib_recompose_name(grib_handle* h, grib_accessor *observer, const char* una long lval=0; int type=GRIB_TYPE_STRING; size_t replen = 0; - /* const size_t uname_len = strlen(uname); */ + char* ptrEnd_fname = NULL; /* Maintain ptr to end of fname string */ loc[0] = 0 ; fname[0] = 0 ; - /* for(i=0;...
CI: further clarify
@@ -20,7 +20,7 @@ jobs: working-directory: ./ - uses: actions/upload-artifact@v2 with: - name: wren-linux-bin + name: wren-cli-linux-bin path: bin/wren_cli mac: runs-on: macos-latest @@ -36,7 +36,7 @@ jobs: working-directory: ./ - uses: actions/upload-artifact@v2 with: - name: wren-mac-bin + name: wren-cli-mac-bin path...
link-server-hook: remove obsolete workaround The "no-data bug" in eyre was fixed prior to the 0.10.0 release.
?. ?& authenticated.inbound-request =(src.bowl our.bowl) == - ::TODO `*octs -> ~ everywhere once no-data bug is fixed - (give-simple-payload:app eyre-id [[403 ~] `*octs]) + (give-simple-payload:app eyre-id [[403 ~] ~]) :: request-line: parsed url + params :: =/ =request-line ^- [cards=(list card) =simple-payload:http] ...
Add fpgainfo events documentation
## DESCRIPTION ## fpgainfo displays FPGA information derived from sysfs files. The command argument is one of the following: -`errors`, `power`, `temp`, `port`, `fme`, `bmc`, `phy` or `mac`,`security`. +`errors`, `power`, `temp`, `port`, `fme`, `bmc`, `phy` or `mac`,`security`,`events`. Some commands may also have othe...
uip6: disable doxygen for disabled function The doxygen documents a commented out function, so turn the documentation into a regular comment.
@@ -1478,7 +1478,7 @@ extern uint8_t uip_flags; too many retransmissions. */ -/** +/* * \brief process the options within a hop by hop or destination option header * \retval 0: nothing to send, * \retval 1: drop pkt
automation: Add timestamp to test report stdout
@@ -431,7 +431,8 @@ def watch_items(in_handle, connection_type, results: TestResults, last_activity_time = time() U_LOG.debug(line) if results.current: - results.current.stdout += remove_unprintable_chars(line) + "\n" + timestamp = datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3] + results.current.stdout += timesta...
Print name of failing program When kprobe/kreprobe/tracepoint attachment fails, print the name of the failing function and its target.
@@ -602,7 +602,8 @@ class BPF(object): ev_name = b"p_" + event.replace(b"+", b"_").replace(b".", b"_") fd = lib.bpf_attach_kprobe(fn.fd, 0, ev_name, event, event_off) if fd < 0: - raise Exception("Failed to attach BPF to kprobe") + raise Exception("Failed to attach BPF program %s to kprobe %s" % + (fn_name, event)) sel...
Make index style consistent for valid array
@@ -405,7 +405,7 @@ static void build_partition_table_for_one_partition_count( if (match) { ptab[next_index].partition_count = 0; - partitioning_valid[partition_count - 2][i] = 255; + partitioning_valid[partition_count - 2][next_index] = 255; keep = !can_omit_partitionings; break; }
Fix stack overflow with long APDUs
@@ -594,7 +594,7 @@ void init_heap(void) int main(void) { - uint8_t buf[256]; + uint8_t buf[260]; // 4 bytes APDU header + 256 bytes payload uint16_t idx; int state; uint8_t payload_size = 0;
limit leak warnings to master process
@@ -6230,6 +6230,7 @@ static struct { // intptr_t count; /* free list counter */ size_t cores; /* the number of detected CPU cores*/ fio_lock_i lock; /* a global lock */ + uint8_t forked; /* a forked collection indicator. */ } memory = { .cores = 1, .lock = FIO_LOCK_INIT, @@ -6304,6 +6305,7 @@ void fio_malloc_after_for...
in_storage_backlog: skip corrupted chunks Currently if a single chunk is corrupted, the whole fluent-bit process stops. Skip corrupted chunks instead
@@ -349,7 +349,10 @@ int sb_segregate_chunks(struct flb_config *config) chunk = mk_list_entry(chunk_iterator, struct cio_chunk, _head); if (!cio_chunk_is_up(chunk)) { - cio_chunk_up_force(chunk); + ret = cio_chunk_up_force(chunk); + if (ret == CIO_CORRUPTED) { + continue; + } } if (!cio_chunk_is_up(chunk)) {
bindsym: update the man page to include --to-code
@@ -327,7 +327,7 @@ runtime. for_window <criteria> move container to output <output> -*bindsym* [--whole-window] [--border] [--exclude-titlebar] [--release] [--locked] [--input-device=<device>] [--no-warn] <key combo> <command> +*bindsym* [--whole-window] [--border] [--exclude-titlebar] [--release] [--locked] [--to-cod...
Fix bug RTFiltering_Alias()
@@ -780,7 +780,7 @@ search_result_t *RTFilter_Alias(search_result_t *result, char *alias) while (entry_nbr < result->result_nbr) { // find a service with the wanted node_id - if (((result->result_table[entry_nbr]->mode == SERVICE) && !strcmp(result->result_table[entry_nbr]->alias, alias)) || (result->result_table[entry...
Fixed typo in linmath
typedef FLT LinmathQuat[4]; // This is the [wxyz] quaternion, in wxyz format. typedef FLT LinmathPoint3d[3]; -typedef FLT linmathVec3d[3]; +typedef FLT LinmathVec3d[3]; typedef struct LinmathPose { LinmathPoint3d Pos;
add small config string to config.yml
@@ -317,7 +317,7 @@ jobs: - run: name: Run boomexample benchmark tests - command: make run-bmark-tests -C sims/verisim SUB_PROJECT=boomexample + command: make run-bmark-tests -C sims/verisim SUB_PROJECT=boomexample CONFIG=SmallDefaultBoomConfig boom-run-benchmark-tests: docker:
Clean up Conan package function. CMake works better now, so files are in more predictable places. Conan now discourages packaging PDB files.
@@ -41,16 +41,9 @@ class LibtcodConan(ConanFile): self.copy("*.hpp", dst="include", src="src", excludes="vendor/*") self.copy("*.lib", dst="lib", src="lib", keep_path=False) self.copy("*.dll", dst="bin", src="bin", keep_path=False) - self.copy("*.pdb", dst="bin", src="bin", keep_path=False) self.copy("*.so", dst="lib",...
storage: do not handle storage removal on engine exit
@@ -460,18 +460,6 @@ static int storage_contexts_create(struct flb_config *config) return c; } -static void storage_contexts_destroy(struct flb_config *config) -{ - struct mk_list *head; - struct flb_input_instance *in; - - /* Iterate each input instance and destroy the context */ - mk_list_foreach(head, &config->input...
Fix bug with calling convention. Stack frames were increasing with size every function call and overwriting other stuff, resulting in some issues with gc.
@@ -251,6 +251,7 @@ int gst_continue(Gst *vm) { uint16_t newStackIndex = gst_frame_args(stack); uint16_t size = gst_frame_size(stack); temp = stack[pc[1]]; + gst_frame_size(stack) = newStackIndex - GST_FRAME_SIZE; gst_frame_ret(stack) = pc[2]; gst_frame_pc(stack) = pc + 3; if (newStackIndex < GST_FRAME_SIZE) @@ -452,7 ...
Don't work if content-type is shorter than any supported type
@@ -1449,6 +1449,8 @@ int http_parse_body(http_s *h) { content_type_hash = fio_siphash("content-type", 12); FIOBJ ct = fiobj_hash_get2(h->headers, content_type_hash); fio_cstr_s content_type = fiobj_obj2cstr(ct); + if (content_type.len < 16) + return -1; if (content_type.len >= 33 && !strncasecmp("application/x-www-for...
fix-xerces-plugin-locale: attempt to fix issues with special keys when using a POSIX locale for the system
#include <memory> #include <xercesc/util/XMLString.hpp> +#include <xercesc/util/TransService.hpp> namespace xerces { @@ -50,12 +51,14 @@ using XercesPtr = std::unique_ptr<T, XercesDeleter<T>>; inline XercesPtr<XMLCh> toXMLCh (std::string const & str) { - return XercesPtr<XMLCh> (XERCES_CPP_NAMESPACE::XMLString::transco...
Disabling remove_outliers because it's removing too many non-outliers
@@ -67,6 +67,7 @@ int handle_lightcap2_getAcodeFromSyncPulse(SurviveObject * so, int pulseLen) } uint8_t remove_outliers(SurviveObject *so) { + return 0; // disabling this for now because it seems remove almost all the points for wired watchman and wired tracker. lightcap2_data *lcd = so->disambiguator_data; uint32_t s...
modules/tools/DataLog: separate name and timestamp
@@ -8,20 +8,20 @@ from utime import localtime, ticks_us class DataLog(): - def __init__(self, *headers, path=None, ext='txt'): + def __init__(self, *headers, name='log', timestamp=True, ext='csv'): - # If no path is given, it will be ./log_yyyy_mm_dd_hh_mm_ss_uuuuuu - if path is None: + # Make timestamp of the form yyy...
CI: bump checkout and cache actions to v3
@@ -66,7 +66,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Haskell uses: haskell/actions/setup@v2 @@ -74,7 +74,7 @@ jobs: ghc-version: ${{ matrix.versions.ghc }} cabal-version: ${{ matrix.versions.cabal }} - - uses: actions/cache@v1 + - uses: actions/cache@v3 n...
options/posix: Implement canonicalize_file_name
@@ -490,7 +490,6 @@ void *reallocarray(void *ptr, size_t m, size_t n) { return realloc(ptr, m * n); } -char *canonicalize_file_name(const char *) { - __ensure(!"Not implemented"); - __builtin_unreachable(); +char *canonicalize_file_name(const char *name) { + return realpath(name, NULL); }
leap: commands come first in results Fixes urbit/landscape#524
@@ -30,7 +30,7 @@ interface OmniboxProps { notifications: number; } -const SEARCHED_CATEGORIES = ['ships', 'other', 'commands', 'groups', 'subscriptions', 'apps']; +const SEARCHED_CATEGORIES = ['commands', 'ships', 'other', 'groups', 'subscriptions', 'apps']; const settingsSel = (s: SettingsState) => s.leap; export fun...
Fix jpm stupid bug.
(def- filepath-replacer "Convert url with potential bad characters into a file path element." - (peg/compile ~(% (+ (/ '(set "<>:\"/\\|?*") "_") '1)))) + (peg/compile ~(% (* (+ (/ '(set "<>:\"/\\|?*") "_") '2))))) (defn repo-id "Convert a repo url into a path component that serves as its id."
v2.0.27 landed
-ejdb2 (2.0.27) UNRELEASED; urgency=medium +ejdb2 (2.0.27) testing; urgency=medium * Upgraded to iowow v1.3.25 with critical fixes - -- Anton Adamansky <adamansky@gmail.com> Thu, 29 Aug 2019 12:29:13 +0700 + -- Anton Adamansky <adamansky@gmail.com> Thu, 29 Aug 2019 12:46:41 +0700 ejdb2 (2.0.26) testing; urgency=medium
libbpf-tools: update runqslower for libbpf 1.0 Switch to libbpf 1.0 mode and adapt libbpf API usage accordingly.
@@ -146,7 +146,6 @@ int main(int argc, char **argv) .parser = parse_arg, .doc = argp_program_doc, }; - struct perf_buffer_opts pb_opts; struct perf_buffer *pb = NULL; struct runqslower_bpf *obj; int err; @@ -155,14 +154,9 @@ int main(int argc, char **argv) if (err) return err; + libbpf_set_strict_mode(LIBBPF_STRICT_ALL...
remove dead code in io.h remove thess APIs: set64 set32 set16 set8
@@ -166,64 +166,4 @@ static inline uint8_t mmio_read8(const void *addr) return *((volatile const uint8_t *)addr); } -/** Reads a 64 Bit memory mapped IO register, mask it and write it back into - * memory mapped IO register. - * - * @param addr The address of the memory mapped IO register. - * @param mask The mask to a...
fix cancel observation via BWT When the client is observing a resource via BWT, then the client cancel it, observation destroys cancelation response which is not expected by .
@@ -245,7 +245,11 @@ coap_remove_observer(coap_observer_t *o) oc_string(o->resource->uri) + 1, oc_string_len(o->resource->uri) - 1, &o->endpoint, OC_GET, query, (query) ? strlen(query) : 0, OC_BLOCKWISE_SERVER); - if (response_state) { + // If response_state->payload_size == 0 it means, that this blockwise state + // d...
BuildingSymbolizer shader change, the new implementation provides closer results to original Mapnik renderer
@@ -279,7 +279,7 @@ namespace carto { boost::optional<vt::GLTileRenderer::LightingShader> lightingShader2D; if (!std::dynamic_pointer_cast<PlanarProjectionSurface>(mapRenderer->getProjectionSurface())) { lightingShader2D = vt::GLTileRenderer::LightingShader(true, LIGHTING_SHADER_2D, [this](GLuint shaderProgram, const v...
I moved around some content in the 2.13.2 release notes.
@@ -25,13 +25,14 @@ enhancements and bug-fixes that were added to this release.</p> <p><b><font size="4">Bugs fixed in version 2.13.2</font></b></p> <ul> <li>Added back the disabling of using High-Resolution drawing on OSX versions at 10.10 or higher since it causes rendering issues on Retina Displays.</li> + <li>Corre...
Fix trivial typo in EVP_DigestVerifyInit doc
@@ -28,8 +28,8 @@ EVP_PKEY_CTX of the verification operation will be written to B<*pctx>: this can be used to set alternative verification options. Note that any existing value in B<*pctx> is overwritten. The EVP_PKEY_CTX value returned must not be freed directly by the application if B<ctx> is not assigned an EVP_PKEY...
XML printer REFACTOR unify/simplify way of getting libyang context from a data node
@@ -182,7 +182,7 @@ xml_print_meta(struct xmlpr_ctx *ctx, const struct lyd_node *node) if (((node->flags & LYD_DEFAULT) && (ctx->options & (LYD_PRINT_WD_ALL_TAG | LYD_PRINT_WD_IMPL_TAG))) || ((ctx->options & LYD_PRINT_WD_ALL_TAG) && lyd_is_default(node))) { /* we have implicit OR explicit default node, print attribute ...
fix md5summing
@@ -101,9 +101,9 @@ if( !$skipCopy) { } } -# build dist + TODO: md5s +# build dist + md5s -my $md5sum_file = "$dest_dir/OpenHPC:$release.md5s"; +my $md5sum_file = "$dest_dir/OpenHPC-$release.md5s"; open (MD5, ">", $md5sum_file) || die "Couldn't open $md5sum_file: $!"; @@ -170,13 +170,13 @@ foreach my $distro (@distros)...
sysdeps/managarm: Handle setsockopt with SOL_SOCKET and SO_ACCEPTCONN
@@ -311,6 +311,9 @@ int sys_setsockopt(int fd, int layer, int number, }else if(layer == AF_NETLINK && number == SO_ERROR) { mlibc::infoLogger() << "\e[31mmlibc: setsockopt() call with AF_NETLINK and SO_ERROR is unimplemented\e[39m" << frg::endlog; return 0; + }else if(layer == SOL_SOCKET && number == SO_ACCEPTCONN) { +...
de-publish un-released draft linux messages
@@ -23,6 +23,7 @@ definitions: - MSG_LINUX_CPU_STATE: id: 0x7F00 short_desc: List CPU state on the system + public: false desc: | This message indicates the process state of the top 10 heaviest consumers of CPU on the system. @@ -47,6 +48,7 @@ definitions: - MSG_LINUX_MEM_STATE: id: 0x7F01 short_desc: List CPU state on...
Update drv_pwm.c
@@ -415,13 +415,13 @@ static void pwm_get_channel(void) stm32_pwm_obj[PWM1_INDEX].channel |= 1 << 0; #endif #ifdef BSP_USING_PWM1_CH2 - stm32_pwm_obj[PWM1_INDEX].channel |= 1 << 2; + stm32_pwm_obj[PWM1_INDEX].channel |= 1 << 1; #endif #ifdef BSP_USING_PWM1_CH3 - stm32_pwm_obj[PWM1_INDEX].channel |= 1 << 3; + stm32_pwm_...
Simplify sql query for swupdatestate: config table isn't used anymore
@@ -687,24 +687,8 @@ void DeRestPluginPrivate::loadSwUpdateStateFromDb() return; } - QString configTable = "config"; // default config table version 1 - - // check if config table version 2 - { - QString sql = QString("SELECT key FROM config2"); - - DBG_Printf(DBG_INFO_L2, "sql exec %s\n", qPrintable(sql)); - errmsg = ...
Curve:render always returns 2 points if it's a line;
@@ -30,6 +30,9 @@ static int l_lovrCurveRender(lua_State* L) { int n = luaL_optinteger(L, 2, 32); float t1 = luax_optfloat(L, 3, 0.); float t2 = luax_optfloat(L, 4, 1.); + if (lovrCurveGetPointCount(curve) == 2) { + n = 2; + } float* points = malloc(4 * n * sizeof(float)); lovrAssert(points, "Out of memory"); lovrCurve...
avf: wrong argument passed to avf_log_err Type: fix
@@ -1241,7 +1241,7 @@ avf_process (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f) if ((err = avf_config_promisc_mode (vm, ad, is_enable))) { - avf_log_err (ad, "%s: %U", format_clib_error, err); + avf_log_err (ad, "error: %U", format_clib_error, err); clib_error_free (err); } }
change a variable from pointer to local pthread_addr_t is a pointer type so that * is not needed.
@@ -116,7 +116,7 @@ static void *consumer_func(void *arg) static void tc_semaphore_sem_init_post_wait(void) { int ret_val; - pthread_addr_t *pexit_value = NULL; + pthread_addr_t pexit_value = NULL; pthread_t pid; pthread_t cid;
VERSION bump to version 1.4.115
@@ -46,7 +46,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 4) -set(SYSREPO_MICRO_VERSION 114) +set(SYSREPO_MICRO_VERSION 115) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_...
Increase version to 4.3.1
@@ -24,7 +24,7 @@ if(MSVC) add_compile_options("/wd4324") # Disable structure was padded due to alignment specifier endif() -project(astcencoder VERSION 4.3.0) +project(astcencoder VERSION 4.3.1) set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON)
Fix bool on getaddednodeinfo
@@ -1372,6 +1372,8 @@ Array RPCConvertValues(const std::string &strMethod, const std::vector<std::stri if (strMethod == "getpoolinfo" && n > 0) ConvertTo<int64_t>(params[0]); + if (strMethod == "getaddednodeinfo" && n > 0) ConvertTo<bool>(params[0]); + if (strMethod == "addmultisigaddress" && n > 0) ConvertTo<int64_t>(...
Fix endianess bug in decode_hg24_4m...
@@ -94,7 +94,8 @@ decode_hg24_4m(const void *base, size_t *off) if (*p & 0x40) { *off += 3; - return ((p[0] & 0x3f) << 16) | (p[1] << 8) | p[2]; + memcpy(&val16, p + 1, sizeof(val16)); + return ((p[0] & 0x3f) << 16) | be16_to_cpu(val16); } *off += 2;
hci_common.h: added missing offset for VS_CSS cmd
@@ -1100,7 +1100,7 @@ struct ble_hci_vs_set_tx_pwr_rp { int8_t tx_power; } __attribute__((packed)); -#define BLE_HCI_OCF_VS_CSS (0x0003) +#define BLE_HCI_OCF_VS_CSS (MYNEWT_VAL(BLE_HCI_VS_OCF_OFFSET) + (0x0003)) struct ble_hci_vs_css_cp { uint8_t opcode; } __attribute__((packed));
Add Masternode Collateral
@@ -105,6 +105,8 @@ inline int64_t FutureDrift(int64_t nTime) { return nTime + 10 * 60; } // up to 1 //inline unsigned int GetTargetSpacing(int nHeight) { return IsProtocolV2(nHeight) ? 60 : 60; } +inline int64_t GetMNCollateral() { return 5000; } + extern CScript COINBASE_FLAGS; extern CCriticalSection cs_main; extern...
nimble/ll: Fix not storing remote features Only connection features were stored.
@@ -1756,6 +1756,7 @@ ble_ll_ctrl_rx_feature_req(struct ble_ll_conn_sm *connsm, uint8_t *dptr, */ connsm->conn_features = dptr[0] & our_feat; + memcpy(connsm->remote_features, dptr + 1, 7); memset(rspbuf + 1, 0, 8); put_le32(rspbuf + 1, our_feat); rspbuf[1] = connsm->conn_features;
webterm: update input to use indigo components
import React, { Component } from 'react'; +import { Row, Box, BaseInput } from '@tlon/indigo-react'; import { cite } from '~/logic/lib/util'; import { Spinner } from '~/views/components/Spinner'; @@ -82,16 +83,13 @@ export class Input extends Component { } } return ( - <div className="flex flex-row flex-grow-1 relative...
config_tools: update project nodejs dependencies when windows build script run update project nodejs dependencies when windows build script run
@@ -5,5 +5,7 @@ xmllint --xinclude schema/datachecks.xsd > schema/allchecks.xsd || exit /b python -m build || exit /b rem pip install .\dist\acrn_config_tools-3.0-py3-none-any.whl --force-reinstall del .\configurator\packages\configurator\thirdLib\acrn_config_tools-3.0-py3-none-any.whl -python .\configurator\packages\c...
interop: Handle port number in authority
@@ -23,7 +23,7 @@ if [ "$ROLE" == "client" ]; then # Wait for the simulator to start up. /wait-for-it.sh sim:57832 -s -t 30 REQS=($REQUESTS) - SERVER=$(echo ${REQS[0]} | sed -re 's|^https://([^/]+)/.*$|\1|') + SERVER=$(echo ${REQS[0]} | sed -re 's|^https://([^/:]+)(:[0-9]+)?/.*$|\1|') if [ "$TESTCASE" == "http3" ]; the...
core/hmi: Display chip location code while displaying core FIR. No functionality change.
@@ -319,6 +319,7 @@ static bool decode_core_fir(struct cpu_thread *cpu, int i; bool found = false; int64_t ret; + const char *loc; /* Sanity check */ if (!cpu || !hmi_evt) @@ -349,7 +350,9 @@ static bool decode_core_fir(struct cpu_thread *cpu, if (!core_fir) return false; - prlog(PR_INFO, "CHIP ID: %x, CORE ID: %x, FIR...
One more MSVC warning.
@@ -973,8 +973,8 @@ static Janet parser_state_frames(const JanetParser *p) { Janet *args = p->args; for (int32_t i = count - 1; i >= 0; --i) { JanetParseState *s = p->states + i; - states->data[i] = janet_wrap_parse_state(s, args, buf, p->bufcount); - args -= (ptrdiff_t) s->argn; + states->data[i] = janet_wrap_parse_st...
libhfuzz/linux: \n at the end of entries for gid_map/uid_map
@@ -38,7 +38,7 @@ bool linuxEnterNs(uintptr_t cloneFlags) } char gid_map[4096]; - snprintf(gid_map, sizeof(gid_map), "%d %d 1", (int)current_gid, (int)current_gid); + snprintf(gid_map, sizeof(gid_map), "%d %d 1\n", (int)current_gid, (int)current_gid); if (files_writeBufToFile ("/proc/self/gid_map", (const uint8_t *)gid...
Avoid duplicate printout of byte order and report ELF_VERSION
@@ -1362,10 +1362,12 @@ int main(int argc, char *argv[]){ #if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ printf("__BYTE_ORDER__=__ORDER_BIG_ENDIAN__\n"); -#endif -#if defined(__BIG_ENDIAN__) && __BIG_ENDIAN__ > 0 +#elif defined(__BIG_ENDIAN__) && __BIG_ENDIAN__ > 0 printf("__BYTE_ORDER__=__ORDER_...
ghost: remove support for the ps8815 TCPC BRANCH=none TEST=make passes
#define CONFIG_USB_PD_FRS_PPC -#define CONFIG_USB_PD_TCPM_PS8815 -#define CONFIG_USB_PD_TCPM_PS8815_FORCE_DID #define CONFIG_USBC_RETIMER_INTEL_BB -/* I2C speed console command */ -#define CONFIG_CMD_I2C_SPEED - -/* I2C control host command */ -#define CONFIG_HOSTCMD_I2C_CONTROL - #define CONFIG_USBC_PPC_SYV682X /* TOD...
hwdocs/nv1-pgraph: Color key is actually performed after bitwise op.
@@ -54,10 +54,11 @@ The per-pixel operations are as follows: the blend factor, then perform the blending. 12. If the operation is not ``BLEND_*``: - 1. If :ref:`color key <nv1-rop-chroma>` is enabled on current object: + 1. If the operation is not ``SRCCOPY``: perform the bitwise operation. + 2. If :ref:`color key <nv1...
added info about new features
@@ -25,7 +25,7 @@ wlanhc2hcx converts hccap to hccapx wlanhcx2essid merges hccapx containing the same essid -wlanhcx2ssid strips by bssid, essid +wlanhcx2ssid strips by bssid, essid, oui wlanhcx2john converts hccapx to john
chip/mec1322/gpio.c: Format with clang-format BRANCH=none TEST=none
@@ -21,12 +21,10 @@ struct gpio_int_mapping { /* Mapping from GPIO port to GIRQ info */ static const struct gpio_int_mapping int_map[22] = { - {11, 0}, {11, 0}, {11, 0}, {11, 0}, - {10, 4}, {10, 4}, {10, 4}, {-1, -1}, - {-1, -1}, {-1, -1}, {9, 10}, {9, 10}, - {9, 10}, {9, 10}, {8, 14}, {8, 14}, - {8, 14}, {-1, -1}, {-1...
[mod_wstunnel] perf: reuse large buffers
@@ -496,7 +496,7 @@ static void wstunnel_backend_error(gw_handler_ctx *gwhctx) { static void wstunnel_handler_ctx_free(void *gwhctx) { handler_ctx *hctx = (handler_ctx *)gwhctx; - buffer_free(hctx->frame.payload); + chunk_buffer_release(hctx->frame.payload); } static handler_t wstunnel_handler_setup (server *srv, conne...
Fix default value in `cfgMtcFsEnable`
@@ -300,7 +300,7 @@ cfgMtcEnable(config_t* cfg) unsigned cfgMtcFsEnable(config_t* cfg) { - return (cfg) ? SCOPE_BIT_CHECK(cfg->mtc.categories, CFG_MTC_FS) : DEFAULT_MTC_ENABLE; + return (cfg) ? SCOPE_BIT_CHECK(cfg->mtc.categories, CFG_MTC_FS) : DEFAULT_MTC_FS_ENABLE; } unsigned
doc: add windows 10 activation
@@ -489,6 +489,14 @@ Secure boot enabling You may refer to the steps in :ref:`How-to-enable-secure-boot-for-windows` for secure boot enabling. +Activate Windows 10 +******************** +If you are using Windows 10 without activation (30 days free trial), you may encounter some problems +(e.g. Some apps and features ca...
Add a read barrier in the traversing of the buffer list Needed on systems with weak memory ordering - the inferior, partially working fix from was already removed in
@@ -2741,6 +2741,7 @@ void *blas_memory_alloc(int procpos){ LOCK_COMMAND(&alloc_lock); #endif do { + RMB; #if defined(USE_OPENMP) if (!memory[position].used) { blas_lock(&memory[position].lock);
board/bugzzy/led.c: Format with clang-format BRANCH=none TEST=none
@@ -22,15 +22,20 @@ __override const int led_charge_lvl_2 = 100; /* bugzzy : There are 3 leds for AC, Battery and Power */ __override struct led_descriptor led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = { - [STATE_CHARGING_LVL_1] = {{EC_LED_COLOR_RED, 1 * LED_ONE_SEC}, + [STATE_CHARGING_LVL_1] = { { EC_LED_COLOR...
router: do not check for event_type
@@ -181,27 +181,6 @@ int flb_router_io_set(struct flb_config *config) out_count++; } - /* Just 1 input and 1 output */ - if (in_count == 1 && out_count == 1) { - i_ins = mk_list_entry_first(&config->inputs, - struct flb_input_instance, _head); - o_ins = mk_list_entry_first(&config->outputs, - struct flb_output_instance...
[chainmaker][#666]after frr pointer set NULL
@@ -522,10 +522,12 @@ BOAT_RESULT BoatHlchainmakerContractInvoke(BoatHlchainmakerTx *tx_ptr, char* met if (tx_response != NULL) { common__tx_response__free_unpacked(tx_response, NULL); + tx_response = NULL; } if (transactation_info != NULL) { common__transaction_info__free_unpacked(transactation_info, NULL); + transact...
Keep allocDefaultAtts consistent if allocating defaultAtts fails. See issue
@@ -6052,9 +6052,11 @@ defineAttribute(ELEMENT_TYPE *type, ATTRIBUTE_ID *attId, XML_Bool isCdata, type->allocDefaultAtts = 8; type->defaultAtts = (DEFAULT_ATTRIBUTE *)MALLOC(type->allocDefaultAtts * sizeof(DEFAULT_ATTRIBUTE)); - if (!type->defaultAtts) + if (!type->defaultAtts) { + type->allocDefaultAtts = 0; return 0;...
Add warning for closing handles when strict handle checking enabled
* object search * * Copyright (C) 2010-2016 wj32 - * Copyright (C) 2017-2019 dmex + * Copyright (C) 2017-2020 dmex * * This file is part of Process Hacker. * @@ -1453,6 +1453,66 @@ INT_PTR CALLBACK PhpFindObjectsDlgProc( if (handleObjectNodes[i]->ResultType != HandleSearchResult) continue; + if (WindowsVersion >= WINDO...
BugID:18987226: Fixed WhiteScan issue
@@ -41,7 +41,7 @@ static void ssvradio_init_task(void *pdata) extern uint32_t SAVED_PC; extern void dump_ir(); static void aos_wdt_process() { - printf("IPC:%xh\n", SAVED_PC); + printf("IPC:%lxh\n", SAVED_PC); //ktask_t *cur = krhino_cur_task_get(); ktask_t *task = g_active_task[0]; printf("TP:%xh\n", task);
esp_wps.c: Fix datatype for wps task handle
@@ -61,7 +61,7 @@ typedef struct { int ret; /* return value */ } wps_ioctl_param_t; -static void *s_wps_task_hdl = NULL; +static TaskHandle_t s_wps_task_hdl = NULL; static void *s_wps_queue = NULL; static void *s_wps_api_lock = NULL; /* Used in WPS public API only, never be freed */ static void *s_wps_api_sem = NULL; /...
freertos: Fix main task affinity in SMP FreeRTOS
@@ -228,16 +228,9 @@ void esp_startup_start_app_common(void) esp_gdbstub_init(); #endif // CONFIG_ESP_SYSTEM_GDBSTUB_RUNTIME - TaskHandle_t main_task_hdl; - portDISABLE_INTERRUPTS(); portBASE_TYPE res = xTaskCreatePinnedToCore(main_task, "main", ESP_TASK_MAIN_STACK, NULL, - ESP_TASK_MAIN_PRIO, &main_task_hdl, ESP_TASK_...
bugID:19087307:[linkkit hal]use select to read and do not return err when errno=EINTR
@@ -181,20 +181,26 @@ int32_t HAL_TCP_Read(uintptr_t fd, char *buf, uint32_t len, uint32_t timeout_ms) int ret, err_code; uint32_t len_recv; uint64_t t_end, t_left; + fd_set sets; struct timeval timeout; t_end = HAL_UptimeMs() + timeout_ms; len_recv = 0; err_code = 0; - timeout.tv_sec = timeout_ms / 1000; - timeout.tv_...
[nuemrics] improve again verbose in lexico lemke
@@ -292,9 +292,11 @@ void lcp_lexicolemke(LinearComplementarityProblem* problem, double *zlem, double for(ic = 0 ; ic < dim ; ++ic) { zb = A[ic][drive]; + //printf("zb = %e\n", zb); if(zb > 0.0) { z0 = A[ic][0] / zb; + //printf("z0 = %e\n", z0); if(z0 > ratio) continue; if(z0 < ratio) { @@ -309,10 +311,11 @@ void lcp_l...
OcAppleKernelLib: Fix relocation location by VTable offset.
@@ -439,7 +439,7 @@ InternalInitializeVtableByEntriesAndRelocations64 ( if (EntryValue == 0) { Symbol = MachoGetSymbolByExternRelocationOffset64 ( MachoContext, - (VtableSymbol->Value + EntryOffset) + (VtableSymbol->Value + (EntryOffset * sizeof (*VtableData))), ); if (Symbol == NULL) { //
Test chacha20 rotation only if supported
@@ -1046,15 +1046,24 @@ static const uint8_t key_rotation_test_target_poly[] = { static ptls_cipher_suite_t *key_rotation_test_suites[] = { &ptls_openssl_aes256gcmsha384, &ptls_openssl_aes128gcmsha256, - &ptls_minicrypto_chacha20poly1305sha256, NULL }; +#ifdef PTLS_OPENSSL_HAVE_CHACHA20_POLY1305 + &ptls_openssl_chacha2...
bump warewulf-provision to v3.8pre
%define pname warewulf-provision %define dname provision +%define dev_branch_sha 166bcf8938e8e460fc200b0dfe4b61304c7d010a Name: %{pname}%{PROJ_DELIM} Summary: Warewulf - Provisioning Module -Version: 3.7pre +Version: 3.8pre Release: %{_rel}%{?dist} License: US Dept. of Energy (BSD-like) Group: %{PROJ_NAME}/provisioning...
VERSION bump to version 0.8.41
@@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 8) -set(LIBNETCONF2_MICRO_VERSION 40) +set(LIBNETCONF2_MICRO_VERSION 41) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LI...
chip/ish/hpet.h: Format with clang-format BRANCH=none TEST=none
#define TIMER0_CONF_CAP_REG 0x100 #define TIMER0_COMP_VAL_REG 0x108 - /* HPET_GENERAL_CONFIG settings */ #define HPET_GENERAL_CONFIG REG32(ISH_HPET_BASE + 0x10) #define HPET_ENABLE_CNF BIT(0) #define HPET_T0_CMP_SETTLING (BIT(7) | BIT(8)) #define HPET_T1_CMP_SETTLING BIT(9) #define HPET_MAIN_COUNTER_VALID BIT(13) -#def...
vppinfra: add vec128_t, vec256_t and vec512_t types Convenient for type conversion Type: improvement
#define foreach_vec foreach_int_vec foreach_uint_vec foreach_float_vec -/* *INDENT-OFF* */ - /* Type Definitions */ #define _(t, s, c) \ typedef t##s t##s##x##c _vector_size (s / 8 * c); \ typedef t##s t##s##x##c##u _vector_size_unaligned (s / 8 * c); \ -typedef union { \ + typedef union \ + { \ t##s##x##c as_##t##s##x...
[kernel] fix OSNSPTest, prepareIntegratorForDS needs nsds
@@ -40,6 +40,7 @@ void OSNSPTest::init() _osi.reset(new EulerMoreauOSI(_theta)); _model->nonSmoothDynamicalSystem()->insertDynamicalSystem(_DS); _sim.reset(new TimeStepping(_TD, 0)); + _sim->setNonSmoothDynamicalSystemPtr(_model->nonSmoothDynamicalSystem()); _sim->prepareIntegratorForDS(_osi, _DS, _model, _t0); _model-...
Remove (broken) diagnostic print
@@ -2481,12 +2481,6 @@ int s_client_main(int argc, char **argv) if (in_init) { in_init = 0; - if (!noservername && !SSL_session_reused(con)) { - BIO_printf(bio_c_out, - "Server did %sacknowledge servername extension.\n", - tlsextcbp.ack ? "" : "not "); - } - if (c_brief) { BIO_puts(bio_err, "CONNECTION ESTABLISHED\n");...
board/ezkinil/led.c: Format with clang-format BRANCH=none TEST=none
@@ -16,17 +16,25 @@ __override const int led_charge_lvl_2 = 100; __override struct led_descriptor led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = { - [STATE_CHARGING_LVL_1] = {{EC_LED_COLOR_BLUE, 2 * LED_ONE_SEC}, - {EC_LED_COLOR_AMBER, 2 * LED_ONE_SEC} }, - [STATE_CHARGING_LVL_2] = {{EC_LED_COLOR_AMBER, LED_INDE...
Added github.com/cenkalti/backoff library
@@ -326,6 +326,9 @@ ALLOW .* -> vendor/google.golang.org/api/option # CONTRIB-1497 Go package to encode and decode ITU-T G.711 sound data ALLOW .* -> vendor/github.com/zaf/g711 +# CONTRIB-1505 The exponential backoff algorithm & retry library +ALLOW .* -> vendor/github.com/cenkalti/backoff + # # Temporary exceptions. #...
Realign_weights_generic now only used for decimated grids
@@ -194,7 +194,7 @@ static bool realign_weights_undecimated( * @param[out] dec_weights_quant_pvalue_plane1 The weights for plane 1. * @param[out] dec_weights_quant_pvalue_plane2 The weights for plane 2, or @c nullptr if 1 plane. */ -static bool realign_weights_generic( +static bool realign_weights_decimated( astcenc_pr...