message
stringlengths
6
474
diff
stringlengths
8
5.22k
tests: cleaned up asprintf.c.
#include "criterion/criterion.h" #include "criterion/theories.h" #include "criterion/internal/asprintf-compat.h" +#include "criterion/new/assert.h" #include <stdio.h> union anyval { - int c; - int hd; + char c; + short hd; int d; long ld; long long lld; - unsigned int hu; + unsigned short hu; unsigned int u; unsigned l...
Extend test coverage of XML_ResumeParser
@@ -1745,6 +1745,23 @@ START_TEST(test_reset_in_entity) } END_TEST +/* Test that resume correctly passes through parse errors */ +START_TEST(test_resume_invalid_parse) +{ + const char *text = "<doc>Hello</doc"; /* Missing closing wedge */ + + resumable = XML_TRUE; + XML_SetCharacterDataHandler(parser, + clearing_aborti...
build: add python files to ctags Type: improvement
@@ -516,7 +516,7 @@ endef endif %.files: .FORCE - @find . \( -name '*\.[chyS]' -o -name '*\.java' -o -name '*\.lex' \) -and \ + @find . \( -name '*\.[chyS]' -o -name '*\.java' -o -name '*\.lex' -o -name '*\.py' \) -and \ \( -not -path './build-root*' -o -path \ './build-root/build-vpp_debug-native/dpdk*' \) > $@
Adapt commands for tests with GNU make.
@@ -121,11 +121,15 @@ jobs: run: | case "${{ matrix.build }}" in "make") - echo "::group::Tests for BLAS" - make blas-test + MAKE_FLAGS='DYNAMIC_ARCH=1 USE_OPENMP=0' + echo "::group::Tests in 'test' directory" + make -C test $MAKE_FLAGS FC="ccache ${{ matrix.fortran }}" echo "::endgroup::" - echo "::group::Tests for LA...
version T13.790: memory leak fixed, the program will not fail
-/* dnet: threads; T11.231-T13.789; $DVS:time$ */ +/* dnet: threads; T11.231-T13.790; $DVS:time$ */ #include <stdlib.h> #include <stdio.h> @@ -231,6 +231,9 @@ static void *dnet_thread_accepted(void *arg) { g_n_inbound--; t->conn.socket = -1; //pthread_mutex_lock(&t->conn.mutex); +#ifdef CHEATCOIN + if (dnet_connection_...
limit max size of memory allocated for HTTP responses to 1 Mb
@@ -451,11 +451,14 @@ char *oidc_get_current_url(request_rec *r) { /* buffer to hold HTTP call responses */ typedef struct oidc_curl_buffer { - apr_pool_t *pool; + request_rec *r; char *memory; size_t size; } oidc_curl_buffer; +/* maximum acceptable size of HTTP responses: 1 Mb */ +#define OIDC_CURL_MAX_RESPONSE_SIZE 1...
console: ensure "Console is enabled" string is intact BRANCH=none TEST=boot 10 times on kevin, and see the complete string "Console is enabled..." Commit-Ready: Philip Chen Tested-by: Philip Chen
@@ -269,11 +269,13 @@ command_has_error: static void console_init(void) { *input_buf = '\0'; + cflush(); #ifdef CONFIG_EXPERIMENTAL_CONSOLE ccprintf("Enhanced Console is enabled (v1.0.0); type HELP for help.\n"); #else ccprintf("Console is enabled; type HELP for help.\n"); #endif /* defined(CONFIG_EXPERIMENTAL_CONSOLE)...
display: use esc [!p to reset terminal
#define ESC_RESET "\033[0m" #define ESC_SCROLL(x, y) "\033[" #x ";" #y "r" #define ESC_SCROLL_DISABLE "\033[?7h" +#define ESC_RESET_SETTINGS "\033[!p" #if defined(_HF_ARCH_LINUX) #define _HF_MONETARY_MOD "'" @@ -279,7 +280,9 @@ extern void display_display(honggfuzz_t* hfuzz) { display_displayLocked(hfuzz); } -extern vo...
bitbake: bump to v1.9.2
@@ -16,7 +16,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" SECTION = "net" PR = "r0" -PV = "1.9.0" +PV = "1.9.2" SRCREV = "v${PV}" SRC_URI = "git://github.com/fluent/fluent-bit.git;nobranch=1"
add tw_timer_template.c to vpp devel packages
@@ -207,6 +207,7 @@ nobase_include_HEADERS = \ vppinfra/tw_timer_2t_1w_2048sl.h \ vppinfra/tw_timer_16t_2w_512sl.h \ vppinfra/tw_timer_template.h \ + vppinfra/tw_timer_template.c \ vppinfra/types.h \ vppinfra/unix.h \ vppinfra/vec.h \
Fixes memleak in pubsub topology manager
@@ -932,15 +932,13 @@ static void pstm_setupTopicSenders(pubsub_topology_manager_t *manager) { psa->matchPublisher(psa->handle, entry->bndId, entry->publisherFilter, &topicProps, &score, &serSvcId, &protSvcId); if (score > highestScore) { - if (topicPropertiesForHighestMatch != NULL) { celix_properties_destroy(topicPro...
VERSION bump to version 1.3.44
@@ -31,7 +31,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 43) +set(SYSREPO_MICRO_VERSION 44) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
khan: just %done
@@ -79,8 +79,7 @@ _khan_close_socket(u3_khan* kan_u, u3_chan* can_u) u3dc("scot", c3__uv, kan_u->sev_l), u3dc("scot", c3__ud, can_u->coq_l), u3_nul); - // TODO change to just %socket-done or even %done - cad = u3nc(u3i_string("socket-done"), u3_nul); + cad = u3nc(c3__done, u3_nul); u3_auto_peer( u3_auto_plan(&kan_u->ca...
dprint: simplify and fix core/chapter/arm search the main issue fixed was with looking inside of chapters for arms didn't work
lhs :: [%core *] - :: cores don't have any doc structure inside of them. i probably need to - :: check that they're wrapped with a %hint type. so this just looks for - :: docs on the arms. - :: + :: checks for a core name match, then tries to find a chapter, arm, or + :: arm in a chapter depending on how many topics re...
chore: Correct a typo in CHANGELOG.md
### New Features #### AFQP 1.0 Support -This release of AFR has support for vendors who wish to have their ports qualified for Amazon FreeRTOS through the Amazon FreeRTOS Qualification Program (AFQP). This is the first public release of AFQP tests and documentation. A new top level "test" directory has been added to su...
Bugfix for kas2 roles in building registration
@@ -3370,7 +3370,7 @@ static ACVP_RESULT acvp_build_kas_ifc_register_cap(ACVP_CTX *ctx, current_param = kas_ifc_cap->kas2_roles; if (current_param) { role_val = json_value_init_object(); - role_obj = json_value_get_object(sch_val); + role_obj = json_value_get_object(role_val); json_object_set_value(role_obj, "kasRole",...
Add deparse step to blocking version of encryption test to make it comparable
@@ -210,6 +210,9 @@ struct rte_crypto_op* dequeued_ops[RTE_MAX_LCORE][CRYPTO_BURST_SIZE]; void do_blocking_sync_op(packet_descriptor_t* pd, enum async_op_type op){ unsigned int lcore_id = rte_lcore_id(); + control_DeparserImpl(pd, 0, 0); + emit_packet(pd, 0, 0); + create_crypto_op(async_ops[lcore_id],pd,op,NULL); if (r...
Set default channel size to 0.
@@ -521,7 +521,7 @@ static Janet cfun_channel_count(int32_t argc, Janet *argv) { static Janet cfun_channel_new(int32_t argc, Janet *argv) { janet_arity(argc, 0, 1); - int32_t limit = janet_optnat(argv, argc, 0, 10); + int32_t limit = janet_optnat(argv, argc, 0, 0); JanetChannel *channel = janet_abstract(&ChannelAT, siz...
Small changes [ci skip]
<!-- choose one --> **Type of change**: -- [ ] bug fix -- [ ] new feature -- [ ] other enhancement +- [ ] Bug fix +- [ ] New feature +- [ ] Other enhancement <!-- choose one --> **Impact**: -- [ ] rtl change -- [ ] software change -- [ ] unknown -- [ ] other +- [ ] RTL change +- [ ] Software change (RISC-V software) +-...
use synthese option rebuilt instead of none
@@ -87,7 +87,7 @@ set_property STEPS.SYNTH_DESIGN.ARGS.RESOURCE_SHARING off [get_runs set_property STEPS.SYNTH_DESIGN.ARGS.SHREG_MIN_SIZE 5 [get_runs synth_1] set_property STEPS.SYNTH_DESIGN.ARGS.KEEP_EQUIVALENT_REGISTERS true [get_runs synth_1] set_property STEPS.SYNTH_DESIGN.ARGS.NO_LC true [get_runs synth_1] -set_pr...
Make test_alloc_realloc_attributes() robust vs allocation changes
@@ -9912,7 +9912,9 @@ START_TEST(test_alloc_realloc_attributes) if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text), XML_TRUE) != XML_STATUS_ERROR) break; - XML_ParserReset(parser, NULL); + /* See comment in test_alloc_parse_xdecl() */ + alloc_teardown(); + alloc_setup(); } if (i == 0)
vtd: dmar_uint->root_table_addr should be hpa add necessary HPA2HVA/HVA2HPA transition for root_table_addr Acked-by: Tian, Kevin Acked-by: Xu, Anthony
@@ -965,14 +965,10 @@ static int add_iommu_device(struct iommu_domain *domain, uint16_t segment, } if (dmar_uint->root_table_addr == 0) { - /* 1:1 mapping for hypervisor HEAP, - * physical address equals virtual address - */ - dmar_uint->root_table_addr = - (uint64_t)alloc_paging_struct(); + dmar_uint->root_table_addr ...
flash_mmap: fix mmap unordered test on c2
@@ -251,13 +251,22 @@ TEST_CASE("Can mmap unordered pages into contiguous memory", "[spi_flash][mmap]" printf("mmap_res: handle=%"PRIx32" ptr=%p\n", (uint32_t)handle1, ptr1); spi_flash_mmap_dump(); +#if (CONFIG_MMU_PAGE_SIZE == 0x10000) + uint32_t words_per_sector = 1024; +#elif (CONFIG_MMU_PAGE_SIZE == 0x8000) + uint3...
Use nearbyint to get bankers rounding
@@ -1041,10 +1041,10 @@ ASTCENC_SIMD_INLINE vfloat4 abs(vfloat4 a) */ ASTCENC_SIMD_INLINE vfloat4 round(vfloat4 a) { - return vfloat4(std::round(a.m[0]), - std::round(a.m[1]), - std::round(a.m[2]), - std::round(a.m[3])); + return vfloat4(std::nearbyint(a.m[0]), + std::nearbyint(a.m[1]), + std::nearbyint(a.m[2]), + std:...
Clang static analyser: Dead increment
@@ -221,7 +221,7 @@ static int init(grib_iterator* iter, grib_handle* h, grib_arguments* args) lop *= 1e-6; if (lap != 0.0) return GRIB_NOT_IMPLEMENTED; - lap *= DEG2RAD; + /*lap *= DEG2RAD;*/ lop *= DEG2RAD; orient_angle = orientationInDegrees;
minor +send-blob refactor
=/ =peer-state +.u.ship-state =/ =channel [[our ship] now +>.ames-state -.peer-state] :: - ?~ route=route.peer-state + =* try-next-sponsor ?: =(ship her-sponsor.channel) event-core $(ship her-sponsor.channel) :: + ?~ route=route.peer-state + try-next-sponsor + :: =. event-core (emit unix-duct.ames-state %give %send lan...
sysrepo MAINTENANCE use libyang helper functions
@@ -2667,7 +2667,7 @@ sr_replace_config(sr_session_ctx_t *session, const char *module_name, struct lyd SR_CHECK_ARG_APIRET(!session || !SR_IS_CONVENTIONAL_DS(session->ds), session, err_info); - if (src_config && (session->conn->ly_ctx != src_config->schema->module->ctx)) { + if (src_config && (session->conn->ly_ctx != ...
Allow the MQTT client example for platform Cooja
@@ -10,6 +10,6 @@ MODULES += $(CONTIKI_NG_APP_LAYER_DIR)/mqtt MODULES_REL += arch/platform/$(TARGET) -PLATFORMS_ONLY = cc26x0-cc13x0 cc2538dk openmote zoul native simplelink +PLATFORMS_ONLY = cc26x0-cc13x0 cc2538dk openmote zoul native simplelink cooja include $(CONTIKI)/Makefile.include
Make sure we use a fetched cipher when encrypting stateless tickets We use AES-256-CBC to encrypt stateless session tickets. We should ensure that the implementation is fetched from the appropriate provider.
@@ -3906,7 +3906,14 @@ static int construct_stateless_ticket(SSL *s, WPACKET *pkt, uint32_t age_add, } iv_len = EVP_CIPHER_CTX_iv_length(ctx); } else { - const EVP_CIPHER *cipher = EVP_aes_256_cbc(); + EVP_CIPHER *cipher = EVP_CIPHER_fetch(s->ctx->libctx, "AES-256-CBC", + s->ctx->propq); + + if (cipher == NULL) { + SSL...
VERSION bump to version 1.3.12
@@ -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 11) +set(SYSREPO_MICRO_VERSION 12) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
Fix problem with allNAMES in ThirdPartyInstallLibrary that prevented some libraries from being installed correctly.
@@ -159,7 +159,7 @@ FUNCTION(THIRD_PARTY_INSTALL_LIBRARY LIBFILE) SET(curNAME "${curPATH}/${inptNAME}") # Come up with all of the possible library and symlink names SET(allNAMES "${curNAME}${LIBEXT}") - SET(allNAMES "${curNAME}${LIBEXT}.1") # seems to be a standard linux-ism that isn't always covered by the foreach-loo...
increased delay for USB init
@@ -11,7 +11,7 @@ import inky_helper as ih # WIFI_PASSWORD = "Your WiFi password" # A short delay to give USB chance to initialise -time.sleep(0.1) +time.sleep(0.5) # Setup for the display. graphics = PicoGraphics(DISPLAY)
fixed JS API on WM/CE
@@ -5332,6 +5332,9 @@ get_attr_vsn(const WCHAR *path, DWORD *atts, DWORD *vsn) static int wrename(const WCHAR *oldpath, const WCHAR *newpath) { + +//RHO +#ifndef _WIN32_WCE int res = 0; DWORD oldatts, newatts = (DWORD)-1; DWORD oldvsn = 0, newvsn = 0, e; @@ -5354,8 +5357,6 @@ wrename(const WCHAR *oldpath, const WCHAR *...
refactor: move curl header to user-agent.h
#ifndef USER_AGENT_H #define USER_AGENT_H -#ifdef __cplusplus -extern "C" { -#endif // __cplusplus +#include <curl/curl.h> #include "ntl.h" #include "orka-config.h" +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + /* UTILITY MACROS */ #define STREQ(str1, str2) (0 == strcmp(str1, str2)) #define STRNEQ(str1, st...
Add quick comment about ambiguous field name
@@ -271,7 +271,7 @@ typedef struct packed { memory_op_t memory_access_type; logic load; logic compare; - subcycle_t last_subcycle; + subcycle_t last_subcycle; // count of last subcycle, not a boolean flag control_register_t creg_index; logic cache_control; cache_op_t cache_control_op;
Remove Pragma once from HttpClientFactory.hpp to align with project-wide style.
// Copyright (c) Microsoft. All rights reserved. +#ifndef HTTPCLIENTFACTORY_HPP +#define HTTPCLIENTFACTORY_HPP -#pragma once #include "IHttpClient.hpp" #include "pal/PAL.hpp" @@ -18,3 +19,5 @@ private: } ARIASDK_NS_END + +#endif // HTTPCLIENTFACTORY_HPP \ No newline at end of file
Skip updating directory when already set to the correct path
@@ -608,10 +608,19 @@ BOOLEAN PhInitializeDirectoryPolicy( { PPH_STRING applicationDirectory; UNICODE_STRING applicationDirectoryUs; + PH_STRINGREF currentDirectory; if (!(applicationDirectory = PhGetApplicationDirectoryWin32())) return FALSE; + PhUnicodeStringToStringRef(&NtCurrentPeb()->ProcessParameters->CurrentDire...
add matekf411.dshot300.serial as default build.
"BRUSHLESS_TARGET": "", "RX_UNIFIED_SERIAL": "" } + }, + { + "name": "dshot300.serial", + "defines": { + "BRUSHLESS_TARGET": "", + "RX_UNIFIED_SERIAL": "", + "DSHOT": "300" + } } ] },
Fix array sizes to prevent ASAN errors (large block interpolation).
// AVX2 implementation of horizontal filter reads and // writes two rows for luma and four for chroma at a time. // Extra vertical padding is added to prevent segfaults. -// Horizontal padding is not needed even if one extra byte -// is read because kvz_image_alloc adds enough padding. -#define KVZ_IPOL_MAX_INPUT_SIZE_...
fix bug in documentation there was fault for `uint32_t NVIC_GetEnableIRQ(IRQn_Type IRQn)` function documentation that fixed.
@@ -482,7 +482,7 @@ void NVIC_EnableIRQ(IRQn_Type IRQn); \returns - 0 Interrupt is not enabled - - 1 Interrupt is pending + - 1 Interrupt is enabled \remarks - IRQn must not be negative.
fix plus config mixer
@@ -255,10 +255,10 @@ void motor_mixer_calc(float mix[4]) { mix[MOTOR_BL] = state.throttle + state.pidoutput.axis[ROLL] + state.pidoutput.axis[PITCH] + state.pidoutput.axis[YAW]; // BL #else // plus mode, we set mix according to pidoutput - mix[MOTOR_FR] = state.throttle - state.pidoutput.axis[PITCH] - state.pidoutput....
host_command: Add host_is_event_set host_is_event_set checks whether a given event is set or not. BRANCH=none TEST=make buildall
@@ -161,6 +161,17 @@ void host_clear_events(uint32_t mask); * Return the raw event state. */ uint32_t host_get_events(void); + +/** + * Check a single host event. + * + * @param event Event to check + * @return true if <event> is set or false otherwise + */ +static inline int host_is_event_set(enum host_event_code even...
Examples: Use more common technical term
@@ -33,7 +33,7 @@ int main (void) // printf ("Write key set to disk\n"); // kdbSet (handle, config, root); - printf ("Delete mappings inside memory\n"); + printf ("Delete key-value pairs inside memory\n"); ksDel (config); printf ("Close key database\n"); kdbClose (handle, 0);
.github/workflows/travis-ci.yml: Disable esp32 builds. Rely on separate .yml for that.
@@ -461,6 +461,7 @@ jobs: make ${MAKEOPTS} -C ports/windows CROSS_COMPILE=i686-w64-mingw32- esp32-ESP-IDFv3-port-build: + if: false runs-on: ubuntu-16.04 steps: - name: Clone @@ -489,6 +490,7 @@ jobs: make ${MAKEOPTS} -C ports/esp32 esp32-ESP-IDFv4-port-build: + if: false runs-on: ubuntu-16.04 steps: - name: Clone
Don't turn off the phone power on C2s when changing USB mode
@@ -72,11 +72,9 @@ void uno_set_usb_power_mode(uint8_t mode) { bool valid = false; switch (mode) { case USB_POWER_CLIENT: - uno_set_phone_power(false); valid = true; break; case USB_POWER_CDP: - uno_set_phone_power(true); uno_bootkick(); valid = true; break;
kiln: update %base in +bump
|= except=(set desk) ^+ kiln =/ kel=weft [%zuse zuse] - =. except (~(put in except) %base) - =/ ded (~(dif in (get-blockers kel)) except) + =/ ded (~(dif in (get-blockers kel)) (~(put in except) %base)) ?. =(~ ded) =/ mes "kiln: desks blocked upgrade to {<[- +]:kel>}: {<ded>}" (^emit (pyre:pass leaf/mes ~))
build: luajit: macos: Handle macOS Monterey
@@ -14,7 +14,7 @@ set(LUAJIT_DEST ${CMAKE_CURRENT_BINARY_DIR}) if (CMAKE_SYSTEM_NAME MATCHES "Darwin") set(CFLAGS "${CFLAGS} -isysroot ${CMAKE_OSX_SYSROOT} -fno-stack-check") if (CMAKE_HOST_SYSTEM_VERSION VERSION_GREATER_EQUAL 20 - AND CMAKE_HOST_SYSTEM_VERSION VERSION_LESS 21) + AND CMAKE_HOST_SYSTEM_VERSION VERSION_L...
arch/imxrt: fix typo in Kconfig, ARCH_FAMILY_MIMXRT105xCVL5A ARCH_FAMILY_IMIMXRT105xCVL5A -> ARCH_FAMILY_MIMXRT105xCVL5A
@@ -34,7 +34,7 @@ config ARCH_CHIP_MIMXRT1051DVL6A config ARCH_CHIP_MIMXRT1051CVL5A bool "MIMXRT1051CVL5A" - select ARCH_FAMILY_IMIMXRT105xCVL5A + select ARCH_FAMILY_MIMXRT105xCVL5A config ARCH_CHIP_MIMXRT1052DVL6A bool "MIMXRT1052DVL6A"
osx: travis another path fix
@@ -34,7 +34,7 @@ echo "Building rhosim" cd $TRAVIS_BUILD_DIR rm $TRAVIS_BUILD_DIR/platform/osx/bin/RhoSimulator/RhoSimulator.app.zip rake build:osx:rhosimulator -zip $TRAVIS_BUILD_DIR/platform/osx/bin/RhoSimulator/RhoSimulator.app.zip $TRAVIS_BUILD_DIR/rhodes/platform/osx/bin/RhoSimulator/RhoSimulator.app +zip $TRAVIS...
added create group toggle to new notebook page
@@ -58,20 +58,29 @@ export class NewScreen extends Component { onClickCreate() { const { props, state } = this; let bookId = stringToSymbol(state.idName); - let groupInfo = (state.invites.groups.length > 0) - ? { + let groupInfo = null; + if (state.invites.groups.length > 0) { + groupInfo = { "group-path": state.invite...
CUDA: const correctness in get/free device name string This silences a couple of const correctness warnings due to implicit casts to/from char*/const char*.
@@ -286,12 +286,15 @@ pocl_cuda_init (unsigned j, cl_device_id dev, const char *parameters) ret = CL_INVALID_DEVICE; /* Get specific device name */ - dev->long_name = dev->short_name = calloc (256, sizeof (char)); + { + char *name = calloc (256, sizeof (char)); if (ret != CL_INVALID_DEVICE) - cuDeviceGetName (dev->long...
tools/mpybytes: create temporary files
#!/usr/bin/env python3 -from sys import argv +import os import mpy_cross import argparse +import tempfile -TMPFILE = 'script.py' - -def get_bytes(path): +def get_bytes_from_file(path, fake_name=None): """Compile a Python file with mpy-cross and return as list of bytes.""" - # TODO: Check versions and compatibility - pr...
ble_mesh: stack: Fix Node ID adv with wrong timeout
@@ -231,6 +231,11 @@ static inline int adv_send(struct net_buf *buf) return 0; } +static inline TickType_t K_WAIT(int32_t val) +{ + return (val == K_FOREVER) ? portMAX_DELAY : (val / portTICK_PERIOD_MS); +} + static void adv_thread(void *p) { #if defined(CONFIG_BLE_MESH_RELAY_ADV_BUF) @@ -254,7 +259,7 @@ static void ad...
updating R to v3.3.2
@@ -65,7 +65,7 @@ BuildRequires: intel_licenses Name: %{pname}%{PROJ_DELIM} Release: 1%{?dist} -Version: 3.3.1 +Version: 3.3.2 Source: https://cran.r-project.org/src/base/R-3/R-%{version}.tar.gz Source1: OHPC_macros Source2: OHPC_setup_compiler
tools/check-hash.sh: Add shasum to use checking hash In macOS, sha*sum tools not found, but shasum can be use instead of them.
@@ -71,7 +71,14 @@ esac # Calculate hash value of passed file -calc_hash=$( ${hash_algo}sum "${file_to_check}" | cut -d' ' -f1 ) +if [ `which ${hash_algo}sum 2> /dev/null` ]; then + hash_algo_cmd="${hash_algo}sum" +elif [ `which shasum 2> /dev/null` ]; then + hash_algo_len=$( echo ${hash_algo} | cut -c 4- ) + hash_algo...
Test multi-byte characters in ATTLIST default attribute value
@@ -1927,6 +1927,16 @@ START_TEST(test_dtd_attr_handling) "bar", XML_FALSE }, + { + "<!ATTLIST doc a CDATA '\xdb\xb2'>\n" + "]>" + "<doc/>", + "doc", + "a", + "CDATA", + "\xdb\xb2", + XML_FALSE + }, { NULL, NULL, NULL, NULL, NULL, XML_FALSE } }; AttTest *test;
Fix buffer overflow in ble-l2cap
@@ -422,9 +422,16 @@ input_l2cap_frame_flow_channel(l2cap_channel_t *channel, uint8_t *data, uint16_t if(channel->rx_buffer.sdu_length == 0) { /* handle first fragment */ memcpy(&frame_len, &data[0], 2); - memcpy(&channel->rx_buffer.sdu_length, &data[4], 2); payload_len = frame_len - 2; + if(payload_len > BLE_L2CAP_NOD...
BugId:19028262: Recreate .config for %.menuconfig Cleanup useless check from Makefile.
@@ -56,7 +56,7 @@ else ifneq ($(filter %.export-iar, $(BUILD_STRING)),) export IDE := iar endif -ifneq ($(filter %.config, $(MAKECMDGOALS)),) +ifneq ($(filter %.config %.menuconfig, $(MAKECMDGOALS)),) $(shell rm -rf .config .defconfig out/config) endif @@ -160,22 +160,6 @@ export BOARD_DEFCONFIG := $(defconfig) AOS_DEF...
Fix typos in bio.pod CLA: trivial
@@ -17,7 +17,7 @@ details from an application. If an application uses a BIO for its I/O it can transparently handle SSL connections, unencrypted network connections and file I/O. -There are two type of BIO, a source/sink BIO and a filter BIO. +There are two types of BIO, a source/sink BIO and a filter BIO. As its name ...
SOVERSION bump to version 1.3.6
@@ -48,7 +48,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION # with backward compatible change and micro version is connected with any internal change of the library. set(LIBNETCONF2_MAJOR_SOVERSION 1) set(LIBNETCONF2_MINOR_SOVERSION 3) -set(LIBNETCONF2_MICRO_SOVERSION 5) +set(LIBN...
vkGetInstanceProcAddr(instance, "vkGetInstanceProcAddr") should return our vkGetInstanceProcAddr not the next in the chain.
@@ -1932,10 +1932,14 @@ static void overlay_DestroyInstance( extern "C" VK_LAYER_EXPORT VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL overlay_GetDeviceProcAddr(VkDevice dev, const char *funcName); +extern "C" VK_LAYER_EXPORT VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL overlay_GetInstanceProcAddr(VkInstance instance, + const ch...
Add casts to performance/storage test for 32-bit architectures.
@@ -237,7 +237,7 @@ testRun(void) ASSERT(bufUsed(block) == 1024 * 1024); // Build the input buffer - Buffer *input = bufNew(blockTotal * bufSize(block)); + Buffer *input = bufNew((size_t)blockTotal * bufSize(block)); for (unsigned int blockIdx = 0; blockIdx < blockTotal; blockIdx++) memcpy(bufPtr(input) + (blockIdx * b...
[libc/time] Revert the time.h
@@ -57,10 +57,6 @@ time_t timegm(struct tm * const t); int gettimeofday(struct timeval *tv, struct timezone *tz); int settimeofday(const struct timeval *tv, const struct timezone *tz); -#if defined(__ARMCC_VERSION) || defined (__ICCARM__) -struct tm *gmtime_r(const time_t *timep, struct tm *r); -#endif - #ifdef RT_USIN...
Reset initial ioclass stats value when retrieving.
@@ -289,7 +289,7 @@ int ocf_stats_collect_part_cache(ocf_cache_t cache, ocf_part_id_t part_id, struct ocf_stats_blocks *blocks) { struct io_class_stats_context ctx; - struct ocf_stats_io_class s; + struct ocf_stats_io_class s = {}; int result = 0; OCF_CHECK_NULL(cache);
VERSION bump to version 2.0.173
@@ -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 172) +set(LIBYANG_MICRO_VERSION 173) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}...
[mod_extforward] consolidate ipstr_to_sockaddr()
@@ -326,8 +326,8 @@ static const char *last_not_in_array(array *a, plugin_data *p) return NULL; } -#ifdef HAVE_IPV6 static void ipstr_to_sockaddr(server *srv, const char *host, sock_addr *sock) { +#ifdef HAVE_IPV6 struct addrinfo hints, *addrlist = NULL; int result; @@ -370,8 +370,12 @@ static void ipstr_to_sockaddr(se...
OcAppleKernelLib: Fix Jettison heuristics
@@ -1547,7 +1547,7 @@ PatchSegmentJettison ( } Status = PatcherGetSymbolAddress (Patcher, "_ml_static_mfree", (UINT8 **) &StaticMfree); - if (EFI_ERROR (Status) || RemoveBs > Last) { + if (EFI_ERROR (Status) || StaticMfree > Last) { DEBUG ((DEBUG_INFO, "OCAK: Missing ml_static_mfree - %r\n", Status)); return EFI_NOT_FO...
Remove name in `ns.h`
#include "scopetypes.h" -bool nsIsPidInChildNs(pid_t pid, pid_t *nsPid); -int nsForkAndExec(pid_t parentPid, pid_t nsPid); +bool nsIsPidInChildNs(pid_t, pid_t *); +int nsForkAndExec(pid_t, pid_t); #endif // __NS_H__
lib: test: add signal handlers
#include <stdio.h> #include <stdlib.h> +#include <signal.h> #include <unistd.h> #define API_ADDR "127.0.0.1" #define API_PORT "2020" +/* Main context set as global so the signal handler can use it */ +mk_ctx_t *ctx; + void cb_worker(void *data) { mk_info("[api test] test worker callback; data=%p", data); @@ -46,12 +50,...
buffersize via macro
@@ -33,6 +33,7 @@ static char *config_property = "{\ static uint8_t config_log_level = 1; static uint8_t config_keep_alive = 0; #define BUFFERSIZE 33768 +#define BUFFERSIZE_SMALL 1024 struct neat_ctx *ctx = NULL; @@ -73,7 +74,7 @@ prepare_http_response(struct http_flow *http_flow, unsigned char **buffer, uint3 unsigned...
debian: bump version to 0.11-development
+td-agent-bit (0.11.0-dev) stable; urgency=low + + * Based on Fluent Bit v0.11.0-dev + + -- Eduardo Silva <eduardo@treasure-data.com> Mon, 13 Mar 2017 09:00:00 -0600 + +td-agent-bit (0.10.1-1) stable; urgency=low + + * Based on Fluent Bit v0.10.1 + + -- Eduardo Silva <eduardo@treasure-data.com> Fri, 06 Jan 2017 09:00:0...
display: lock mutex before calling display_displayLocked
@@ -148,9 +148,6 @@ static void display_displayLocked(honggfuzz_t* hfuzz) { size_t exec_per_sec = curr_exec_cnt - prev_exec_cnt; prev_exec_cnt = curr_exec_cnt; - /* The lock should be acquired before any output is printed on the screen */ - MX_SCOPED_LOCK(logMutexGet()); - display_put(ESC_NAV(13, 1) ESC_CLEAR_ABOVE ESC...
options/ansi: Add ENOSPC to strerror
@@ -334,6 +334,7 @@ char *strerror(int e) { case ESPIPE: s = "Seek not possible (ESPIPE)"; break; case ENXIO: s = "No such device or address (ENXIO)"; break; case ENOEXEC: s = "Exec format error (ENOEXEC)"; break; + case ENOSPC: s = "No space left on device (ENOSPC)"; break; default: s = "Unknown error code (?)"; }
Get default values for stack and heap for sam3u2c
; * ; *****************************************************************************/ +#include "daplink_defaults.h" ; <h> Stack Configuration ; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> ; </h> -Stack_Size EQU 0x00000200 +Stack_Size EQU DAPLINK_STACK_SIZE AREA STACK, NOINIT, READWRITE, ALIGN=3 Stack_Mem SPACE Stack_S...
allow forward search on wlandump forced handshakes
@@ -1097,6 +1097,44 @@ while(c >= 0) return; } /*===========================================================================*/ +static void lookfor21(long int cakt, eapdb_t *zeigerakt, unsigned long long int replaycakt) +{ +eapdb_t *zeiger; +unsigned long long int r; +long int c; +int rctime = 120; +uint8_t m = 0; + +i...
options/posix: Fix incorrect deadlock detection in pthread_mutex_trylock
@@ -822,11 +822,7 @@ int pthread_mutex_trylock(pthread_mutex_t *mutex) { // If this (recursive) mutex is already owned by us, increment the recursion level. if((expected & mutex_owner_mask) == this_tid()) { if(!(mutex->__mlibc_flags & mutexRecursive)) { - if (mutex->__mlibc_flags & mutexErrorCheck) - return EDEADLK; - ...
Allow lovr.audio.setDevice(type, nil);
@@ -77,9 +77,8 @@ static int l_lovrAudioGetDevices(lua_State *L) { static int l_lovrAudioSetDevice(lua_State *L) { AudioType type = luax_checkenum(L, 1, AudioType, "playback"); - luaL_checkany(L, 2); void* id = lua_touserdata(L, 2); - size_t size = luax_len(L, 2); + size_t size = id ? luax_len(L, 2) : 0; Sound* sink = ...
Add party id to GroupManager
@@ -12,8 +12,8 @@ namespace FFXIVClientStructs.FFXIV.Client.Game.Group [FieldOffset(0x1180)] public fixed byte AllianceMembers[0x230 * 20]; // PartyMember type [FieldOffset(0x3D40)] public uint Unk_3D40; [FieldOffset(0x3D44)] public ushort Unk_3D44; - [FieldOffset(0x3D48)] public long Unk_3D48; - [FieldOffset(0x3D50)] ...
fix select_threshold
@@ -464,10 +464,11 @@ def select_threshold(model=None, data=None, curve=None, FPR=None, FNR=None, thre for pool in data: if not isinstance(pool, Pool): raise CatBoostError('one of data pools is not catboost.Pool') + return _select_threshold(model._object, data, None, FPR, FNR, thread_count) elif curve is not None: if n...
Update dofile function signature.
:source, :evaluator, :read, and :parser are passed through to the underlying `run-context` call. If `exit` is true, any top level errors will trigger a call to `(os/exit 1)` after printing the error.`` - [path &keys - {:exit exit - :env env - :source src - :expander expander - :evaluator evaluator - :read read - :parse...
VERSION bump to version 2.0.267
@@ -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 266) +set(LIBYANG_MICRO_VERSION 267) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}...
Doc: in v12 release notes, explain how to replace uses of consrc and adsrc. While you can find that info if you drill down far enough, it seems more helpful to put something right in the compatibility notes. Per a question from Ivan Sergio Borgonovo. Discussion:
@@ -1590,6 +1590,16 @@ Author: Peter Eisentraut <peter_e@gmx.net> linkend="catalog-pg-constraint"><structname>pg_constraint</structname></link>.<structfield>consrc</structfield> column (Peter Eisentraut) </para> + + <para> + This column has been deprecated for a long time, because it did not + update in response to oth...
guard isxdigit against negative values
@@ -1602,8 +1602,8 @@ memset(buff, 0, bufflen); p = 0; while((lineptr[p] != '*') && (lineptr[p] != 0) && (p /2 <= bufflen)) { - if(!isxdigit(lineptr[p +0])) return 0; - if(!isxdigit(lineptr[p +1])) return 0; + if(!isxdigit((unsigned char)lineptr[p +0])) return 0; + if(!isxdigit((unsigned char)lineptr[p +1])) return 0; ...
Add recording logs Log when recording is started and stopped.
@@ -114,6 +114,8 @@ SDL_bool recorder_open(struct recorder *recorder, AVCodec *input_codec) { return SDL_FALSE; } + LOGI("Recording started to %s file: %s", format_name, recorder->filename); + return SDL_TRUE; } @@ -124,6 +126,9 @@ void recorder_close(struct recorder *recorder) { } avio_close(recorder->ctx->pb); avform...
sandbox/pll-3rd-order: extending example to exaggerate concept
@@ -14,8 +14,8 @@ int main() float phase_in = 3.0f; // carrier phase offset float frequency_in = -0.20; // carrier frequency offset float alpha = 0.08f; // phase adjustment factor - unsigned int n = 400; // number of samples - float df_in = 0.10 /(float)n; + unsigned int n = 1200; // number of samples + float df_in = 0...
system/lzf: correct the open mode
@@ -311,7 +311,6 @@ short_read: static int open_out(FAR const char *name) { - int fd; int m = O_EXCL; if (g_force) @@ -319,8 +318,7 @@ static int open_out(FAR const char *name) m = 0; } - fd = open(name, O_CREAT | O_WRONLY | O_TRUNC | m, 600); - return fd; + return open(name, O_CREAT | O_WRONLY | O_TRUNC | m, 0600); } ...
Update: Variable.c: Also put the variable_id as global array to reduce stack memory cost.
@@ -206,18 +206,19 @@ static void countHigherOrderStatementAtoms(Term *term, int *appearing, bool exte int appearing_left[ATOMS_MAX] = {0}; int appearing_right[ATOMS_MAX] = {0}; +char variable_id[ATOMS_MAX] = {0}; Term Variable_IntroduceImplicationVariables(Term implication, bool *success, bool extensionally) { assert(...
common/body_detection.c: Format with clang-format BRANCH=none TEST=none
@@ -31,8 +31,7 @@ static bool history_initialized; static bool body_detect_enable; STATIC_IF(CONFIG_ACCEL_SPOOF_MODE) bool spoof_enable; -static struct body_detect_motion_data -{ +static struct body_detect_motion_data { int history[CONFIG_BODY_DETECTION_MAX_WINDOW_SIZE]; /* acceleration */ int sum; /* sum(history) */ u...
bootutil: trivial fixes
@@ -32,7 +32,7 @@ extern "C" { /** Swap to slot 1. Absent a confirm command, revert back on next boot. */ #define BOOT_SWAP_TYPE_TEST 2 -/** Swap to slot 1 permanently. */ +/** Swap to slot 1, and permanently switch to booting its contents. */ #define BOOT_SWAP_TYPE_PERM 3 /** Swap back to alternate slot. A confirm cha...
baseboard/honeybuns/usbc_support.c: Format with clang-format BRANCH=none TEST=none
@@ -48,17 +48,13 @@ __maybe_unused static __const_data const char * const usbc_state_names[] = { static int read_reg(uint8_t port, int reg, int *regval) { return i2c_read8(ppc_chips[port].i2c_port, - ppc_chips[port].i2c_addr_flags, - reg, - regval); + ppc_chips[port].i2c_addr_flags, reg, regval); } static int write_reg...
Make: fix installation instructions The installation instructions as shown after successfully compiling OpenBLAS are wrong because this arguments used during compilation have to be provided to Make again.
@@ -81,8 +81,9 @@ ifeq ($(OSNAME), Darwin) @echo "install_name_tool -id /new/absolute/path/to/$(LIBDYNNAME) $(LIBDYNNAME)" endif @echo - @echo "To install the library, you can run \"make PREFIX=/path/to/your/installation install\"." - @echo + @echo "To install the library, you can run" + @echo " make <ARGS> PREFIX=/pat...
testcase/filesystem: Fix fs readdir() tc failure Currently readdir() fs tc assert, checks for not equal to NULL case. But when end of the directory stream is reached,readdir() returns NULL. So tc assert should check for equal to NULL case.
@@ -951,7 +951,7 @@ static void tc_fs_vfs_seekdir(void) seekdir(dir, offset); TC_ASSERT_NEQ_CLEANUP("seekdir", dir, NULL, closedir(dir)); dirent = readdir(dir); - TC_ASSERT_NEQ_CLEANUP("readdir", dirent, NULL, closedir(dir)); + TC_ASSERT_EQ_CLEANUP("readdir", dirent, NULL, closedir(dir)); ret = closedir(dir); TC_ASSERT...
py/builtinevex: Allow to pass module object as globals/locals to exec. In this case, its namespace dict is extracted and used. This alleviates need to expose mod.__dict__ or vars(mod) for particular usecase of running code in module context.
@@ -124,10 +124,15 @@ STATIC mp_obj_t eval_exec_helper(size_t n_args, const mp_obj_t *args, mp_parse_i mp_obj_dict_t *locals = mp_locals_get(); for (size_t i = 1; i < 3 && i < n_args; ++i) { if (args[i] != mp_const_none) { - if (!mp_obj_is_type(args[i], &mp_type_dict)) { + mp_obj_t ns = args[i]; + if (mp_obj_is_type(ns...
Allow nested containers by parsing their delimiters immediately
?~ los ~&(%unterminated-line [~ +>(err `naz)]) ?. =(`@`10 i.los) ?: (gth col q.naz) - ?. (~(has in ^~((silt " -+>!"))) i.los) + ?. =(' ' i.los) ~&(expected-indent+[col naz los] [~ +>(err `naz)]) $(los t.los, q.naz +(q.naz)) :: ++ abet :: accept line :: :: nap: take first line - =^ nap +>.$ snap - ..$(lub `[naz nap ~]) ...
Fix wrong compiler.libcxx setting on MacOS.
@@ -24,7 +24,7 @@ jobs: conan profile update settings.build_type=Release default conan profile update settings.compiler=apple-clang default conan profile update settings.compiler.cppstd=17 default - conan profile update settings.compiler.libcxx=libc++11 default + conan profile update settings.compiler.libcxx=libc++ def...
[CUDA] Add note about selecting multiple GPUs to docs
@@ -44,7 +44,9 @@ Building pocl with CUDA support 4) Configuration ~~~~~~~~~~~~~~~~ - Use ``POCL_DEVICES=CUDA`` to select only CUDA devices. + Use ``POCL_DEVICES=CUDA`` to select only CUDA devices. If the system has more + than one GPU, specify the ``CUDA`` device multiple times (e.g. + ``POCL_DEVICES=CUDA,CUDA`` for t...
Add support for Duty 2 note preview
@@ -19,6 +19,10 @@ import { NR43, NR44, AUD3_WAVE_RAM, + NR21, + NR22, + NR23, + NR24, } from "./music_constants"; let update_handle = null; @@ -137,6 +141,7 @@ const preview = (note, type, instrument, square2) => { switch (type) { case "duty": + if (!square2) { const regs = { NR10: "0" + @@ -181,6 +186,45 @@ const pre...
VERSION bump to version 2.0.63
@@ -58,7 +58,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 62) +set(LIBYANG_MICRO_VERSION 63) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}) ...
fix missed ;
@@ -289,7 +289,7 @@ namespace NCatboostCuda { trainDirPath.MkDir(); } } catch (...) { - ythrow TCatboostException() << "Can't create working dir: " << path + ythrow TCatboostException() << "Can't create working dir: " << path; } }
vlib: fix out of memory issue 'show node foo' causes infinite loop resulting in out of memory. This patch fixes the issue by breaking the loop on invalid input. Ticket: Type: fix Fixes:
@@ -562,6 +562,9 @@ show_node (vlib_main_t * vm, unformat_input_t * input, else error = clib_error_return (0, "unknown input '%U'", format_unformat_error, line_input); + + if (error) + break; } unformat_free (line_input);