message
stringlengths
6
474
diff
stringlengths
8
5.22k
feat(boat for L610): update boat for L610, add chainmaker and fabric , the signature should be returned in pem format
@@ -87,6 +87,9 @@ BOAT_RESULT BoatSignature(BoatWalletPriKeyCtx prikeyCtx, { BUINT8 signatureTmp[64]; BUINT8 ecdsPrefix = 0; + BUINT8 pem_data[100] = {0}; + BUINT32 offset = 0; + BCHAR str_signres[256] = {0}; BOAT_RESULT result = BOAT_SUCCESS; @@ -127,6 +130,19 @@ BOAT_RESULT BoatSignature(BoatWalletPriKeyCtx prikeyCtx...
Rename next_out_pkt_num as next_tx_pkt_num
@@ -110,7 +110,7 @@ static ssize_t conn_encode_handshake_pkt(ngtcp2_conn *conn, uint8_t *dest, ngtcp2_frame fr; ngtcp2_pkt_hd_init(&hd, NGTCP2_PKT_FLAG_LONG_FORM, type, conn->conn_id, - conn->next_out_pkt_num, conn->version); + conn->next_tx_pkt_num, conn->version); ngtcp2_upe_init(&upe, dest, destlen); @@ -133,7 +133,...
nrf/main: Run boot.py and main.py on startup.
@@ -184,6 +184,16 @@ pin_init0(); MP_PARSE_FILE_INPUT); #endif +#if MICROPY_VFS || MICROPY_HW_HAS_BUILTIN_FLASH + // run boot.py and main.py if they exist. + if (mp_import_stat("boot.py") == MP_IMPORT_STAT_FILE) { + pyexec_file("boot.py"); + } + if (mp_import_stat("main.py") == MP_IMPORT_STAT_FILE) { + pyexec_file("mai...
mdns: fix crash when adding services without hostname set
@@ -178,7 +178,7 @@ static mdns_srv_item_t * _mdns_get_service_item(const char * service, const char static mdns_host_item_t * mdns_get_host_item(const char * hostname) { - if (strcasecmp(hostname, _mdns_server->hostname) == 0) { + if (hostname == NULL || strcasecmp(hostname, _mdns_server->hostname) == 0) { return &_md...
py/modio: Allow uio.IOBase streams to return errno for read/write error. This allows user code that inherits from uio.IOBase to return an errno error code from the user readinto/write function, by returning a negative value. Eg returning -123 means an errno of 123. This is already how the custom ioctl works.
@@ -62,12 +62,17 @@ STATIC mp_uint_t iobase_read_write(mp_obj_t obj, void *buf, mp_uint_t size, int mp_load_method(obj, qst, dest); mp_obj_array_t ar = {{&mp_type_bytearray}, BYTEARRAY_TYPECODE, 0, size, buf}; dest[2] = MP_OBJ_FROM_PTR(&ar); - mp_obj_t ret = mp_call_method_n_kw(1, 0, dest); - if (ret == mp_const_none) ...
peview: Fix window focus
@@ -151,11 +151,13 @@ INT WINAPI wWinMain( { PhMoveReference(&PvFileName, PhConcatStrings(3, L"\"", PvFileName->Buffer, L"\"")); + AllowSetForegroundWindow(ASFW_ANY); + if (PhShellExecuteEx( NULL, PhGetString(applicationFileName), PvFileName->Buffer, - SW_SHOWDEFAULT, + SW_SHOWNORMAL, PH_SHELL_EXECUTE_NOZONECHECKS, 0, ...
YAMBi: Ignore undefined behavior in input class We now always ignore undefined behavior in the input class, if there is a high chance, that the current system uses `libstdc++`.
@@ -60,13 +60,12 @@ if (DEPENDENCY_PHASE) set (SOURCE_FILES_INPUT input.hpp input.cpp) - if (ENABLE_ASAN AND CMAKE_COMPILER_IS_GNUCXX) - # ~~~ - # Ignore runtime error about member call on address, which does not point to object of type `__codecvt_abstract_base`. - # See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?...
Fix locking issue during save on Windows.
@@ -528,6 +528,8 @@ papplSystemSaveState( { job = (pappl_job_t *)cupsArrayGetElement(printer->all_jobs, j); + pthread_rwlock_rdlock(&job->rwlock); + // Add basic job attributes... num_options = 0; num_options = cupsAddIntegerOption("id", job->job_id, num_options, &options); @@ -582,6 +584,8 @@ papplSystemSaveState( wri...
ni: extend docu
@@ -49,7 +49,8 @@ For the metadata of the parent key use the following syntax: meta=foo ``` -Line continuation works by ending the line with `\\`. +Line continuation works by ending the line with `\\` (a single backslash). +If you want a line break at the end of the line, use `\\n\\`. To export a `KeySet` in the nickel...
doc: add curl output as validation to install-webui.md
@@ -143,6 +143,7 @@ Now, the command ```sh curl http://localhost:33333/kdb/user/test +#> {"exists":true,"name":"test","path":"user/test","ls":["user/test"],"value":"5","meta":""} ``` will return us the value of the specified key `user:/test`, which is stored in the database right now
.gitmodules: Switch lib/mbedtls to use Pycopy fork. To be able to apply fixes and adjustments required for Pycopy usage.
url = https://github.com/NordicSemiconductor/nrfx.git [submodule "lib/mbedtls"] path = lib/mbedtls - url = https://github.com/ARMmbed/mbedtls.git + url = https://github.com/pfalcon/mbedtls.git [submodule "lib/asf4"] path = lib/asf4 url = https://github.com/adafruit/asf4
Update: only non-empty assignments are entered
@@ -165,6 +165,7 @@ def getNounRelNoun(words): ASSIGN = False if ASSIGN: for x in Cs + Ms + [RELATION]: + if x != EMPTY: AddBelief(f"<{x[3]} --> [ASSIGNED]>") for x in words: Break = False
cmake: fix crosstool-NG version check regex
@@ -12,11 +12,11 @@ endfunction() function(crosstool_version_check expected_ctng_version) execute_process( - COMMAND ${CMAKE_C_COMPILER} -v - ERROR_VARIABLE toolchain_stderr - OUTPUT_QUIET) + COMMAND ${CMAKE_C_COMPILER} --version + OUTPUT_VARIABLE toolchain_version + ERROR_QUIET) - string(REGEX MATCH "crosstool-ng-[0-9...
Fix jemalloc build for PowerPC Note: mandatory check (NEED_CHECK) was skipped
* Hyper-threaded CPUs may need a special instruction inside spin loops in * order to yield to another virtual CPU. */ -#if defined(__arm__) || defined(__ARM_NEON) || defined(__aarch64__) +#if defined(__arm__) || defined(__ARM_NEON) || defined(__aarch64__) || defined(__ppc__) #define CPU_SPINWAIT #else #define CPU_SPINW...
Fix broken build_all_nix.sh
@@ -28,10 +28,10 @@ function os_sdk { esac } -lnx_common_flags="-DNO_DEBUGINFO $(os_sdk) $CUDA_ARG" +lnx_common_flags="-DNO_DEBUGINFO $CUDA_ARG" -python ya make -r $lnx_common_flags -o . catboost/app -python ya make -r $lnx_common_flags -o . catboost/libs/model_interface +python ya make -r $lnx_common_flags $(os_sdk) -...
Update demos/ble/README.md
@@ -10,4 +10,4 @@ The iOS and Android SDK can run this demo at the same time as MQTT demo by creat This demo creates a special service with two characteristics, one used to count, the other used to control the counter. From the application, the user can chose to stop/start/reset the counter. ## MQTT BLE Transport Demo ...
tests: internal: stream_processor: added config initialization to prevent macos crashes.
*/ #include <fluent-bit/flb_info.h> +#include <fluent-bit/flb_config.h> #include <fluent-bit/flb_mem.h> #include <fluent-bit/flb_pack.h> #include <fluent-bit/flb_error.h> #define MP_UOK MSGPACK_UNPACK_SUCCESS +static void initialization_crutch() +{ + struct flb_config *config; + + config = flb_config_init(); + + if (co...
Updated the test fixture code
-import Zemu from '@zondax/zemu'; +import Zemu, { DEFAULT_START_OPTIONS, DeviceModel } from '@zondax/zemu'; import Eth from '@ledgerhq/hw-app-eth'; import {RLP} from "ethers/lib/utils"; @@ -8,20 +8,11 @@ async function waitForAppScreen(sim) { await sim.waitUntilScreenIsNot(sim.getMainMenuSnapshot(), transactionUploadDe...
put helpful usage tips on main docs page
@@ -18,6 +18,15 @@ Tutorial ========================== We have developed a fairly comprehensive `tutorial <http://quinlanlab.org/tutorials/bedtools/bedtools.html>`_ that demonstrates both the basics, as well as some more advanced examples of how bedtools can help you in your research. Please have a look. +=============...
Fix missed documentation header
@@ -279,32 +279,29 @@ typedef enum /*! * \brief Internal Function for AEAD multipart tests. - * * \param key_type_arg Type of key passed in * \param key_data The encryption / decryption key data * \param alg_arg The type of algorithm used * \param nonce Nonce data * \param additional_data Additional data - * \param ad_...
Retry sending packets one by one if sendmmsg EIO error
@@ -340,6 +340,30 @@ int picoquic_packet_loop(picoquic_quic_t* quic, picoquic_notify_destination_unreachable(last_cnx, current_time, (struct sockaddr*) & peer_addr, (struct sockaddr*) & local_addr, if_index, sock_err); + } else if (sock_err == EIO) { + size_t packet_index = 0; + size_t packet_size = send_msg_size; + + ...
CMake check for required header for SPI connection
@@ -8,12 +8,14 @@ set(CONNECTION_SPI_SOURCES ${THIS_SOURCE_DIR}/ConnectionSPI.cpp ) +CHECK_INCLUDE_FILE("wiringPi.h" HAS_WIRING_HEADER) + ######################################################################## ## Feature registration ######################################################################## include(Feat...
driver/memory: Search all kmmheaps in heapinfo if CONFIG_KMM_NHEAPS > 1 It should search all kmmheaps if CONFIG_KMM_NHEAPS > 1 to show all heaps information in heapinfo.
@@ -126,7 +126,18 @@ static int mminfo_ioctl(FAR struct file *filep, int cmd, unsigned long arg) heap->peak_alloc_size = 0; return OK; } +#if CONFIG_KMM_NHEAPS > 1 + if (option->heap_type == HEAPINFO_HEAP_TYPE_KERNEL) { + int heap_idx; + for (heap_idx = HEAP_START_IDX; heap_idx <= HEAP_END_IDX; heap_idx++) { + printf("...
Crash reports are only generated if the necessary services are available
@@ -166,7 +166,30 @@ finish_fmt: } static bool _can_send_crash_report(void) { - return amc_is_active() && amc_service_is_active(FILE_MANAGER_SERVICE_NAME); + if (!amc_is_active() || !amc_service_is_active(FILE_MANAGER_SERVICE_NAME)) { + printf("Cannot generate crash report because the file manager service wasn't active...
doc: fix link to external page in PORTING Remove a footnote that is not generating a proper link and add an inline link to the mbed TLS referece for platform.h. This also fixes a warning when running through recommonmark==0.6.0 because it is unable to parse the old syntax.
@@ -144,15 +144,14 @@ int flash_area_id_to_multi_image_slot(int image_index, int area_id); needs to provide this pair of function. To configure the what functions are called when allocating/deallocating -memory `mbed TLS` uses the following call [^1]: +memory `mbed TLS` uses the following call: ``` int mbedtls_platform...
Add missing aead state tests.
@@ -4503,6 +4503,23 @@ void aead_multipart_state_test( int key_type_arg, data_t *key_data, PSA_ASSERT( psa_aead_set_nonce( &operation, nonce->x, nonce->len ) ); + PSA_ASSERT( psa_aead_update_ad( &operation, additional_data->x, + additional_data->len ) ); + + TEST_EQUAL( psa_aead_set_lengths( &operation, additional_data...
After login failed set the cps to correct state. If the device failed to login once to the cloud the cps was set to failed state. After the device logged successfully to the cloud the cps was left in failed state.
@@ -302,7 +302,7 @@ _login_handler(oc_cloud_context_t *ctx, oc_client_response_t *data) ctx->retry_count = 0; ctx->store.status |= OC_CLOUD_LOGGED_IN; - cloud_set_last_error(ctx, CLOUD_OK); + cloud_set_cps_and_last_error(ctx, OC_CPS_REGISTERED, CLOUD_OK); if (ctx->expires_in) { ctx->store.status |= OC_CLOUD_TOKEN_EXPIR...
Minor update to rw logic.
@@ -207,7 +207,7 @@ void SCS(log_data_to_csv)(const ScsData *d, const ScsCone *k, const ScsWork *w, FILE *fout = fout = fopen(d->stgs->log_csv_filename, iter == 0 ? "w": "a"); scs_int l = w->m + w->n + 1; if (iter == 0) { - fprintf(fout, "iter,res_pri,res_dual,gap,res_infeas,res_unbdd_a,res_unbdd_p" + fprintf(fout, "it...
amends errno == ENOENT is okay
@@ -1774,7 +1774,7 @@ uint64_t h2o_socket_ebpf_lookup_flags(h2o_loop_t *loop, int (*init_key)(h2o_ebpf // make sure a possible old flags is not set, // otherwise the subsequent logic will be unreliable. - if (ebpf_map_delete(return_map_fd, &tid) == 0) { + if (ebpf_map_delete(return_map_fd, &tid) == 0 || errno == ENOENT...
Remove undefined declaration: ocf_cleaner_set_io_queue Function ocf_cleaner_set_io_queue is not used and not defined But is declared This patch removes declaration
@@ -30,14 +30,6 @@ typedef void (*ocf_cleaner_end_t)(ocf_cleaner_t cleaner, uint32_t interval); */ void ocf_cleaner_set_cmpl(ocf_cleaner_t cleaner, ocf_cleaner_end_t fn); -/** - * @brief Set cleaner queue - * - * @param[in] cleaner Cleaner instance - * @param[in] io_queue Queue handle - */ -void ocf_cleaner_set_io_queu...
type , set AOMP_CHECK_GIT_BRANCH correctly
@@ -173,7 +173,7 @@ else ROCM_DIR=${ROCM_DIR:-/opt/rocm} # Jenkins builds may not use the current development branches. # So we turn off git branch checking. - AOMP_CHECK_GIT_BRANCHES=0 + AOMP_CHECK_GIT_BRANCH=0 # Jenkins build will set the build directory BUILD_DIR to its own work area. # And since that is not $AOMP_R...
chat-hook: identify DMs correctly
state-3 state-4 state-5 + state-6 == :: ++$ state-6 [%6 state-base] +$ state-5 [%5 state-base] +$ state-4 [%4 state-base] +$ state-3 [%3 state-base] $% [%chat-update update:store] == -- -=| state-5 +=| state-6 =* state - :: %- agent:dbug =/ old !<(versioned-state old-vase) =| cards=(list card) |- - ?: ?=(%5 -.old) + ?:...
Reference CVE-2018-10392 in the release notes. The fix for this issue was in the 1.3.7 release, but we didn't refer to the CVE number explicitly in the release notes. Do so now for the benefit of anyone auditing vulnerability fixes in the future.
@@ -2,6 +2,7 @@ libvorbis 1.3.7 (2020-07-04) -- "Xiph.Org libVorbis I 20200704 (Reducing Environ * Fix CVE-2018-10393 - out-of-bounds read encoding very low sample rates. * Fix CVE-2017-14160 - out-of-bounds read encoding very low sample rates. +* Fix CVE-2018-10392 - out-of-bounds access encoding invalid channel count...
tools/makemanifest.py: Support freezing a subdirectory recursively. This adds support for freezing an entire directory while keeping the directory as part of the import path. For example freeze("path/to/library", "module") will recursively freeze all scripts in "path/to/library/module" and have them importable as "fro...
@@ -76,9 +76,10 @@ def freeze(path, script=None, opt=0): If `script` is an iterable then freeze() is called on all items of the iterable (with the same `path` and `opt` passed through). - If `script` is a string then it specifies the filename to freeze, and - can include extra directories before the file. The file will...
Make sure all statuses are initialised
@@ -345,7 +345,7 @@ psa_status_t mbedtls_psa_aead_encrypt_setup( mbedtls_psa_aead_operation_t size_t key_buffer_size, psa_algorithm_t alg ) { - psa_status_t status; + psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; status = psa_aead_setup( operation, attributes, key_buffer, key_buffer_size, alg ); @@ -366,7 +366,7...
zephyr/shim/src/bc12_pi3usb9201.c: Format with clang-format BRANCH=none TEST=none
#include "usb_pd.h" #include "usbc/utils.h" - #if DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT) BUILD_ASSERT(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) > 0, @@ -23,19 +22,17 @@ BUILD_ASSERT(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) > 0, #define USBC_PORT_BC12(inst) \ { \ .i2c_port = I2C_PORT(DT_PHANDLE(DT_DRV_INST(inst), port)), \...
Minor unit test changes from PR feedback
@@ -145,8 +145,9 @@ static int negotiate_kem(const uint8_t client_extensions[], const size_t client_ free(cert_chain); free(private_key); - /* Multiply by -1 so tests can use EXPECT_SUCCESS */ - return (-1) * (negotiated_kem_id != expected_kem_id); + S2N_ERROR_IF(negotiated_kem_id != expected_kem_id, S2N_ERR_PQ_KEMS_DI...
Add missing connection close callback
@@ -1759,6 +1759,7 @@ int picoquic_incoming_encrypted( if (closing_received) { if (cnx->client_mode) { cnx->cnx_state = picoquic_state_disconnected; + (void)(cnx->callback_fn)(cnx, 0, NULL, 0, picoquic_callback_close, cnx->callback_ctx, NULL); } else { cnx->cnx_state = picoquic_state_draining;
nrf/Makefile: Remove -fstack-usage. fstack-usage is not supported by Clang and old GCC versions.
@@ -102,7 +102,6 @@ endif CFLAGS += $(CFLAGS_MCU_$(MCU_SERIES)) CFLAGS += $(INC) -Wall -Werror -g -ansi -std=gnu99 -nostdlib $(COPT) $(NRF_DEFINES) $(CFLAGS_MOD) CFLAGS += -fno-strict-aliasing -CFLAGS += -fstack-usage CFLAGS += -Iboards/$(BOARD) CFLAGS += -DNRF5_HAL_H='<$(MCU_VARIANT)_hal.h>' CFLAGS += $(CFLAGS_LTO)
Emitter: Hash build can use == to test for key equality.
@@ -3206,12 +3206,14 @@ static void eval_build_hash(lily_emit_state *emit, lily_ast *ast, eval_tree(emit, key_tree, key_type); - unify_type = lily_ts_unify(emit->ts, key_type, key_tree->result->type); - if (unify_type == NULL) + /* The only valid types for Hash keys are monomorphic so == can be used + for equality test...
Add tests for SetParam for any object/parameter
@@ -1821,6 +1821,56 @@ void QuicTestGlobalSetParam() void QuicTestCommonSetParam() { + // + // Null hundle + // + { + TestScopeLogger LogScope("Null handle with non-global param"); + TEST_QUIC_STATUS( + QUIC_STATUS_INVALID_PARAMETER, + MsQuic->SetParam( + nullptr, + 0, // Any param other than GLOBAL + 0, + nullptr)); +...
Try to fix some quoting.
@@ -30,7 +30,7 @@ jobs: uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest' id: west-init with: - args: "init -l app" + args: 'init "-l app"' - name: West Update uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest' id: west-update @@ -40,7 +40,7 @@ jobs: uses: 'docker://zmkfirmware/zephyr-west-action-arm:l...
Bug fix for download_tool
# rtl8721csm_download.sh if [ -n "$2" ]; then - TTYDEV="$2" + PORT="$2" else - TTYDEV="ttyUSB1" + PORT="ttyUSB1" fi -WARNING="\n Port $TTYDEV is selected\n\n +WARNING="\n Port $PORT is selected\n\n ############################################\n WARNINGS:\n 1. Make sure the board is in DOWNLOAD MODE.\n 2. Make sure NO o...
apps/system/utils: Fix fscmd leak Fix a function that causes a leak
@@ -812,6 +812,8 @@ static int search_mountpoints(const char *dirpath, foreach_mountpoint_t handler) ret = statfs(fullpath, &buf); if (ret != OK) { FSCMD_OUTPUT("statfs is failed at %s\n", fullpath); + fscmd_free(fullpath); + closedir(dirp); return ERROR; } @@ -824,6 +826,8 @@ static int search_mountpoints(const char *...
Net-KVM: Make miniportShutdown return immediately on "NdisShutdownBugCheck" According to msdn: "If MiniportHaltEx causes a system error, then the miniport driver will see a nested call to MiniportShutdownEx with ShutdownActionNdisShutdownBugCheck. In this case, MiniportShutdownEx should return immediately without doing...
@@ -476,10 +476,12 @@ static VOID ParaNdis6_AdapterShutdown( NDIS_HANDLE miniportAdapterContext, NDIS_SHUTDOWN_ACTION shutdownAction) { + if (shutdownAction == NdisShutdownBugCheck) + { + return; + } PARANDIS_ADAPTER *pContext = (PARANDIS_ADAPTER *)miniportAdapterContext; - UNREFERENCED_PARAMETER(shutdownAction); - Par...
VERSION bump to version 2.0.224
@@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 223) +set(LIBYANG_MICRO_VERSION 224) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}...
zuse: removes obselete structures $ares, $coop, and $disc
:: :: miscellaneous systems types ::+| -++ ares (unit {p/term q/(list tank)}) :: possible error :: +capped-queue: a +qeu with a maximum number of entries :: ++ capped-queue depth=_1 == :: -++ coop (unit ares) :: possible error -:: +disc: a desk on a ship; can be used as a beak that varies with time -:: -+$ disc [=ship ...
update skeygen example with new class names
# limitations under the License. # -#key generation example import sys -from pythemis import skeygen +import os +from pythemis.skeygen import KEY_PAIR_TYPE, GenerateKeyPair -alg="EC"; +if len(sys.argv) != 3: + print("Usage: python {} <private_key_path> <public_key_path>".format( + os.path.basename(__file__))) + exit(1)...
ci: fixed flakey light sleep example test A wake-up from timer would trigger before the gpio wakeup in certain cases, failing the test. Change the regex to only expect the GPIO wakeup, so that even if there is an extra timer wakeup it wont fail the test.
@@ -18,6 +18,8 @@ def test_light_sleep(dut: Dut) -> None: ENTERING_SLEEP_STR = 'Entering light sleep' EXIT_SLEEP_REGEX = r'Returned from light sleep, reason: (\w+), t=(\d+) ms, slept for (\d+) ms' + EXIT_SLEEP_PIN_REGEX = r'Returned from light sleep, reason: (pin), t=(\d+) ms, slept for (\d+) ms' + EXIT_SLEEP_UART_REGE...
rollback the code
@@ -146,7 +146,7 @@ static int ipset_update(struct module_env *env, struct dns_msg *return_msg, stru ret = add_to_ipset(mnl, setname, rr_data + 2, af); if (ret < 0) { log_err("ipset: could not add %s into %s", dname, setname); - return ret; + break; } } }
Switch YP gtest-based unit tests to GTEST macro
@@ -123,7 +123,7 @@ def validate_test(unit, kw): errors.append("FLEUR test is not allowed here") elif valid_kw.get('SCRIPT-REL-PATH') == 'gtest': project_path = valid_kw.get('BUILD-FOLDER-PATH', "") - if not project_path.startswith(("adfox", "contrib", "devtools", "mail", "mds")): + if not project_path.startswith(("adf...
Add EorzeaTimeOverride to Framework.
@@ -21,6 +21,8 @@ public unsafe partial struct Framework [FieldOffset(0x1680)] public long ServerTime; [FieldOffset(0x16B8)] public float FrameDeltaTime; [FieldOffset(0x1770)] public long EorzeaTime; + [FieldOffset(0x1798)] public long EorzeaTimeOverride; + [FieldOffset(0x17A0)] public bool IsEorzeaTimeOverridden; [Fie...
hw/mcu/dialog: Reset PDC entries on startup Apparently they are not reset on soft reset.
*/ #include <assert.h> +#include "mcu/da1469x_pdc.h" #include "DA1469xAB.h" #define PMU_ALL_SLEEP_MASK (CRG_TOP_PMU_CTRL_REG_TIM_SLEEP_Msk | \ @@ -45,6 +46,14 @@ void SystemInit(void) __ISB(); #endif + /* + * Reset all PDC entries. Make sure PD_SYS cannot be powered down before + * resetting as otherwise it will be pow...
Unable to mipmap multisampled textures;
@@ -3269,6 +3269,7 @@ Pass* lovrGraphicsGetPass(PassInfo* info) { lovrCheck(t->height <= state.limits.renderSize[1], "Render pass height (%d) exceeds the renderSize limit of this GPU (%d)", t->height, state.limits.renderSize[1]); lovrCheck(t->layers <= state.limits.renderSize[2], "Pass view count (%d) exceeds the rende...
Update ticket flag macros Define the ALLOW_PSK_RESUMPTION and ALLOW_PSK_EPHEMERAL_RESUMPTION to the key exchange mode EXCHANGE_MODE_PSK and EXCHANGE_MODE_PSK_EPHEMERAL to facilate later check. Since they are 1( 1u<<0 ) and 4( 1u<<2 ), so define ALLOW_EARLY_DATA to 8( 1u<<3 ).
@@ -810,8 +810,8 @@ typedef struct mbedtls_ssl_flight_item mbedtls_ssl_flight_item; #endif #if defined(MBEDTLS_SSL_PROTO_TLS1_3) && defined(MBEDTLS_SSL_SESSION_TICKETS) - typedef uint8_t mbedtls_ssl_tls13_ticket_flags; + #define MBEDTLS_SSL_TLS1_3_TICKET_ALLOW_PSK_RESUMPTION \ MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK /...
simpleserver_pki:raise appdatasize for CTT tests
@@ -166,7 +166,9 @@ main(void) return init; } -#ifdef OC_PKI +#if defined(OC_SECURITY) && defined(OC_PKI) + oc_set_max_app_data_size(16384); + const unsigned char my_crt[] = { 0x30, 0x82, 0x03, 0xf8, 0x30, 0x82, 0x03, 0x9e, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x09, 0x00, 0x8d, 0x0a, 0xfb, 0x7b, 0x53, 0xb2, 0x4c, 0xb6, ...
Instantiate when RAND_status() checks
@@ -403,6 +403,8 @@ static int drbg_status(void) int ret; CRYPTO_THREAD_write_lock(rand_drbg.lock); + if (rand_drbg.state == DRBG_UNINITIALISED) + RAND_DRBG_instantiate(&rand_drbg, NULL, 0); ret = rand_drbg.state == DRBG_READY ? 1 : 0; CRYPTO_THREAD_unlock(rand_drbg.lock); return ret;
update ya tool arc check macos version fix status for reseted files
}, "arc": { "formula": { - "sandbox_id": [345997705], + "sandbox_id": [346556835], "match": "arc" }, "executable": {
Only cherry pick the timers that have actually expired when expiring a whole slot
@@ -58,6 +58,7 @@ static inline int clz(uint64_t n) } /* debug macros and functions */ +//#define WANT_DEBUG #ifdef WANT_DEBUG #define WHEEL_DEBUG(fmt, args...) \ do { \ @@ -263,9 +264,22 @@ size_t h2o_timer_wheel_run(h2o_timer_wheel_t *w, uint64_t now) end_slot = j == wid ? now_slot : H2O_TIMERWHEEL_SLOTS_MASK; /* all...
Support DLL_FOR in yt/python/yson + Add forgotten alias for explicit PYTHON_ADDINCL in PY23_NATIVE_LIBRARY
@@ -3411,6 +3411,7 @@ multimodule PY23_NATIVE_LIBRARY { } module PY3: LIBRARY { .RESTRICTED=PY_SRCS USE_PYTHON USE_PYTHON3 + .ALIASES=PYTHON_ADDINCL=PYTHON3_ADDINCL PYTHON3_ADDINCL() when ($MSVC == "yes" || $CYGWIN == "yes") { MODULE_PREFIX=py3c
Update cascade_convert.py convert the map variable to a tuple to avoid "TypeError: 'map' object is not subscriptable" error
@@ -191,7 +191,7 @@ def cascade_binary(path, n_stages, name): idx = int(f.childNodes[0].nodeValue.split()[2]) rects = feature[idx].getElementsByTagName('_') for r in rects: - l = map(int, r.childNodes[0].nodeValue[:-1].split()) + l = (map(int, r.childNodes[0].nodeValue[:-1].split())) fout.write(struct.pack('b', l[4])) ...
[chore] Fix a problem where build fails on Windows
@@ -286,7 +286,11 @@ static int os_time(lua_State *L) ts.tm_mon = getfield(L, "month", -1) - 1; ts.tm_year = getfield(L, "year", -1) - 1900; ts.tm_isdst = getboolfield(L, "isdst"); +#if LJ_TARGET_POSIX t = timegm(&ts); +#else + t = _mkgmtime(&ts); +#endif } if (t == (time_t)(-1)) lua_pushnil(L);
system/adb: Fix error: 'fd' may be used uninitialized in this function
/**************************************************************************** - * apps/system/adb/logcat_service_uv.c + * apps/system/adb/logcat_service.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -133,9 +133,10 @@ st...
Remove dead code in ImfB44Compressor.cpp The comment indicates this should be removed, and 3.1 seems an appropriate time. But does this line serve any purpose?
@@ -454,8 +454,6 @@ B44Compressor::B44Compressor _channels (hdr.channels()), _channelData (0) { - // TODO: Remove this when we can change the ABI - (void)_maxScanLineSize; // // Allocate buffers for compressed an uncompressed pixel data, // allocate a set of ChannelData structs to help speed up the
Release: Add missing author names
@@ -191,7 +191,7 @@ Try it out now on: http://webui.libelektra.org:33334/ The new option can be used for logging application behavior when using [notifications](https://www.libelektra.org/tutorials/notifications). *(Thomas Wahringer)* - Do not exclude `simpleini` silently on non-glibc systems but output a message - lik...
Workaround missing __rdtsc intrinsic in Clang < 3.4
}\ } while (0) + +/* Workaround missing __rdtsc in Clang < 3.5 (or Clang < 6.0 on Xcode) */ +#if defined(__x86_64__) || defined(__i386__) +#if defined __clang__ +#if (!defined(__apple_build_version__) &&\ + ((__clang_major__ < 3) || ((__clang_major__ == 3) && (__clang_minor__ < 5))))\ + || (defined(__apple_build_versio...
Add configuration verbose information to the t4p4s.sh
@@ -531,6 +531,17 @@ while [ "${OPTS[cfgfiles]}" != "" ]; do done done + +if [ "$(optvalue verbose)" != off ]; then + echo "-------------------------" + echo "Configuration parameters (without colors and lights):" + for x in "${!OPTS[@]}"; do + if [ -z $(echo "$x"| grep -E "COLOUR|LIGHT") ]; then + printf "[%s]=%s\n" "...
Scapy; update to release 2.4.0
@@ -54,7 +54,7 @@ PYTHON_EXTRA_DEPENDS= endif PYTHON_VENV_PATH=$(VPP_PYTHON_PREFIX)/virtualenv -PYTHON_DEPENDS=$(PYTHON_EXTRA_DEPENDS) faulthandler six scapy==2.4.0rc5 pexpect cryptography subprocess32 cffi git+https://github.com/vpp-dev/py-lispnetworking +PYTHON_DEPENDS=$(PYTHON_EXTRA_DEPENDS) faulthandler six scapy==...
Error: Reformat CMake code
@@ -8,16 +8,11 @@ set_source_files_properties(elektra-export-errors OBJECT_DEPENDS ${CMAKE_CURRENT find_util (elektra-export-errors EXE_ERR_LOC EXE_ERR_ARG) set (BINARY_INCLUDE_DIR "${PROJECT_BINARY_DIR}/src/include") -add_custom_command ( - OUTPUT ${BINARY_INCLUDE_DIR}/kdberrors.h - DEPENDS elektra-export-errors ${CMA...
libevent: fix invalid mem access on delete within callback enter
#include "../hiredis.h" #include "../async.h" +#define REDIS_LIBEVENT_DELETED 0x01 +#define REDIS_LIBEVENT_ENTERED 0x02 + typedef struct redisLibeventEvents { redisAsyncContext *context; struct event *ev, *tmr; struct event_base *base; struct timeval tv; short flags; + short state; } redisLibeventEvents; +static void r...
Change `BUILD_WITHOUT_LAPACK` to `OFF` by default
@@ -18,6 +18,8 @@ include(GNUInstallDirs) include(CMakePackageConfigHelpers) ####### +option(BUILD_WITHOUT_LAPACK "Do not build LAPACK and LAPACKE (Only BLAS or CBLAS)" OFF) + option(BUILD_WITHOUT_CBLAS "Do not build the C interface (CBLAS) to the BLAS functions" OFF) option(DYNAMIC_ARCH "Include support for multiple C...
Add delay-loads to the MIP build props for improved performance.
<ClCompile> <PreprocessorDefinitions>%(PreprocessorDefinitions);CONFIG_CUSTOM_H="config-MIP.h"</PreprocessorDefinitions> </ClCompile> + <Link> + <DelayLoadDLLs>api-ms-win-crt-convert-l1-1-0.dll; api-ms-win-crt-filesystem-l1-1-0.dll; api-ms-win-crt-heap-l1-1-0.dll; api-ms-win-crt-math-l1-1-0.dll; api-ms-win-crt-runtime-...
fix(config.h): unsigned int
@@ -55,11 +55,11 @@ static int alpha = 0xff; static unsigned int doubleclicktimeout = 300; static unsigned int tripleclicktimeout = 600; static char *utmp = NULL; -static int borderpx = 10; -static int bold_font = 0; +static unsigned int borderpx = 10; +static unsigned int bold_font = 0; // If available font weight is ...
king: do not commit files starting with a dot
@@ -42,7 +42,7 @@ validClaySyncPath fp = hasPeriod && notTildeFile && notDotHash && notDoubleHash fileName = takeFileName fp hasPeriod = elem '.' fileName notTildeFile = not $ "~" `isSuffixOf` fileName - notDotHash = not $ ".#" `isPrefixOf` fileName + notDotHash = not $ "." `isPrefixOf` fileName notDoubleHash = not $ (...
linux: version: remove driver api version Not useful as it just defaults to 0.0.0.0
@@ -670,13 +670,17 @@ EFI_STATUS showVersion(struct Command *pCmd) goto Finish; } +#if !defined(__LINUX__) ReturnCode = pNvmDimmConfigProtocol->GetDriverApiVersion(pNvmDimmConfigProtocol, ApiVersion); if (EFI_ERROR(ReturnCode)) { goto Finish; } +#endif Print(FORMAT_STR_SPACE FORMAT_STR_SPACE L"Version " NVMDIMM_VERSION...
SOVERSION bump to version 2.4.6
@@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 4) -set(LIBYANG_MICRO_SOVERSION 5) +set(LIBYANG_MICRO_SOVERSION 6) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI...
Make a compile time check on the configured fragment size.
@@ -231,6 +231,11 @@ static uint16_t my_tag; #define SICSLOWPAN_FRAGMENT_SIZE (127 - 2 - 15) #endif +/* Check the selected fragment size, since we use 8-bit integers to handle it. */ +#if SICSLOWPAN_FRAGMENT_SIZE > 255 +#error Too large SICSLOWPAN_FRAGMENT_SIZE set. +#endif + /* Assuming that the worst growth for uncom...
simple_ota_example: Move redundant and failing example_tests to nightly run
@@ -114,7 +114,7 @@ def calc_all_sha256(dut): return sha256_bootloader, sha256_app -@ttfw_idf.idf_example_test(env_tag='Example_WIFI_OTA') +@ttfw_idf.idf_example_test(env_tag='Example_WIFI_OTA', nightly_run=True) def test_examples_protocol_simple_ota_example(env, extra_data): """ steps: | @@ -221,7 +221,7 @@ def test_e...
README: add webpinfo section
@@ -113,8 +113,8 @@ make install CMake: ------ -With CMake, you can compile libwebp, cwebp, dwebp, gif2web, img2webp and the -JS bindings. +With CMake, you can compile libwebp, cwebp, dwebp, gif2web, img2webp, webpinfo +and the JS bindings. Prerequisites: A compiler (e.g., gcc with autotools) and CMake. @@ -367,6 +367,...
Fix Ribag Air O color temperature scenes
@@ -6451,7 +6451,8 @@ void DeRestPluginPrivate::handleSceneClusterIndication(TaskItem &task, const deC newLightState.setY(y); if (lightNode->modelId().startsWith(QLatin1String("FLS-H")) || - lightNode->modelId().startsWith(QLatin1String("FLS-CT"))) + lightNode->modelId().startsWith(QLatin1String("FLS-CT")) || + lightNo...
refactor: update fabric test report file name fix
@@ -42,7 +42,7 @@ int main(int argc, char *argv[]) srunner_add_suite(sr, suite_transaction); /* set generate test log in running path */ - srunner_set_log(sr, "test_FabricBlockchain_report.txt"); + srunner_set_log(sr, "test_report_fabric.txt"); /* start to run all test case */ srunner_run_all(sr, CK_NORMAL);
Reorder cases in types.tostring So the cases follow the same order as the type definition
@@ -90,12 +90,12 @@ end function types.tostring(t) local tag = t._tag - if tag == types.T.Integer then return "integer" - elseif tag == types.T.Boolean then return "boolean" - elseif tag == types.T.String then return "string" + if tag == types.T.Void then return "void" elseif tag == types.T.Nil then return "nil" + else...
DM: correct the predefine DM option string. That string was changed by accident and introduced the removed items. Acked-by: Anthony Xu
@@ -756,7 +756,7 @@ static struct option long_options[] = { {0, 0, 0, 0 }, }; -static char optstr[] = "abehuwxACHIPSWYvk:r:B:p:g:c:s:m:l:U:G:i:"; +static char optstr[] = "abhuwxACSWYvE:k:r:B:p:g:c:s:m:l:U:G:i:"; int dm_run(int argc, char *argv[])
msh: Permit model walk from any model Fixes bug where applications that disable model extensions end up in an infinite loop, and adds support for walking model subtrees, as opposed to forcing root to be unextended. this is port of
@@ -803,7 +803,7 @@ void bt_mesh_model_tree_walk(struct bt_mesh_model *root, void *user_data) { struct bt_mesh_model *m = root; - uint32_t depth = 0; + int depth = 0; /* 'skip' is set to true when we ascend from child to parent node. * In that case, we want to skip calling the callback on the parent * node and we don't...
fix the bug for Airkiss Closes
#define SC_ACK_TOUCH_SERVER_PORT 18266 /*!< ESP touch UDP port of server on cellphone */ #define SC_ACK_AIRKISS_SERVER_PORT 10000 /*!< Airkiss UDP port of server on cellphone */ +#define SC_ACK_AIRKISS_DEVICE_PORT 10001 /*!< Airkiss UDP port of server on device */ +#define SC_ACK_AIRKISS_TIMEOUT 1500 /*!< Airkiss read ...
nimble/host: Fix unreachable code if BLE_L2CAP_JOIN_RX_FRAGS is enabled
@@ -194,13 +194,12 @@ ble_l2cap_append_rx(struct ble_l2cap_chan *chan, struct os_mbuf *frag) /* Copy the data from the incoming fragment into the packet in progress. */ m = os_mbuf_pack_chains(chan->rx_buf, frag); assert(m); - return; -#endif - +#else /* Join disabled or append failed due to mbuf shortage. Just attach ...
Added Popen interface aliases to the execution-result object
@@ -139,22 +139,43 @@ class _Execution(object): def command(self): return self._command + @property + def returncode(self): + return self.exit_code + @property def exit_code(self): + """ + Deprecated, use returncode + """ if self._exit_code is None: self._exit_code = self._process.returncode return self._exit_code + @p...
Fix memory leak problem when using slua-standalone dll(program must be manually invoke LuaSvr.tick() method in your thread tick function)
// init will not use reflection to speed up the speed //#define USE_STATIC_BINDER +namespace LuaInterface +{ + public class DummyClass + { + } +} + namespace SLua { using System; @@ -271,7 +278,9 @@ namespace SLua return null; } - #if !SLUA_STANDALONE +#if SLUA_STANDALONE + public +#endif void tick() { if (!inited) @@ ...
travis: enable loadable_elf_apps config only in protection branch travisCI tests the loadable_elf_apps config only with protection branch
@@ -17,18 +17,22 @@ branches: env: global: - TIZENRT_IMG_VERSION=latest + matrix: - - BUILD_CONFIG=artik055s/audio - - BUILD_CONFIG=artik053/grpc - - BUILD_CONFIG=artik053/st_things - - BUILD_CONFIG=artik053/tc - - BUILD_CONFIG=artik053/iotjs - - BUILD_CONFIG=artik053/minimal - - BUILD_CONFIG=qemu/tc_64k - - BUILD_CONF...
Updated change log with latest v1.7 changes.
+Changes to GoAccess 1.7 - Saturday, December 31, 2022 + + - Added an option to classify unknown OS and browsers as crawlers using + `--unknowns-as-crawlers`. + - Added highlighting to certain metrics on the HTML report for readability. + - Added support ASN mapping for GeoIP2 and legacy databases. Great for + detectin...
update generators math.js
@@ -173,7 +173,7 @@ Blockly.Python.math_random = function() { var argument1 = Blockly.Python.valueToCode(this, 'TO', Blockly.Python.ORDER_NONE) || '0'; if (type=='int'){ - var code = 'int(random.uniform(' + argument0 + ', ' + argument1 + ' + 1))'; + var code = 'random.randint(' + argument0 + ', ' + argument1 + ')'; }el...
bip: fix uart interrupt type to both ITE only supports both edge triggers for GPB0 instead of just falling. BRANCH=none TEST=nothing is changing on how it configured. We are just changing the documentation in gpio.inc
@@ -14,7 +14,7 @@ GPIO_INT(WP_L, PIN(I, 4), GPIO_INT_BOTH, switch_interrupt) /* EC_WP_ODL */ GPIO_INT(POWER_BUTTON_L, PIN(E, 4), GPIO_INT_BOTH, power_button_interrupt) /* MECH_PWR_BTN_ODL */ #ifdef CONFIG_LOW_POWER_IDLE /* Used to wake up the EC from Deep Doze mode when writing to console */ -GPIO_INT(UART1_RX, PIN(B, ...
xive: Use for_each_present_cpu() for setting up XIVE Otherwise, we try to access some XSCOMs on garded CPUs which leads to all sorts of errors during boot.
@@ -3629,7 +3629,7 @@ static void xive_reset_one(struct xive *x) } /* Take out all VPs from HW and reset all CPPRs to 0 */ - for_each_cpu(c) { + for_each_present_cpu(c) { if (c->chip_id != x->chip_id) continue; if (!c->xstate) @@ -3672,7 +3672,7 @@ static void xive_reset_one(struct xive *x) #endif /* Re-configure the C...
uart_bitbang; allow configuration without RX. Submitted by Brian WYLD.
@@ -118,6 +118,9 @@ uart_bitbang_rx_timer(void *arg) struct uart_bitbang *ub = (struct uart_bitbang *)arg; int val; + if (ub->ub_rx.pin < 0) { + return; + } val = hal_gpio_read(ub->ub_rx.pin); if (val) { @@ -154,6 +157,10 @@ uart_bitbang_isr(void *arg) struct uart_bitbang *ub = (struct uart_bitbang *)arg; uint32_t time...
Make repl printing work from current environment. Although this "unprotects" output in the repl, people in a repl usually want control, not protection.
(fn [f x] (if (= :dead (fiber/status f)) - (do (pp x) (put e '_ @{:value x})) + (put e '_ @{:value x}) (if (e :debug) (enter-debugger f x) (do (debug/stacktrace f x) (eflush)))))) (run-context {:env env :chunks chunks + :expander (fn [x] [pp x]) :on-status (or onsignal (make-onsignal env 1)) :source "repl"}))
options/ansi: Implement abs, labs and llabs
@@ -281,17 +281,16 @@ void qsort(void *base, size_t count, size_t size, } } -int abs(int number) { - __ensure(!"Not implemented"); - __builtin_unreachable(); +int abs(int num) { + return num < 0 ? -num : num; } -long labs(long number) { - __ensure(!"Not implemented"); - __builtin_unreachable(); + +long labs(long num) {...
[ML302v003][#821]add sdk cm_gnss_uctd1036_cb
@@ -411,3 +411,15 @@ int cm_gnss_uc6226_cb(void) return 0; #endif } + +int cm_gnss_uctd1036_cb(void) +{ + #if ((defined CM_HARDWARE_ENLM_SUPPORT) || (defined CM_HARDWARE_PNLM_SUPPORT)) + cm_sys_log("[GPS] cm_gnss_uctd1036_cb 1\n"); + return 1; + #else + cm_sys_log("[GPS] cm_gnss_uctd1036_cb 0\n"); + return 0; + #endif ...
[chainmaker]remove useless macro
@@ -30,7 +30,6 @@ api_ethereum.h is header file for BoAT IoT SDK ethereum's interface. */ #define BOAT_CHAINMAKER_TLS_SUPPORT 1 //!< If need client support TLS, set it to 1. #define BOAT_CHAINMAKER_CERT_MAX_LEN 1024 -#define BOAT_CHAINMAKER_ROOTCA_MAX_NUM 3 #define BOAT_HLCHAINMAKER_HTTP2_SEND_BUF_MAX_LEN 8192 //!< The...
Fix sockaddr typo Fixes
@@ -255,7 +255,7 @@ typedef struct redisContext { } unix_sock; /* For non-blocking connect */ - struct sockadr *saddr; + struct sockaddr *saddr; size_t addrlen; /* Optional data and corresponding destructor users can use to provide
pybricks: Call __init__ before REPL. When using mp_import_all to auto-import, the __init__ does not get called, so call it manually.
@@ -91,6 +91,9 @@ const mp_obj_module_t pb_package_pybricks = { }; STATIC void import_all() { + // Initialize package + pb_package_pybricks_init(); + // Go through each module in the package. for (size_t i = 0; i < MP_ARRAY_SIZE(pybricks_globals_table); i++) { mp_rom_obj_t module = pybricks_globals_table[i].value;