message
stringlengths
6
474
diff
stringlengths
8
5.22k
docs/reference/filesystem: Fix typo in block device code example.
@@ -124,7 +124,7 @@ interface (i.e. both signatures and behaviours of the self.block_size = block_size self.data = bytearray(block_size * num_blocks) - def readblocks(self, block, buf, offset=0): + def readblocks(self, block_num, buf, offset=0): addr = block_num * self.block_size + offset for i in range(len(buf)): buf[...
added info about unicast and global unique to help
@@ -5017,6 +5017,7 @@ printf("%s %s (C) %s ZeroBeat\n" " format = 112233445566\n" " format = 112233000000 (to set only OUI)\n" " format = 445566 (to set only NIC)\n" + " last octed is set to unicast and global unique (OUI forced)\n" " warning: do not use a MAC of an existing access point in your range\n" "--station_mac...
Gofmt. Typo fix. Comment change.
@@ -254,7 +254,7 @@ func initGPSSerial() bool { } else { // Byte order for UBX configuration is little endian. - // Set 10 Hz update to make gpsattitude more responsive for ublox7/8. + // Set 10 Hz update to make gpsattitude more responsive for ublox7. updatespeed := []byte{0x64, 0x00, 0x01, 0x00, 0x01, 0x00} // 10 Hz ...
Improve string caching, Fix memory leak
@@ -602,6 +602,8 @@ VOID PhpRemoveProcessNode( PhClearReference(&ProcessNode->FileSizeText); PhClearReference(&ProcessNode->SubprocessCountText); PhClearReference(&ProcessNode->ProtectionText); + PhClearReference(&ProcessNode->DesktopInfoText); + PhClearReference(&ProcessNode->UserName); PhDeleteGraphBuffers(&ProcessNo...
replace libretro-common 70
@@ -98,7 +98,9 @@ typedef signed char int8_t; typedef unsigned char uint8_t; typedef signed short int16_t; typedef unsigned short uint16_t_; +#if !defined(_3DS) typedef signed int int32_t; +#endif typedef unsigned int uint32_t_; #if !defined(NP2_X11) && !defined(NP2_SDL2) && !defined(__LIBRETRO__) typedef signed __int6...
python: new message
@@ -1427,9 +1427,9 @@ the correct command. Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ - _parser = Struct("MsgCommandOutput", - ULInt32('sequence'), - greedy_string('line'),) + _parser = construct.Struct( + 'sequence' / construct.Int32ul, + 'line' / construct.GreedyString(encoding='utf8'),) __slots_...
Set all realistic inversion simulations to non slice-selective
@@ -739,6 +739,10 @@ void inversion(const struct sim_data* data, float h, float tol, int N, int P, fl { struct sim_data inv_data = *data; + // Non Slice-Selective as default + // FIXME: Add slice-selective inversion too + inv_data.grad.mom_sl = 0.; + // Enforce ODE: Way more efficient here! inv_data.seq.type = SIM_ODE;...
in_nginx_exporter_metrics: validate allocation and set proper NULL byte
@@ -149,10 +149,13 @@ static int nginx_collect(struct flb_input_instance *ins, goto http_error; } - // copy and NULL terminate the payload + /* copy and NULL terminate the payload */ data = flb_sds_create_size(client->resp.payload_size + 1); - data[client->resp.payload_size] = NULL; + if (!data) { + goto http_error; + ...
flash: Fix ccprintf parameters in flasherase/write Both these functions had a superfluous offset parameter. BRANCH=none TEST=flasherase/write Commit-Ready: Nicolas Boichat Tested-by: Nicolas Boichat
@@ -723,7 +723,7 @@ static int command_flash_erase(int argc, char **argv) if (rv) return rv; - ccprintf("Erasing %d bytes at 0x%x...\n", size, offset, offset); + ccprintf("Erasing %d bytes at 0x%x...\n", size, offset); return flash_erase(offset, size); } DECLARE_CONSOLE_COMMAND(flasherase, command_flash_erase, @@ -759,...
VERSION bump ot version 1.3.6
@@ -27,7 +27,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 3) -set(SYSREPO_MICRO_VERSION 5) +set(SYSREPO_MICRO_VERSION 6) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICR...
tests: add type annotations to the vpp object abstract class make it easier to detect logical mistakes. Type: test
@@ -11,36 +11,36 @@ class VppObject(object): """ Abstract vpp object """ @abc.abstractmethod - def add_vpp_config(self): + def add_vpp_config(self) -> None: """ Add the configuration for this object to vpp. """ pass @abc.abstractmethod - def query_vpp_config(self): + def query_vpp_config(self) -> bool: """Query the vpp...
tools/ci.sh: Add CI for CMake USER_C_MODULE support. Builds the rp2 port against the example C and CXX modules.
@@ -181,6 +181,8 @@ function ci_rp2_build { make ${MAKEOPTS} -C mpy-cross git submodule update --init lib/pico-sdk lib/tinyusb make ${MAKEOPTS} -C ports/rp2 + make ${MAKEOPTS} -C ports/rp2 clean + make ${MAKEOPTS} -C ports/rp2 USER_C_MODULES=../../examples/usercmodule/micropython.cmake } ###############################...
Integrate global_upvalues in coder
local ast = require "titan-compiler.ast" -local checker = require "titan-compiler.checker" +local global_upvalues = require "titan-compiler.global_upvalues" local util = require "titan-compiler.util" local pretty = require "titan-compiler.pretty" local typedecl = require "titan-compiler.typedecl" @@ -13,7 +13,7 @@ loca...
Do not sign ZydisWinKernel sample Signing this driver is pointless since it is a sample, and the default WDK settings appear to break the CI
<PropertyGroup /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor> + <SignMode>Off</SignMode> <TimeStampServer /> <OutDir>..\bin\DebugX86Kernel\</OutDir> <IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir> </PropertyGroup> <Pro...
Fix security issue reported by Dane (4cad@silvertoque)
@@ -403,9 +403,13 @@ websocket_buffer_peek(void *buffer, uint64_t len) { if (len < 10) return (struct websocket_packet_info_s){0, (uint8_t)(10 + mask_l), mask_f}; - return (struct websocket_packet_info_s){ - websocket_str2u64(((uint8_t *)buffer + 2)), (uint8_t)(10 + mask_l), + { + uint64_t msg_len = websocket_str2u64((...
spgram/autotest: removing debugging test
@@ -337,51 +337,3 @@ void autotest_spgram_gnuplot() spgramcf_destroy(q); } -void autotest_spgramcf_regions() -{ - // options - float bw = 0.235f; - unsigned int nfft = 1200; - float n0 = -60.0f; // noise floor [dB] - float SNRdB = 10.0f; - - // create objects - spgramcf q = spgramcf_create(nfft, LIQUID_WINDOW_HANN, nff...
Factorize the code for h2o_find_handler
@@ -156,7 +156,7 @@ static void call_handlers(h2o_req_t *req, h2o_handler_t **handler) h2o_send_error_404(req, "File Not Found", "not found", 0); } -static void process_hosted_request(h2o_req_t *req, h2o_hostconf_t *hostconf) +static void setup_pathconf(h2o_req_t *req, h2o_hostconf_t *hostconf) { h2o_pathconf_t *select...
Fix test_ext_entity_set_encoding to work for
@@ -1588,9 +1588,14 @@ START_TEST(test_ext_entity_set_encoding) XCS("utf-8"), NULL }; +#ifdef XML_UNICODE + const XML_Char *expected = XCS("\x00e9"); +#else + const XML_Char *expected = XCS("\xc3\xa9"); +#endif XML_SetExternalEntityRefHandler(parser, external_entity_loader); - run_ext_character_check(text, &test_data, ...
doc: also fix conistency in source file
@@ -97,7 +97,7 @@ the key names of software-applications should always start with: and having a choice which separator to choose will certainly lead to inconsistencies) - It is suggested to make your application look for default keys under - `/sw/org/myapp/#/%/` where `#` is a major version number, e.g. `#3` for + `/sw...
Document encoding requirements for callbacks Original patch by Fixes
@@ -1119,6 +1119,10 @@ These functions output UTF-8: the length of the buffer, and *data* is the corresponding :func:`json_dump_callback()` argument passed through. + *buffer* is guaranteed to be a valid UTF-8 string (i.e. multi-byte + code unit sequences are preserved). *buffer* never contains + embedded null bytes. +...
parser xml BUGFIX error info siblings parsing
@@ -1268,9 +1268,11 @@ lydxml_env_netconf_rpc_reply_error_info(struct lyxml_ctx *xmlctx, struct lyd_nod if (r == LY_ENOT) { assert(xmlctx->status == LYXML_ELEMENT); - /* custom elements */ - r = lydxml_opaq_r(xmlctx, parent); - LY_CHECK_GOTO(r, error); + /* custom elements, parse all the siblings */ + while (xmlctx->st...
eyre: send 'no content' headers with no content
?~ redirect %- handle-response :* %start - :- status-code=200 + :- status-code=204 ^= headers :~ ['set-cookie' cookie-line] == =^ http-moves state %- handle-response :* %start - [status-code=200 headers=~] + [status-code=204 headers=~] data=~ complete=%.y ==
Fixed task watchdog trigger issue when closed hci uart
/* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -176,9 +176,12 @@ int hci_uart_init_cbs(int port_num, hci_uart_tx_char tx_func, int hci_uart_close(int port_num) { + uart_event_...
hoon: doccords %brdt cleanup revert
?+ gen gen :: [%brcn *] -<<<<<<< HEAD [%brcn lab.wit q.gen] :: populate (unit term) with lab.wit :: [%brpt *] [%brpt lab.wit q.gen] :: populate (unit term) with lab.wit :: - [%brdt *] - [%brdt lab.wit q.gen] -======= - [%brcn lab.wit q.gen] ->>>>>>> parent of 0dc3498a6f (hoon: change %brdt AST to support doccords label...
esp_http_client: Fix some memory leak issues by coverity static analyzer.
@@ -97,6 +97,7 @@ static esp_err_t http_header_new_item(http_header_handle_t header, const char *k _header_new_item_exit: free(item->key); free(item->value); + free(item); return ESP_ERR_NO_MEM; }
libppd: Typo/Copy&Paste fixes in ppdCacheAssignPresets()
@@ -2241,7 +2241,7 @@ ppdCacheAssignPresets(ppd_file_t *ppd, else if (strcasecmp(c, "0rhit") == 0) properties->sets_normal = 10; } - else if (strcasestr(o, "ColorPrecision")) /* Ricoh & OEM */ + else if (strcasestr(o, "ColorPrecision")) /* Gutenprint */ { if (strcasecmp(c, "best") == 0) properties->sets_high = 10; @@ -...
BugID:16089949: fix dereference after null check
@@ -91,7 +91,7 @@ static ali_crypto_result _ali_aes_ecb_final(const uint8_t *src, size_t src_size, PRINT_RET(ALI_CRYPTO_INVALID_ARG, "ecb_final: invalid arg!\n"); } - if ((0 != *dst_size) && (dst == NULL)) { + if (dst == NULL) { PRINT_RET(ALI_CRYPTO_INVALID_ARG, "ecb_final: invalid arg!\n"); }
Support insert, delete, page up, and page down keys in xterm. Also the alternate CSI codes for home and end.
@@ -457,6 +457,24 @@ static void xterm_handle_input_escape() { break; case '~': switch (arg0) { + case 1: + send_sdl_key_press(SDLK_HOME, false); + break; + case 4: + send_sdl_key_press(SDLK_END, false); + break; + case 2: + send_sdl_key_press(SDLK_INSERT, false); + break; + case 3: + send_sdl_key_press(SDLK_DELETE, fa...
fix some format issues;
@@ -43,95 +43,6 @@ menu "On-chip Peripheral Drivers" endif - menuconfig BSP_USING_I2C1 - bool "Enable I2C1 BUS (software simulation)" - default n - select RT_USING_I2C - select RT_USING_I2C_BITOPS - select RT_USING_PIN - if BSP_USING_I2C1 - comment "Notice: PB8 --> 24; PB9 --> 25" - config BSP_I2C1_SCL_PIN - int "i2c1 ...
tests BUGFIX free context properly
@@ -442,18 +442,19 @@ test_simple_xml(void **state) (void)state; /* unused */ size_t name_len, prefix_len; const char *prefix, *name; - char *test_in = NULL; + char *test_in = NULL, *to_free = NULL; struct lyxml_context ctx; char *buf = NULL, *output = NULL; size_t buf_size, length; int dynamic; + char *test_input = "<...
improved NC handling
@@ -1169,8 +1169,8 @@ for(zeigerhs = zeigerhsakt; zeigerhs < handshakelistptr; zeigerhs++) if(memcmp(zeigerhs->ap, zeigerhsold->ap, 6) < 0) return; if(memcmp(zeigerhs->ap, zeigerhsold->ap, 6) > 0) return; { - zeigerhsakt->status |= zeigerhs->status &0xf0; - zeigerhsold->status |= zeigerhs->status &0xf0; + zeigerhsakt->...
nuttx: solve referenciation error in memset call
@@ -552,7 +552,7 @@ int flash_area_erase(const struct flash_area *fa, uint32_t off, uint32_t len) return ERROR; } - memset(buffer, erase_val, sizeof(buffer)); + memset(buffer, erase_val, sector_size); i = 0;
Travis: Use minimal config for Haskell build
@@ -144,7 +144,7 @@ before_script: - | if [[ $HASKELL == ON ]]; then bindings="haskell" - plugins="resolver_fm_hpu_b;dump;sync;error;list;spec" + plugins="resolver_fm_hpu_b;dump" tools="kdb" fi - |
fix static testing function in non-debug mode
@@ -4820,7 +4820,7 @@ FIO_FUNC inline void FIO_NAME(_test)(void) { } #undef TEST_LIMIT #else -FIO_FUNC inline void FIO_NAME(_test)(void); +FIO_FUNC inline void FIO_NAME(_test)(void) {} #endif /* *****************************************************************************
cmake: register new mbedtls 2.26
@@ -7,7 +7,7 @@ set(FLB_PATH_LIB_CHUNKIO "lib/chunkio") set(FLB_PATH_LIB_LUAJIT "lib/luajit-2.1.0-1e66d0f") set(FLB_PATH_LIB_MONKEY "lib/monkey") set(FLB_PATH_LIB_JSMN "lib/jsmn") -set(FLB_PATH_LIB_MBEDTLS "lib/mbedtls-2.24.0") +set(FLB_PATH_LIB_MBEDTLS "lib/mbedtls-2.26.0") set(FLB_PATH_LIB_SQLITE "lib/sqlite-amalgama...
usb: double buffer, use dedicated EP
#define CDC_EP0_SIZE 0x08 #define CDC_RXD_EP 0x01 -#define CDC_TXD_EP 0x81 +#define CDC_TXD_EP 0x83 #define CDC_DATA_SZ 0x40 #define CDC_NTF_EP 0x82 #define CDC_NTF_SZ 0x08 @@ -269,14 +269,6 @@ static void cdc_txonly(usbd_device *dev, uint8_t event, uint8_t ep) { usbd_ep_write(dev, ep, buf, len); } -static void cdc_rxt...
inform user why some useful frames are missing - normally this happens if dump file was cleaned or if filter options are used during capturing
@@ -615,6 +615,8 @@ if((authenticationcount +associationrequestcount +reassociationrequestcount) == printf("\nWarning: missing frames!\n" "This dump file contains no important frames like\n" "authentication, association or reassociation.\n" + "It always happens if the capture file was cleaned or\n" + "if filter options...
Change id of dependency and print otool output.
@@ -229,11 +229,10 @@ jobs: find . -name "*$(python -c "import platform; print(''.join(platform.python_version_tuple()[0:2]))")*linux*.whl" -exec python -m pip install {} \; elif [ "$RUNNER_OS" == "macOS" ]; then find . -name "*$(python -c "import platform; print(''.join(platform.python_version_tuple()[0:2]))")*macosx*...
session BUGFIX close sockets separately Fixes
@@ -452,7 +452,7 @@ nc_send_msg(struct nc_session *session, struct lyd_node *op) API void nc_session_free(struct nc_session *session, void (*data_free)(void *)) { - int r, i, locked; + int r, i, locked, sock = -1; int connected; /* flag to indicate whether the transport socket is still connected */ int multisession = 0...
Fix L2 steering.
@@ -72,16 +72,14 @@ sr_steering_policy (int is_del, ip6_address_t * bsid, u32 sr_policy_index, memset (&key, 0, sizeof (sr_steering_key_t)); /* Compute the steer policy key */ - if (prefix) + if (traffic_type == SR_STEER_IPV4 || traffic_type == SR_STEER_IPV6) { key.l3.prefix.as_u64[0] = prefix->as_u64[0]; key.l3.prefix...
Fixed wwbootstrap for Leap 15.1 aarch64 Leap 15.1 aarch64 kernel is gzipped ELF, and iPXE can boot neither gzipped ELF nor gunzipped ELF, but Image.
-if (! -f "$opt_chroot/boot/vmlinuz-$opt_kversion") { - &eprint("Can't locate the boot kernel: ". $opt_chroot ."/boot/vmlinuz-$opt_kversion\n"); -+if (! -f "$opt_chroot/boot/vmlinuz-$opt_kversion" && ! -f "$opt_chroot/boot/vmlinux-$opt_kversion.gz") { ++if (! -f "$opt_chroot/boot/vmlinuz-$opt_kversion" && ! -f "$opt_ch...
Add SYMBOLPREFIX and/or -SUFFIX to cblas.h if needed
@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 2.8.5) project(OpenBLAS C ASM) set(OpenBLAS_MAJOR_VERSION 0) set(OpenBLAS_MINOR_VERSION 3) -set(OpenBLAS_PATCH_VERSION 9.dev) +set(OpenBLAS_PATCH_VERSION 10.dev) set(OpenBLAS_VERSION "${OpenBLAS_MAJOR_VERSION}.${OpenBLAS_MINOR_VERSION}.${OpenBLAS_PATCH_VERSION}") # Adhere ...
[D3D12on7] Fix incorrect backbuffer index on v1.10
@@ -38,7 +38,10 @@ HRESULT D3D12::PresentDownlevel(ID3D12CommandQueueDownlevel* apCommandQueueDownl auto& d3d12 = CET::Get().GetD3D12(); // On Windows 7 there is no swap chain to query the current backbuffer index. Instead do a reverse lookup in the known backbuffer list - auto it = std::find(d3d12.m_downlevelBackbuffe...
[fabric][tests]fix test case error aitos-io#1358
@@ -620,8 +620,12 @@ START_TEST(test_005Transaction_0026TxQuery_Failure_Walleturl_Err) BoatHlfabricWallet *g_fabric_wallet_ptr = NULL; g_fabric_wallet_ptr = fabric_get_wallet_ptr(); - g_fabric_wallet_ptr->network_info.nodesCfg.layoutCfg[0].groupCfg[0].endorser[0].nodeUrl = "121.4.178.74"; + BoatFree(g_fabric_wallet_ptr...
CI fix Needed by the update of the app-builder container
set -e -TESTS_FULL_PATH=$(dirname "$(realpath "$0")") +TESTS_PATH=$(dirname "$(realpath "$0")") # FILL THESE WITH YOUR OWN SDKs PATHS # NANOS_SDK= @@ -17,11 +17,10 @@ NANO_SDKS=("$NANOS_SDK" "$NANOX_SDK") FILE_SUFFIXES=("nanos" "nanox") # move to the tests directory -cd "$TESTS_FULL_PATH" || exit 1 +cd "$TESTS_PATH" ||...
ignore damaged snaplen
@@ -5976,16 +5976,16 @@ while(1) pcaprhdr.incl_len = byte_swap_32(pcaprhdr.incl_len); pcaprhdr.orig_len = byte_swap_32(pcaprhdr.orig_len); #endif + if(pcaprhdr.incl_len > pcapfhdr.snaplen) { pcapreaderrors++; - printf("failed to read packet %lld \n", rawpacketcount); - break; +// printf("failed to read packet %lld (inc...
pbdrv/ioport_lpf2: Return EAGAIN during sync. This allows higher level code to call this again as neeeded.
@@ -261,6 +261,11 @@ pbio_error_t pbdrv_ioport_get_iodev(pbio_port_t port, pbio_iodev_t **iodev) { return PBIO_ERROR_NO_DEV; } + // If there is an iodev but we don't know which one yet, it is syncing + if ((*iodev)->info->type_id == PBIO_IODEV_TYPE_ID_NONE) { + return PBIO_ERROR_AGAIN; + } + return PBIO_SUCCESS; }
add force_command for sailfish
@@ -391,6 +391,21 @@ def deploy_bundle(session) exec_ssh_with_sudo_command(session, "chown -R root:root #{path_to_bundle}") end +def force_install(session) + exec_ssh_command(session, "mkdir /home/#{$user_name}/RPMS/#{$final_name_app}") + puts "scp From : " + File.join($project_path, $final_name_app, "RPMS") + puts "To...
admin/meta-packages: ifnarch aarch64 mvapich groups
@@ -567,14 +567,12 @@ rm -rf $RPM_BUILD_ROOT %files -n %{PROJ_NAME}-ganglia %files -n %{PROJ_NAME}-gnu%{gnu_major_ver}-io-libs %files -n %{PROJ_NAME}-gnu%{gnu_major_ver}-mpich-io-libs -%files -n %{PROJ_NAME}-gnu%{gnu_major_ver}-mvapich2-io-libs %files -n %{PROJ_NAME}-gnu%{gnu_major_ver}-openmpi%{openmpi_major_ver}-io-l...
Fix pasting entire scripts
@@ -170,12 +170,14 @@ class ActionMini extends Component { const clipboardData = JSON.parse(clipboard.readText()); if (clipboardData.__type === "event") { this.setState({ clipboardEvent: clipboardData }); - } else if (clipboardData.__type === "script") { + return clipboardData; + } + if (clipboardData.__type === "scrip...
Fix cid length test to test all allowed values.
@@ -6418,7 +6418,7 @@ int cid_length_test_one(uint8_t length) int cid_length_test() { int ret = 0; - const uint8_t tested_length[] = { 0, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 }; + const uint8_t tested_length[] = { 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 }; for (size_t i = 0; i...
Clean-up .gitignore
@@ -37,6 +37,7 @@ COOJA.testlog *.sky *.firmware *.cc26x0-cc13x0 +*.z1 *.zoul # do not ignore platform makefiles @@ -63,7 +64,3 @@ summary tests/[0-9][0-9]-*/org/ tests/18-coap-lwm2m/Californium.properties tests/18-coap-lwm2m/leshan-server-demo*.jar - -# x86 UEFI files -cpu/x86/uefi/Makefile.uefi -cpu/x86/uefi/edk2
Test suspending the parse in the middle of CDATA handling
@@ -1966,6 +1966,26 @@ START_TEST(test_stop_parser_between_cdata_calls) } END_TEST +/* Test suspending the parser in cdata handler */ +START_TEST(test_suspend_parser_between_cdata_calls) +{ + const char *text = long_cdata_text; + enum XML_Status result; + + XML_SetCharacterDataHandler(parser, + clearing_aborting_charac...
VERSION bump to version 2.0.243
@@ -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 242) +set(LIBYANG_MICRO_VERSION 243) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}...
Fix gemm interface bug for small matrix.
@@ -145,7 +145,7 @@ void NAME(char *TRANSA, char *TRANSB, IFLOAT *buffer; IFLOAT *sa, *sb; -#ifdef SMP +#if defined (SMP) || defined(SMALL_MATRIX_OPT) double MNK; #if defined(USE_SIMPLE_THREADED_LEVEL3) || !defined(NO_AFFINITY) #ifndef COMPLEX @@ -269,8 +269,11 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_TRANSPOSE...
Fix projectile offset y pos
@@ -1997,7 +1997,7 @@ class ScriptBuilder { .int16(x * 16) .operator(".ADD") .ref("^/(ACTOR + 2)/") - .int16(y * 16) + .int16((8 - y) * 16) .operator(".ADD") .stop(); this._stackPushConst(dirToAngle(direction)); @@ -2031,7 +2031,7 @@ class ScriptBuilder { .int16(x * 16) .operator(".ADD") .ref("^/(ACTOR + 2)/") - .int16...
added weak candidate based on wpasec analysis
@@ -1760,12 +1760,16 @@ ev = (char*)(essid +7); k2 = strtol(ev, NULL, 16); for(k1 = 0; k1 < 0x100; k1++) { + snprintf(essidtmp, PSKSTRING_LEN_MAX, "086a0a%02x%04x", k1, k2); + writepsk(fhout, essidtmp); snprintf(essidtmp, PSKSTRING_LEN_MAX, "2ce412%02x%04x", k1, k2); writepsk(fhout, essidtmp); snprintf(essidtmp, PSKSTR...
configurator: add default profile
#define QUIC_PROTOCOL_VERSION 1 extern profile_t profile; +extern profile_t default_profile; extern float rx[4]; extern float rxcopy[4]; extern uint8_t aux[AUX_CHANNEL_MAX]; @@ -42,7 +43,8 @@ typedef enum { QUIC_VAL_PROFILE, QUIC_VAL_RX, QUIC_VAL_VBAT, - QUIC_VAL_INFO + QUIC_VAL_INFO, + QUIC_VAL_DEFAULT_PROFILE, } quic...
ksCut: Return empty ks if ks->array is not alloc. kdb complete entered an infinite loop before this change, since null was returned.
@@ -1195,7 +1195,7 @@ KeySet * ksCut (KeySet * ks, const Key * cutpoint) int set_cursor = 0; if (!ks) return 0; - if (!ks->array) return 0; + if (!ks->array) return ksNew (0, KS_END); if (!cutpoint) return 0; char * name = cutpoint->key;
build: Use correct image for clang-asan test
@@ -290,7 +290,7 @@ def generateFullBuildStages() { ) tasks << buildAndTestAsan( "debian-unstable-clang-asan", - DOCKER_IMAGES.stretch, + DOCKER_IMAGES.sid, CMAKE_FLAGS_BUILD_ALL + CMAKE_FLAGS_CLANG )
data tree REFACTOR formatting
@@ -2822,6 +2822,7 @@ lyd_create_meta(struct lyd_node *parent, struct lyd_meta **meta, const struct ly { LY_ERR ret = LY_SUCCESS; struct lysc_ext_instance *ant = NULL; + const struct lysc_type **ant_type; struct lyd_meta *mt, *last; LY_ARRAY_COUNT_TYPE u; @@ -2849,8 +2850,9 @@ lyd_create_meta(struct lyd_node *parent, s...
update %files for 2.3.1
# #----------------------------------------------------------------------------eh- +# +# Copyright (c) 2017, SingularityWare, LLC. All rights reserved. +# +# Copyright (c) 2015-2017, Gregory M. Kurtzer. All rights reserved. +# +# Copyright (c) 2016, The Regents of the University of California, through +# Lawrence Berke...
copy timestamp field in cuda python-wrapper to DataProvider
@@ -50,6 +50,7 @@ namespace NCatboostCuda { } DataProvider.GroupIds = Pool.Docs.GroupId; + DataProvider.Timestamp = Pool.Docs.Timestamp; } template <class TContainer>
make 3rd sample OAuth 2.0 Resource Server only
@@ -111,27 +111,13 @@ OIDCCryptoPassphrase <password> For details on configuring multiple providers see https://github.com/pingidentity/mod_auth_openidc/wiki/Multiple-Providers. -### OpenID Connect SSO & OAuth 2.0 Access Control with PingFederate +### OAuth 2.0 Resource Server -Another example config for using PingFede...
removing double definition
#define testrunnerFULL_POSIX_ENABLED 0 #define testrunnerOTA_END_TO_END_ENABLED 0 #define testrunnerFULL_BLE_ENABLED 0 -#define testrunnerFULL_SERIALIZER_ENABLED 0 +#define testrunnerFULL_SERIALIZER_ENABLED 1 #define testrunnerFULL_LINEAR_CONTAINERS_ENABLED 0 /* #define testrunnerFULL_OTA_CBOR_ENABLED 1
setNamespace remove goto solution
@@ -51,28 +51,24 @@ cleanupDestFd: static bool setNamespace(pid_t pid, const char *ns) { - bool res = FALSE; char nsPath[PATH_MAX] = {0}; int nsFd; if (scope_snprintf(nsPath, sizeof(nsPath), "/proc/%d/ns/%s", pid, ns) < 0) { scope_perror("scope_snprintf failed"); - goto exit; + return FALSE; } if ((nsFd = scope_open(ns...
Update README.md Update release dates
@@ -66,8 +66,13 @@ Release Number | Date | History 1.6.19 | 2013-11-15 | [Portable UPnP SDK][Portable UPnP SDK] 1.6.20 | 2016-07-07 | [Portable UPnP SDK][Portable UPnP SDK] 1.6.21 | 2016-12-21 | [Portable UPnP SDK][Portable UPnP SDK] -1.6.22 | 2017-??-?? | -1.8.0 | 2017-??-?? | +1.6.22 | 2017-05-30 | [Portable UPnP SDK...
[RPC] Fix mistypo and add version in serverinfo
@@ -222,6 +222,7 @@ func (ns *RPC) CollectServerInfo(categories []string) *types.ServerInfo{ // 3 items are needed statusInfo := make(map[string]string) rsp, err := ns.CallRequestDefaultTimeout(message.P2PSvc, &message.GetSelf{}) + statusInfo["version"] = ns.version if err != nil { ns.Logger.Error().Err(err).Msg("p2p a...
grib1 spectral ieee
@@ -204,6 +204,8 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len) if (*len == 0) return GRIB_NO_VALUES; +#if 0 + /* TODO: spectral_ieee does not work */ if (c->ieee_packing && self->ieee_packing) { long precision = c->ieee_packing == 32 ? 1 : 2; size_t lenstr = strlen(self->ieee_packing); @@ ...
[core] recognize status: 421 Misdirected Request
@@ -107,6 +107,7 @@ static const keyvalue http_status[] = { { 415, CONST_LEN_STR("415 Unsupported Media Type") }, { 416, CONST_LEN_STR("416 Requested Range Not Satisfiable") }, { 417, CONST_LEN_STR("417 Expectation Failed") }, + { 421, CONST_LEN_STR("421 Misdirected Request") }, /* RFC 7540 */ { 422, CONST_LEN_STR("422...
common/mock/usb_prl_mock.c: Format with clang-format BRANCH=none TEST=none
@@ -52,7 +52,8 @@ void mock_prl_reset(void) } void prl_end_ams(int port) -{} +{ +} void prl_execute_hard_reset(int port) { @@ -67,7 +68,8 @@ enum pd_rev_type prl_get_rev(int port, enum tcpci_msg_type partner) } void prl_hard_reset_complete(int port) -{} +{ +} int prl_is_running(int port) { @@ -80,7 +82,8 @@ __overridab...
Single call to metadata load
@@ -547,7 +547,7 @@ void update(uint32_t time) { load_file_list(current_directory->name); selected_menu_item = 0; - load_current_game_metadata(); + old_menu_item = -1; } if (button_y) {
BugID:18359227: Fix name of macro error.
@@ -52,7 +52,7 @@ int __awss_start(void) aws_destroy(); do { -#if defined(AWSS_SUPPORT_ADHA) || defined(AWSS_SUPPORt_AHA) +#if defined(AWSS_SUPPORT_ADHA) || defined(AWSS_SUPPORT_AHA) char awss_notify_needed = 1; int adha = 0; #endif @@ -60,7 +60,7 @@ int __awss_start(void) if (awss_stop_connecting || strlen(ssid) == 0)...
Fixed bug in httplib_error_string.c with call to strerror_r
@@ -165,11 +165,26 @@ LIBHTTP_API char *httplib_error_string( int error_code, char *buf, size_t buf_le strerror_s( buf, buf_len, error_code ); return buf; -#else /* _WIN32 */ +#else /* not _WIN32 */ - strerror_r( error_code, buf, buf_len ); +#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! defined(_GNU_SO...
battery: Current rate must be positive. ACPI disallows a negative current rate. Use the absolute rate, and rely on the flags to indicate charging or discharging. TEST=zmake build nivviks BRANCH=none
#include "console.h" #include "hooks.h" #include "host_command.h" +#include "math_util.h" #include "printf.h" #include "util.h" @@ -68,7 +69,11 @@ static void battery_update(enum battery_index i) batt_str[EC_MEMMAP_TEXT_MAX - 1] = 0; *memmap_volt = battery_dynamic[i].actual_voltage; - *memmap_rate = battery_dynamic[i]....
Add an exit function
@@ -85,7 +85,7 @@ void Button_Init(void) ProfileState_CreateService(&button, 0, "button", revision); // set_fl(STDOUT_FILENO, O_NONBLOCK); clear_screen(); - printf("Button service running.\n\n\tUse the SPACE button to swap the button state.\n"); + printf("Button service running. Press Q to quit.\n\n\tUse the SPACE butt...
mmapstorage: add tests for timestamp keyset
@@ -120,6 +120,54 @@ static void test_mmap_get_set (const char * tmpFile) PLUGIN_CLOSE (); } +static void test_mmap_set_get_timestamps (const char * tmpFile) +{ + Key * parentKey = keyNew (TEST_ROOT_KEY, KEY_VALUE, tmpFile, KEY_END); + KeySet * conf = ksNew (0, KS_END); + PLUGIN_OPEN ("mmapstorage"); + KeySet * ks = ks...
really fix definition of SHUFFLE_MAGIC_NO
#define ONE 1.e0f #define ZERO 0.e0f +#define SHUFFLE_MAGIC_NO (const int) 0x39 + #undef STORE16_COMPLETE_RESULT #undef STORE16_MASK_COMPLETE_RESULT #undef SBGEMM_BLOCK_KERNEL_NN_32x8xK @@ -356,7 +358,6 @@ void sbgemm_block_kernel_nn_32xNx32_one(BLASLONG m, BLASLONG n, BLASLONG k, floa bfloat16 * B_addr = B; float * C_...
Changelog note for Merge unbound.service.in: Disable ProtectKernelTunables again.
crash on unlocking the local zone lock. - Fix to remove unused code from rpz resolve client and action function. + - Merge #565: unbound.service.in: Disable ProtectKernelTunables again. 2 November 2021: Wouter - Fix #552: Unbound assumes index.html exists on RPZ host.
upstream: expose flb_upstream_conn_pending_destroy()
@@ -155,6 +155,7 @@ int flb_upstream_conn_recycle(struct flb_upstream_conn *conn, int val); struct flb_upstream_conn *flb_upstream_conn_get(struct flb_upstream *u); int flb_upstream_conn_release(struct flb_upstream_conn *u_conn); int flb_upstream_conn_timeouts(struct flb_config *ctx); +int flb_upstream_conn_pending_des...
Handle all shortcuts in the same function Shortcuts are sometimes initiated from a keycode event, and sometimes from a text input event. Move the handling to a unique function.
@@ -320,18 +320,41 @@ static SDL_bool is_ctrl_down(void) { return state[SDL_SCANCODE_LCTRL] || state[SDL_SCANCODE_RCTRL]; } -static void handle_text_input(const SDL_TextInputEvent *event) { - if (is_ctrl_down()) { - char c = event->text[0]; +static void handle_shortcut(char c) { switch (c) { + case 'h': + send_keycode(...
webdojo: connect to slog stream for printfs Connects to the SSE stream on /~/slog to receive printf output from the runtime, and pretends those are incoming %txt effects. Depends on which introduces the endpoint used here.
@@ -14,6 +14,36 @@ export default class Subscription { } else { console.error('~~~ ERROR: Must set api.ship before operation ~~~'); } + this.setupSlog(); + } + + setupSlog() { + const slog = new EventSource('/~/slog', { withCredentials: true }); + let available = false; + + slog.onopen = e => { + console.log('slog: ope...
Remove unused member "movestep" from entity struct.
@@ -2390,7 +2390,6 @@ typedef struct entity e_direction direction; // ~~ int nograb; // Some enemies cannot be grabbed (bikes) - now used with cantgrab as well ~~ int nograb_default; // equal to nograb but this is remain the default value setetd in entity txt file (by White Dragon) ~~ - int movestep; s_axis_principal_f...
peview: Fix missing properties for some files
@@ -26,17 +26,31 @@ VOID PvpPeEnumerateFilePropStore( _In_ HWND ListViewHandle ) { + HRESULT status; IPropertyStore *propstore; ULONG count; ULONG i; - if (SUCCEEDED(SHGetPropertyStoreFromParsingName( + status = SHGetPropertyStoreFromParsingName( PvFileName->Buffer, NULL, GPS_DEFAULT | GPS_EXTRINSICPROPERTIES | GPS_VOL...
Fix the install_sslyze.sh Script to work on fresh Ubuntu 16.04 install
# set -e +# Need to upgrade pyOpenSSL before pip on a fresh Ubuntu 16.04 install: https://stackoverflow.com/a/48569233 +sudo python -m easy_install --upgrade pyOpenSSL + pip install --user --upgrade pip setuptools pip install --user --upgrade nassl sslyze==1.4.0
enhances outgoing http support in lib/stdio
:: :: ---- :: -:: HTTP requests +:: Outgoing HTTP requests :: -++ send-hiss - |= =hiss:eyre +++ send-request + |= =request:http =/ m (async ,~) ^- form:m =/ =card - [%request / (hiss-to-request:html hiss) *outbound-config:http-client] + [%request / request *outbound-config:http-client] ;< ~ bind:m (send-raw-card card) ...
Rust: Improve description of binding compilation
@@ -10,7 +10,7 @@ Rust bindings for libelektra. ## Build -To build the bindings explicitly as part of the elektra build process, we pass the option `-DBINDINGS="rust"` to cmake. After [building libelektra](../../../doc/COMPILE.md), we can now add the `elektra` crate to the dependencies. The exact paths depends on your ...
Added recommended BIOS settings for better real-time performance.
@@ -191,3 +191,44 @@ system on Intel KBL NUC with a SATA SSD as ``/dev/sda`` and an NVME SSD as swupd bundle-add dev-utils cyclictest -N -p80 -D30 -M > log.txt cat log.txt + +#. To achieve better real-time performance, the following is the recommended + BIOS setting. You may not see all the settings because some of the...
examples/spec: set default for serialvdf
@@ -2326,10 +2326,10 @@ description = "'no' if display connected serial, 'yes' if connected parallel." [serialvfd/custom-characters] type = unsigned_long check/type = unsigned_long -check/validation = ^([1-9]\d*|0)$ +check/validation = ^(-83|[1-9]\d*|0)$ check/validation/match = LINE check/validation/message = Must be ...
Convert ssl3_cbc_digest_record() to use EVP_MD_is_a() Previously it used EVP_MD_type(), which doesn't work when called inside the FIPs module.
@@ -214,8 +214,7 @@ int ssl3_cbc_digest_record(const EVP_MD *md, if (!ossl_assert(data_plus_mac_plus_padding_size < 1024 * 1024)) return 0; - switch (EVP_MD_type(md)) { - case NID_md5: + if (EVP_MD_is_a(md, "MD5")) { if (MD5_Init((MD5_CTX *)md_state.c) <= 0) return 0; md_final_raw = tls1_md5_final_raw; @@ -224,32 +223,...
Provide more in-depth migration guide after removal of null entropy.
@@ -4,6 +4,8 @@ Remove the option to build the library without any entropy sources This does not affect users who use the default `config.h`, as this option was already off by default. -If you were using the `MBEDTLS_TEST_NULL_ENTROPY` option, you can either use -`MBEDTLS_ENTROPY_NV_SEED` or create a fake entropy funct...
Add Windows build workflow
@@ -119,3 +119,17 @@ jobs: sleep 1 done done + + build-windows: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: Configure cmake + run: | + mkdir build + cd build + cmake .. + - name: Build ngtcp2 + run: | + cmake --build build
tools: keep non-virtual destructor
@@ -159,6 +159,7 @@ protected: public: ModulesPluginDatabase (); + ~ModulesPluginDatabase (); /* TODO: reintroduce with next API break virtual ~ModulesPluginDatabase (); */ @@ -198,6 +199,7 @@ public: * @param conf keyset containing keys from system/elektra/plugins */ explicit PluginVariantDatabase (const KeySet & conf...
[KConfig] Add RT_USING_NETUTILS configuration for network.
menu "Network stack" -menu "light weight TCP/IP stack" +menu "Light weight TCP/IP stack" config RT_USING_LWIP bool "Enable lwIP stack" default n @@ -169,4 +169,8 @@ endmenu source "$RTT_DIR/components/net/freemodbus/KConfig" +config RT_USING_NETUTILS + bool "Enable net utils" + default n + endmenu
Final Tests of Sha256DT and Sha512/256 testing ( last try for tonight .... )
@@ -183,7 +183,7 @@ public class HashingTests : TestBase var hash = new byte[32]; hasher.Digest(testValue2, hash); var result = hash.ToHexString(); - Assert.Equal("37b09f83da42efdfc80cfdceb35fe307d8c8007cea0313feda96a22dfc4a7c37", result); + Assert.Equal("bf4735b3a0feebe83727a7a2327f8223eec7484190e8dd52611ce75b045a2e75...
motorcontrol: fix get time
@@ -446,7 +446,7 @@ void motor_control_update(){ atomic_flag_clear(&busy[idx]); // Remove once we remove multithreading } // Read current state of this motor: current time, speed, and position - time_now = pbdrv_get_time_usec(); + time_now = pbdrv_time_get_usec(); pbio_encmotor_get_encoder_count(port, &count_now); pbio...
SOVERSION bump to version 2.18.7
@@ -66,7 +66,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 18) -set(LIBYANG_MICRO_SOVERSION 6) +set(LIBYANG_MICRO_SOVERSION 7) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M...
secure boot v2: Fix crash if signature verification fails in app sha_handle is "finished" when verify_secure_boot_signature() returns and should be nulled out. Alternative version of fix submitted in Closes
@@ -235,6 +235,7 @@ static esp_err_t image_load(esp_image_load_mode_t mode, const esp_partition_pos_ if (true) { #endif // end checking for JTAG err = verify_secure_boot_signature(sha_handle, data, image_digest, verified_digest); + sha_handle = NULL; // verify_secure_boot_signature finishes sha_handle } #else // SECURE...
Include deps in libhttp bld.sub
@@ -2,12 +2,20 @@ bin h {noinst}= h.myr lib http + lib ../sys:sys + lib ../std:std + lib ../bio:bio + lib ../thread:thread ;; bin srvdot {noinst}= srvdot.myr lib http + lib ../sys:sys + lib ../std:std + lib ../bio:bio + lib ../thread:thread ;; lib http = @@ -18,4 +26,9 @@ lib http = server.myr session.myr status.myr + ...
rsa: fix: use #ifdef MCU_BOOT_RSA_PKCS1_15 instead of #if As this flag is tested with #ifdef everywhere else, use #ifdef in image_rsa.c
#include "bootutil_priv.h" -#if MCUBOOT_RSA_PKCS1_15 +#ifdef MCUBOOT_RSA_PKCS1_15 static const uint8_t sha256_oid[] = { 0x30, 0x31, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05,