message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix record_element_end_handler() to work for builds
@@ -6531,7 +6531,7 @@ record_element_end_handler(void *userData, { CharData *storage = (CharData *)userData; - CharData_AppendXMLChars(storage, "/", 1); + CharData_AppendXMLChars(storage, XCS("/"), 1); CharData_AppendXMLChars(storage, name, -1); }
Send scroll events as a touchscreen Scroll events were sent with a mouse input device. When scrolling on a list, this could cause the whole list to be focused, and drawn with the focus color as background. Send scroll events with a touchscreen input device instead (like motion events). Fixes <https://github.com/Genymobile/scrcpy/issues/1362>
@@ -215,7 +215,7 @@ public class Controller { MotionEvent event = MotionEvent .obtain(lastTouchDown, now, MotionEvent.ACTION_SCROLL, 1, pointerProperties, pointerCoords, 0, 0, 1f, 1f, DEVICE_ID_VIRTUAL, 0, - InputDevice.SOURCE_MOUSE, 0); + InputDevice.SOURCE_TOUCHSCREEN, 0); return injectEvent(event); }
grib_set fails randomly: Unable to set stepRange
@@ -614,7 +614,7 @@ static int pack_long(grib_accessor* a, const long* val, size_t *len) { char buff[100]; size_t bufflen=100; - char sval[100]; + char sval[100] = {0}; char* p=sval; size_t svallen=100; grib_accessor_g1step_range* self = (grib_accessor_g1step_range*)a;
Fix typo in BREAKING.md
+ Changed and renamed `RWops.RWseek()` to `RWops.Seek()` (0ee14f91) + Changed and renamed `RWops.RWread()` to `RWops.Read()` and `RWops.Read2` (0ee14f91) + Changed and renamed `RWops.RWtell()` to `RWops.Tell()` (0ee14f91) -+ Changed and renamed `RWops.RWwrite()` to `RWops.Write()` and `RWops.Write` (0ee14f91) ++ Changed and renamed `RWops.RWwrite()` to `RWops.Write()` and `RWops.Write2()` (0ee14f91) + Changed and renamed `RWops.RWclose()` to `RWops.Close()` (0ee14f91) ### v0.2..v0.3
Update spec tests lists
@@ -91,9 +91,9 @@ def formatValueRaw(num, t): return str(num) def formatValueHex(num, t): - if t == "f32": + if t == "f32" or t == "i32": return "{0:#0{1}x}".format(int(num), 8+2) - elif t == "f64": + elif t == "f64" or t == "i64": return "{0:#0{1}x}".format(int(num), 16+2) else: return str(num) @@ -217,8 +217,8 @@ def runInvoke(test): value = str(test.expected[0]['value']) expect = "result " + value - if actual_val != None and (t == "f32" or t == "f64"): - if (value == "<Canonical NaN>" or value == "<Arithmetic NaN>"): + if actual_val != None: + if (t == "f32" or t == "f64") and (value == "<Canonical NaN>" or value == "<Arithmetic NaN>"): val = binaryToFloat(actual_val, t) #warning(f"{actual_val} => {val}") if math.isnan(val): @@ -277,25 +277,38 @@ elif args.all: jsonFiles.sort() else: jsonFiles = list(map(lambda x : f"./core/{x}.json", [ - #--- Complete --- + #--- 100% Complete --- "i32", "i64", "stack", "fac", + "f32", "f64", "f32_cmp", "f64_cmp", "f32_bitwise", "f64_bitwise", - "f32", "f64", - "float_misc", - "conversions", - #--- In progress --- + "call", "break-drop", + "tee_local", "set_local", + "forward", + "func_ptrs", + #--- Almost ready --- + #"address", "align", + #"memory", + #"if", + #"nop", + #"call_indirect", #"float_literals", - #"float_exprs", + #"float_misc", + #--- In progress --- + #"return", #"endianness", - #"int_literals", + #"conversions", + #"globals", + #"func", + #"unreachable", "loop", "block", "br", "br_if", "br_table", + #--- Future --- + #"float_memory", + #"float_exprs", + #"int_literals", # stack underflow #"int_exprs", - #"if", #"elem", #"switch", - #"call", #"get_local", - #"tee_local", ])) for fn in jsonFiles:
hw: drivers: hash_kinetis: fix small buffer hashing Hashing a message with multiple blocks of length<=64 block length) was broken due to proper usage of the mmCAU padding. This commit fixes the handling of the pad data.
@@ -68,6 +68,8 @@ kinetis_hash_start(struct hash_dev *hash, void *ctx, uint16_t algo) return 0; } +#define MIN(a, b) ((a) < (b) ? (a) : (b)) + static int kinetis_hash_update(struct hash_dev *hash, void *ctx, uint16_t algo, const void *inbuf, uint32_t inlen) @@ -76,21 +78,35 @@ kinetis_hash_update(struct hash_dev *hash, void *ctx, uint16_t algo, uint32_t remain; struct hash_sha256_context *sha256ctx; uint8_t *u8p; + uint32_t len; sha256ctx = (struct hash_sha256_context *)ctx; i = 0; remain = inlen; u8p = (uint8_t *)inbuf; + if (sha256ctx->remain > 0) { + len = MIN(SHA256_BLOCK_LEN - sha256ctx->remain, inlen); + memcpy(&sha256ctx->pad[sha256ctx->remain], &u8p[0], len); + sha256ctx->remain += len; + remain -= len; + + if (sha256ctx->remain == SHA256_BLOCK_LEN) { + cau_sha256_hash_n(sha256ctx->pad, 1, sha256ctx->output); + sha256ctx->remain = 0; + sha256ctx->len += SHA256_BLOCK_LEN; + i = len; + } + } + while (remain >= SHA256_BLOCK_LEN) { cau_sha256_hash_n((const unsigned char *)&u8p[i], 1, sha256ctx->output); remain -= SHA256_BLOCK_LEN; i += SHA256_BLOCK_LEN; + sha256ctx->len += SHA256_BLOCK_LEN; } - sha256ctx->len += i; - if (remain > 0) { memcpy(sha256ctx->pad, &u8p[i], remain); sha256ctx->remain = remain;
[kernel] fix bug of initialization
using namespace RELATION; // #define DEBUG_NOCOLOR -// #define DEBUG_STDOUT -// #define DEBUG_MESSAGES +#define DEBUG_STDOUT +#define DEBUG_MESSAGES #include "debug.h" int LsodarOSI::count_NST = 0; @@ -242,6 +242,8 @@ void LsodarOSI::initializeDynamicalSystem(Model& m, double t, SP::DynamicalSyste { LagrangianDS& lds = *std11::static_pointer_cast<LagrangianDS>(ds); lds.connectToDS(getSizeMem()); + lds.initRhs(t); + _xWork->insertPtr(lds.q()); _xWork->insertPtr(lds.velocity()); workVectors.resize(OneStepIntegrator::work_vector_of_vector_size); @@ -252,6 +254,7 @@ void LsodarOSI::initializeDynamicalSystem(Model& m, double t, SP::DynamicalSyste else _xWork->insertPtr(ds->x()); + DEBUG_END("LsodarOSI::initializeDynamicalSystem(Model& m, double t, SP::DynamicalSystem ds)\n"); } @@ -356,6 +359,7 @@ void LsodarOSI::initializeInteraction(double t0, Interaction &inter, } inter.swapInMemory(); + } void LsodarOSI::initialize(Model& m) { @@ -383,11 +387,7 @@ void LsodarOSI::initialize(Model& m) initializeInteraction(m.t0(), inter, indexSet0->properties(*ui), *_dynamicalSystemsGraph); } - - - - - + computeRhs(m.t0(),*_dynamicalSystemsGraph); // Integer parameters for LSODAROSI are saved in vector intParam. @@ -660,6 +660,7 @@ void LsodarOSI::computeFreeOutput(InteractionsGraph::VDescriptor& vertex_inter, if(relationType == Lagrangian) { Xfree = DSlink[LagrangianR::xfree]; + DEBUG_EXPR(Xfree->display();); } // else if (relationType == NewtonEuler) // {
Update minor changes in travis for npm deploy.
@@ -93,6 +93,6 @@ deploy: on: master # TODO: Change to master or tags - provider: script script: - - NPM_API_KEY=${NPM_KEY} npm publish $TRAVIS_BUILD_DIR/source/ports/node_port --access public # TODO: --tag <tag> + - npm publish $TRAVIS_BUILD_DIR/source/ports/node_port --access public # TODO: --tag <tag> skip_cleanup: true on: master # TODO: Change to master or tags
Add +=byts type. Similar to octs, but for "normal" byte order as found in most @ except
:::: 2q: molds and mold builders :: :: :: :: ++= byts [wid=@ud dat=@] :: bytes, MSB first ++ char @t :: UTF8 byte ++ cord @t :: UTF8, LSB first ++ date {{a/? y/@ud} m/@ud t/tarp} :: parsed date
board/npcx_evb_arm/board.c: Format with clang-format BRANCH=none TEST=none
/******************************************************************************/ /* ADC channels. Must be in the exactly same order as in enum adc_channel. */ const struct adc_t adc_channels[] = { - [ADC_CH_0] = {"ADC0", NPCX_ADC_CH0, ADC_MAX_VOLT, ADC_READ_MAX+1, 0}, - [ADC_CH_1] = {"ADC1", NPCX_ADC_CH1, ADC_MAX_VOLT, ADC_READ_MAX+1, 0}, - [ADC_CH_2] = {"ADC2", NPCX_ADC_CH2, ADC_MAX_VOLT, ADC_READ_MAX+1, 0}, + [ADC_CH_0] = { "ADC0", NPCX_ADC_CH0, ADC_MAX_VOLT, ADC_READ_MAX + 1, + 0 }, + [ADC_CH_1] = { "ADC1", NPCX_ADC_CH1, ADC_MAX_VOLT, ADC_READ_MAX + 1, + 0 }, + [ADC_CH_2] = { "ADC2", NPCX_ADC_CH2, ADC_MAX_VOLT, ADC_READ_MAX + 1, + 0 }, }; BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); @@ -79,41 +82,31 @@ BUILD_ASSERT(ARRAY_SIZE(mft_channels) == MFT_CH_COUNT); /******************************************************************************/ /* I2C ports */ const struct i2c_port_t i2c_ports[] = { - { - .name = "master0-0", + { .name = "master0-0", .port = NPCX_I2C_PORT0_0, .kbps = 100, .scl = GPIO_I2C0_SCL0, - .sda = GPIO_I2C0_SDA0 - }, - { - .name = "master0-1", + .sda = GPIO_I2C0_SDA0 }, + { .name = "master0-1", .port = NPCX_I2C_PORT0_1, .kbps = 100, .scl = GPIO_I2C0_SCL1, - .sda = GPIO_I2C0_SDA1 - }, - { - .name = "master1", + .sda = GPIO_I2C0_SDA1 }, + { .name = "master1", .port = NPCX_I2C_PORT1, .kbps = 100, .scl = GPIO_I2C1_SCL, - .sda = GPIO_I2C1_SDA - }, - { - .name = "master2", + .sda = GPIO_I2C1_SDA }, + { .name = "master2", .port = NPCX_I2C_PORT2, .kbps = 100, .scl = GPIO_I2C2_SCL, - .sda = GPIO_I2C2_SDA - }, - { - .name = "master3", + .sda = GPIO_I2C2_SDA }, + { .name = "master3", .port = NPCX_I2C_PORT3, .kbps = 100, .scl = GPIO_I2C3_SCL, - .sda = GPIO_I2C3_SDA - }, + .sda = GPIO_I2C3_SDA }, }; const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
Base cpp tasklet class generation added. NTasklet -> NTaskletReg for all the staff that generates code. Added TTaskletComponents - common class for tasklet descriptor analysis. ISSUE:
@@ -4523,7 +4523,8 @@ macro TASKLET() { # CPP SET_APPEND(CPP_PROTO_OPTS $_PROTO_PLUGIN_ARGS_BASE(tasklet_cpp tasklet/gen/cpp)) - SET_APPEND(PROTO_HEADER_INCLUDE tasklet/runtime/cpp/execute.h) + SET_APPEND(CPP_PROTO_OUTS \${output;hide;noauto;norel;nopath;noext;suf=.tasklet.h:File}) + SET(CPP_PROTO_SUFFIXES $CPP_PROTO_SUFFIXES .tasklet.h) # Python SET_APPEND(PY_PROTO_OPTS $_PROTO_PLUGIN_ARGS_BASE(tasklet_py tasklet/gen/python))
chat-cli: support per-target glyph unbinding
[%leave target] :: nuke target :: [%bind glyph target] :: bind glyph - [%unbind glyph] :: unbind glyph + [%unbind glyph (unit target)] :: unbind glyph [%what (unit $@(char target))] :: glyph lookup :: [%settings ~] :: show active settings :: +unbind-glyph: remove all binding for glyph :: ++ unbind-glyph - |= =glyph ::TODO do we really not want this optionally per-target? + |= [=glyph targ=(unit target)] ^- (quip move _this) + ?^ targ + =. binds (~(del ju binds) glyph u.targ) + =. bound (~(del by bound) u.targ) + [(show-glyph:sh-out glyph ~) this] =/ ole=(set target) (~(get ju binds) glyph) =. binds (~(del by binds) glyph) ;~((glue ace) (tag %leave) targ) :: ;~((glue ace) (tag %bind) glyph targ) - ;~((glue ace) (tag %unbind) glyph) + ;~((glue ace) (tag %unbind) ;~(plug glyph (punt ;~(pfix ace targ)))) ;~(plug (perk %what ~) (punt ;~(pfix ace ;~(pose glyph targ)))) :: ;~(plug (tag %settings) (easy ~)) :_ [prompt ~] %- note %+ weld "set: {[glyph ~]} " - ?~ target "nothing" + ?~ target "unbound" ~(phat tr u.target) -- ::
VERSION bump to version 2.1.76
@@ -64,7 +64,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 2) set(SYSREPO_MINOR_VERSION 1) -set(SYSREPO_MICRO_VERSION 75) +set(SYSREPO_MICRO_VERSION 76) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICRO_VERSION}) # Version of the library
Move from TCHAR to whchar_t, since GetModuleFileName takes a LPWSTR, not a TCHAR*
*/ #include "pal/PAL.hpp" +#include "utils/Utils.hpp" #include <Windows.h> @@ -46,7 +47,7 @@ namespace PAL_NS_BEGIN { DWORD curBufferLength = MAX_PATH; bool getFileNameSucceeded = false; - std::vector<TCHAR> curExeFullPathBuffer(curBufferLength); + std::vector<wchar_t> curExeFullPathBuffer(curBufferLength); // Try increasing buffer size until it work or until we reach the maximum size of 0x7fff (32 Kb) do @@ -81,7 +82,7 @@ namespace PAL_NS_BEGIN { if (getFileNameSucceeded) { - return std::wstring(curExeFullPathBuffer.begin(), curExeFullPathBuffer.end()); + return std::wstring{curExeFullPathBuffer.cbegin(), curExeFullPathBuffer.cend()}; } return{}; @@ -236,8 +237,7 @@ namespace PAL_NS_BEGIN { pRtlConvertDeviceFamilyInfoToString(&platformBufferSize, &deviceClassBufferSize, platformString.get(), deviceString.get()); std::wstring temp; temp.assign(platformString.get()); - std::string str(temp.begin(), temp.end()); - m_device_class = str; + m_device_class = to_utf8_string(temp); } } #endif
Added missing stream argument to error message. Found by Coverity (CID 353386).
@@ -871,7 +871,8 @@ nxt_unit_process_new_port(nxt_unit_ctx_t *ctx, nxt_unit_recv_msg_t *recv_msg) if (nxt_slow_path(ioctl(recv_msg->fd, FIONBIO, &nb) == -1)) { nxt_unit_alert(ctx, "#%"PRIu32": new_port: ioctl(%d, FIONBIO, 0) " - "failed: %s (%d)", recv_msg->fd, strerror(errno), errno); + "failed: %s (%d)", + recv_msg->stream, recv_msg->fd, strerror(errno), errno); return NXT_UNIT_ERROR; }
parser yang BUGFIX double free
@@ -2081,8 +2081,9 @@ parse_type_pattern_modifier(struct lysp_yang_ctx *ctx, struct lysp_restr *restr) assert(buf[0] == LYSP_RESTR_PATTERN_ACK); buf[0] = LYSP_RESTR_PATTERN_NACK; - LY_CHECK_GOTO(ret = lydict_insert_zc(PARSER_CTX(ctx), buf, &restr->arg.str), cleanup); + ret = lydict_insert_zc(PARSER_CTX(ctx), buf, &restr->arg.str); buf = NULL; + LY_CHECK_GOTO(ret, cleanup); YANG_READ_SUBSTMT_FOR_GOTO(ctx, kw, word, word_len, ret, cleanup) { switch (kw) { @@ -2422,7 +2423,6 @@ parse_maxelements(struct lysp_yang_ctx *ctx, uint32_t *max, uint16_t *flags, str /* unbounded */ *max = 0; } - free(buf); YANG_READ_SUBSTMT_FOR_GOTO(ctx, kw, word, word_len, ret, cleanup) { switch (kw) {
ble_mesh: Update lightness last state when actual state is changed
@@ -192,6 +192,15 @@ int bt_mesh_update_binding_state(struct bt_mesh_model *model, bt_mesh_server_stop_transition(&srv->actual_transition); srv->state->lightness_actual = value->light_lightness_actual.lightness; + /** + * Whenever the Light Lightness Actual state is changed with a non-transactional + * message or a completed sequence of transactional messages to a non-zero value, + * the value of the Light Lightness Last shall be set to the value of the Light + * Lightness Actual. + */ + if (srv->state->lightness_actual) { + srv->state->lightness_last = srv->state->lightness_actual; + } light_lightness_publish(model, BLE_MESH_MODEL_OP_LIGHT_LIGHTNESS_STATUS); break; }
time_format examples
@@ -27,6 +27,11 @@ frame_timing ### Display the current system time # time +### Time formatting examples +# time_format = %H:%M +# time_format = [ %T %F ] +# time_format = %X # locally formatted time, because of limited glyph range, missing characters may show as '?' (e.g. japanese) + ### Change the hud font size (default is 24) font_size=24
Add debugging for CMake NodeJS as an option.
@@ -35,6 +35,8 @@ if(NODEJS_INCLUDE_DIR) set(NODEJS_FIND_QUIETLY TRUE) endif() +option(NODEJS_CMAKE_DEBUG "Print paths for debugging NodeJS dependencies." OFF) + # Include package manager include(FindPackageHandleStandardArgs)
Change size utility to parse sysv output format
@@ -30,17 +30,23 @@ def get_reference_binary(): def run_size(binary): - args = ["size", binary] + args = ["size", "--format=sysv", binary] result = sp.run(args, stdout=sp.PIPE, stderr=sp.PIPE, check=True, universal_newlines=True) - lines = result.stdout.splitlines() - assert len(lines) == 2 - values = lines[1].split() + data = {} + patterns = {"Code": ".text", "RO": ".rodata", "ZI": ".bss"} - codeSection = float(values[0]) - roSection = float(values[1]) - ziSection = float(values[2]) + lines = result.stdout.splitlines() + for line in lines: + for key, value in patterns.items(): + if line.startswith(value): + size = float(line.split()[1]) + data[key] = size + + codeSection = data["Code"] + roSection = data["RO"] + ziSection = data["ZI"] return (codeSection, roSection, ziSection)
Fix mDNSResponder compile errors.
@@ -779,12 +779,13 @@ _papplPrinterUnregisterDNSSDNoLock( { DNSServiceRefDeallocate(printer->dns_sd_ipp_ref); printer->dns_sd_ipp_ref = NULL; - printer->dns_sd_loc_ref = NULL; + printer->dns_sd_ipp_loc_ref = NULL; } if (printer->dns_sd_ipps_ref) { DNSServiceRefDeallocate(printer->dns_sd_ipps_ref); printer->dns_sd_ipps_ref = NULL; + printer->dns_sd_ipps_loc_ref = NULL; } if (printer->dns_sd_http_ref) {
apps/graphics/littlevgl/Makefile: Fix a dependency timestamp problem.
@@ -104,7 +104,7 @@ $(LVGL_UNPACKNAME): $(LVGL_TARBALL) $(APPDIR)/include/graphics/lvgl.h: $(LVGL_UNPACKNAME) lvgl/lvgl.h @echo "CP: lvgl/lvgl.h" - $(Q) cp -a lvgl/lvgl.h $(APPDIR)/include/graphics/lvgl.h + $(Q) cp lvgl/lvgl.h $(APPDIR)/include/graphics/lvgl.h $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@)
Added line directing user to onine man page to print_usage function.
@@ -28,6 +28,7 @@ static void print_usage(void) printf(" -v, --verbose - verbose output\n"); printf(" -q, --quiet - quiet output\n"); printf("\n"); + printf("For more information see https://mpifileutils.readthedocs.io.\n"); fflush(stdout); }
[mod_expire] look up expire fallback "" explicitly equivalent to prior code, but more direct (legibile in code) to look up empty string than to walk array. Might be marginally faster to walk array when the list is short, but the lookup is also fairly quick in that case, too.
@@ -352,7 +352,7 @@ CONNECTION_FUNC(mod_expire_handler) { vb = http_header_response_get(con, HTTP_HEADER_CONTENT_TYPE, CONST_STR_LEN("Content-Type")); ds = (NULL != vb) ? (data_string *)array_match_key_prefix(p->conf.expire_mimetypes, vb) - : (data_string *)array_match_key_prefix_klen(p->conf.expire_mimetypes, CONST_STR_LEN("")); + : (data_string *)array_get_element_klen(p->conf.expire_mimetypes, CONST_STR_LEN("")); if (NULL == ds) return HANDLER_GO_ON; vb = ds->value; }
esp_psram: improve mapping log when physical range is larger After this commit, when physical address is larger than vaddr range, driver will still map as much as it can, but also give a verbose level log to show the actual mapped size
@@ -159,8 +159,8 @@ esp_err_t esp_psram_init(void) //----------------------------------Map the PSRAM physical range to MMU-----------------------------// intptr_t vaddr_start = mmu_get_psram_vaddr_start(); if (vaddr_start + psram_available_size > mmu_get_psram_vaddr_end()) { - ESP_EARLY_LOGV(TAG, "Virtual address not enough for PSRAM!"); psram_available_size = mmu_get_psram_vaddr_end() - vaddr_start; + ESP_EARLY_LOGV(TAG, "Virtual address not enough for PSRAM, map as much as we can. %dMB is mapped", psram_available_size / 1024 / 1024); } #if CONFIG_IDF_TARGET_ESP32
admin/lmod: retain some changes from
@@ -101,11 +101,7 @@ make DESTDIR=$RPM_BUILD_ROOT install ######################################################################## # NOOP if running under known resource manager -if [ ! -z "\$SLURM_NODELIST" ];then - return -fi - -if [ ! -z "\$PBS_NODEFILE" ];then +if [ ! -z "\$SLURM_NODELIST" ] | [ ! -z "\$PBS_NODEFILE" ]; then return fi @@ -131,7 +127,7 @@ module try-add ohpc EOF %{__cat} << EOF > %{buildroot}/%{_sysconfdir}/profile.d/lmod.csh -#!/bin/sh +#!/bin/csh # -*- shell-script -*- ######################################################################## # This is the system wide source file for setting up
Fixed inconcsistent file name Closes
@@ -384,7 +384,7 @@ Command usage examples: .. highlight:: none -1. Collect SystemView tracing data to files "pro-cpu.SVDat" and "pro-cpu.SVDat". The files will be saved in "openocd-esp32" directory. +1. Collect SystemView tracing data to files "pro-cpu.SVDat" and "app-cpu.SVDat". The files will be saved in "openocd-esp32" directory. ::
test/test_test.c: add CRYPTO_memcmp regression test.
@@ -531,6 +531,10 @@ static int test_bn_output(int n) return 1; } +static int test_memcmp(void) +{ + return CRYPTO_memcmp("ab","cd",2); +} int setup_tests(void) { @@ -553,6 +557,7 @@ int setup_tests(void) ADD_TEST(test_messages); ADD_TEST(test_single_eval); ADD_TEST(test_output); + ADD_TEST(test_memcmp); ADD_ALL_TESTS(test_bn_output, OSSL_NELEM(bn_output_tests)); return 1; }
Fixed CI test failure because env variable value contains | Different CI have different env variable settings. Previous commit works on some platforms, however failed on others. For test cases robustness, here I don't seperate 'variable=value' to 2 columns, just process the whole row as one column.
@@ -112,9 +112,9 @@ drop external table check_env; -- end_ignore CREATE EXTERNAL WEB TABLE table_env (name TEXT, val TEXT ) - EXECUTE E'env | sed ''s/=/|/''' ON SEGMENT 0 - FORMAT 'TEXT' (DELIMITER '|'); -SELECT name, val FROM table_env WHERE name LIKE 'GP_QUERY%' ORDER BY name ASC; + EXECUTE E'env' ON SEGMENT 0 + FORMAT 'TEXT'; +SELECT * FROM table_env WHERE val LIKE 'GP_QUERY%' ORDER BY val ASC; -- -------------------------------------- -- some negative tests
add internal get_number functons to crypto/evp.h
@@ -934,4 +934,16 @@ EC_KEY *evp_pkey_get0_EC_KEY_int(const EVP_PKEY *pkey); RSA *evp_pkey_get0_RSA_int(const EVP_PKEY *pkey); # endif +/* Get internal identification number routines */ +int evp_asym_cipher_get_number(const EVP_ASYM_CIPHER *cipher); +int evp_cipher_get_number(const EVP_CIPHER *cipher); +int evp_kdf_get_number(const EVP_KDF *kdf); +int evp_kem_get_number(const EVP_KEM *wrap); +int evp_keyexch_get_number(const EVP_KEYEXCH *keyexch); +int evp_keymgmt_get_number(const EVP_KEYMGMT *keymgmt); +int evp_mac_get_number(const EVP_MAC *mac); +int evp_md_get_number(const EVP_MD *md); +int evp_rand_get_number(const EVP_RAND *rand); +int evp_signature_get_number(const EVP_SIGNATURE *signature); + #endif /* OSSL_CRYPTO_EVP_H */
added instruction for new PR
@@ -9,6 +9,18 @@ We welcome community contributions to vcf-validator! To build tool locally, foll New to open source? Here are a selection of issues we've made especially for first-timers. follow this [link](https://github.com/EBIvariation/vcf-validator/issues?q=is%3Aissue+is%3Aopen+label%3Abeginner) +## Making a New PR +Once you found an interesting issue to work on you may check if someone other is not working on the same issue. you can ask once in the issue to get that issue assigned to you. once you get an approval go for the PR. While making a new PR do follow these norms: + +- Fetch the latest changes by `git fetch upstream` +- Update the local develop branch `git rebase upstream/develop develop` +- Create a new branch from develop `git checkout -b <branch_name> develop` +- Add and commit the changes, commit messages should be short and well explanatory. +- While creating new PR, change the base from master to develop. +- PR message should be well explanatory and should contain reference to the issue this PR is for. +- Once the PR is ready for a review, ask for a review. + + ## Bug reports & troubleshooting If you are submitting a bug, please go to https://github.com/EBIvariation/vcf-validator/issues/new
Make test_nsalloc_long_uri() robust vs allocation pattern changes
@@ -10637,29 +10637,16 @@ START_TEST(test_nsalloc_long_uri) "'>" "</foo:e>"; int i; -#define MAX_ALLOC_COUNT 15 - int repeated = 0; +#define MAX_ALLOC_COUNT 40 for (i = 0; i < MAX_ALLOC_COUNT; i++) { - /* Repeat some tests with the same allocation count to - * catch cached allocations not freed by XML_ParserReset() - */ - if ((i == 3 && repeated == 1) || - (i == 6 && repeated == 4)) { - i -= 2; - repeated++; - } - else if ((i == 2 && (repeated == 0 || repeated == 2)) || - (i == 4 && repeated == 3) || - (i == 8 && repeated == 5)) { - i--; - repeated++; - } allocation_count = i; if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text), XML_TRUE) != XML_STATUS_ERROR) break; - XML_ParserReset(parser, NULL); + /* See comment in test_nsalloc_xmlns() */ + nsalloc_teardown(); + nsalloc_setup(); } if (i == 0) fail("Parsing worked despite failing allocations");
Adds a missing null check
@@ -1640,6 +1640,7 @@ void fw_removeServiceListener(framework_pt framework, bundle_pt bundle, celix_se fw_getService(framework, framework->bundle, ref, (const void **) &hook); + if (hook != NULL) { arrayList_create(&infos); arrayList_add(infos, &info); hook->removed(hook->handle, infos); @@ -1647,6 +1648,7 @@ void fw_removeServiceListener(framework_pt framework, bundle_pt bundle, celix_se serviceRegistry_ungetServiceReference(framework->registry, framework->bundle, ref); arrayList_destroy(infos); } + } arrayList_destroy(listenerHooks); }
common BUGFIX wrong string format used
@@ -103,15 +103,15 @@ void ly_vlog(const struct ly_ctx *ctx, enum LY_VLOG_ELEM elem_type, const void * #define LY_CHECK_ARG_RET(CTX, ...) GETMACRO4(__VA_ARGS__, LY_CHECK_ARG_RET3, LY_CHECK_ARG_RET2, LY_CHECK_ARG_RET1)(CTX, __VA_ARGS__) #define LY_VCODE_INCHAR LYVE_SYNTAX, "Invalid character 0x%x." -#define LY_VCODE_INSTREXP LYVE_SYNTAX, "Invalid character sequence \"%.*s\", expected \"%s\"." +#define LY_VCODE_INSTREXP LYVE_SYNTAX, "Invalid character sequence \"%.*s\", expected %s." #define LY_VCODE_EOF LYVE_SYNTAX, "Unexpected end-of-file." #define LY_VCODE_INSTMT LYVE_SYNTAX_YANG, "Invalid keyword \"%s\"." #define LY_VCODE_INCHILDSTMT LYVE_SYNTAX_YANG, "Invalid keyword \"%s\" as a child of \"%s\"." #define LY_VCODE_DUPSTMT LYVE_SYNTAX_YANG, "Duplicate keyword \"%s\"." -#define LY_VCODE_INVAL LYVE_SYNTAX_YANG, "Invalid value \"%*.s\" of \"%s\"." +#define LY_VCODE_INVAL LYVE_SYNTAX_YANG, "Invalid value \"%.*s\" of \"%s\"." #define LY_VCODE_MISSTMT LYVE_SYNTAX_YANG, "Missing mandatory keyword \"%s\" as a child of \"%s\"." #define LY_VCODE_INORD LYVE_SYNTAX_YANG, "Invalid keyword \"%s\", it cannot appear after \"%s\"." -#define LY_VCODE_OOB LYVE_SYNTAX_YANG, "Value \"%*.s\" is out of \"%s\" bounds." +#define LY_VCODE_OOB LYVE_SYNTAX_YANG, "Value \"%.*s\" is out of \"%s\" bounds." #define LY_VCODE_INDEV LYVE_SYNTAX_YANG, "Deviate \"%s\" does not support keyword \"%s\"." /*
VMS build file template: adapt for when someone disabled 'makedepend'
@@ -640,7 +640,7 @@ EOF my $depbuild = $disabled{makedepend} ? "" : " /MMS=(FILE=${objd}${objn}.tmp-D,TARGET=$obj.OBJ)"; - return <<"EOF"; + return <<"EOF" $obj.OBJ : $deps ${before} SET DEFAULT $forward @@ -649,11 +649,14 @@ $obj.OBJ : $deps $incs_off SET DEFAULT $backward ${after} + - PURGE $obj.OBJ +EOF + . ($disabled{makedepend} ? "" : <<"EOF" \@ PIPE ( \$(PERL) -e "use File::Compare qw/compare_text/; my \$x = compare_text(""$obj.D"",""$obj.tmp-D""); exit(0x10000000 + (\$x == 0));" || - RENAME $obj.tmp-D $obj.d ) \@ IF F\$SEARCH("$obj.tmp-D") .NES. "" THEN DELETE $obj.tmp-D;* - - PURGE $obj.OBJ EOF + ); } sub libobj2shlib { my %args = @_;
py/emitnative: Use macros instead of raw offsetof for slot locations. Old globals are now stored in the second slot (ip in mp_code_state_t) to make things simpler for viper.
#define CAN_USE_REGS_FOR_LOCALS(emit) ((emit)->scope->exc_stack_size == 0) // Indices within the local C stack for various variables +#define LOCAL_IDX_FUN_OBJ(emit) (offsetof(mp_code_state_t, fun_bc) / sizeof(uintptr_t)) +#define LOCAL_IDX_OLD_GLOBALS(emit) (offsetof(mp_code_state_t, ip) / sizeof(uintptr_t)) #define LOCAL_IDX_EXC_VAL(emit) ((emit)->stack_start + NLR_BUF_IDX_RET_VAL) #define LOCAL_IDX_EXC_HANDLER_PC(emit) ((emit)->stack_start + NLR_BUF_IDX_LOCAL_1) #define LOCAL_IDX_EXC_HANDLER_UNWIND(emit) ((emit)->stack_start + NLR_BUF_IDX_LOCAL_2) @@ -392,7 +394,7 @@ STATIC void emit_native_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scop #endif // set code_state.fun_bc - ASM_MOV_LOCAL_REG(emit->as, offsetof(mp_code_state_t, fun_bc) / sizeof(uintptr_t), REG_ARG_1); + ASM_MOV_LOCAL_REG(emit->as, LOCAL_IDX_FUN_OBJ(emit), REG_ARG_1); // set code_state.ip (offset from start of this function to prelude info) // XXX this encoding may change size @@ -931,12 +933,12 @@ STATIC void emit_native_global_exc_entry(emit_t *emit) { if (!emit->do_viper_types) { // Set new globals - ASM_MOV_REG_LOCAL(emit->as, REG_ARG_1, offsetof(mp_code_state_t, fun_bc) / sizeof(uintptr_t)); + ASM_MOV_REG_LOCAL(emit->as, REG_ARG_1, LOCAL_IDX_FUN_OBJ(emit)); ASM_LOAD_REG_REG_OFFSET(emit->as, REG_ARG_1, REG_ARG_1, offsetof(mp_obj_fun_bc_t, globals) / sizeof(uintptr_t)); emit_call(emit, MP_F_NATIVE_SWAP_GLOBALS); // Save old globals (or NULL if globals didn't change) - ASM_MOV_LOCAL_REG(emit->as, offsetof(mp_code_state_t, old_globals) / sizeof(uintptr_t), REG_RET); + ASM_MOV_LOCAL_REG(emit->as, LOCAL_IDX_OLD_GLOBALS(emit), REG_RET); } if (emit->scope->exc_stack_size == 0) { @@ -976,7 +978,7 @@ STATIC void emit_native_global_exc_entry(emit_t *emit) { if (!emit->do_viper_types) { // Restore old globals - ASM_MOV_REG_LOCAL(emit->as, REG_ARG_1, offsetof(mp_code_state_t, old_globals) / sizeof(uintptr_t)); + ASM_MOV_REG_LOCAL(emit->as, REG_ARG_1, LOCAL_IDX_OLD_GLOBALS(emit)); emit_call(emit, MP_F_NATIVE_SWAP_GLOBALS); } @@ -996,7 +998,7 @@ STATIC void emit_native_global_exc_exit(emit_t *emit) { if (NEED_GLOBAL_EXC_HANDLER(emit)) { if (!emit->do_viper_types) { // Get old globals - ASM_MOV_REG_LOCAL(emit->as, REG_ARG_1, offsetof(mp_code_state_t, old_globals) / sizeof(uintptr_t)); + ASM_MOV_REG_LOCAL(emit->as, REG_ARG_1, LOCAL_IDX_OLD_GLOBALS(emit)); if (emit->scope->exc_stack_size == 0) { // Optimisation: if globals didn't change then don't restore them and don't do nlr_pop
ya: add yoimports tool
}, "lkvm": { "description": "kvmtool is a userland tool for creating and controlling KVM guests" + }, + "yoimports": { + "description": "Go imports formatting tool" } }, "toolchain": { } ] }, + "yoimports": { + "tools": { + "yoimports": { + "bottle": "yoimports", + "executable": "yoimports" + } + }, + "platforms": [ + { + "host": { + "os": "LINUX" + }, + "default": true + }, + { + "host": { + "os": "DARWIN" + }, + "default": true + }, + { + "host": { + "os": "WIN" + }, + "default": true + } + ] + }, "tvmknife": { "tools": { "tvmknife": { ] } }, + "yoimports": { + "formula": { + "sandbox_id": [ + 596719063, + 596719221, + 596719231 + ], + "match": "yoimports" + }, + "executable": { + "yoimports": [ + "yoimports" + ] + } + }, "tvmknife": { "formula": { "sandbox_id": [
test_config: fix the bug that will generate !!python/unicode As an example, [7964999 example_test_002_](https://gitlab.espressif.cn:6688/espressif/esp-idf/-/jobs/7964999/artifacts/file/examples/test_configs/example_test_002_.yml)
@@ -62,4 +62,4 @@ class Job(dict): file_name = os.path.join(file_path, self["name"] + ".yml") if "case group" in self: with open(file_name, "w") as f: - yaml.dump(self["case group"].output(), f, default_flow_style=False) + yaml.safe_dump(self["case group"].output(), f, encoding='utf-8', default_flow_style=False)
Fix GPIO declarations for NETDUINO3_WIFI
@@ -66,24 +66,24 @@ typedef struct { #if STM32_HAS_GPIOE || defined(__DOXYGEN__) gpio_setup_t PEData; #endif -#if STM32_HAS_GPIOF || defined(__DOXYGEN__) - gpio_setup_t PFData; -#endif -#if STM32_HAS_GPIOG || defined(__DOXYGEN__) - gpio_setup_t PGData; -#endif +// #if STM32_HAS_GPIOF || defined(__DOXYGEN__) +// gpio_setup_t PFData; +// #endif +// #if STM32_HAS_GPIOG || defined(__DOXYGEN__) +// gpio_setup_t PGData; +// #endif #if STM32_HAS_GPIOH || defined(__DOXYGEN__) gpio_setup_t PHData; #endif -#if STM32_HAS_GPIOI || defined(__DOXYGEN__) - gpio_setup_t PIData; -#endif -#if STM32_HAS_GPIOJ || defined(__DOXYGEN__) - gpio_setup_t PJData; -#endif -#if STM32_HAS_GPIOK || defined(__DOXYGEN__) - gpio_setup_t PKData; -#endif +// #if STM32_HAS_GPIOI || defined(__DOXYGEN__) +// gpio_setup_t PIData; +// #endif +// #if STM32_HAS_GPIOJ || defined(__DOXYGEN__) +// gpio_setup_t PJData; +// #endif +// #if STM32_HAS_GPIOK || defined(__DOXYGEN__) +// gpio_setup_t PKData; +// #endif } gpio_config_t; /**
Fix copy paste of actors scripts
@@ -981,13 +981,13 @@ const addActor: CaseReducer< paletteId: "", isPinned: false, collisionGroup: "", + ...(action.payload.defaults || {}), script: [], startScript: [], updateScript: [], hit1Script: [], hit2Script: [], hit3Script: [], - ...(action.payload.defaults || {}), id: action.payload.actorId, x: clamp(action.payload.x, 0, scene.width - 2), y: clamp(action.payload.y, 0, scene.height - 1),
nxlooper: nxlooper should wait call buffer returned before close
@@ -330,7 +330,8 @@ static void *nxlooper_loopthread(pthread_addr_t pvarg) FAR struct ap_buffer_s **recordbufs = NULL; unsigned int prio; ssize_t size; - bool running = true; + int running = 2; + bool streaming = true; int x; int ret; @@ -495,6 +496,11 @@ static void *nxlooper_loopthread(pthread_addr_t pvarg) /* An audio buffer is being dequeued by the driver */ case AUDIO_MSG_DEQUEUE: + if (!streaming) + { + break; + } + apb = msg.u.ptr; apb->curbyte = 0; if (apb->flags & AUDIO_APB_PLAY) @@ -576,8 +582,12 @@ static void *nxlooper_loopthread(pthread_addr_t pvarg) ioctl(plooper->playdev_fd, AUDIOIOC_STOP, 0); ioctl(plooper->recorddev_fd, AUDIOIOC_STOP, 0); #endif + streaming = false; + + break; - running = false; + case AUDIO_MSG_COMPLETE: + running--; break; /* Unknown / unsupported message ID */
Get rid of unused else bodies.
@@ -44,21 +44,13 @@ std::vector<uint8_t> BondSplicer::splice() const bond_lite::CompactBinaryProtocolWriter writer(output); if (!m_packages.empty()) { - for (PackageInfo const& package : m_packages) { if (!package.records.empty()) { - for (Span const& record : package.records) { writer.WriteBlob(m_buffer.data() + record.offset, record.length); } } - else - { - } - } } - else - { } return output;
doc: clarify RGB LCD PSRAM bandwidth risk Closes
@@ -14,7 +14,7 @@ In ``esp_lcd``, an LCD panel is represented by :cpp:type:`esp_lcd_panel_handle_t - ``RGB LCD panel`` - is simply based on a group of specific synchronous signals indicating where to start and stop a frame. - ``Controller based LCD panel`` involves multiple steps to get a panel handle, like bus allocation, IO device registration and controller driver install. -After we get the LCD handle, the remaining LCD operations are the same for different LCD interfaces and vendors. +After we get the LCD handle, the remaining LCD operations are similar for different LCD interfaces and vendors. .. only:: SOC_LCD_RGB_SUPPORTED @@ -83,7 +83,12 @@ After we get the LCD handle, the remaining LCD operations are the same for diffe Single Frame Buffer in PSRAM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - If you have PSRAM and want to store the frame buffer there rather than in the limited internal memory, the LCD peripheral will use EDMA to fetch frame data directly from the PSRAM, bypassing the internal cache. You can enable this feature by setting the :cpp:member:`esp_lcd_rgb_panel_config_t::fb_in_psram` to ``true``. The downside of this is that when both the CPU as well as EDMA need access to the PSRAM, the bandwidth will be **shared** between them, that is, EDMA gets half and the CPUs the other half. If there're other peripherals using EDMA as well, with a high enough pixel clock this can lead to starvation of the LCD peripheral, leading to display corruption. However, if the pixel clock is low enough for this not to be an issue, this is a solution that uses almost no CPU intervention. + If you have PSRAM and want to store the frame buffer there rather than in the limited internal memory, the LCD peripheral will use EDMA to fetch frame data directly from the PSRAM, bypassing the internal cache. You can enable this feature by setting the :cpp:member:`esp_lcd_rgb_panel_config_t::fb_in_psram` to ``true``. The downside of this is that when both the CPU as well as EDMA need access to the PSRAM, the bandwidth will be **shared** between them, that is, EDMA gets half and the CPUs get the other half. If there're other peripherals using EDMA as well, with a high enough pixel clock this can lead to starvation of the LCD peripheral, leading to display corruption. However, if the pixel clock is low enough for this not to be an issue, this is a solution that uses almost no CPU intervention. + + .. only:: esp32s3 + + The PSRAM shares the same SPI bus with the main Flash (the one stores your firmware binary). At one time, there only be one consumer of the SPI bus. When you also use the main flash to serve your file system (e.g. :doc:`SPIFFS </api-reference/storage/spiffs>`), the bandwidth of the underlying SPI bus will also be shared, leading to display corruption. You can use :cpp:func:`esp_lcd_rgb_panel_set_pclk` to update the pixel clock frequency to a lower value. + .. code:: c @@ -225,10 +230,12 @@ Application Example LCD examples are located under: :example:`peripherals/lcd`: +.. list:: + * Universal SPI LCD example with SPI touch - :example:`peripherals/lcd/spi_lcd_touch` * Jpeg decoding and LCD display - :example:`peripherals/lcd/tjpgd` -* i80 controller based LCD and LVGL animation UI - :example:`peripherals/lcd/i80_controller` -* RGB panel example with scatter chart UI - :example:`peripherals/lcd/rgb_panel` + :SOC_LCD_I80_SUPPORTED: * i80 controller based LCD and LVGL animation UI - :example:`peripherals/lcd/i80_controller` + :SOC_LCD_RGB_SUPPORTED: * RGB panel example with scatter chart UI - :example:`peripherals/lcd/rgb_panel` * I2C interfaced OLED display scrolling text - :example:`peripherals/lcd/i2c_oled` Other LCD drivers
sim: Add runall command Add a `runall` command that will run all combinations of devices and alignments. Jira:
@@ -11,6 +11,7 @@ extern crate error_chain; use docopt::Docopt; use rand::{Rng, SeedableRng, XorShiftRng}; use rustc_serialize::{Decodable, Decoder}; +use std::fmt; use std::mem; use std::process; use std::slice; @@ -30,6 +31,7 @@ Mcuboot simulator Usage: bootsim sizes bootsim run --device TYPE [--align SIZE] + bootsim runall bootsim (--help | --version) Options: @@ -48,11 +50,31 @@ struct Args { flag_align: Option<AlignArg>, cmd_sizes: bool, cmd_run: bool, + cmd_runall: bool, } -#[derive(Debug, RustcDecodable)] +#[derive(Copy, Clone, Debug, RustcDecodable)] enum DeviceName { Stm32f4, K64f, K64fBig, Nrf52840 } +static ALL_DEVICES: &'static [DeviceName] = &[ + DeviceName::Stm32f4, + DeviceName::K64f, + DeviceName::K64fBig, + DeviceName::Nrf52840, +]; + +impl fmt::Display for DeviceName { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + let name = match *self { + DeviceName::Stm32f4 => "stm32f4", + DeviceName::K64f => "k64f", + DeviceName::K64fBig => "k64fbig", + DeviceName::Nrf52840 => "nrf52840", + }; + f.write_str(name) + } +} + #[derive(Debug)] struct AlignArg(u8); @@ -81,6 +103,7 @@ fn main() { } let mut status = RunStatus::new(); + if args.cmd_run { let align = args.flag_align.map(|x| x.0).unwrap_or(1); @@ -90,6 +113,15 @@ fn main() { }; status.run_single(device, align); + } + + if args.cmd_runall { + for &dev in ALL_DEVICES { + for &align in &[1, 2, 4, 8] { + status.run_single(dev, align); + } + } + } if status.failures > 0 { warn!("{} Tests ran with {} failures", status.failures + status.passes, status.failures); @@ -116,6 +148,8 @@ impl RunStatus { fn run_single(&mut self, device: DeviceName, align: u8) { let mut failed = false; + warn!("Running on device {} with alignment {}", device, align); + let (mut flash, areadesc) = match device { DeviceName::Stm32f4 => { // STM style flash. Large sectors, with a large scratch area.
net/oic; make requests_entry() function pointer optional during init.
@@ -81,7 +81,9 @@ oc_main_init(oc_handler_t *handler) OC_LOG_INFO("oic: Initialized\n"); #ifdef OC_CLIENT + if (handler->requests_entry) { handler->requests_entry(); + } #endif initialized = true;
board/palkia/board.c: Format with clang-format BRANCH=none TEST=none
#define CPRINTF(format, args...) cprintf(CC_USBCHARGE, format, ##args) static const uint8_t actual_key_mask[KEYBOARD_COLS_MAX] = { - 0x01, 0x68, 0xbd, 0x03, 0x7e, 0xff, 0xff, - 0xff, 0xff, 0x03, 0xfd, 0x48, 0x03, 0xff, - 0xf7, 0x16 /* full set */ + 0x01, 0x68, 0xbd, 0x03, 0x7e, 0xff, 0xff, 0xff, + 0xff, 0x03, 0xfd, 0x48, 0x03, 0xff, 0xf7, 0x16 /* full set */ }; /* GPIO to enable/disable the USB Type-A port. */ @@ -119,15 +118,15 @@ static void board_lid_interrupt(enum gpio_signal signal) /******************************************************************************/ /* SPI devices */ -const struct spi_device_t spi_devices[] = { -}; +const struct spi_device_t spi_devices[] = {}; const unsigned int spi_devices_used = ARRAY_SIZE(spi_devices); /******************************************************************************/ /* PWM channels. Must be in the exactly same order as in enum pwm_channel. */ const struct pwm_t pwm_channels[] = { [PWM_CH_KBLIGHT] = { .channel = 3, .flags = 0, .freq = 10000 }, - [PWM_CH_FAN] = {.channel = 5, .flags = PWM_CONFIG_OPEN_DRAIN, + [PWM_CH_FAN] = { .channel = 5, + .flags = PWM_CONFIG_OPEN_DRAIN, .freq = 25000 }, }; BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT); @@ -190,14 +189,14 @@ BUILD_ASSERT(ARRAY_SIZE(mft_channels) == MFT_CH_COUNT); /* ADC channels */ const struct adc_t adc_channels[] = { - [ADC_TEMP_SENSOR_1] = { - "TEMP_CHARGER", NPCX_ADC_CH0, ADC_MAX_VOLT, ADC_READ_MAX+1, 0}, - [ADC_TEMP_SENSOR_2] = { - "TEMP_5V_REG", NPCX_ADC_CH1, ADC_MAX_VOLT, ADC_READ_MAX+1, 0}, - [ADC_TEMP_SENSOR_3] = { - "TEMP_AMB", NPCX_ADC_CH3, ADC_MAX_VOLT, ADC_READ_MAX+1, 0}, - [ADC_TEMP_SENSOR_4] = { - "TEMP_CPU", NPCX_ADC_CH2, ADC_MAX_VOLT, ADC_READ_MAX+1, 0}, + [ADC_TEMP_SENSOR_1] = { "TEMP_CHARGER", NPCX_ADC_CH0, ADC_MAX_VOLT, + ADC_READ_MAX + 1, 0 }, + [ADC_TEMP_SENSOR_2] = { "TEMP_5V_REG", NPCX_ADC_CH1, ADC_MAX_VOLT, + ADC_READ_MAX + 1, 0 }, + [ADC_TEMP_SENSOR_3] = { "TEMP_AMB", NPCX_ADC_CH3, ADC_MAX_VOLT, + ADC_READ_MAX + 1, 0 }, + [ADC_TEMP_SENSOR_4] = { "TEMP_CPU", NPCX_ADC_CH2, ADC_MAX_VOLT, + ADC_READ_MAX + 1, 0 }, }; BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);
Re-added mpfit to the poser list
@@ -29,13 +29,12 @@ ifdef USE_ASAN CFLAGS+=-fsanitize=address -fsanitize=undefined endif - - -SBA:=redist/sba/sba_chkjac.c redist/sba/sba_crsm.c redist/sba/sba_lapack.c redist/sba/sba_levmar.c redist/sba/sba_levmar_wrap.c redist/minimal_opencv.c src/poser_epnp.c src/poser_sba.c src/epnp/epnp.c src/poser_general_optimizer.c +SBA:=redist/sba/sba_chkjac.c redist/sba/sba_crsm.c redist/sba/sba_lapack.c redist/sba/sba_levmar.c redist/sba/sba_levmar_wrap.c redist/minimal_opencv.c src/poser_epnp.c src/poser_sba.c src/epnp/epnp.c +MPFIT:=redist/mpfit/mpfit.c src/poser_mpfit.c LIBSURVIVE_CORE+=src/survive.c src/survive_process.c src/ootx_decoder.c src/survive_driverman.c src/survive_default_devices.c src/survive_playback.c src/survive_config.c src/survive_cal.c src/poser.c src/survive_sensor_activations.c src/survive_disambiguator.c src/survive_imu.c src/survive_kalman.c src/survive_api.c MINIMAL_NEEDED+=src/survive_usb.c src/survive_charlesbiguator.c src/survive_vive.c src/survive_reproject.c AUX_NEEDED+=src/survive_turveybiguator.c src/survive_statebased_disambiguator.c src/survive_driver_dummy.c src/survive_driver_udp.c -POSERS:=src/poser_dummy.c src/poser_imu.c src/poser_charlesrefine.c +POSERS:=src/poser_dummy.c src/poser_imu.c src/poser_charlesrefine.c src/poser_general_optimizer.c EXTRA_POSERS:=src/poser_daveortho.c src/poser_charlesslow.c src/poser_octavioradii.c src/poser_turveytori.c REDISTS:=redist/json_helpers.c redist/linmath.c redist/jsmn.c @@ -67,7 +66,7 @@ endif ifdef MINIMAL LIBSURVIVE_C:=$(REDISTS) $(LIBSURVIVE_CORE) $(MINIMAL_NEEDED) else - LIBSURVIVE_C:=$(POSERS) $(REDISTS) $(LIBSURVIVE_CORE) $(SBA) $(MINIMAL_NEEDED) $(AUX_NEEDED) + LIBSURVIVE_C:=$(POSERS) $(REDISTS) $(LIBSURVIVE_CORE) $(SBA) $(MPFIT) $(MINIMAL_NEEDED) $(AUX_NEEDED) endif @@ -135,6 +134,7 @@ $(OBJDIR): mkdir -p $(OBJDIR)/src mkdir -p $(OBJDIR)/redist mkdir -p $(OBJDIR)/redist/sba + mkdir -p $(OBJDIR)/redist/mpfit mkdir -p $(OBJDIR)/src/epnp $(LIBRARY): $(LIBSURVIVE_O) $(OBJDIR)
filter_expect: add validation for 'key_val_eq' operation
@@ -365,9 +365,21 @@ static int rule_apply(struct flb_expect *ctx, msgpack_object map) } if (val->type == FLB_RA_STRING) { - + if (flb_sds_cmp(val->val.string, rule->expect, + flb_sds_len(rule->expect)) != 0) { + json = flb_msgpack_to_json_str(size, &map); + flb_plg_error(ctx->ins, + "exception on rule #%i 'key_val_eq', " + "key value '%s' is different than " + "expected: '%s'. Record content:\n%s", + n, val->val.string, rule->expect, json); + free(json); + flb_ra_key_value_destroy(val); + return FLB_FALSE; } } + flb_ra_key_value_destroy(val); + } n++; }
usrsock: fix usrsock close hang when net not ready reason: ept NULL when close request and poll event occur simultaneously
@@ -284,12 +284,12 @@ static int usrsock_rpmsg_close_handler(struct rpmsg_endpoint *ept, if (req->usockid >= 0 && req->usockid < CONFIG_NETUTILS_USRSOCK_NSOCK_DESCRIPTORS) { + pthread_mutex_lock(&priv->mutex); priv->pfds[req->usockid].ptr = NULL; priv->epts[req->usockid] = NULL; /* Signal and wait the poll thread to wakeup */ - pthread_mutex_lock(&priv->mutex); usrsock_rpmsg_notify_poll(priv); pthread_cond_wait(&priv->cond, &priv->mutex); pthread_mutex_unlock(&priv->mutex);
Add new macros to the SWIG interface Tested-by: IoTivity Jenkins
@@ -44,7 +44,8 @@ typedef enum { OC_STATUS_GATEWAY_TIMEOUT, OC_STATUS_PROXYING_NOT_SUPPORTED, __NUM_OC_STATUS_CODES__, - OC_IGNORE + OC_IGNORE, + OC_PING_TIMEOUT } oc_status_t; %rename(OCResponse) oc_response_t;
sha/asm/sha512p8-ppc.pl: add POWER8 performance data. [skip ci]
# for sha1-ppc.pl - 73%. 100% means that multi-process result equals # to single-process one, given that all threads end up on the same # physical core. +# +###################################################################### +# Believed-to-be-accurate results in cycles per processed byte [on +# little-endian system]. Numbers in square brackets are for 64-bit +# build of sha512-ppc.pl, presented for reference. +# +# POWER8 +# SHA256 9.9 [15.8] +# SHA512 6.3 [10.3] $flavour=shift; $output =shift;
[numerics] fix curious allocation bug in test (to be checked carefully)
#include "NumericsFwd.h" // for SolverOptions #include "SolverOptions.h" // for SolverOptions, solver_option... #include "frictionContact_test_utils.h" // for build_test_collection +#include "numerics_verbose.h" #include "test_utils.h" // for TestCase TestCase * build_test_collection(int n_data, const char ** data_collection, int* number_of_tests) { int n_solvers = 5; - *number_of_tests = n_data * n_solvers; + *number_of_tests = n_data * n_solvers +1; TestCase * collection = (TestCase*)malloc((*number_of_tests) * sizeof(TestCase)); int current = 0; @@ -85,6 +86,10 @@ TestCase * build_test_collection(int n_data, const char ** data_collection, int* current++; } + if ( (current-1) > *number_of_tests ) + { + numerics_warning("build_test_collection", "allocation is too small\n"); + } *number_of_tests = current; return collection;
changes: add note about application output formatting differences. Fixes
@@ -134,6 +134,15 @@ OpenSSL 3.0 Previously (in 1.1.1) they would return -2. For key types that do not have parameters then EVP_PKEY_param_check() will always return 1. + * The output from the command line applications may have minor + changes. These are primarily changes in capitalisation and white + space. However, in some cases, there are additional differences. + For example, the DH parameters output from `dhparam` now lists 'P', + 'Q', 'G' and 'pcounter' instead of 'prime', 'generator', 'subgroup + order' and 'counter' respectively. + + *Paul Dale* + * The output from numerous "printing" functions such as X509_signature_print(), X509_print_ex(), X509_CRL_print_ex(), and other similar functions has been amended such that there may be cosmetic differences between the output
refactor the filter macro generator
@@ -826,8 +826,7 @@ def get_event_type_len(usdt, providers): probes = filter(lambda probe: probe.provider in providers_set, usdt.enumerate_probes()) return 1 + max(map(lambda probe: len("%s__%s" % (probe.provider, probe.name)), probes)) -def generate_filter_expr(candidates): - # where `s` is a macro argument, and `l` is its length (size_t) +def generate_filter_cflag(candidates): conditions = [] for candidate in candidates: exprs = ["/* %s */ (l) == %d" % (candidate, len(candidate))] @@ -835,7 +834,7 @@ def generate_filter_expr(candidates): exprs.append("(s)[%d] == '%s'" % (i, c)) conditions.append("(%s)" % " && ".join(exprs)) - return "(%s)" % " || ".join(conditions) + return "-DCHECK_ALLOWED_RES_HEADER_NAME(s,l)=(%s)" % " || ".join(conditions) if len(sys.argv) < 1: usage() @@ -914,7 +913,7 @@ if sys.argv[1] == "quic": u.enable_probe(probe="send_response_header", fn_name="trace_h2o__send_response_header") cflags.append("-DENABLE_SEND_RESPONSE_HEADER") if len(allowed_res_header_name): - cflags.append("-DCHECK_ALLOWED_RES_HEADER_NAME(s,l)=%s" % generate_filter_expr(allowed_res_header_name)) + cflags.append(generate_filter_cflag(allowed_res_header_name)) bpf = quic_bpf else:
Change cert file to server2-sha256.crt
@@ -79,7 +79,7 @@ fi if [ -n "${OPENSSL_NEXT:-}" ]; then O_NEXT_SRV="$OPENSSL_NEXT s_server -www -cert data_files/server5.crt -key data_files/server5.key" - O_NEXT_SRV_RSA="$OPENSSL_NEXT s_server -www -cert data_files/server2.crt -key data_files/server2.key" + O_NEXT_SRV_RSA="$OPENSSL_NEXT s_server -www -cert data_files/server2-sha256.crt -key data_files/server2.key" O_NEXT_CLI="echo 'GET / HTTP/1.0' | $OPENSSL_NEXT s_client" else O_NEXT_SRV=false @@ -89,7 +89,7 @@ fi if [ -n "${GNUTLS_NEXT_SERV:-}" ]; then G_NEXT_SRV="$GNUTLS_NEXT_SERV --x509certfile data_files/server5.crt --x509keyfile data_files/server5.key" - G_NEXT_SRV_RSA="$GNUTLS_NEXT_SERV --x509certfile data_files/server2.crt --x509keyfile data_files/server2.key" + G_NEXT_SRV_RSA="$GNUTLS_NEXT_SERV --x509certfile data_files/server2-sha256.crt --x509keyfile data_files/server2.key" else G_NEXT_SRV=false G_NEXT_SRV_RSA=false
Fixes test which assumed 64-bit pointer size
@@ -1333,7 +1333,7 @@ testHUF (const std::string& tempdir) { uint64_t esize = internal_exr_huf_compress_spare_bytes (); uint64_t dsize = internal_exr_huf_decompress_spare_bytes (); - EXRCORE_TEST (esize == 65537 * (8 + 8 + 8 + 4)); + EXRCORE_TEST (esize == 65537 * (8 + 8 + sizeof(void*) + 4)); EXRCORE_TEST (dsize == (65537 * 8 + (1 << 14) * 16)); std::vector<uint8_t> hspare;
fix forward declaration using c11 features (???)
@@ -66,11 +66,11 @@ typedef const char* (*WrenResolveModuleFn)(WrenVM* vm, const char* importer, const char* name); // Forward declare -typedef struct WrenLoadModuleResult WrenLoadModuleResult; +struct WrenLoadModuleResult; // Called after loadModuleFn is called for module [name]. The original returned result // is handed back to you in this callback, so that you can free memory if appropriate. -typedef void (*WrenLoadModuleCompleteFn)(WrenVM* vm, const char* name, WrenLoadModuleResult result); +typedef void (*WrenLoadModuleCompleteFn)(WrenVM* vm, const char* name, struct WrenLoadModuleResult result); // The result of a loadModuleFn call. // [source] is the source code for the module, or NULL if the module is not found.
Add HRGN_FULL
@@ -1085,7 +1085,7 @@ LRESULT CALLBACK PhpGraphWndProc( updateRegion = (HRGN)wParam; - if (updateRegion == (HRGN)1) // HRGN_FULL + if (updateRegion == HRGN_FULL) updateRegion = NULL; // Themed border
Address Tiangang PR feedback
@@ -233,8 +233,7 @@ def get_base_prefix(type_name): def get_identifier_prefix(identifier): direct_identifier = re.sub(r"^p+", "", identifier) indirection = "p" * (len(identifier) - len(direct_identifier)) - for key in TYPE_PREFIXES: - prefix = TYPE_PREFIXES[key] + for prefix in TYPE_PREFIXES.values(): if re.match(r"^" + prefix + r"[0-9,A-Z]", direct_identifier): return indirection + prefix return ''
plugin node_instanceid BUGFIX of doxygen
/** * @page howtoDataLYB LYB Binary Format - * @subsection howtoDataLYBTypesInstanceIdentifier node-instance-identifier (ietf-netconf-acm) + * @subsection howtoDataLYBTypesNodeInstanceIdentifier node-instance-identifier (ietf-netconf-acm) * * | Size (B) | Mandatory | Type | Meaning | * | :------ | :-------: | :--: | :-----: |
Yan LR: Add MSR example containing nested maps
@@ -26,16 +26,21 @@ kdb ls /tests/yanlr #> user/tests/yanlr/key # Add a new key-value pair +# Add new key-value pairs # Yan LR actually uses the YAML Smith plugin to write data kdb set /tests/yanlr/new brand +kdb set /tests/yanlr/dance/gavin 'Dance!' kdb ls /tests/yanlr +#> user/tests/yanlr/dance/gavin #> user/tests/yanlr/hello #> user/tests/yanlr/key #> user/tests/yanlr/new kdb get /tests/yanlr/hello #> world +kdb get /tests/yanlr/dance/gavin +#> Dance! # Undo modifications to the key database kdb rm -r user/tests/yanlr
ruby-version -> ruby
@@ -240,7 +240,7 @@ jobs: ruby: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1'] exclude: - os: windows-latest - ruby-version: '2.3' + ruby: '2.3' steps: - uses: actions/checkout@v3
add mbox control act led
*/ #include <rtthread.h> +#include <rtdevice.h> +#include <board.h> +#include "mbox.h" + +void set_led(int state) //set state LED nyala atau mati +{ + if (state==1) //LED nyala + { + mbox[0] = 8*4; // length of the message + mbox[1] = MBOX_REQUEST; // this is a request message + + mbox[2] = 0x00038041; // get serial number command + mbox[3] = 8; // buffer size + mbox[4] = 0; + mbox[5] = 130; // clear output buffer + mbox[6] = 1; + mbox[7] = MBOX_TAG_LAST; + mbox_call(8, MMU_DISABLE); + } + else if (state==0) //LED mati + { + mbox[0] = 8*4; // length of the message + mbox[1] = MBOX_REQUEST; // this is a request message + + mbox[2] = 0x00038041; // get serial number command + mbox[3] = 8; // buffer size + mbox[4] = 0; + mbox[5] = 130; // clear output buffer + mbox[6] = 0; + mbox[7] = MBOX_TAG_LAST; + mbox_call(8, MMU_DISABLE); + } +} int main(int argc, char** argv) { + int count = 1; + rt_kprintf("Hi, this is RT-Thread!!\n"); - return 0; + while (count++) + { + set_led(1); + rt_thread_mdelay(500); + set_led(0); + rt_thread_mdelay(500); } + return RT_EOK; +}
openssl-dgst.pod.in: Fix documentation of -list option Mention openssl list -digest-algorithms, NOT -digest-commands. Move option -list just after the related option -digest. Fix HTML formatting of section 'Examples' by adding missing newlines and add 2 examples variant to clarify syntax of the command.
@@ -9,11 +9,11 @@ openssl-dgst - perform digest operations B<openssl> B<dgst>|I<digest> [B<-I<digest>>] +[B<-list>] [B<-help>] [B<-c>] [B<-d>] [B<-debug>] -[B<-list>] [B<-hex>] [B<-binary>] [B<-xoflen> I<length>] @@ -47,7 +47,7 @@ The generic name, B<openssl dgst>, may be used with an option specifying the algorithm to be used. The default digest is B<sha256>. A supported I<digest> name may also be used as the sub-command name. -To see the list of supported algorithms, use C<openssl list -digest-commands> +To see the list of supported algorithms, use C<openssl list -digest-algorithms> =head1 OPTIONS @@ -59,8 +59,11 @@ Print out a usage message. =item B<-I<digest>> -Specifies name of a supported digest to be used. To see the list of -supported digests, use the command C<list --digest-commands>. +Specifies name of a supported digest to be used. See option B<-list> below : + +=item B<-list> + +Prints out a list of supported message digests. =item B<-c> @@ -71,10 +74,6 @@ the B<-hex> option is given as well. Print out BIO debugging information. -=item B<-list> - -Prints out a list of supported message digests. - =item B<-hex> Digest is to be output as a hex dump. This is the default case for a "normal" @@ -206,12 +205,19 @@ used. =head1 EXAMPLES To create a hex-encoded message digest of a file: + openssl dgst -md5 -hex file.txt + or + openssl md5 file.txt To sign a file using SHA-256 with binary file output: + openssl dgst -sha256 -sign privatekey.pem -out signature.sign file.txt + or + openssl sha256 -sign privatekey.pem -out signature.sign file.txt To verify a signature: + openssl dgst -sha256 -verify publickey.pem \ -signature signature.sign \ file.txt @@ -221,7 +227,7 @@ To verify a signature: The digest mechanisms that are available will depend on the options used when building OpenSSL. -The C<openssl list -digest-commands> command can be used to list them. +The C<openssl list -digest-algorithms> command can be used to list them. New or agile applications should use probably use SHA-256. Other digests, particularly SHA-1 and MD5, are still widely used for interoperating
Fix handle properties window icon
@@ -1262,7 +1262,7 @@ INT_PTR CALLBACK PhpHandleGeneralDlgProc( context->ListViewHandle = GetDlgItem(hwndDlg, IDC_LIST); context->ParentWindow = GetParent(hwndDlg); - PhSetApplicationWindowIcon(hwndDlg); + PhSetApplicationWindowIcon(context->ParentWindow); PhSetListViewStyle(context->ListViewHandle, FALSE, TRUE); PhSetControlTheme(context->ListViewHandle, L"explorer");
add check for overflowing size allocation
@@ -694,8 +694,13 @@ void* _mi_malloc_generic(mi_heap_t* heap, size_t size) mi_attr_noexcept // huge allocation? mi_page_t* page; if (mi_unlikely(size > MI_LARGE_SIZE_MAX)) { + if (mi_unlikely(size >= (SIZE_MAX - MI_MAX_ALIGN_SIZE))) { + page = NULL; + } + else { page = mi_huge_page_alloc(heap,size); } + } else { // otherwise find a page with free blocks in our size segregated queues page = mi_find_free_page(heap,size);
repair hard fault return bug before modify,when exception hook returns true,programs can't return to normal execution flow
; * 2013-06-18 aozima add restore MSP feature. ; * 2013-06-23 aozima support lazy stack optimized. ; * 2018-07-24 aozima enhancement hard fault exception handler. +; * 2021-02-15 lizhirui repair hard fault return bug ; */ ;/** @@ -235,11 +236,6 @@ MemManage_Handler ENDIF STMFD r0!, {lr} ; push exec_return register - TST lr, #0x04 ; if(!EXC_RETURN[2]) - ITE EQ - MSREQ msp, r0 ; [2]=0 ==> Z=1, update stack pointer to MSP. - MSRNE psp, r0 ; [2]=1 ==> Z=0, update stack pointer to PSP. - PUSH {lr} BL rt_hw_hard_fault_exception POP {lr}
libuv: binding for h2o_evloop_get_execution_time_nanosec
@@ -67,6 +67,12 @@ static inline uint64_t h2o_now_nanosec(h2o_loop_t *loop) return uv_now(loop) * 1000000; } +static inline uint64_t h2o_evloop_get_execution_time_nanosec(h2o_loop_t *loop) +{ + /* unsupported at the moment */ + return 0; +} + inline void h2o_timer_init(h2o_timer_t *timer, h2o_timer_cb cb) { memset(timer, 0, sizeof(*timer));
nvbios/power: Add missing POWER TOPOLOGY table name usage Taken from
@@ -1093,7 +1093,7 @@ int envy_bios_parse_power_unk3c(struct envy_bios *bios) { unk3c->valid = !err; break; default: - ENVY_BIOS_ERR("Unknown UNK3C table version 0x%x\n", unk3c->version); + ENVY_BIOS_ERR("Unknown POWER TOPOLOGY table version 0x%x\n", unk3c->version); return -EINVAL; }; @@ -1115,11 +1115,11 @@ void envy_bios_print_power_unk3c(struct envy_bios *bios, FILE *out, unsigned mas if (!unk3c->offset || !(mask & ENVY_BIOS_PRINT_PERF)) return; if (!unk3c->valid) { - fprintf(out, "Failed to parse UNK3C table at 0x%x, version %x\n", unk3c->offset, unk3c->version); + fprintf(out, "Failed to parse POWER TOPOLOGY table at 0x%x, version %x\n", unk3c->offset, unk3c->version); return; } - fprintf(out, "UNK3C table at 0x%x, version %x\n", unk3c->offset, unk3c->version); + fprintf(out, "POWER TOPOLOGY table at 0x%x, version %x\n", unk3c->offset, unk3c->version); envy_bios_dump_hex(bios, out, unk3c->offset, unk3c->hlen, mask); if (mask & ENVY_BIOS_PRINT_VERBOSE) fprintf(out, "\n");
rofi command
@@ -84,7 +84,7 @@ static const char *dswitchcmd[] = {"dswitch", NULL}; static const char *sucklessshutdowncmd[] = {"sucklessshutdown", NULL}; static const char *notifycmd[] = {"deadcenter", NULL}; static const char *rangercmd[] = { "st", "-e", "sh", "-c", "ranger", NULL }; -static const char *slingscold[] = { "slingscold-launcher", NULL}; +static const char *slingscold[] = { "rofi", "-show", "drun", NULL}; #include "push.c"
firpfbchr: removing restriction on channels being even
@@ -127,8 +127,8 @@ FIRPFBCHR() FIRPFBCHR(_create_kaiser)(unsigned int _M, float _as) { // validate input - if (_M < 2 || _M % 2) - return liquid_error_config("firpfbchr_%s_create_kaiser(), number of channels must be greater than 2 and even", EXTENSION_FULL); + if (_M < 2) + return liquid_error_config("firpfbchr_%s_create_kaiser(), number of channels must be greater than 2", EXTENSION_FULL); if (_m < 1) return liquid_error_config("firpfbchr_%s_create_kaiser(), filter semi-length must be at least 1", EXTENSION_FULL);
link checker: Only let http links pass if whitelisted
@@ -49,6 +49,7 @@ TRIES=5 check() { link=$(echo "$1" | grep -oE "(https|http|ftp):[^|]*") + secure_link=$(echo "$1" | grep -oE "(https|ftp):[^|]*") files=$(echo "$1" | grep -oE "\|.*" | sed 's/|/ /g') if echo "$link" | grep -Eqf "$WHITELIST"; then @@ -60,6 +61,10 @@ check() { echo "check the link format of $1" return fi + if [ -z "$secure_link" ]; then + echo "link $1 is an http link but not whitelisted" + return + fi wget --spider --quiet --timeout=$TIMEOUT --tries=$TRIES "$link" if [ "$?" -ne "0" ]; then wget -O - --quiet --timeout=$TIMEOUT --tries=$TRIES "$link" > /dev/null
PKCS5 PBE: free allocations on unlikely / impossible failure path
@@ -91,7 +91,7 @@ int PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *cctx, const char *pass, int passlen, goto err; mdsize = EVP_MD_size(md); if (mdsize < 0) - return 0; + goto err; for (i = 1; i < iter; i++) { if (!EVP_DigestInit_ex(ctx, md, NULL)) goto err;
Remove duplicate postExecutionUnitOperation call Accidentally introduced when merging unstable in
@@ -7373,7 +7373,6 @@ unsigned int delKeysInSlot(unsigned int hashslot) { moduleNotifyKeyspaceEvent(NOTIFY_GENERIC, "del", key, server.db[0].id); postExecutionUnitOperations(); decrRefCount(key); - postExecutionUnitOperations(); j++; server.dirty++; }
Optimize array slice for fast-array cases Performance results: Intel: 0m27s -> 0m7s ARM: 5m42s -> 1m26s JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi
@@ -802,6 +802,30 @@ ecma_builtin_array_prototype_object_slice (ecma_value_t arg1, /**< start */ /* 9. */ uint32_t n = 0; + if (ecma_op_object_is_fast_array (obj_p)) + { + ecma_extended_object_t *ext_from_obj_p = (ecma_extended_object_t *) obj_p; + + if (ext_from_obj_p->u.array.u.hole_count < ECMA_FAST_ARRAY_HOLE_ONE + && len != 0 + && start < end) + { + uint32_t length = end - start; + ecma_extended_object_t *ext_to_obj_p = (ecma_extended_object_t *) new_array_p; + ecma_value_t *to_buffer_p = ecma_fast_array_extend (new_array_p, length); + ecma_value_t *from_buffer_p = ECMA_GET_NON_NULL_POINTER (ecma_value_t, obj_p->u1.property_list_cp); + + for (uint32_t k = start; k < end; k++, n++) + { + to_buffer_p[n] = ecma_copy_value_if_not_object (from_buffer_p[k]); + } + + ext_to_obj_p->u.array.u.hole_count -= length * ECMA_FAST_ARRAY_HOLE_ONE; + + return new_array; + } + } + /* 10. */ for (uint32_t k = start; k < end; k++, n++) {
fix removing keys while searching
import { FIND_KEY_REQUEST, FIND_KEY_SUCCESS, FIND_KEY_FAILURE, - CLEAR_SEARCH, CLEAR_SEARCH_FINAL, + CLEAR_SEARCH, CLEAR_SEARCH_FINAL, DELETE_KEY_SUCCESS, } from '../actions' const initialState = { @@ -36,6 +36,11 @@ export default function batchUndoReducer (state = initialState, action) { case CLEAR_SEARCH_FINAL: return initialState + case DELETE_KEY_SUCCESS: { + const { path } = action.request + return { ...state, results: state.results.filter(p => !p.startsWith(path)) } + } + default: return state }
vere: warn on invalid behn doze
@@ -64,8 +64,7 @@ _behn_ef_doze(u3_behn* teh_u, u3_noun wen) teh_u->alm = c3n; } - if ( (u3_nul != wen) && - (c3y == u3du(wen)) && + if ( (c3y == u3du(wen)) && (c3y == u3ud(u3t(wen))) ) { struct timeval tim_tv; @@ -76,6 +75,8 @@ _behn_ef_doze(u3_behn* teh_u, u3_noun wen) teh_u->alm = c3y; uv_timer_start(&teh_u->tim_u, _behn_time_cb, gap_d, 0); + } else if (u3_nul != wen) { + u3m_p("behn: invalid doze", wen); } u3z(wen);
far cry crash fix for release build
@@ -39,8 +39,6 @@ struct Screen this->fHudOffsetReal = (this->fWidth - this->fHeight * (4.0f / 3.0f)) / 2.0f; this->fHudScale = 1.0f / (((4.0f / 3.0f)) / (this->fAspectRatio)); this->fHudOffset = (((600.0f * this->fAspectRatio) - 800.0f) / 2.0f) / this->fHudScale; - this->fFMVOffsetH = (((600.0f * this->fFMVAspectRatio) - 800.0f) / 2.0f) / this->fHudScale; - this->fFMVOffsetV = (600.0f - (600.0f / (1.0f / (((4.0f / 3.0f)) / (this->fFMVAspectRatio))))) / 2.0f; this->fRadarVerticalOffset = this->fHudOffset * (4.0f / 3.0f); this->fCutOffArea = 0.5f * this->fHudScale; this->fFOVFactor = this->fHudScale * this->fIniFOV; @@ -438,6 +436,7 @@ void InitXRenderD3D9() a.movl(reg::ecx, reg::rax[0x14]); //_asm mov[rax + 14h], ecx a.pushq(reg::rax); + a.pushq(reg::rbx); a.pushq(reg::rdx); a.pushq(reg::rcx); a.pushq(reg::r8); @@ -449,13 +448,14 @@ void InitXRenderD3D9() { Screen.AdjustToRes(w, h); } - ), reg::rax); - a.callq(reg::rax); + ), reg::rbx); + a.callq(reg::rbx); a.popq(reg::r9); a.popq(reg::r8); a.popq(reg::rcx); a.popq(reg::rdx); + a.popq(reg::rbx); a.popq(reg::rax); assert(sizeof(buffer) > ((cb.frontier() + JMPSIZE) - cb.base()));
prereq changes for KDFs
@@ -719,16 +719,16 @@ int main(int argc, char **argv) rv = acvp_enable_kdf135_tls_cap(ctx, ACVP_KDF135_TLS, &app_kdf135_tls_handler); CHECK_ENABLE_CAP_RV(rv); - rv = acvp_enable_kdf135_tls_prereq_cap(ctx, ACVP_KDF135_TLS, ACVP_KDF135_TLS_PREREQ_SHA, value); + rv = acvp_enable_prereq_cap(ctx, ACVP_KDF135_TLS, ACVP_PREREQ_SHA, value); CHECK_ENABLE_CAP_RV(rv); - rv = acvp_enable_kdf135_tls_prereq_cap(ctx, ACVP_KDF135_TLS, ACVP_KDF135_TLS_PREREQ_HMAC, value); + rv = acvp_enable_prereq_cap(ctx, ACVP_KDF135_TLS, ACVP_PREREQ_HMAC, value); CHECK_ENABLE_CAP_RV(rv); rv = acvp_enable_kdf135_tls_cap_parm(ctx, ACVP_KDF135_TLS, ACVP_KDF135_TLS12, ACVP_KDF135_TLS_CAP_SHA256 | ACVP_KDF135_TLS_CAP_SHA384 | ACVP_KDF135_TLS_CAP_SHA512); CHECK_ENABLE_CAP_RV(rv); rv = acvp_enable_kdf135_snmp_cap(ctx, &app_kdf135_snmp_handler); CHECK_ENABLE_CAP_RV(rv); - rv = acvp_enable_kdf135_snmp_prereq_cap(ctx, ACVP_KDF135_TLS_PREREQ_SHA, value); + rv = acvp_enable_prereq_cap(ctx, ACVP_KDF135_SNMP, ACVP_PREREQ_SHA, value); CHECK_ENABLE_CAP_RV(rv); #endif @@ -1949,7 +1949,6 @@ static ACVP_RESULT app_cmac_handler(ACVP_TEST_CASE *test_case) return ACVP_SUCCESS; } -#endif static ACVP_RESULT app_dsa_handler(ACVP_TEST_CASE *test_case) {
iommu: adding changes to the headers
@@ -133,13 +133,17 @@ int32_t driverkit_iommu_get_nodeid(struct iommu_client *cl); * * @param cl the iommu client * @param dst destination vnode to map into - * @param slot the slot to map into * @param src the source capability to be mapped + * @param slot the slot to map into + * @param attr attributes for the mapping + * @param off offset into the frame + * @param count number of page-table entries to be mapped * * @return SYS_ERR_OK on success, errval on failure */ errval_t driverkit_iommu_map(struct iommu_client *cl, struct capref dst, - uint16_t slot, struct capref src, uint64_t attr); + struct capref src, uint16_t slot, uint64_t attr, + uint64_t off, uint64_t count); /**
nimble/ll: Minor code cleanup
@@ -3143,9 +3143,9 @@ ble_ll_adv_sec_done(struct ble_ll_adv_sm *advsm) assert(advsm->aux_active); aux = AUX_CURRENT(advsm); + aux_next = AUX_NEXT(advsm); if (advsm->aux_not_scanned) { - aux_next = AUX_NEXT(advsm); ble_ll_sched_rmv_elem(&aux_next->sch); } @@ -3160,7 +3160,7 @@ ble_ll_adv_sec_done(struct ble_ll_adv_sm *advsm) } /* If we have next AUX scheduled, try to schedule another one */ - if (AUX_NEXT(advsm)->sch.enqueued) { + if (aux_next->sch.enqueued) { advsm->aux_index ^= 1; advsm->aux_first_pdu = 0; ble_ll_adv_aux_schedule_next(advsm);
remove incorrect region_count comment
@@ -181,7 +181,6 @@ static bool mi_region_commit_blocks(mem_region_t* region, size_t idx, size_t bit else { // failed, another thread allocated just before us! // we assign it to a later slot instead (up to 4 tries). - // note: we don't need to increment the region count, this will happen on another allocation for(size_t i = 1; i <= 4 && idx + i < MI_REGION_MAX; i++) { if (mi_atomic_cas_strong(&regions[idx+i].info, info, 0)) { mi_atomic_increment(&regions_count);
Init CLIP sensors to 0/false on startup
@@ -1852,7 +1852,7 @@ static int sqliteLoadAllSensorsCallback(void *user, int ncols, char **colval , c item->setValue(100); } - if (stateCol >= 0) + if (stateCol >= 0 && !isClip) { sensor.jsonToState(QLatin1String(colval[stateCol])); }
libretro: allow mingw cross compile
@@ -550,8 +550,8 @@ else ifeq ($(platform), windows_msvc2005_x86) # Windows else TARGET := $(TARGET_NAME)_libretro.dll - CC = gcc - CXX = g++ + CC ?= gcc + CXX ?= g++ SHARED := -shared -static-libgcc -static-libstdc++ -Wl,-version-script=link.T DISABLE_GCC_SECURITY_FLAGS = 1 endif
Replace non-ASCII character in source file
@@ -316,7 +316,7 @@ uint16_t ossl_ifc_ffc_compute_security_bits(int n) /* * Look for common values as listed in standards. - * These values are not exactly equal to the results from the foruml in + * These values are not exactly equal to the results from the formulae in * the standards but are defined to be canonical. */ switch (n) {
adding libc sigblock, siggetmask, sigsetmask, sigvec
@@ -1515,12 +1515,12 @@ GO(sigaddset, iFpi) // __sigaddset GOW(sigaltstack, iFpp) // sigandset -// sigblock // Weak +GOW(sigblock, iFi) GO(sigdelset, iFpi) // __sigdelset GO(sigemptyset, iFp) GO(sigfillset, iFp) -// siggetmask +GO(siggetmask, iFv) // sighold // sigignore // siginterrupt @@ -1542,12 +1542,12 @@ GOW(sigprocmask, iFipp) // sigreturn // Weak // sigset GOM(__sigsetjmp, iFEp) -// sigsetmask // Weak +GOW(sigsetmask, iFi) // sigstack // sigsuspend // Weak // __sigsuspend // sigtimedwait // Weak -// sigvec // Weak +GOW(sigvec, iFipp) // sigwait // Weak // sigwaitinfo // Weak GOW(sleep, uFu)
gen: add todo item to +help for doccords
|= a=* ^- [cord path] [;;(@t a) (welp (slag len pax) /[nam])] -- -:: +::TODO: make this work with doccords :- %say |= [[now=time @ our=ship ^] typ=$@(~ [p=term ~]) ~] =/ pax=path /(scot %p our)/base/(scot %da now)/gen :: XX hardcoded
fix bug BTSTK_GAP_14007,BTSTK_GAP_14008,BTSTK_GAP_14009 duplicate summary
@@ -2577,7 +2577,7 @@ test cases: - ID: BTSTK_GAP_14007 <<: *GAP_CASE test point 2: BLE set random address test - summary: BLE set random address as resolvable private address + summary: BLE set random address as resolvable private address and cannot be scan initial condition: BLE_INIT_SMP steps: | 1. SSC1 set adv params and config local privacy as true @@ -2604,7 +2604,7 @@ test cases: - ID: BTSTK_GAP_14008 <<: *GAP_CASE test point 2: BLE set random address test - summary: BLE set random address as resolvable private address + summary: disconnect after encryption and set random address as resolvable private address and reconnect steps: | 1. SSC2 set AuthReqMode and IOCAP,set RspKey as Enc and IRK 2. pairing @@ -2651,7 +2651,7 @@ test cases: - ID: BTSTK_GAP_14009 <<: *GAP_CASE test point 2: BLE set random address test - summary: BLE set random address as resolvable private address + summary: reboot after BLE DUT encryption and set random address as resolvable private address steps: | 1. SSC2 set AuthReqMode and IOCAP,set RspKey as Enc and IRK 2. pairing
Start work on Early Hints support
@@ -722,6 +722,7 @@ static fio_cstr_s http1pr_status2str(uintptr_t status) { HTTP_SET_STATUS_STR(100, "Continue"), HTTP_SET_STATUS_STR(101, "Switching Protocols"), HTTP_SET_STATUS_STR(102, "Processing"), + HTTP_SET_STATUS_STR(103, "Early Hints"), HTTP_SET_STATUS_STR(200, "OK"), HTTP_SET_STATUS_STR(201, "Created"), HTTP_SET_STATUS_STR(202, "Accepted"),
Add Valgrind to Dockerfile
@@ -29,6 +29,7 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E03280 srecord \ uml-utilities \ unzip \ + valgrind \ wget \ > /dev/null \ && apt-get -qq clean
Brace on newline changes
@@ -54,7 +54,8 @@ static void detect_cpu_isa() } g_cpu_has_avx2 = 0; - if (num_id >= 7) { + if (num_id >= 7) + { __cpuidex(data, 7, 0); // AVX2 = Bank 7, EBX, bit 5 g_cpu_has_avx2 = data[1] & (1 << 5) ? 1 : 0; @@ -94,7 +95,9 @@ static void detect_cpu_isa() int cpu_supports_sse42() { if (g_cpu_has_sse42 == -1) + { detect_cpu_isa(); + } return g_cpu_has_sse42; } @@ -103,7 +106,9 @@ int cpu_supports_sse42() int cpu_supports_popcnt() { if (g_cpu_has_popcnt == -1) + { detect_cpu_isa(); + } return g_cpu_has_popcnt; } @@ -112,7 +117,9 @@ int cpu_supports_popcnt() int cpu_supports_avx2() { if (g_cpu_has_avx2 == -1) + { detect_cpu_isa(); + } return g_cpu_has_avx2; }
Add test-all target (build all tests).
@@ -61,7 +61,10 @@ distclean: clean ############################################################################## # tests -.PHONY: test test-noaccel +.PHONY: test-all test test-noaccel + +test-all: + $(Q) $(MAKE) -C test test test-noaccel: mkfs boot stage3 $(Q) $(MAKE) -C test test
update ya tool arc calculate log of element with inherited copy info taken into account status for stage with new item and empty base tree cache informational local username for OAuth provider
}, "arc": { "formula": { - "sandbox_id": [350557867], + "sandbox_id": [351914840], "match": "arc" }, "executable": {
nimble/plna: Fix bypass on SKY66112
#include "controller/ble_ll_plna.h" #define NO_BYPASS \ - ((MYNEWT_VAL(SKY66112_TX_BYPASS) >= 0) && \ - (MYNEWT_VAL(SKY66112_RX_BYPASS) >= 0)) + ((MYNEWT_VAL(SKY66112_TX_BYPASS) == 0) && \ + (MYNEWT_VAL(SKY66112_RX_BYPASS) == 0)) static void sky66112_bypass(uint8_t enabled)
vfs: fix select return value when non-permanent fd closed
@@ -37,7 +37,7 @@ static const char *TAG = "vfs"; #define VFS_MAX_COUNT 8 /* max number of VFS entries (registered filesystems) */ #define LEN_PATH_PREFIX_IGNORED SIZE_MAX /* special length value for VFS which is never recognised by open() */ -#define FD_TABLE_ENTRY_UNUSED (fd_table_t) { .permanent = false, .vfs_index = -1, .local_fd = -1 } +#define FD_TABLE_ENTRY_UNUSED (fd_table_t) { .permanent = false, .has_pending_close = false, .has_pending_select = false, .vfs_index = -1, .local_fd = -1 } typedef uint8_t local_fd_t; _Static_assert((1 << (sizeof(local_fd_t)*8)) >= MAX_FDS, "file descriptor type too small"); @@ -47,7 +47,10 @@ _Static_assert((1 << (sizeof(vfs_index_t)*8)) >= VFS_MAX_COUNT, "VFS index type _Static_assert(((vfs_index_t) -1) < 0, "vfs_index_t must be a signed type"); typedef struct { - bool permanent; + bool permanent :1; + bool has_pending_close :1; + bool has_pending_select :1; + uint8_t _reserved :5; vfs_index_t vfs_index; local_fd_t local_fd; } fd_table_t; @@ -511,8 +514,12 @@ int esp_vfs_close(struct _reent *r, int fd) _lock_acquire(&s_fd_table_lock); if (!s_fd_table[fd].permanent) { + if (s_fd_table[fd].has_pending_select) { + s_fd_table[fd].has_pending_close = true; + } else { s_fd_table[fd] = FD_TABLE_ENTRY_UNUSED; } + } _lock_release(&s_fd_table_lock); return ret; } @@ -906,6 +913,9 @@ int esp_vfs_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds const bool is_socket_fd = s_fd_table[fd].permanent; const int vfs_index = s_fd_table[fd].vfs_index; const int local_fd = s_fd_table[fd].local_fd; + if (esp_vfs_safe_fd_isset(fd, errorfds)) { + s_fd_table[fd].has_pending_select = true; + } _lock_release(&s_fd_table_lock); if (vfs_index < 0) { @@ -1034,6 +1044,7 @@ int esp_vfs_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds } call_end_selects(vfs_count, vfs_fds_triple, driver_args); // for VFSs for start_select was called before + if (ret >= 0) { ret += set_global_fd_sets(vfs_fds_triple, vfs_count, readfds, writefds, errorfds); } @@ -1041,6 +1052,13 @@ int esp_vfs_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds vSemaphoreDelete(sel_sem.sem); sel_sem.sem = NULL; } + for (int fd = 0; fd < nfds; ++fd) { + _lock_acquire(&s_fd_table_lock); + if (s_fd_table[fd].has_pending_close) { + s_fd_table[fd] = FD_TABLE_ENTRY_UNUSED; + } + _lock_release(&s_fd_table_lock); + } free(vfs_fds_triple); free(driver_args);
Moved date setting from tm struct to its own routine.
@@ -996,6 +996,14 @@ spec_err (GLogItem * logitem, int code, const char spec, const char *tkn) { return 1; } +static void +set_tm_dt_logitem(GLogItem *logitem, struct tm tm) +{ + logitem->dt.tm_year = tm.tm_year; + logitem->dt.tm_mon = tm.tm_mon; + logitem->dt.tm_mday = tm.tm_mday; +} + #pragma GCC diagnostic warning "-Wformat-nonliteral" /* Parse the log string given log format rule. @@ -1031,9 +1039,7 @@ parse_specifier (GLogItem * logitem, char **str, const char *p, const char *end) free (tkn); return 1; } - logitem->dt.tm_year = tm.tm_year; - logitem->dt.tm_mon = tm.tm_mon; - logitem->dt.tm_mday = tm.tm_mday; + set_tm_dt_logitem(logitem, tm); free (tkn); break; /* time */ @@ -1067,9 +1073,7 @@ parse_specifier (GLogItem * logitem, char **str, const char *p, const char *end) return 1; } - logitem->dt.tm_year = tm.tm_year; - logitem->dt.tm_mon = tm.tm_mon; - logitem->dt.tm_mday = tm.tm_mday; + set_tm_dt_logitem(logitem, tm); logitem->dt.tm_hour = tm.tm_hour; logitem->dt.tm_min = tm.tm_min;
ci: make flash performance test alternative
@@ -902,6 +902,7 @@ static void test_write_large_buffer(const esp_partition_t* part, const uint8_t * read_and_check(part, source, length); } +#if !CONFIG_SPIRAM typedef struct { uint32_t us_start; size_t len; @@ -1043,8 +1044,9 @@ static void test_flash_read_write_performance(const esp_partition_t *part) free(data_read); } -FLASH_TEST_CASE("Test esp_flash read/write performance", test_flash_read_write_performance); -FLASH_TEST_CASE_3("Test esp_flash read/write performance", test_flash_read_write_performance); +TEST_CASE("Test esp_flash read/write performance", "[esp_flash][test_env=UT_T1_ESP_FLASH]") {flash_test_func(test_flash_read_write_performance, 1);} +#endif // !CONFIG_SPIRAM +FLASH_TEST_CASE_3("Test esp_flash read/write performance"", 3 chips", test_flash_read_write_performance); #ifdef CONFIG_SPIRAM_USE_MALLOC
Fix build to deal with removal of streq function.
@@ -14,8 +14,8 @@ const strcaseeq = {a : byte[:], b : byte[:] -> bool var ca, cb while a.len == 0 || b.len == 0 - (ca, a) = std.strstep(a) - (cb, b) = std.strstep(b) + (ca, a) = std.charstep(a) + (cb, b) = std.charstep(b) if std.tolower(ca) != std.tolower(cb) -> false ;;
sixtop: add a comment why RC_ERR_BUSY is used instead of RC_RESET
@@ -269,6 +269,15 @@ sixp_input(const uint8_t *buf, uint16_t len, const linkaddr_t *src_addr) LOG_ERR("6P: sixp_input() fails because another request [peer_addr:"); LOG_ERR_LLADDR((const linkaddr_t *)src_addr); LOG_ERR_(" seqno:%u] is in process\n", sixp_trans_get_seqno(trans)); + /* + * Although RFC 8480 says in Section 3.4.3 that we MUST send + * RC_RESET back in this case, we use RC_ERR_BUSY + * instead. RC_RESET requires the peer to revert SeqNum update + * by the corresponding transaction, which may cause + * unnecessary SeqNum disagreement. This also would make the + * implementation complex. At this moment, no benefit is seen + * in using RC_RESET over RC_ERR_BUSY. + */ if(send_back_error(SIXP_PKT_TYPE_RESPONSE, SIXP_PKT_RC_ERR_BUSY, (const sixp_pkt_t *)&pkt, src_addr) < 0) { LOG_ERR("6P: sixp_input() fails to return an error response");
framework/media: Add onPlaybackStopped in notifyObserver. add onPlaybackStopped.
@@ -558,6 +558,9 @@ void MediaPlayerImpl::notifyObserver(player_observer_command_t cmd, ...) case PLAYER_OBSERVER_COMMAND_PAUSED: pow.enQueue(&MediaPlayerObserverInterface::onPlaybackPaused, mPlayerObserver, mPlayer); break; + case PLAYER_OBSERVER_COMMAND_STOPPED: + pow.enQueue(&MediaPlayerObserverInterface::onPlaybackStopped, mPlayerObserver, mPlayer); + break; case PLAYER_OBSERVER_COMMAND_BUFFER_OVERRUN: pow.enQueue(&MediaPlayerObserverInterface::onPlaybackBufferOverrun, mPlayerObserver, mPlayer); break;