message
stringlengths
6
474
diff
stringlengths
8
5.22k
odissey: drop server connection left in copy mode
@@ -321,6 +321,13 @@ int od_bereset(od_server_t *server) od_serverpool_set(&route->server_pool, server, OD_SRESET); + /* server left in copy mode */ + if (server->is_copy) { + od_debug(&pooler->od->log, server->io, + "S (reset): copy is active, dropping"); + goto drop; + } + /* support route rollback off */ if (! route->scheme->rollback) { if (server->is_transaction) {
wsman-faults: add missing entries to faults translation table
@@ -126,9 +126,13 @@ WsmanFaultDetailTable fault_detail_table[] = // WS-Trust {WST_DETAIL_UNSUPPORTED_TOKENTYPE, "UnsupportedTokenType"}, + // WS_Policy + {WSP_DETAIL_INVALID_EPR, "InvalidEPR"}, + // OpenWSMAN { OWSMAN_DETAIL_ENDPOINT_ERROR, "Unknown" }, - { OWSMAN_NO_DETAILS, "Unknown" } + { OWSMAN_NO_DETAILS, "Unknown" }, + { OWSMAN_SYSTEM_ERROR, "Unknown" } };
Updated some comments. Still trying to figure out why the CI tests fail when they all pass locally...
@@ -349,6 +349,7 @@ TASK: if not already there, make a table of comoving distances and of E(a) void ccl_cosmology_compute_distances(ccl_cosmology * cosmo, int *status) { + //Do nothing if everything is computed already if(cosmo->computed_distances) return; @@ -365,7 +366,7 @@ void ccl_cosmology_compute_distances(ccl_cosmology * cosmo, int *status) // allocate space for y, which will be all three // of E(a), chi(a), D(a) and f(a) in turn. double *y = malloc(sizeof(double)*na); - // Allocate and fill E spline with values we just got + // Allocate E(a) and chi(a) splines. a(chi) spline allocated below gsl_spline * E = gsl_spline_alloc(A_SPLINE_TYPE, na); gsl_spline * chi = gsl_spline_alloc(A_SPLINE_TYPE, na);
Tweak MQTT setup in Enviro+ example
@@ -80,7 +80,7 @@ pms5003 = PMS5003( ) # sets up MQTT -mqtt_client = umqtt.simple.MQTTClient(client_id=CLIENT_ID, server=SERVER_ADDRESS, user=MQTT_USERNAME, password=MQTT_PASSWORD) +mqtt_client = umqtt.simple.MQTTClient(client_id=CLIENT_ID, server=SERVER_ADDRESS, user=MQTT_USERNAME, password=MQTT_PASSWORD, keepalive=30) # some constants we'll use for drawing WHITE = display.create_pen(255, 255, 255) @@ -165,7 +165,7 @@ while True: display.set_pen(BLACK) display.clear() display.set_pen(WHITE) - display.text("Posting Enviro+ sensor data to Home Assistant via MQTT", 10, 10, WIDTH, scale=3) + display.text("Posting Enviro+ sensor data via MQTT", 10, 10, WIDTH, scale=3) if mqtt_success is True: current_time = time.ticks_ms() display.set_pen(GREEN)
security: remove cflag _FORTIFY_SOURCE in hypervisor _FORTIFY_SOURCE is a Glibc feature which adds memory and string function protection, this flag is only for Glibc. The _FORTIFY_SOURCE is not used by hypervisor because hypervisor is not include Glibc. Acked-by: Anthony Xu
@@ -51,7 +51,6 @@ CFLAGS += -fsigned-char CFLAGS += -m64 -mno-mmx -mno-sse -mno-sse2 -mno-80387 -mno-fp-ret-in-387 CFLAGS += -mno-red-zone CFLAGS += -nostdinc -nostdlib -fno-common -CFLAGS += -O2 -D_FORTIFY_SOURCE=2 CFLAGS += -Wformat -Wformat-security -Werror ifeq (y, $(CONFIG_RELOC)) CFLAGS += -fpie
BugID:19347851: support windows cmd build mk3060
ifeq ($(HOST_OS),Win32) ENCRYPT := "$($(HOST_MCU_FAMILY)_LOCATION)/encrypt_win.exe" -DD_CMD = dd if=/dev/zero of=$(TMP_BIN_OUTPUT_FILE) bs=28 count=1 -CAT_CMD= cat $(TMP_BIN_OUTPUT_FILE) $(BIN_OUTPUT_FILE) > $(PAD_BIN_OUTPUT_FILE) +DD_CMD = $(TOOLS_ROOT)/cmd/win32/dd.exe if=/dev/zero of=$(TMP_BIN_OUTPUT_FILE) bs=28 count=1 +CAT_CMD= $(TOOLS_ROOT)/cmd/win32/cat.exe $(TMP_BIN_OUTPUT_FILE) $(BIN_OUTPUT_FILE) > $(PAD_BIN_OUTPUT_FILE) else # Win32 ifeq ($(HOST_OS),Linux32) ENCRYPT := "$($(HOST_MCU_FAMILY)_LOCATION)/encrypt_linux"
naive: l2 csv remove scag on logs for testing
=/ m (strand ,vase) ^- form:m ;< =events bind:m (scry events /gx/azimuth/logs/noun) - =/ events (scag 50 events) =/ [naive-contract=address chain-id=@] [naive chain-id]:(get-network:dice net) =/ snap=snap-state:dice snap
chat: toggle input out of code mode after sending Closes Code input would stick after sending a code message, so we now toggle out of it if we were in it, on enter.
@@ -319,8 +319,12 @@ export class ChatInput extends Component { extraKeys: { Tab: cm => this.patpAutocomplete(cm.getValue(), true), - 'Enter': cm => - this.messageSubmit(), + 'Enter': () => { + this.messageSubmit(); + if (this.state.code) { + this.toggleCode(); + } + }, 'Shift-3': cm => cm.getValue().length === 0 ? this.toggleCode()
build MAINTENANCE rename callgrind header vars
@@ -239,7 +239,7 @@ if(ENABLE_TESTS) endif() if(ENABLE_PERF_TESTS) - find_path(CALLGRIND_INCLUDE_DIR + find_path(VALGRIND_INCLUDE_DIR NAMES valgrind/callgrind.h PATHS @@ -249,10 +249,10 @@ if(ENABLE_PERF_TESTS) /sw/include ${CMAKE_INCLUDE_PATH} ${CMAKE_INSTALL_PREFIX}/include) - if(CALLGRIND_INCLUDE_DIR) + if(VALGRIND_INCLUDE_DIR) set(SR_HAVE_CALLGRIND 1) else() - message(STATUS "Disabling callgrind macros in performance tests because of missing headers") + message(STATUS "Disabling callgrind macros in performance tests because of missing valgrind headers") endif() endif()
Fix SUSE dependencies to contemplate both python and python3 scripts.
@@ -110,7 +110,7 @@ endif RPM_SUSE_DEPENDS = autoconf automake bison ccache chrpath distribution-release gcc6 glibc-devel-static RPM_SUSE_DEPENDS += java-1_8_0-openjdk-devel libopenssl-devel libtool make openssl-devel -RPM_SUSE_DEPENDS += python-devel python-pip python-rpm-macros shadow nasm libnuma-devel python3 +RPM_SUSE_DEPENDS += python-devel python3-devel python-pip python3-pip python-rpm-macros shadow nasm libnuma-devel python3 ifeq ($(filter rhel centos,$(OS_ID)),$(OS_ID)) RPM_DEPENDS += python34
github: Update changelog.
"on_property": "title" }, { - "pattern": "(^ports)\/(.+):", + "pattern": "(^ports)(.+):", "method": "replace", "target": "$1", "on_property": "title"
Use symbolic constant
@@ -1166,11 +1166,11 @@ const float *get_2d_percentile_table( unsigned int xdim, unsigned int ydim ) { - float* unpacked_table = new float[2048]; + float* unpacked_table = new float[WEIGHTS_MAX_BLOCK_MODES]; const packed_percentile_table *apt = get_packed_table(xdim, ydim); // Set the default percentile - for (unsigned int i = 0; i < 2048; i++) + for (unsigned int i = 0; i < WEIGHTS_MAX_BLOCK_MODES; i++) { unpacked_table[i] = 1.0f; }
[tvmknife] Version up: 1.1.1 Note: mandatory check (NEED_CHECK) was skipped
}, "tvmknife": { "formula": { - "sandbox_id": [440269656], + "sandbox_id": [453840958], "match": "tvmknife" }, "executable": {
apps/bttester: Fix min key size
@@ -187,7 +187,7 @@ static const struct ble_gatt_svc_def gatt_svr_svcs[] = { BLE_GATT_CHR_F_READ | BLE_GATT_CHR_F_WRITE | BLE_GATT_CHR_F_WRITE_ENC, - .min_key_size = 0x16, + .min_key_size = 16, }, { .uuid = PTS_UUID_DECLARE(PTS_LONG_CHR_READ_WRITE), .access_cb = gatt_svr_read_write_long_test,
Set dirty shutdown status on standby init Since part of the recovery is done during `standby init`, the correct shutdown status has to be set
@@ -1997,6 +1997,22 @@ static void _ocf_mngt_load_unsafe_complete(void *priv, int error) ocf_pipeline_next(context->pipeline); } +static void _ocf_mngt_standby_init_properties(ocf_pipeline_t pipeline, + void *priv, ocf_pipeline_arg_t arg) +{ + struct ocf_cache_attach_context *context = priv; + ocf_cache_t cache = context->cache; + + OCF_ASSERT_PLUGGED(cache); + + context->metadata.shutdown_status = ocf_metadata_dirty_shutdown; + context->metadata.dirty_flushed = DIRTY_FLUSHED; + context->metadata.line_size = context->cfg.cache_line_size ?: + cache->metadata.line_size; + + ocf_pipeline_next(pipeline); +} + static void _ocf_mngt_load_metadata_unsafe(ocf_pipeline_t pipeline, void *priv, ocf_pipeline_arg_t arg) { @@ -2038,7 +2054,7 @@ struct ocf_pipeline_properties _ocf_mngt_cache_standby_pipeline_properties = { OCF_PL_STEP(_ocf_mngt_init_attached_nonpersistent), OCF_PL_STEP(_ocf_mngt_attach_cache_device), OCF_PL_STEP(_ocf_mngt_init_cache_front_volume), - OCF_PL_STEP(_ocf_mngt_init_properties), + OCF_PL_STEP(_ocf_mngt_standby_init_properties), OCF_PL_STEP(_ocf_mngt_attach_check_ram), OCF_PL_STEP(_ocf_mngt_test_volume), OCF_PL_STEP(_ocf_mngt_attach_prepare_metadata),
fix param passed to assert_valid_block, should be block not ptr
@@ -205,7 +205,7 @@ void multi_heap_free_impl(multi_heap_handle_t heap, void *p) return; } - assert_valid_block(heap, p); + assert_valid_block(heap, block_from_ptr(p)); multi_heap_internal_lock(heap); heap->free_bytes += tlsf_block_size(p); @@ -221,7 +221,7 @@ void *multi_heap_realloc_impl(multi_heap_handle_t heap, void *p, size_t size) return multi_heap_malloc_impl(heap, size); } - assert_valid_block(heap, p); + assert_valid_block(heap, block_from_ptr(p)); if (heap == NULL) { return NULL;
test: format output for CI
++ on-peek on-peek:def ++ on-agent on-agent:def ++ on-arvo + => |% + ++ report + |* [=path ok=?] + =/ =tank leaf+"{?:(ok "built " "FAILED")} {(spud path)}" + ~>(%slog.[0 tank] same) + -- + :: |= [=wire =sign-arvo] ^- [(list card) _this] - ?. ?=([%build *] wire) - (on-arvo:def wire sign-arvo) - ?. ?=(%writ +<.sign-arvo) + ?. ?& ?=([%build *] wire) + ?=([%clay %writ *] sign-arvo) + == (on-arvo:def wire sign-arvo) =/ =path t.wire ?+ path ~|(path+path !!) =/ ok ?~ p.sign-arvo | (~(nest ut -:!>(*agent:gall)) | -:!<(vase q.r.u.p.sign-arvo)) - ~& ?: ok - agent-built+path - agent-failed+path + %- (report path ok) =? app-ok.state !ok %.n =. app.state (~(del in app.state) path) ~? =(~ app.state) - ?: app-ok.state - %all-agents-built - %some-agents-failed + ?:(app-ok.state %all-agents-built %some-agents-failed) [~ this] :: [%mar *] =/ ok ?=(^ p.sign-arvo) - ~& ?: ok - mark-built+path - mark-failed+path + %- (report path ok) =? mar-ok.state !ok %.n =. mar.state (~(del in mar.state) path) ~? =(~ mar.state) - ?: mar-ok.state - %all-marks-built - %some-marks-failed + ?:(mar-ok.state %all-marks-built %some-marks-failed) [~ this] :: [%gen *] =/ ok ?=(^ p.sign-arvo) - ~& ?: ok - generator-built+path - generator-failed+path + %- (report path ok) =? gen-ok.state !ok %.n =. gen.state (~(del in gen.state) path) ~? =(~ gen.state) - ?: gen-ok.state - %all-generators-built - %some-generators-failed + ?:(gen-ok.state %all-generators-built %some-generators-failed) [~ this] == ++ on-fail on-fail:def
decisions: clarify "In Progress"
@@ -13,7 +13,7 @@ flowchart LR Additionally, decision that are not yet "Decided" can be become "Rejected" or "Delayed" at any point. -> The first PR for a decision must always create the decision in the "Draft" state. +> The first PR for a decision must always create the decision in the "Drafts" state. > If during the reviews of this PR it becomes clear that the decision is further along, can be moved to "In Discussion" or "In Progress" before the merge. ## Drafts @@ -59,6 +59,9 @@ For each solution a proposal, rationale and optionally implications should be gi - You must include all further alternative proposals made in the "Considered Alternatives" section. - Now it is allowed to have the decision from the previous round in the "Decision" section. +> For decisions "In Progress", unlike "In Discussion", also the solution space next to the problem is clear. +> It is the highest of the steps reachable for a decision PR that started in "Drafts". + ## Decided > This step is mandatory.
perf-tools/msr-safe: update kernel version to match CI
@@ -37,7 +37,7 @@ BuildRequires: kernel-default-devel %endif %if 0%{?centos_version} == 800 -%define centos_kernel 4.18.0-147.8.1.el8_1 +%define centos_kernel 4.18.0-147.5.1.el8_1 BuildRequires: kernel = %{centos_kernel} BuildRequires: kernel-devel = %{centos_kernel} BuildRequires: kernel-abi-whitelists kernel-rpm-macros elfutils-libelf-devel
Disable missing-field-initializers warnings in unit testing. This warning gives very unpredictable results between compiler versions and seems unrealistic since most of our structs are zeroed for initialization. This warning has been disabled in the Makefile for a long time.
@@ -404,9 +404,8 @@ sub run ' -Wformat-signedness' : '') . ($self->{oTest}->{&TEST_VM} eq VM_U18 ? ' -Wduplicated-branches -Wduplicated-cond' : '') . - # This warning appears to be broken on U12/CO6 even though the functionality is fine - ($self->{oTest}->{&TEST_VM} eq VM_U12 || $self->{oTest}->{&TEST_VM} eq VM_CO6 ? - ' -Wno-missing-field-initializers' : ''); + # This is theoretically a portability issue but a compiler that does not treat NULL and false as 0 is crazy + ' -Wno-missing-field-initializers'; # Flags that are common to all builds my $strCommonFlags =
Limit keybind check to about 10hz
@@ -13,7 +13,12 @@ void check_keybinds(struct swapchain_stats& sw_stats, struct overlay_params& par auto elapsedReloadCfg = now - reload_cfg_press; auto elapsedUpload = now - last_upload_press; - auto keyPressDelay = 500ms; + static Clock::time_point last_check; + if (now - last_check < 100ms) + return; + last_check = now; + + auto keyPressDelay = 400ms; if (elapsedF2 >= keyPressDelay){ #if defined(HAVE_X11) || defined(_WIN32)
[Sensor] Support custom commands for rt_sensor_control
@@ -307,7 +307,7 @@ static rt_err_t rt_sensor_control(rt_device_t dev, int cmd, void *args) case RT_SENSOR_CTRL_GET_ID: if (args) { - sensor->ops->control(sensor, RT_SENSOR_CTRL_GET_ID, args); + result = sensor->ops->control(sensor, RT_SENSOR_CTRL_GET_ID, args); } break; case RT_SENSOR_CTRL_GET_INFO: @@ -352,7 +352,10 @@ static rt_err_t rt_sensor_control(rt_device_t dev, int cmd, void *args) result = sensor->ops->control(sensor, RT_SENSOR_CTRL_SELF_TEST, args); break; default: - return -RT_ERROR; + + /* Custom commands */ + result = sensor->ops->control(sensor, cmd, args); + break; } if (sensor->module)
Increased the number of MAX_IGNORE_IPS to 1024 + 128.
#define MAX_LINE_CONF 512 #define MAX_EXTENSIONS 128 -#define MAX_IGNORE_IPS 64 +#define MAX_IGNORE_IPS 1024 + 128 #define MAX_IGNORE_REF 64 #define MAX_CUSTOM_COLORS 64 #define MAX_IGNORE_STATUS 64
CI: Increase stack size for efuse unit test "Batch mode is thread-safe" case would occasionally cause a stackoverflow. Increased stack size.
@@ -696,8 +696,8 @@ TEST_CASE("Batch mode is thread-safe", "[efuse]") sema = xSemaphoreCreateBinary(); printf("\n"); - xTaskCreatePinnedToCore(task1, "task1", 2048, NULL, UNITY_FREERTOS_PRIORITY - 1, NULL, 0); - xTaskCreatePinnedToCore(task2, "task2", 2048, NULL, UNITY_FREERTOS_PRIORITY - 1, NULL, 1); + xTaskCreatePinnedToCore(task1, "task1", 3072, NULL, UNITY_FREERTOS_PRIORITY - 1, NULL, 0); + xTaskCreatePinnedToCore(task2, "task2", 3072, NULL, UNITY_FREERTOS_PRIORITY - 1, NULL, 1); vTaskDelay(3000 / portTICK_PERIOD_MS); xSemaphoreTake(sema, portMAX_DELAY); @@ -705,8 +705,8 @@ TEST_CASE("Batch mode is thread-safe", "[efuse]") esp_efuse_utility_erase_virt_blocks(); printf("\n"); - xTaskCreatePinnedToCore(task1, "task1", 2048, NULL, UNITY_FREERTOS_PRIORITY - 1, NULL, 0); - xTaskCreatePinnedToCore(task3, "task3", 2048, NULL, UNITY_FREERTOS_PRIORITY - 1, NULL, 1); + xTaskCreatePinnedToCore(task1, "task1", 3072, NULL, UNITY_FREERTOS_PRIORITY - 1, NULL, 0); + xTaskCreatePinnedToCore(task3, "task3", 3072, NULL, UNITY_FREERTOS_PRIORITY - 1, NULL, 1); vTaskDelay(3000 / portTICK_PERIOD_MS); xSemaphoreTake(sema, portMAX_DELAY);
[Kernel] To check object re-initialization in the list
@@ -240,6 +240,7 @@ void rt_object_init(struct rt_object *object, const char *name) { register rt_base_t temp; + struct rt_list_node *node = RT_NULL; struct rt_object_information *information; #ifdef RT_USING_MODULE struct rt_dlmodule *module = dlmodule_self(); @@ -249,14 +250,26 @@ void rt_object_init(struct rt_object *object, information = rt_object_get_information(type); RT_ASSERT(information != RT_NULL); - /* initialize object's parameters */ - /* check object type to avoid re-initialization */ - RT_ASSERT(object->type != (type | RT_Object_Class_Static)); + /* enter critical */ + rt_enter_critical(); + /* try to find object */ + for (node = information->object_list.next; + node != &(information->object_list); + node = node->next) + { + struct rt_object *obj; + + obj = rt_list_entry(node, struct rt_object, list); + RT_ASSERT(obj != object); + } + /* leave critical */ + rt_exit_critical(); + + /* initialize object's parameters */ /* set object type to static */ object->type = type | RT_Object_Class_Static; - /* copy name */ rt_strncpy(object->name, name, RT_NAME_MAX);
ivshmem: specify PnpLockDown=1 in INF Fixes Warning 1324.
@@ -20,6 +20,7 @@ ClassGuid={4d36e97d-e325-11ce-bfc1-08002be10318} Provider=%VENDOR% CatalogFile=ivshmem.cat DriverVer=01/01/2008,0.0.0.1 ; this line will be replaced with stampinf +PnpLockDown=1 [DestinationDirs] DefaultDestDir = 12
Documentation adjustment
/// In such case, they shall be filled with 0 (or whatever is the neutral value in your context) /// and the constant_mask shall be set. /// -/// Audio ports are initially in the active state. -/// Audio ports state should not be saved in the plugin state, so the host must restore the +/// Audio ports are initially in the active state after creating the plugin instance. +/// Audio ports state are not saved in the plugin state, so the host must restore the /// audio ports state after creating the plugin instance. /// /// Audio ports state is invalidated by clap_plugin_audio_ports_config.select() and
Disable Coverity in Travis-CI.
@@ -64,12 +64,15 @@ env: # via the "travis encrypt" command using the project repo's public key - secure: "JWobvJ94pWt/xVciQURkNFS3I+gyu2IyZPKYEs6HDlHrpHs4BoVDZeRjmgx0s6aDeQjKJHowGDu17IlbnCkKzXrZErEJkA+Oc/d0SwgXKiUU9WYiaGBJjJUoYZw66QIEuGGKkF4uQ7EIcW/vN7wzrCDyAiPeOPUjVP4Tc2XRzmkSfakfmf9cE5nqT84DPUYiRegM7iepMrZi9kEaAoboBuETT+6eUKdERRadM0QNjZmCYMEMjtFj3lE51Ey2stGqZdKJvJN0FUmxGoaXCFFAsNmZPnFeDkqTf0a+MzxG2m4nnIXyNC/nT5XLItKHog4KROHb4tUpCZJ4iJhcw3loWMCtkZqB2fq2PaOkKk2zxPr3HLCn7ltmOzReBEDjEg68UqWydRW5534JGosbcA9IfshS1VqnZLgGwQHieXNeqhJUumt1DpON7AQEiEzbzAk0y2VcPlDPuCt9QS1k+zPMZLzbwgvs1ZOH39oFESW+iEDdzZjbhyC3J6azTHFcnA7r5SsYe1pzcSUaYtS1ehhb0lU/442JSHw2j00Nv9qFycYNvDrRNQNBxLziVustT0WJoVdFlkKy16iu1tUYOVXKgmMfqUDINfU6zRz3DskVuB9MZzq/4cMdK4jMRIDNZWvye1BzM7o/PiJoNaQc/6iav2RD+5YV46bBr60TqnYyjlM=" -addons: - coverity_scan: - project: - name: "plusvic/yara" - description: "Build submitted via Travis CI" - notification_email: [email protected] - build_command_prepend: "./configure; make clean" - build_command: "make -j 4" - branch_pattern: master +# Disable Coverity due to a problem with their certificate that makes it fail +# in Travis-CI. +# +#addons: +# coverity_scan: +# project: +# name: "plusvic/yara" +# description: "Build submitted via Travis CI" +# notification_email: [email protected] +# build_command_prepend: "./configure; make clean" +# build_command: "make -j 4" +# branch_pattern: master
Minor performance improvements to the `ZydisPrintHexU` function
@@ -136,7 +136,6 @@ ZydisStatus ZydisPrintHexU32(char** buffer, size_t bufferLen, uint32_t value, ui return ZYDIS_STATUS_SUCCESS; } - char temp[ZYDIS_MAXCHARS_HEX_32]; uint8_t n = 0; for (int8_t i = ZYDIS_MAXCHARS_HEX_32 - 1; i >= 0; --i) { @@ -151,26 +150,23 @@ ZydisStatus ZydisPrintHexU32(char** buffer, size_t bufferLen, uint32_t value, ui { return ZYDIS_STATUS_INSUFFICIENT_BUFFER_SIZE; } + if (paddingLength > i) + { + n = paddingLength - i - 1; + memset(*buffer, '0', n); + } } if (uppercase) { - temp[n++] = "0123456789ABCDEF"[v]; + (*buffer)[n++] = "0123456789ABCDEF"[v]; } else { - temp[n++] = "0123456789abcdef"[v]; + (*buffer)[n++] = "0123456789abcdef"[v]; } } + (*buffer)[n] = '\0'; - uint8_t offset = 0; - if (paddingLength > n) - { - offset = paddingLength - n; - memset(*buffer, '0', offset); - } - memcpy(&(*buffer)[offset], temp, n); - (*buffer)[offset + n] = '\0'; - - *buffer += n + offset; + *buffer += n; return ZYDIS_STATUS_SUCCESS; } @@ -244,7 +240,6 @@ ZydisStatus ZydisPrintHexU64(char** buffer, size_t bufferLen, uint64_t value, ui return ZYDIS_STATUS_SUCCESS; } - char temp[ZYDIS_MAXCHARS_HEX_64]; uint8_t n = 0; uint8_t c = ((value & 0xFFFFFFFF00000000) ? ZYDIS_MAXCHARS_HEX_64 : ZYDIS_MAXCHARS_HEX_32); for (int8_t i = c - 1; i >= 0; --i) @@ -260,26 +255,23 @@ ZydisStatus ZydisPrintHexU64(char** buffer, size_t bufferLen, uint64_t value, ui { return ZYDIS_STATUS_INSUFFICIENT_BUFFER_SIZE; } + if (paddingLength > i) + { + n = paddingLength - i - 1; + memset(*buffer, '0', n); + } } if (uppercase) { - temp[n++] = "0123456789ABCDEF"[v]; + (*buffer)[n++] = "0123456789ABCDEF"[v]; } else { - temp[n++] = "0123456789abcdef"[v]; + (*buffer)[n++] = "0123456789abcdef"[v]; } } + (*buffer)[n] = '\0'; - uint8_t offset = 0; - if (paddingLength > n) - { - offset = paddingLength - n; - memset(*buffer, '0', offset); - } - memcpy(&(*buffer)[offset], temp, n); - (*buffer)[offset + n] = '\0'; - - *buffer += n + offset; + *buffer += n; return ZYDIS_STATUS_SUCCESS; }
Update module provider FileVersionInfo to native paths
@@ -622,7 +622,7 @@ VOID PhModuleProviderUpdate( moduleItem->FileName = module->FileName; moduleItem->ParentBaseAddress = module->ParentBaseAddress; - PhInitializeImageVersionInfo(&moduleItem->VersionInfo, moduleItem->FileNameWin32->Buffer); + PhInitializeImageVersionInfoEx(&moduleItem->VersionInfo, moduleItem->FileName, PhEnableVersionShortText); if (moduleProvider->IsSubsystemProcess) {
Update file loader test with new module naming schema.
@@ -51,7 +51,7 @@ TEST_F(file_loader_test, DefaultConstructor) EXPECT_EQ((int) 0, (int) loader_load_from_file(tag, scripts, size, NULL)); - void * handle = loader_get_handle(tag, "favicon"); + void * handle = loader_get_handle(tag, scripts[0]); EXPECT_NE((void *) NULL, (void *) handle);
sysrepo FEATURE better conn/session creation messages
@@ -222,6 +222,8 @@ sr_connect(const sr_conn_options_t opts, sr_conn_ctx_t **conn_p) goto cleanup_unlock; } + SR_LOG_INF("Connection %" PRIu32 " created.", conn->cid); + cleanup_unlock: /* CREATE UNLOCK */ sr_shmmain_createunlock(conn->main_create_lock); @@ -381,7 +383,7 @@ sr_session_start(sr_conn_ctx_t *conn, const sr_datastore_t datastore, sr_session goto error; } - SR_LOG_INF("Session %u (user \"%s\") created.", (*session)->sid.sr, (*session)->sid.user); + SR_LOG_INF("Session %u (user \"%s\", CID %" PRIu32 ") created.", (*session)->sid.sr, (*session)->sid.user, conn->cid); return sr_api_ret(NULL, NULL);
Handle QUICLY_ERROR_STATE_EXHAUSTION errors h2o_quic_send, process_packets: Handle fatal errors by immediately destroying the connection
@@ -630,9 +630,16 @@ static void process_packets(h2o_quic_ctx_t *ctx, quicly_address_t *destaddr, qui size_t i; Receive: for (i = 0; i != num_packets; ++i) { - /* FIXME process errors? */ - if (i != accepted_packet_index) - quicly_receive(conn->quic, &destaddr->sa, &srcaddr->sa, packets + i); + if (i != accepted_packet_index) { + int ret = quicly_receive(conn->quic, &destaddr->sa, &srcaddr->sa, packets + i); + switch (ret) { + case QUICLY_ERROR_STATE_EXHAUSTION: + case PTLS_ERROR_NO_MEMORY: + fprintf(stderr, "%s: `quicly_receive()` returned ret:%d\n", __func__, ret); + conn->callbacks->destroy_connection(conn); + return; + } + } } } @@ -1086,6 +1093,7 @@ int h2o_quic_send(h2o_quic_conn_t *conn) break; } break; + case QUICLY_ERROR_STATE_EXHAUSTION: case QUICLY_ERROR_FREE_CONNECTION: conn->callbacks->destroy_connection(conn); return 0;
Accepts PINGs in handshake contexts
@@ -4153,8 +4153,7 @@ int picoquic_decode_frames(picoquic_cnx_t* cnx, uint8_t* bytes, picoquic_varint_decode(bytes, bytes_max - bytes, &frame_type); if (epoch != 1 && epoch != 3 && frame_type != picoquic_frame_type_padding - && frame_type != picoquic_frame_type_path_challenge - && frame_type != picoquic_frame_type_path_response + && frame_type != picoquic_frame_type_ping && frame_type != picoquic_frame_type_connection_close && frame_type != picoquic_frame_type_crypto_hs && frame_type != picoquic_frame_type_ack @@ -4231,8 +4230,7 @@ int picoquic_decode_frames_without_current_time(picoquic_cnx_t* cnx, uint8_t* by picoquic_varint_decode(bytes, bytes_max - bytes, &frame_type); if (epoch != 1 && epoch != 3 && frame_type != picoquic_frame_type_padding - && frame_type != picoquic_frame_type_path_challenge - && frame_type != picoquic_frame_type_path_response + && frame_type != picoquic_frame_type_ping && frame_type != picoquic_frame_type_connection_close && frame_type != picoquic_frame_type_crypto_hs && frame_type != picoquic_frame_type_ack
Don't allow A button to interact with collision actors
@@ -60,7 +60,7 @@ void Update_TopDown() { // Find actor in front of player hit_actor = ActorInFrontOfPlayer(); - if (hit_actor != NO_ACTOR_COLLISON) { + if (hit_actor != NO_ACTOR_COLLISON && !actors[hit_actor].collision_group) { // Turn actor to face player actors[hit_actor].dir.x = -player.dir.x; actors[hit_actor].dir.y = -player.dir.y;
Remove Claw reader test from skip list on Windows.
{"category":"databases","file":"silo_altdriver.py","cases":["silo_05","silo_06"]}, {"category":"meshtype","file":"emptydomains.py","cases":["meshtype_emptydomains_05","meshtype_emptydomains_06"]}, {"category":"databases","file":"zipwrapper.py"}, - {"category":"databases","file":"claw.py","platform":"win"}, {"category":"databases","file":"moab.py","platform":"win"}, {"category":"databases","file":"mfem.py","platform":"win"}, {"category":"databases","file":"oldsilo.py","platform":"win"}, {"category":"databases","file":"reopen.py","platform":"win","cases":["reopen_40"]}, {"category":"databases","file":"oldsilo.py","platform":"win"}, {"category":"databases","file":"rect.py","platform":"win"}, - {"category":"databases","file":"claw.py","platform":"win"}, {"category":"simulation","file":"csg.py","platform":"win"}, {"category":"simulation","file":"curve.py","platform":"win"}, {"category":"simulation","file":"domainlist.py","platform":"win"},
ORB: Gaussian smooth the image once before keypoints extraction.
@@ -363,6 +363,10 @@ array_t *orb_find_keypoints(image_t *img, bool normalized, int threshold, rectan int octave = 1; rectangle_t roi_scaled; + + // Gaussian smooth the image before extracting keypoints + imlib_morph(img, 1, kernel_gauss_3, 1.0f/99.0f, 0.0f); + for(float scale=1.0f, scale_factor = 1.25f; ; scale*=scale_factor, octave++) { image_t img_scaled = { .bpp = 1, @@ -380,8 +384,6 @@ array_t *orb_find_keypoints(image_t *img, bool normalized, int threshold, rectan // Down scale image image_scale(img, &img_scaled); - imlib_morph(&img_scaled, 1, kernel_gauss_3, 1.0f/99.0f, 0.0f); - //imlib_morph(&img_scaled, 2, kernel_gauss_5, 1.0f/159.0f, 0.0f); // Set ROI // Add offset for patch size
fix possible memory leak if report level not set
@@ -145,11 +145,12 @@ static void event_handler(void *arg, esp_event_base_t event_base, static void ftm_process_report(void) { int i; - char *log = malloc(200); + char *log = NULL; if (!g_report_lvl) return; + log = malloc(200); if (!log) { ESP_LOGE(TAG_STA, "Failed to alloc buffer for FTM report"); return;
nrf/modules/uos/microbitfs: Fix errno defines. Probably broken after the recent Clang fixes to errno.h.
@@ -404,7 +404,7 @@ STATIC int advance(file_descriptor_obj *self, uint32_t n, bool write) { if (next_chunk == FILE_NOT_FOUND) { clear_file(self->start_chunk); self->open = false; - return ENOSPC; + return MP_ENOSPC; } // Link next chunk to this one flash_write_byte((uint32_t)&(file_system_chunks[self->seek_chunk].next_chunk), next_chunk); @@ -420,7 +420,7 @@ STATIC mp_uint_t microbit_file_read(mp_obj_t obj, void *buf, mp_uint_t size, int file_descriptor_obj *self = (file_descriptor_obj *)obj; check_file_open(self); if (self->writable || file_system_chunks[self->start_chunk].marker == FREED_CHUNK) { - *errcode = EBADF; + *errcode = MP_EBADF; return MP_STREAM_ERROR; } uint32_t bytes_read = 0; @@ -450,7 +450,7 @@ STATIC mp_uint_t microbit_file_write(mp_obj_t obj, const void *buf, mp_uint_t si file_descriptor_obj *self = (file_descriptor_obj *)obj; check_file_open(self); if (!self->writable || file_system_chunks[self->start_chunk].marker == FREED_CHUNK) { - *errcode = EBADF; + *errcode = MP_EBADF; return MP_STREAM_ERROR; } uint32_t len = size;
DM: Fix minor issue of USB vendor ID Provide a minor fix for following issue: Emulated USB controller Vendor ID and Device ID are swapped.
@@ -4036,8 +4036,8 @@ pci_xhci_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts) xdev->excap_ptr = excap_group_dft; - xdev->vid = XHCI_PCI_DEVICE_ID_DFLT; - xdev->pid = XHCI_PCI_VENDOR_ID_DFLT; + xdev->vid = XHCI_PCI_VENDOR_ID_DFLT; + xdev->pid = XHCI_PCI_DEVICE_ID_DFLT; xdev->rtsregs.mfindex = 0; clock_gettime(CLOCK_MONOTONIC, &xdev->mf_prev_time);
printer json BUGFIX invalid empty list print
@@ -773,14 +773,8 @@ json_print_leaf_list(struct jsonpr_ctx *pctx, const struct lyd_node *node) } if (node->schema->nodetype == LYS_LIST) { - if (!lyd_child(node)) { - /* empty, e.g. in case of filter */ - ly_print_(pctx->out, "%s%snull", (pctx->level_printed >= pctx->level) ? "," : "", DO_FORMAT ? " " : ""); - LEVEL_PRINTED; - } else { /* print list's content */ LY_CHECK_RET(json_print_inner(pctx, node)); - } } else { assert(node->schema->nodetype == LYS_LEAFLIST);
bricks/ev3dev/speaker: split language and voice variant Although these are one argument in espeak, these are two completely different settings.
@@ -40,8 +40,9 @@ typedef struct _ev3dev_Speaker_obj_t { mp_obj_base_t base; bool intialized; int beep_fd; - const char *voice; - mp_obj_t voice_obj; + char language[10]; + char voice[10]; + char voice_setting[21]; char speed[8]; char pitch[8]; gboolean aplay_busy; @@ -66,7 +67,8 @@ STATIC mp_obj_t ev3dev_Speaker_make_new(const mp_obj_type_t *type, size_t n_args if (self->beep_fd == -1) { perror("Failed to open input dev for sound, beep will not work"); } - self->voice = "en"; + strncpy(self->language, "en", sizeof(self->language)); + strncpy(self->voice, "m1", sizeof(self->voice)); strncpy(self->speed, "100", sizeof(self->speed)); strncpy(self->pitch, "50", sizeof(self->pitch)); @@ -458,7 +460,7 @@ STATIC mp_obj_t ev3dev_Speaker_say(size_t n_args, const mp_obj_t *pos_args, mp_m GError *error = NULL; GSubprocess *espeak = g_subprocess_new( G_SUBPROCESS_FLAGS_STDOUT_PIPE | G_SUBPROCESS_FLAGS_STDERR_PIPE, - &error, "espeak", "-a", "200", "-v", self->voice, "-s", self->speed, + &error, "espeak", "-a", "200", "-v", self->voice_setting, "-s", self->speed, "-p", self->pitch, "--stdout", text_, NULL); if (!espeak) { // This error is unexpected, so doesn't need to be "user-friendly" @@ -567,18 +569,20 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_KW(ev3dev_Speaker_say_obj, 1, ev3dev_Speaker_say) STATIC mp_obj_t ev3dev_Speaker_set_speech_options(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { PB_PARSE_ARGS_METHOD(n_args, pos_args, kw_args, ev3dev_Speaker_obj_t, self, + PB_ARG_DEFAULT_NONE(language), PB_ARG_DEFAULT_NONE(voice), PB_ARG_DEFAULT_NONE(speed), PB_ARG_DEFAULT_NONE(pitch) ); + if (language != mp_const_none) { + strncpy(self->language, mp_obj_str_get_str(language), sizeof(self->language)); + } if (voice != mp_const_none) { - self->voice = mp_obj_str_get_str(voice); - // Need to keep object from being garbage collected, otherwise pointer - // to string could become invalid. But we still want to call - // mp_obj_str_get_str() now for type checking. - self->voice_obj = voice; + strncpy(self->voice, mp_obj_str_get_str(voice), sizeof(self->voice)); } + snprintf(self->voice_setting, sizeof(self->voice_setting), "%s+%s", self->language, self->voice); + if (speed != mp_const_none) { snprintf(self->speed, sizeof(self->speed), INT_FMT, pb_obj_get_int(speed)); }
Use CSTRING macro
@@ -14,7 +14,7 @@ static Value setCWDNative(int argCount, Value *args) { return EMPTY_VAL; } - char *dir = AS_STRING(args[0])->chars; + char *dir = AS_CSTRING(args[0]); int retval = chdir(dir);
fix geprcf405 targets.json
}, { "name": "geprcf405", + "configurations": [ + { + "name": "brushless.serial", "defines":{ "BRUSHLESS_TARGET": "", "RX_UNIFIED_SERIAL": "" } } ] + } +] \ No newline at end of file
always do ASLR in secure mode even in debug mode (issue
@@ -472,7 +472,7 @@ static void* mi_os_get_aligned_hint(size_t try_alignment, size_t size) { uintptr_t hint = mi_atomic_add_acq_rel(&aligned_base, size); if (hint == 0 || hint > ((intptr_t)30<<40)) { // try to wrap around after 30TiB (area after 32TiB is used for huge OS pages) uintptr_t init = ((uintptr_t)4 << 40); // start at 4TiB area - #if (MI_SECURE>0 || MI_DEBUG==0) // security: randomize start of aligned allocations unless in debug mode + #if (MI_SECURE>0) // security: randomize start of aligned allocations uintptr_t r = _mi_heap_random_next(mi_get_default_heap()); init = init + (MI_SEGMENT_SIZE * ((r>>17) & 0xFFFFF)); // (randomly 20 bits)*4MiB == 0 to 4TiB #endif @@ -1013,7 +1013,7 @@ static uint8_t* mi_os_claim_huge_pages(size_t pages, size_t* total_size) { if (start == 0) { // Initialize the start address after the 32TiB area start = ((uintptr_t)32 << 40); // 32TiB virtual start address -#if (MI_SECURE>0 || MI_DEBUG==0) // security: randomize start of huge pages unless in debug mode +#if (MI_SECURE>0) // security: randomize start of huge pages uintptr_t r = _mi_heap_random_next(mi_get_default_heap()); start = start + ((uintptr_t)MI_HUGE_OS_PAGE_SIZE * ((r>>17) & 0x0FFF)); // (randomly 12bits)*1GiB == between 0 to 4TiB #endif
Fixed building with epoll (broken in 92b4984ca3c1).
@@ -1122,7 +1122,7 @@ nxt_epoll_edge_event_conn_connected(nxt_task_t *task, void *obj, void *data) if (!c->socket.epoll_error) { c->socket.write = NXT_EVENT_BLOCKED; - if (c->write_state->autoreset_timer) { + if (c->write_state->timer_autoreset) { nxt_timer_disable(task->thread->engine, &c->write_timer); }
Fixed documentation of new -C|--compiled-rules command-line option
@@ -57,7 +57,7 @@ Available options are: Print rules named <identifier> and ignore the rest. -.. option:: -c --count +.. option:: -C --compiled-rules RULES_FILE contains rules already compiled with yarac.
migration: adding crash fix
~& migrating/src.bol =. wait (~(del in wait) src.bol) :_ state - :- [%give %fact ~[/wait] ships+!>(wait)] + :- [%give %fact ~[/wait] ships+!>(~(tap in wait))] (~(migrate-ship gladio bol) src.bol) :_ state ~[(backoff-migrate src.bol)]
Update README.md for 4.0 release
@@ -58,7 +58,7 @@ from 0.89 bits/pixel up to 8 bits/pixel. Release build binaries for the `astcenc` stable releases are provided in the [GitHub Releases page][3]. -**Latest 4.x stable release:** TBD +**Latest 4.x stable release:** 4.0 * Change log: [4.x series](./Docs/ChangeLog-4x.md) **Latest 3.x stable release:** 3.7 @@ -90,7 +90,8 @@ For Apple silicon macOS devices we provide: The `main` branch is an active development branch for the compressor. It aims to be a stable branch for the latest major release series, but as it is used -for ongoing development expect it to have some volatility. +for ongoing development expect it to have some volatility. We recommend using +the latest stable release tag for production development. The `2.x` and `3.x` branches are a stable branches for the 2.x and 3.x release series. They are no longer under active development, but are supported branches
removed one latch stage for RC reset
@@ -465,7 +465,6 @@ SIGNAL led_blue: std_logic_vector(0 TO 1); -- NVME Reset Logic -- only for NVME_USED=TRUE SIGNAL nvme_reset_cnt_q : std_logic_vector(15 DOWNTO 0) := (OTHERS => '1'); -- only for NVME_USED=TRUE SIGNAL nvme_reset_n_q : std_logic := '1'; -- only for NVME_USED=TRUE -SIGNAL nvme_reset_n_qq : std_logic := '1'; -- only for NVME_USED=TRUE SIGNAL nvme_reset_ctl : std_logic; -- only for NVME_USED=TRUE SIGNAL nvme_perst_ctl : std_logic_vector(3 DOWNTO 0); -- only for NVME_USED=TRUE SIGNAL m2_perst_tmp_n : std_logic_vector(3 DOWNTO 0); -- only for NVME_USED=TRUE @@ -492,7 +491,6 @@ BEGIN nvme_reset_n_q <= '0'; -- only for NVME_USED=TRUE end if; -- only for NVME_USED=TRUE -- -- only for NVME_USED=TRUE - nvme_reset_n_qq <= nvme_reset_n_q; -- only for NVME_USED=TRUE -- Drive resets to NVMe drives at M2 pins -- only for NVME_USED=TRUE m2_perst_tmp_n <= (nvme_reset_cnt_q(15) & nvme_reset_cnt_q(15) & -- only for NVME_USED=TRUE nvme_reset_cnt_q(15) & nvme_reset_cnt_q(15)) -- only for NVME_USED=TRUE @@ -543,7 +541,7 @@ BEGIN -- NVME Interface -- only for NVME_USED=TRUE -- -- only for NVME_USED=TRUE -- Reset Input -- only for NVME_USED=TRUE - nvme_reset_n => nvme_reset_n_qq, -- only for NVME_USED=TRUE + nvme_reset_n => nvme_reset_n_q, -- only for NVME_USED=TRUE -- -- only for NVME_USED=TRUE -- Clock Inputs for NVMe -- only for NVME_USED=TRUE refclk_nvme_ch0_p => pcie_clk1_p, -- only for NVME_USED=TRUE
Fix compile warnings on AppleClang
@@ -296,8 +296,8 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") " $<$<NOT:$<CXX_COMPILER_ID:MSVC>>: -Wno-tautological-type-limit-compare>" " $<$<NOT:$<CXX_COMPILER_ID:MSVC>>: -Wno-cast-qual>" " $<$<NOT:$<CXX_COMPILER_ID:MSVC>>: -Wno-reserved-identifier>" - " $<$<CXX_COMPILER_ID:Clang>: -Wno-missing-prototypes>" - " $<$<CXX_COMPILER_ID:Clang>: -Wno-missing-field-initializers>" + " $<$<CXX_COMPILER_ID:${CLANG_LIKE}>: -Wno-missing-prototypes>" + " $<$<CXX_COMPILER_ID:${CLANG_LIKE}>: -Wno-missing-field-initializers>" " $<$<NOT:$<CXX_COMPILER_ID:MSVC>>: -Wno-suggest-override>" " $<$<NOT:$<CXX_COMPILER_ID:MSVC>>: -Wno-used-but-marked-unused>" " $<$<NOT:$<CXX_COMPILER_ID:MSVC>>: -Wno-noexcept-type>"
Weekly Release Build
@@ -27,6 +27,15 @@ pr: - docs/* - README.md +# Periodically rebuild release branches to make sure they are functional. +schedules: +- cron: "0 0 * * Mon" + displayName: Weekly Release Build + branches: + include: + - release/* + always: true + name: 0.$(Date:yyyy).$(Date:MM).$(DayOfMonth).$(Rev:rr).0 resources: @@ -323,6 +332,7 @@ stages: rttMs: (5,50,200) logProfile: Datapath.Light +- ${{ if not(eq(variables['Build.Reason'], 'Schedule')) }}: - stage: perf_post_process displayName: Perf Post Processing condition: succeededOrFailed() @@ -493,7 +503,7 @@ stages: # Mirror # -- ${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/'))) }}: +- ${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), not(eq(variables['Build.Reason'], 'Schedule')), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/'))) }}: - stage: mirror displayName: Mirror Branch dependsOn: @@ -527,7 +537,7 @@ stages: # Distribution # -- ${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/'))) }}: +- ${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), not(eq(variables['Build.Reason'], 'Schedule')), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/'))) }}: - stage: distribution displayName: Distribution dependsOn:
Use multiples of ten in record tests
@@ -939,9 +939,9 @@ describe("Pallene coder /", function() it("(__index) works for records with a lot of fields", function() run_test([[ - local big = test.make_big(1, 2, 3, 4, 5, 6, 7, 8, 9) + local big = test.make_big(10, 20, 30, 40, 50, 60, 70, 80, 90) for i = 1, 9 do - assert(i == big['f' .. i]) + assert(i * 10 == big['f' .. i]) end ]]) end)
Add Python 2.7 support in build.macosx-x86_64.sh.
@@ -106,6 +106,7 @@ BUILD_PYTHON() { url="PYTHON${1}${2}_URL" if [ ${1} = "3" ]; then v="3"; else v=""; fi if [ ${1} = "3" ]; then m="m"; else m=""; fi + if [ ${1} = "3" ]; then s="35"; else s="27"; fi basedir="/opt/python/Frameworks/Python.framework/Versions/${1}.${2}" BUILD_RUN_DELETE \ "FROM fzwoch/osxcross:latest @@ -122,12 +123,14 @@ BUILD_PYTHON() { -DPYTHON_INCLUDE_DIR=${basedir}/include/python${1}.${2}${m} \ -DPYTHON_LIBRARY=${basedir}/lib/libpython${1}.${2}.dylib && \ python${v} setup.py bdist_wheel && \ - for f in dist/*.whl; do mv \$f \${f/35/${1}${2}}; done && \ - for f in dist/*.whl; do mv \$f \${f/35/${1}${2}}; done && \ + for f in dist/*.whl; do mv \$f \${f/${s}/${1}${2}$}; done && \ + for f in dist/*.whl; do mv \$f \${f/${s}/${1}${2}$}; done && \ + for f in dist/*.whl; do mv \$f \${f/$/}; done && \ + for f in dist/*.whl; do mv \$f \${f/$/}; done && \ for f in dist/*.whl; do mv \$f \${f/linux/macosx}; done && \ chown $(id -u):$(id -g) dist/*.whl && \ cp -a dist/*.whl ${STORAGE}" } -#BUILD_PYTHON 2 7 +BUILD_PYTHON 2 7 BUILD_PYTHON 3 7
Badger2040: Fix ebook.py missing lines for
@@ -196,7 +196,7 @@ def render_page(): row += 1 # Have we reached the end of the page? - if (row * TEXT_SPACING) + (TEXT_SPACING // 2) > HEIGHT: + if (row * TEXT_SPACING) + TEXT_SPACING >= HEIGHT: print("+++++") display.update() @@ -212,7 +212,7 @@ def render_page(): if add_newline: print("") row += 1 - if (row * TEXT_SPACING) + (TEXT_SPACING // 2) > HEIGHT: + if (row * TEXT_SPACING) + TEXT_SPACING >= HEIGHT: print("+++++") display.update() return
EPEL repo is required in the chroot for nagios plugins, fping and qstat
@@ -12,6 +12,7 @@ the chroot. \begin{lstlisting}[language=bash,literate={-}{-}1,keywords={},upquote=true] [sms](*\#*) yum-config-manager --installroot=$CHROOT --enable base [sms](*\#*) cp /etc/yum.repos.d/OpenHPC.repo $CHROOT/etc/yum.repos.d +[sms](*\#*) cp /etc/yum.repos.d/epel.repo $CHROOT/etc/yum.repos.d \end{lstlisting} % end_ohpc_run
FIOBJ instead `fiobj_s *`
# Change Log -### Ver. 0.6.0 (ReHTTP branch) +### Ver. 0.6.0 (upcoming release) **Fix**: (`websocket_parser`) The websocket parser had a memory offset and alignment handling issue in it's unmasking (XOR) logic and the new memory alignment protection code. The issue would impact the parser in rare occasions when multiple messages where pipelined in the internal buffer and their length produced an odd alignment (the issue would occur with very fast clients, or a very stressed server). **Changes!**: (`websocket`): -- The Websocket API includes numerous breaking changes, not least is the pub/sub API rewrite that now leverages `fiobj_s *` Strings / Symbols. +- The Websocket API includes numerous breaking changes, not least is the pub/sub API rewrite that now leverages `FIOBJ` Strings / Symbols. - `websocket_write_each` was deprecated (favoring a pub/sub only design). **Changes!**: (`pubsub`): -- The `pubsub` API was redesigned after re-evaluating the function of a pub/sub engine and in order to take advantage of the `fiobj_s` type system. +- The `pubsub` API was redesigned after re-evaluating the function of a pub/sub engine and in order to take advantage of the `FIOBJ` type system. - Channel names now use a hash map with collision protection (using `memcmp` to compare channel names). The means that the 4 but trie is no longer in use and will be deprecated. +**Changes!**: (`redis`): + +- The `redis_engine` was rewritten, along with the RESP parser, to reflect the changes in the new `pubsub` service and to remove obsolete code. + **Changes!**: (`facil`): - Slight API changes: - `facil_last_tick` now returns `struct timespec` instead of `time_t`, allowing for more accurate time stamping. + - `facil_cluster_send` and `facil_cluster_set_handler` were redesigned to reflect the new cluster engine (now using Unix Sockets instead of pipes). + - Internal updates to accommodate changes to other libraries. +- Cluster mode now behaves as sentinel, re-spawning any crashed worker processes (except in DEBUG mode). + **Changes!**: (`evio`): - the evented IO library was redesigned for **one-shot** notifications, requiring a call to `evio_add` or `evio_set_timer` in order to receive future notifications. **Changes!**: (`defer`): -- defer thread pools and forks now include two weak functions that allow for customized thread scheduling (wakeup/wait). These are overwritten by facil.io (in `facil.c`). +- Removed forking from the defer library, moving the `fork` logic into the main `facil` source code. + +- Defer thread pools and now include two weak functions that allow for customized thread scheduling (wakeup/wait). These are overwritten by facil.io (in `facil.c`). By default, defer will use `nanosleep`.
Include the configuration condition for ExternalWarningLevel.
end - function m.externalWarningLevel(cfg) + function m.externalWarningLevel(cfg, condition) if _ACTION >= "vs2022" then local map = { Off = "TurnOffAllWarnings", High = "Level4", Extra = "Level4", Everything = "Level4" } - m.element("ExternalWarningLevel", nil, map[cfg.externalwarnings] or "Level3") + m.element("ExternalWarningLevel", condition, map[cfg.externalwarnings] or "Level3") end end
vere: fix -j help text
@@ -398,7 +398,7 @@ u3_ve_usage(c3_i argc, c3_c** argv) "-e url Ethereum gateway\n", "-F ship Fake keys; also disables networking\n", "-g Set GC flag\n", - "-j file Create json trace file\n", + "-j Create json trace file in .urb/put/trace\n", "-K stage Start at Hoon kernel version stage\n", "-k keys Private key file\n", "-L local networking only\n",
Added missing button defines for sensortag/cc2650 Board
@@ -97,6 +97,8 @@ extern "C" { #define Board_PIN_BUTTON0 CC2650STK_KEY_LEFT #define Board_PIN_BUTTON1 CC2650STK_KEY_RIGHT +#define Board_PIN_BTN1 CC2650STK_KEY_LEFT +#define Board_PIN_BTN2 CC2650STK_KEY_RIGHT #define Board_PIN_LED0 CC2650STK_PIN_LED0 #define Board_PIN_LED1 CC2650STK_PIN_LED1 #define Board_PIN_LED2 CC2650STK_PIN_LED1
Update how lms.c imports platform.h
#include "mbedtls/error.h" #include "mbedtls/platform_util.h" -#if defined(MBEDTLS_PLATFORM_C) #include "mbedtls/platform.h" -#else -#include <stdlib.h> -#include <stdio.h> -#define mbedtls_printf printf -#define mbedtls_calloc calloc -#define mbedtls_free free -#endif #define SIG_Q_LEAF_ID_OFFSET (0) #define SIG_OTS_SIG_OFFSET (SIG_Q_LEAF_ID_OFFSET + \
Fix crash when viewing handle properties with an unknown type
@@ -359,7 +359,11 @@ VOID PhpUpdateHandleGeneralListViewGroups( NULL ); - if (PhEqualString2(Context->HandleItem->TypeName, L"ALPC Port", TRUE)) + if (PhIsNullOrEmptyString(Context->HandleItem->TypeName)) + { + NOTHING; + } + else if (PhEqualString2(Context->HandleItem->TypeName, L"ALPC Port", TRUE)) { PhAddListViewGroup(Context->ListViewHandle, PH_HANDLE_GENERAL_CATEGORY_ALPC, L"ALPC Port"); Context->ListViewRowCache[PH_HANDLE_GENERAL_INDEX_SEQUENCENUMBER] = PhAddListViewGroupItem( @@ -582,7 +586,11 @@ VOID PhpUpdateHandleGeneral( NtClose(processHandle); } - if (PhEqualString2(Context->HandleItem->TypeName, L"ALPC Port", TRUE)) + if (PhIsNullOrEmptyString(Context->HandleItem->TypeName)) + { + NOTHING; + } + else if (PhEqualString2(Context->HandleItem->TypeName, L"ALPC Port", TRUE)) { NTSTATUS status; HANDLE processHandle;
Add some nvram variables to DataHubTest
@@ -80,6 +80,23 @@ TestDataHub ( OC_CPU_INFO CpuInfo; OcCpuScanProcessor (&CpuInfo); UpdateDataHub (&Data, &CpuInfo); + + //TODO: put elsewhere + { + STATIC UINT32 Attributes = EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS; + STATIC CHAR8 Mlb[] = "MLBSERIAL"; + STATIC UINT8 Rom[] = {0, 0, 0, 0, 0, 0}; + STATIC UINT32 FirmwareFeatures = 0xE00FE137; + STATIC UINT32 FirmwareFeaturesMask = 0xFF1FFF3F; + STATIC UINT32 CsrActiveConfig = 0; + + gRT->SetVariable (L"MLB", &gAppleVendorVariableGuid, Attributes, AsciiStrLen (Mlb), Mlb); + gRT->SetVariable (L"ROM", &gAppleVendorVariableGuid, Attributes, sizeof (Rom), Rom); + gRT->SetVariable (L"FirmwareFeatures", &gAppleVendorVariableGuid, Attributes, sizeof (FirmwareFeatures), &FirmwareFeatures); + gRT->SetVariable (L"FirmwareFeaturesMask", &gAppleVendorVariableGuid, Attributes, sizeof (FirmwareFeaturesMask), &FirmwareFeaturesMask); + gRT->SetVariable (L"csr-active-config", &gAppleBootVariableGuid, Attributes, sizeof (CsrActiveConfig), &CsrActiveConfig); + + } return EFI_SUCCESS; }
Update bitstream constraints for AD8K5
# #----------------------------------------------------------- -set_property BITSTREAM.GENERAL.COMPRESS TRUE [current_design] -set_property BITSTREAM.CONFIG.EXTMASTERCCLK_EN {DIV-4} [current_design] -set_property CONFIG_MODE BPI16 [current_design] -set_property BITSTREAM.CONFIG.BPI_SYNC_MODE DISABLE [current_design] ;# default disable -set_property BITSTREAM.CONFIG.BPI_1ST_READ_CYCLE 4 [current_design] -set_property BITSTREAM.CONFIG.BPI_PAGE_SIZE 8 [current_design] -set_property BITSTREAM.CONFIG.UNUSEDPIN Pullnone [current_design] ;# default pulldown, doesn't load at power-on! -set_property BITSTREAM.CONFIG.OVERTEMPSHUTDOWN Enable [current_design] ;# default disable +# Alpha-Data constraints from user manual section 3.10.1.1 +set_property BITSTREAM.GENERAL.COMPRESS {TRUE} [current_design] +set_property BITSTREAM.CONFIG.EXTMASTERCCLK_EN {DIV-1} [current_design] +set_property BITSTREAM.CONFIG.BPI_SYNC_MODE {TYPE1} [current_design] +set_property BITSTREAM.CONFIG.UNUSEDPIN {Pullnone} [current_design] +set_property BITSTREAM.CONFIG.OVERTEMPSHUTDOWN Enable [current_design] +set_property CONFIG_MODE {BPI16} [current_design] set_property CFGBVS GND [current_design] set_property CONFIG_VOLTAGE 1.8 [current_design] +# SNAP common constraints +# Note: fallback/watchdog constraint cause PERST issues with AD8K5 set_property BITSTREAM.CONFIG.PERSIST NO [current_design] ;# default NO anyhow - -# xapp1246/xapp1296/ug908: These settings may not be needed for SNAP -set_property BITSTREAM.CONFIG.CONFIGFALLBACK ENABLE [current_design] ;# default enable -set_property BITSTREAM.CONFIG.TIMER_CFG 0XFFFFFFFF [current_design] ;# no watchdog -
Define terms the first time we use them
# SIMD Everywhere -SIMDe provides fast, portable implementations of SIMD intrinsics on -hardware which doesn't natively support them, such as calling SSE +The SIMDe header-only library provides fast, portable implementations of +[SIMD intrinsics](https://en.wikipedia.org/wiki/SIMD) on hardware which +doesn't natively support them, such as calling [SSE](https://en.wikipedia.org/wiki/Streaming_SIMD_Extensions) functions on ARM. There is no performance penalty if the hardware -supports the native implementation (*e.g.*, SSE/AVX runs at full speed -on x86, NEON on ARM, *etc.*). +supports the native implementation (*e.g.*, SSE/[AVX](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions) +runs at full speed on [x86](https://en.wikipedia.org/wiki/X86), +[NEON](https://en.wikipedia.org/wiki/NEON_(instruction_set)) on [ARM](https://en.wikipedia.org/wiki/ARM_architecture), +*etc.*). This makes porting code to other architectures much easier in a few key ways: @@ -16,8 +19,8 @@ performance-critical sections to native intrinsics, improving performance gradually. SIMDe lets (for example) SSE/AVX and NEON code exist side-by-side, in the same implementation. -Second, SIMDe makes it easier to write code targeting ISA extensions -you don't have convenient access to. You can run NEON code on your +Second, SIMDe makes it easier to write code targeting [ISA](https://en.wikipedia.org/wiki/Instruction_set_architecture) +extensions you don't have convenient access to. You can run NEON code on your x86 machine *without an emulator*. Obviously you'll eventually want to test on the actual hardware you're targeting, but for most development, SIMDe can provide a much easier path.
Build: Always use correct `RPATH` on macOS After this commit the installed version of `kdb` works without any changes to the library path on macOS, even if we specify a custom install location via `CMAKE_INSTALL_PREFIX`. This update fixes
@@ -7,6 +7,7 @@ project (Elektra) #fix macOS RPATH issues set(CMAKE_MACOSX_RPATH 1) +SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") #additional modules for loading libraries set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
print if a plugin triggers an error
@@ -543,6 +543,9 @@ protoop_arg_t plugin_run_protoop(picoquic_cnx_t *cnx, const protoop_params_t *pp DBG_PLUGIN_PRINTF("Running pluglet at proto op id %s", pid); cnx->current_plugin = popst->replace->p; status = (protoop_arg_t) exec_loaded_code(popst->replace, (void *)cnx, (void *)cnx->current_plugin->memory, sizeof(cnx->current_plugin->memory), &error_msg); + if (error_msg) { + fprintf(stderr, "Error when running %s: %s\n", pp->pid, error_msg); + } } else if (popst->core) { cnx->current_plugin = NULL; status = popst->core(cnx);
Fix path in CI test script for new sha3 directory structure
@@ -69,7 +69,7 @@ case $1 in export LD_LIBRARY_PATH=$LOCAL_ESP_DIR/lib export PATH=$RISCV/bin:$PATH (cd $LOCAL_CHIPYARD_DIR/generators/sha3/software && ./build.sh) - $LOCAL_SIM_DIR/simulator-chipyard-Sha3RocketConfig $LOCAL_CHIPYARD_DIR/generators/sha3/software/benchmarks/bare/sha3-rocc.riscv + $LOCAL_SIM_DIR/simulator-chipyard-Sha3RocketConfig $LOCAL_CHIPYARD_DIR/generators/sha3/software/tests/bare/sha3-rocc.riscv ;; chipyard-streaming-passthrough) make -C $LOCAL_CHIPYARD_DIR/tests
Removed TODO regarding Mono.
@@ -617,7 +617,6 @@ if(TINYSPLINE_CXX_AVAILABLE AND TARGET_SUPPORTS_SHARED_LIBS) ) # C# DLL - # XXX Should also allow for Mono-based compilation find_program(TINYSPLINE_CSHARP_COMPILER NAMES csc mcs dmcs gmcs PATHS "C:/Windows/Microsoft.NET/Framework/v3.5"
VERSION bump version to 0.10.23
@@ -29,7 +29,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 10) -set(LIBNETCONF2_MICRO_VERSION 22) +set(LIBNETCONF2_MICRO_VERSION 23) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LIBNETCONF2_SOVERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION})
Fix typo in ASYNC_WAIT_CTX_new.pod doc For the function that get the changed fds, it should be 'ASYNC_WAIT_CTX_get_changed_fds()' instead of 'ASYNC_WAIT_CTX_fds_have_changed()'. CLA: trivial
@@ -57,7 +57,7 @@ asynchronous engine is being used then normally this call will only ever return one fd. If multiple asynchronous engines are being used then more could be returned. -The function ASYNC_WAIT_CTX_fds_have_changed() can be used to detect if any fds +The function ASYNC_WAIT_CTX_get_changed_fds() can be used to detect if any fds have changed since the last call time ASYNC_start_job() returned an ASYNC_PAUSE result (or since the ASYNC_WAIT_CTX was created if no ASYNC_PAUSE result has been received). The B<numaddfds> and B<numdelfds> parameters will be populated
remove strip call from Makefile
@@ -99,12 +99,6 @@ kadnode: build/main.o $(OBJS) $(EXTRA) clean: rm -rf build/* -strip: - strip build/kadnode 2> /dev/null || true - strip build/libkadnode.a 2> /dev/null || true - strip build/libkadnode.so 2> /dev/null || true - strip build/libnss_kadnode.so.2 2> /dev/null || true - manpage: ronn --roff --manual=Kadnode\ Manual --organization=mwarning --date=2018-01-01 misc/manpage.md mv misc/manpage.1 misc/manpage
v1.2.12-pre1, see ChangeLog for detz
v1.2.11 + o Grab reference to bufferevent during write. (a976a2f Marcus Sundberg) + o add thread exit callback for cleaning (0c7d9c4 jgli) + o fix memory leak (a6b00cc jgli) + o fix thread exit callback type (c8978b6 jgli) + o Updates for threading functionality. (b634002 Mark Ellzey) + o Added evhtp_accept_socket (a497a14 Mark Ellzey) + o Forgot to export evhtp_accept_socke. (c94cb5b Mark Ellzey) + o Formatting. (4a78297 Mark Ellzey) + o Maybe I should spell rite. (2114210 Mark Ellzey) + o Fix cmake compilation issue in centos7 (dfc8c2b kaustubh-d) + o Remove double-free when SSL is used. (ee32b2a Jacob Marble) + o Add CPack commands to build a debian package. (0c4a8ec Tom Pusateri) + o [docs] added some doxygen groups (8a247f1 Mark Ellzey) + o check res for bufferevent_socket_connect (#136) (70b68d4 mthomas) + o Regression from commit 67ed0bc (c96c51e Ultima1252) + o Added build/* to gitignore (c64f1dc Mark Ellzey) + o Updating license to include Marcus Sundberg (801c52f Mark Ellzey) + o [htparse] fix up some stuff to make coverity happy (abc7eb4 Mark Ellzey) + o Update README.markdown (3058a6e Mark Ellzey) + o fixes and travis integration (ad92289 Mark Ellzey) + o check for sockopt returns (534bb48 Mark Ellzey) + o more travis updates (a9b4d38 Mark Ellzey) + o travis (12a91ab Mark Ellzey) + o Update README.markdown (b595a0d Mark Ellzey) + o added initial lightweight heap allocator (6bf121b Mark Ellzey) + o added initial lightweight heap allocator (5f634b6 Mark Ellzey) + o Added initial evhtp_json API (6e48770 Mark Ellzey) + o Removing the SIGNED.md file (outdated anyway) (d4bcfa8 Mark Ellzey) + o updates / formatting / renames (926e355 Nathan French) + o static funcs from now on will just return int (5112b6d Nathan French) + o fix htp__use_threads_ call error (2ed2f7f weijiazhen) + o FIX : Socket leakage on error #6 (d13b72b Nathan French) + o Issue#6: make evhtp_accept_socket conform to api (d0347dc Nathan French) + o Establish conformity through flags. (58da6dd Nathan French) + o request flags (71341d9 Nathan French) + o EVHTP_CONN flags (087e9a7 Nathan French) + o Flag ops (and related functions) / cleanup (0abc96f Nathan French) + o Add flags accessor (e0f04aa Nathan French) + o Added missing extern "C"'s to public headers (9a0d250 Mark Ellzey) o CMakeLists cleanup, and pretty display (fc0f5da Mark Ellzey) o Oops, added back find_package() for libevent (9cdae63 Mark Ellzey)
add windows name for CMAKE_HOST_SYSTEM_PROCESSOR
diff --git a/CMakeLists.txt b/CMakeLists.txt -index ce08409..a118b48 100755 +index ce08409..f5359c9 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -181,7 +181,10 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") @@ -8,7 +8,7 @@ index ce08409..a118b48 100755 if (IS64BIT) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64 -msse -msse2") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64") -+ if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") ++ if((${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") OR (${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "AMD64")) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse -msse2") + endif() else()
common/files: dict key can be anuthing different than =
@@ -340,7 +340,7 @@ bool files_parseDictionary(honggfuzz_t * hfuzz) char bufn[1025] = { 0 }; char bufv[1025] = { 0 }; if (sscanf(lineptr, "\"%1024[^\"]\"", bufv) != 1 && - sscanf(lineptr, "%1024[a-zA-Z0-9_-]=\"%1024[^\"]\"", bufn, bufv) != 2) { + sscanf(lineptr, "%1024[^=]=\"%1024[^\"]\"", bufn, bufv) != 2) { LOG_W("Incorrect dictionary entry: '%s'. Skipping", lineptr); continue; }
motorcontrol: remove debugprint
@@ -310,35 +310,6 @@ pbio_error_t make_motor_trajectory(pbio_port_t port, // TRACK_TARGET: NOT IMPLEMENTED } - printf( - "-----------------\n" - "t0 : %d\n" - "t1-t0: %d\n" - "t2-t0: %d\n" - "t3-t0: %d\n" - "th0 : %d\n" - "th1 : %d\n" - "th2 : %d\n" - "th3 : %d\n" - "w0 : %d\n" - "w1 : %d\n" - "a0 : %d\n" - "a2 : %d\n", - (int)traject->t0, - (int)(traject->t1-traject->t0), - (int)(traject->t2-traject->t0), - (int)(traject->t3-traject->t0), - (int)traject->th0, - (int)traject->th1, - (int)traject->th2, - (int)traject->th3, - (int)traject->w0, - (int)traject->w1, - (int)traject->a0, - (int)traject->a2 - ); - - return PBIO_SUCCESS; }
Add the yang-library NETCONF capability This commit adds the yang-library NETCONF capability, which is required by RFC 7950 section 5.6.4: ``` The server also MUST advertise the following capability in the <hello> message (line breaks and whitespaces are used for formatting reasons only): urn:ietf:params:netconf:capability:yang-library:1.0? revision=<date>&module-set-id=<id> ```
@@ -937,6 +937,13 @@ nc_server_get_cpblts_version(struct ly_ctx *ctx, LYS_VERSION version) sprintf(str, "%s?%s%s&module-set-id=%u", mod->ns, mod->rev_size ? "revision=" : "", mod->rev_size ? mod->rev[0].date : "", ly_ctx_get_module_set_id(ctx)); add_cpblt(ctx, str, &cpblts, &size, &count); + + /* Add the yang-library NETCONF capability as defined in RFC 7950 5.6.4 */ + sprintf(str, "urn:ietf:params:netconf:capability:yang-library:1.0?%s%s&module-set-id=%u", + mod->rev_size ? "revision=" : "", mod->rev_size ? mod->rev[0].date : "", + ly_ctx_get_module_set_id(ctx)); + add_cpblt(ctx, str, &cpblts, &size, &count); + continue; } else if (mod->type) { /* skip submodules */
Do not allow to 'trick' the platform and board exclude checks
@@ -478,6 +478,8 @@ ifeq ($(PLATFORM_ACTION),skip) # Skip this target. $(CONTIKI_PROJECT): @echo "Skipping $@: not for the '$(TARGET)/$(BOARD)' platform!" +%.$(TARGET): + @echo "Skipping $@: not for the '$(TARGET)/$(BOARD)' platform!" else # Build this target. # Match-anything pattern rule to allow the project makefiles to
More powershell fixes
-if ($Env:Platform -eq "x64") { mkdir -Force x64; cd x64 } -mkdir -Force $Env:Configuration" +if ($Env:Platform -eq "x64") { mkdir -Force x64; mkdir -Force x64\$Env:Configuration } +else { mkdir -Force $Env:Configuration } pwd -if ($Env:Platform -eq "x64") { cd .. } -pwd -msbuild /p:Configuration=$Env:Configuration /p:Platform=$Env:Platform /m .\picoquic.sln +msbuild "/p:Configuration=$Env:Configuration" "/p:Platform=$Env:Platform" /m .\picoquic.sln
Loop JSON test when testing for memory leaks
@@ -319,7 +319,9 @@ void fiobj_test(void) { /* test hash+array for memory leaks and performance*/ fiobj_hash_test(); /* test JSON (I know... it assumes everything else works...) */ + for (int i = 0; i < 1; ++i) { fiobj_test_hash_json(); + } /* start simple tests */ fiobj_s *obj;
compiler-families/gnu-compilers: return primary source description back to single definition
%include %{_sourcedir}/OHPC_macros -%if "%{compiler_family}" == "gnu8" %global gnu_version 8.2.0 %global gnu_major_ver 8 %global gnu_release 2 %global pname gnu8-compilers -%global source https://ftp.gnu.org/gnu/gcc/gcc-%{gnu_version}/gcc-%{gnu_version}.tar.xz -%global source_directory gcc-%{version} -%endif - -%if "%{compiler_family}" == "gnu7" -%global gnu_version 7.3.0 -%global gnu_major_ver 7 -%global gnu_release 1 -%global pname gnu7-compilers -%global source https://ftp.gnu.org/gnu/gcc/gcc-%{gnu_version}/gcc-%{gnu_version}.tar.xz -%global source_directory gcc-%{version} -%endif # Define subcomponent versions required for build @@ -41,7 +28,7 @@ Release: %{gnu_release}%{?dist} License: GNU GPL Group: %{PROJ_NAME}/compiler-families URL: http://gcc.gnu.org/ -Source0: %{source} +Source0: https://ftp.gnu.org/gnu/gcc/gcc-%{gnu_version}/gcc-%{gnu_version}.tar.xz Source1: https://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2 Source2: https://ftp.gnu.org/gnu/mpc/mpc-%{mpc_version}.tar.gz Source3: https://ftp.gnu.org/gnu/mpfr/mpfr-%{mpfr_version}.tar.gz @@ -71,7 +58,7 @@ Core package for the GNU Compiler Collection, including the C language frontend. %prep -%setup -q -n %{source_directory} -a1 -a2 -a3 +%setup -q -n gcc-%{version} -a1 -a2 -a3 ln -s gmp-%{gmp_version} gmp ln -s mpc-%{mpc_version} mpc
Add correct path to sao_shared_generics.h in makefile
@@ -133,7 +133,7 @@ libkvazaar_la_SOURCES = \ strategies/generic/encode_coding_tree-generic.h \ strategies/missing-intel-intrinsics.h \ strategies/optimized_sad_func_ptr_t.h \ - strategies/sao_shared_generics.h \ + strategies/generic/sao_shared_generics.h \ strategies/strategies-common.h \ strategies/strategies-dct.c \ strategies/strategies-dct.h \
Fix crypto/bio/b_sock.c for VMS Current VMS C-RTL does not have <sys/select.h>. <sys/socket.h> is a good enough replacement to get fd_set.
@@ -29,11 +29,15 @@ static int wsa_init_done = 0; # if defined(OPENSSL_TANDEM_FLOSS) # include <floss.h(floss_select)> # endif -# elif !defined _WIN32 +# elif defined _WIN32 +# include <winsock.h> /* for type fd_set */ +# else # include <unistd.h> -# include <sys/select.h> +# if defined __VMS +# include <sys/socket.h> # else -# include <winsock.h> /* for type fd_set */ +# include <sys/select.h> +# endif # endif # ifndef OPENSSL_NO_DEPRECATED_1_1_0
Update CHANGES.md and NEWS.md from 3.0.7
@@ -32,6 +32,13 @@ OpenSSL 3.2 OpenSSL 3.0 ----------- +### Major changes between OpenSSL 3.0.6 and OpenSSL 3.0.7 [1 Nov 2022] + + * Added RIPEMD160 to the default provider. + * Fixed regressions introduced in 3.0.6 version. + * Fixed two buffer overflows in punycode decoding functions. + ([CVE-2022-3786]) and ([CVE-2022-3602]) + ### Major changes between OpenSSL 3.0.5 and OpenSSL 3.0.6 [11 Oct 2022] * Fix for custom ciphers to prevent accidental use of NULL encryption
hv: pae: fix a issue of loading pdptrs when handle cr4 PDPTE registers should be loaded in PAE paging mode. However, current code load PDPTE registers in long mode. Acked-by: Eddie Dong
@@ -276,7 +276,7 @@ static void vmx_write_cr4(struct acrn_vcpu *vcpu, uint64_t cr4) uint64_t old_cr4 = vcpu_get_cr4(vcpu); if (((cr4 ^ old_cr4) & (CR4_PGE | CR4_PSE | CR4_PAE | CR4_SMEP | CR4_SMAP | CR4_PKE)) != 0UL) { - if (((cr4 & CR4_PAE) != 0UL) && (is_paging_enabled(vcpu)) && (is_long_mode(vcpu))) { + if (((cr4 & CR4_PAE) != 0UL) && (is_paging_enabled(vcpu)) && (!is_long_mode(vcpu))) { load_pdptrs(vcpu); }
Tools: Don't check the environment during idf.py shell completion Closes
@@ -32,8 +32,14 @@ from pkgutil import iter_modules sys.dont_write_bytecode = True import python_version_checker # noqa: E402 + +try: from idf_py_actions.errors import FatalError # noqa: E402 from idf_py_actions.tools import executable_exists, idf_version, merge_action_lists, realpath # noqa: E402 +except ImportError: + # For example, importing click could cause this. + print('Please use idf.py only in an ESP-IDF shell environment.', file=sys.stderr) + sys.exit(1) # Use this Python interpreter for any subprocesses we launch PYTHON = sys.executable @@ -46,13 +52,18 @@ os.environ['PYTHON'] = sys.executable # Can be overridden from idf.bat using IDF_PY_PROGRAM_NAME PROG = os.getenv('IDF_PY_PROGRAM_NAME', 'idf.py') +# environment variable used during click shell completion run +SHELL_COMPLETE_VAR = '_IDF.PY_COMPLETE' + +# was shell completion invoked? +SHELL_COMPLETE_RUN = SHELL_COMPLETE_VAR in os.environ + # function prints warning when autocompletion is not being performed # set argument stream to sys.stderr for errors and exceptions def print_warning(message, stream=None): - stream = stream or sys.stderr - if not os.getenv('_IDF.PY_COMPLETE'): - print(message, file=stream) + if not SHELL_COMPLETE_RUN: + print(message, file=stream or sys.stderr) def check_environment(): @@ -729,14 +740,21 @@ def signal_handler(_signal, _frame): def main(): - # Processing of Ctrl+C event for all threads made by main() signal.signal(signal.SIGINT, signal_handler) - checks_output = check_environment() + # Check the environment only when idf.py is invoked regularly from command line. + checks_output = None if SHELL_COMPLETE_RUN else check_environment() + + try: cli = init_cli(verbose_output=checks_output) - # the argument `prog_name` must contain name of the file - not the absolute path to it! - cli(sys.argv[1:], prog_name=PROG, complete_var='_IDF.PY_COMPLETE') + except ImportError: + if SHELL_COMPLETE_RUN: + pass + else: + raise + else: + cli(sys.argv[1:], prog_name=PROG, complete_var=SHELL_COMPLETE_VAR) def _valid_unicode_config():
more feature guard cleanup
@@ -371,10 +371,12 @@ typedef enum { #define _libssh2_cipher_aes256 MBEDTLS_CIPHER_AES_256_CBC #define _libssh2_cipher_aes192 MBEDTLS_CIPHER_AES_192_CBC #define _libssh2_cipher_aes128 MBEDTLS_CIPHER_AES_128_CBC -#if LIBSSH2_BLOWFISH +#ifdef MBEDTLS_CIPHER_BLOWFISH_CBC #define _libssh2_cipher_blowfish MBEDTLS_CIPHER_BLOWFISH_CBC #endif +#ifdef MBEDTLS_CIPHER_ARC4_128 #define _libssh2_cipher_arcfour MBEDTLS_CIPHER_ARC4_128 +#endif #define _libssh2_cipher_cast5 MBEDTLS_CIPHER_NULL #define _libssh2_cipher_3des MBEDTLS_CIPHER_DES_EDE3_CBC
libbpf-tools: update vfsstat for libbpf 1.0 Switch to libbpf 1.0 mode and adapt libbpf API usage accordingly.
@@ -151,15 +151,9 @@ int main(int argc, char **argv) if (err) return err; + libbpf_set_strict_mode(LIBBPF_STRICT_ALL); libbpf_set_print(libbpf_print_fn); - err = bump_memlock_rlimit(); - if (err) { - fprintf(stderr, "failed to increase rlimit: %s\n", - strerror(errno)); - return 1; - } - skel = vfsstat_bpf__open(); if (!skel) { fprintf(stderr, "failed to open BPF skelect\n");
Fix M3_MIN
@@ -177,7 +177,7 @@ void m3StackCheck () size_t addr = (size_t)&stack; size_t stackEnd = stack_end; - stack_end = m3_min (stack_end, addr); + stack_end = M3_MIN (stack_end, addr); // if (stackEnd != stack_end) // printf ("maxStack: %ld\n", m3StackGetMax ());
feat(FM650):Add curl head files path
@@ -15,9 +15,9 @@ BOAT_COPY := cp # External include path and libraries -EXTERNAL_INC := +EXTERNAL_INC := /home/linux/FM650/fg650-opensdk -EXTERNAL_LIBS := -lcurl +#EXTERNAL_LIBS := -lcurl EXTERNAL_CFLAGS :=
Update scope~-help.pd remove yet another "Scope~" mention
@@ -74,8 +74,6 @@ cloned from Max/MSP; #X text 69 301 Change the phase of the oscillator to check how it affects the plot; #X text 519 32 Try different frequencies now:; -#X text 67 57 If signals are connected to both the left and right inlets -\, [Scope~] operates in X-Y mode.; #X text 67 94 When in X-Y mode \, [scope~] plots points whose horizontal axis (X) corresponds to the signal's values coming into the left inlet and whose vertical axis (Y) corresponds to the signal's values coming @@ -113,24 +111,26 @@ displays in "Y Mode" only.; 74 79 77 96 98 102 0; #X obj 586 193 cyclone/scope~ 200 200 2 3 256 -1 1 0 0 0 0 205 229 232 74 79 77 96 98 102 0; +#X text 67 57 If signals are connected to both the left and right inlets +\, [scope~] operates in X-Y mode.; #X connect 0 0 1 0; -#X connect 1 0 17 1; -#X connect 2 0 21 0; -#X connect 3 0 21 0; -#X connect 4 0 21 0; -#X connect 5 0 21 0; -#X connect 6 0 21 0; -#X connect 7 0 21 0; -#X connect 13 0 14 0; -#X connect 14 0 21 1; -#X connect 16 0 27 0; -#X connect 17 0 27 1; -#X connect 18 0 28 0; -#X connect 19 0 18 0; -#X connect 20 0 21 0; -#X connect 21 0 28 1; -#X connect 24 0 21 0; -#X connect 25 0 22 1; +#X connect 1 0 16 1; +#X connect 2 0 20 0; +#X connect 3 0 20 0; +#X connect 4 0 20 0; +#X connect 5 0 20 0; +#X connect 6 0 20 0; +#X connect 7 0 20 0; +#X connect 12 0 13 0; +#X connect 13 0 20 1; +#X connect 15 0 26 0; +#X connect 16 0 26 1; +#X connect 17 0 27 0; +#X connect 18 0 17 0; +#X connect 19 0 20 0; +#X connect 20 0 27 1; +#X connect 23 0 20 0; +#X connect 24 0 21 1; #X restore 472 233 pd X-Y_Mode; #X obj 46 116 hsl 100 17 20 200 1 0 empty empty empty 5 8 1 10 -228856 -1 -1 0 0;
Allow use BLOCKRELEASE. Doesn't do anything at the moment.
@@ -7193,7 +7193,11 @@ static int translate_ani_id(const char *value, s_model *newchar, s_anim *newanim newanim->range.x.min = 1; newanim->range.x.max = 100; } - else if (stricmp(value, "blockstart") == 0) // Now enemies can block attacks on occasion + else if (stricmp(value, "blockrelease") == 0) + { + ani_id = ANI_BLOCKRELEASE; + } + else if (stricmp(value, "blockstart") == 0) { ani_id = ANI_BLOCKSTART; }
Fix CID 168586
@@ -200,10 +200,12 @@ main(int argc, char *argv[]) #ifdef _WIN32 if ((fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == INVALID_SOCKET) { printf("socket() failed with error: %d\n", WSAGetLastError()); + exit(EXIT_FAILURE); } #else if ((fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) { perror("socket"); + exit(EXIT_FAILURE); } #endif memset(&sin, 0, sizeof(struct sockaddr_in)); @@ -214,15 +216,17 @@ main(int argc, char *argv[]) sin.sin_port = htons(atoi(argv[2])); if (!inet_pton(AF_INET, argv[1], &sin.sin_addr.s_addr)){ printf("error: invalid address\n"); - exit(1); + exit(EXIT_FAILURE); } #ifdef _WIN32 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { printf("bind() failed with error: %d\n", WSAGetLastError()); + exit(EXIT_FAILURE); } #else if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) < 0) { perror("bind"); + exit(EXIT_FAILURE); } #endif memset(&sin, 0, sizeof(struct sockaddr_in)); @@ -233,15 +237,17 @@ main(int argc, char *argv[]) sin.sin_port = htons(atoi(argv[4])); if (!inet_pton(AF_INET, argv[3], &sin.sin_addr.s_addr)){ printf("error: invalid address\n"); - exit(1); + exit(EXIT_FAILURE); } #ifdef _WIN32 if (connect(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { printf("connect() failed with error: %d\n", WSAGetLastError()); + exit(EXIT_FAILURE); } #else if (connect(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) < 0) { perror("connect"); + exit(EXIT_FAILURE); } #endif #ifdef SCTP_DEBUG
update visibility levels
@@ -46,8 +46,7 @@ export const VISIBILITY_LEVELS = { user: 5, advanced: 4, developer: 3, - debug: 2, - disabled: 1, + internal: 2, } export const visibility = (name) => VISIBILITY_LEVELS[name]
Use sizeof(string) to determine buffer size
@@ -1259,8 +1259,7 @@ int h2o_configurator__do_parse_mapping(h2o_configurator_command_t *cmd, yoml_t * return -1; } if ((keys[j].type_mask & (1u << element->value->type)) == 0) { - char permitted_types[40] = ""; - PTLS_BUILD_ASSERT(sizeof(permitted_types) >= sizeof(" or a scalar or a sequence or a mapping")); + char permitted_types[sizeof(" or a scalar or a sequence or a mapping")] = ""; if ((keys[j].type_mask & (1u << YOML_TYPE_SCALAR)) != 0) strcat(permitted_types, " or a scalar"); if ((keys[j].type_mask & (1u << YOML_TYPE_SEQUENCE)) != 0)
Add documentation for -pkeyopt_passin Add documentation to new parameter and two examples showcasing scrypt KDF.
@@ -29,6 +29,7 @@ B<openssl> B<pkeyutl> [B<-kdf algorithm>] [B<-kdflen length>] [B<-pkeyopt opt:value>] +[B<-pkeyopt_passin opt:passarg>] [B<-hexdump>] [B<-asn1parse>] [B<-rand file...>] @@ -140,6 +141,13 @@ Set the output length for KDF. Public key options specified as opt:value. See NOTES below for more details. +=item B<-pkeyopt_passin opt:passarg> + +Allows reading a public key option B<opt> from stdin or a password source. If +only opt is specified, the user will be prompted to enter the value on stdin. +Alternatively, passarg can be specified which can be any value supported by +B<PASS PHRASE ARGUMENTS> in L<openssl(1)>. + =item B<-hexdump> hex dump the output data. @@ -320,6 +328,16 @@ seed consisting of the single byte 0xFF: openssl pkeyutl -kdf TLS1-PRF -kdflen 48 -pkeyopt md:SHA256 \ -pkeyopt hexsecret:ff -pkeyopt hexseed:ff -hexdump +Derive a key using B<scrypt> where the password is read from command line: + + openssl pkeyutl -kdf scrypt -kdflen 16 -pkeyopt_passin pass \ + -pkeyopt hexsalt:aabbcc -pkeyopt N:16384 -pkeyopt r:8 -pkeyopt p:1 + +Derive using the same algorithm, but read key from environment variable MYPASS: + + openssl pkeyutl -kdf scrypt -kdflen 16 -pkeyopt_passin pass:env:MYPASS \ + -pkeyopt hexsalt:aabbcc -pkeyopt N:16384 -pkeyopt r:8 -pkeyopt p:1 + =head1 SEE ALSO L<genpkey(1)>, L<pkey(1)>, L<rsautl(1)>
docker: add bison debug symbols to debian sid image
@@ -9,6 +9,7 @@ RUN apt-get update && apt-get -y install \ automake \ autotools-dev \ bison \ + bison-dbgsym \ build-essential \ checkinstall \ clang-9 \
Fix the declaration type of `lily_gc_stopper`.
/* When destroying a value with a gc tag, set the tag to this to prevent destroy from reentering it. The values are useless, but cannot be 0 or this will be optimized as a NULL pointer. */ -const lily_gc_entry lily_gc_stopper = +const lily_gc_entry *lily_gc_stopper = +&(lily_gc_entry) { 1, 1,
examples/getrandom: provide a getrandom wrapper
+#define _GNU_SOURCE #include <stdio.h> -#include <sys/random.h> +#include <unistd.h> +#include <sys/syscall.h> +#include <linux/random.h> #include <errno.h> #include <math.h> static int hash[256]; +int +__getrandom(void *buf, int i, int f) +{ + return syscall(SYS_getrandom, buf, i, f); +} + int main(int argc, char **argvp) { int r, i, j; @@ -16,7 +25,7 @@ int main(int argc, char **argvp) return 1; } - r = getrandom(buffer, BUF_LEN, 0); + r = __getrandom(buffer, BUF_LEN, 0); if (r != 128) { printf("didn't get enough bytes: r = %d, errno = %d\n", r, errno); return 2;
IP6 FIB: walk table for dump
@@ -331,19 +331,17 @@ send_ip6_fib_details (vpe_api_main_t * am, typedef struct apt_ip6_fib_show_ctx_t_ { - u32 fib_index; fib_node_index_t *entries; } api_ip6_fib_show_ctx_t; -static void -api_ip6_fib_table_put_entries (clib_bihash_kv_24_8_t * kvp, void *arg) +static fib_table_walk_rc_t +api_ip6_fib_table_put_entries (fib_node_index_t fei, void *arg) { api_ip6_fib_show_ctx_t *ctx = arg; - if ((kvp->key[2] >> 32) == ctx->fib_index) - { - vec_add1 (ctx->entries, kvp->value); - } + vec_add1 (ctx->entries, fei); + + return (FIB_TABLE_WALK_CONTINUE); } static void @@ -352,18 +350,15 @@ api_ip6_fib_table_get_all (vl_api_registration_t * reg, fib_table_t * fib_table) { vpe_api_main_t *am = &vpe_api_main; - ip6_main_t *im6 = &ip6_main; fib_node_index_t *fib_entry_index; api_ip6_fib_show_ctx_t ctx = { - .fib_index = fib_table->ft_index, .entries = NULL, }; fib_route_path_encode_t *api_rpaths; const fib_prefix_t *pfx; - BV (clib_bihash_foreach_key_value_pair) - ((BVT (clib_bihash) *) & im6->ip6_table[IP6_FIB_TABLE_NON_FWDING]. - ip6_hash, api_ip6_fib_table_put_entries, &ctx); + ip6_fib_table_walk (fib_table->ft_index, + api_ip6_fib_table_put_entries, &ctx); vec_sort_with_function (ctx.entries, fib_entry_cmp_for_sort);