message
stringlengths
6
474
diff
stringlengths
8
5.22k
Solve bug in cobol loader.
#include <log/log.h> -#include <stdlib.h> +#include <cstring> #include <libcob.h> @@ -65,9 +65,9 @@ function_return function_cob_interface_invoke(function func, function_impl impl, } else { - void **cob_args = static_cast<void **>(malloc(sizeof(void *) * size)); + void **cob_args = new void *[size]; - if (cob_args == N...
Fix bytesting test broken on 32b systems
@@ -159,27 +159,17 @@ static void test_serialize_indefinite_bytestring(void **_CBOR_UNUSED(_state)) { cbor_decref(&item); } -static void test_serialize_4b_bytestring(void **_CBOR_UNUSED(_state)) { - cbor_item_t *item = cbor_new_definite_bytestring(); - - // Fake having a huge chunk of data - unsigned char *data = mallo...
website: fix regression with new Markdown style fix
"path": "src/plugins/README.md", "target_file": ["README.md", "README", "readme.md", "readme"], "parsing": { - "start_regex": "# Plugins #", - "stop_regex": "####### UNUSED ######", - "section_regex": "### ([^#]+) ###", + "start_regex": "## Plugins", + "stop_regex": "####### UNUSED", + "section_regex": "### ([^#]+)", "...
Fix insertRndPrintable
@@ -974,7 +974,7 @@ static void mangle_InsertRndPrintable(run_t* run) { size_t off = util_rndGet(0, run->dynamicFileSz - 1); size_t len = util_rndGet(1, run->dynamicFileSz - off); - mangle_Inflate(run, off, len); + mangle_InflatePrintable(run, off, len); mangle_Move(run, off, off + len, run->dynamicFileSz); util_rndBuf...
[build_aomp.sh]-Small fix to check if arguments were passed in for partial build options. Before, if no arguments were given a syntax error would show and abort the build on some systems.
@@ -90,7 +90,9 @@ else components="roct rocr project libdevice comgr rocminfo hip extras atmi openmp pgmath flang flang_runtime" fi -#Start build from given one component (./build_aomp.sh continue openmp) +#Partial build options. Check if argument was given. +if [ -n "$1" ] ; then +#Start build from given component (./...
Node.js: tune package.json for fresh express.js
{ "name": "rhonodejsapplication", "version": "0.0.1", - "engines": { - "node": "0.10.x", - "npm": "1.3.x" - }, "private": true, - "scripts": { - "start": "node app.js" - }, "dependencies": { - "express": "3.3.7", - "jade": "*" + "express": "*" } }
Add part numbers for A715 and X3 aliased to A710/X2
@@ -202,10 +202,14 @@ int detect(void) return CPU_CORTEXA510; else if (strstr(cpu_part, "0xd47")) return CPU_CORTEXA710; + else if (strstr(cpu_part, "0xd4d")) //A715 + return CPU_CORTEXA710; else if (strstr(cpu_part, "0xd44")) return CPU_CORTEXX1; else if (strstr(cpu_part, "0xd4c")) return CPU_CORTEXX2; + else if (strs...
Fix typo, Add LdrQueryImageFileExecutionOption
@@ -284,6 +284,21 @@ LdrGetProcedureAddressEx( ); #endif +#if (PHNT_VERSION >= PHNT_THRESHOLD) +// rev +NTSYSAPI +NTSTATUS +NTAPI +LdrGetProcedureAddressForCaller( + _In_ PVOID DllHandle, + _In_opt_ PANSI_STRING ProcedureName, + _In_opt_ ULONG ProcedureNumber, + _Out_ PVOID *ProcedureAddress, + _In_ ULONG Flags, + _In_...
Add more options to asan.
@@ -56,7 +56,9 @@ if(OPTION_BUILD_SANITIZER AND (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_ set(DEFAULT_LIBRARIES -lasan -lubsan) set(TESTS_SANITIZER_ENVIRONMENT_VARIABLES "LSAN_OPTIONS=verbosity=1:log_threads=1:print_suppressions=false:suppressions=${CMAKE_SOURCE_DIR}/source/tests/sanitizer/lsan.supp" - "ASAN_O...
gpgme: reformat FindLibGpgme.cmake
@@ -17,8 +17,7 @@ set (LIBGPGME_CFLAGS) # if gpgme-config has been found if (GPGME_EXECUTABLE) - # workaround for MinGW/MSYS - # CMake can't starts shell scripts on windows so it need to use sh.exe + # workaround for MinGW/MSYS CMake can't starts shell scripts on windows so it needs to use sh.exe execute_process (COMMA...
added freeing of old array list data
@@ -1373,16 +1373,17 @@ array_list_insert( /* case we need to expand array */ if (bucket_idx >= array_list->current_size) { int old_size = array_list->current_size; + array_list->current_size = array_list->current_size * 2; + ion_byte_t *bucket_map_cache = alloca(old_size * sizeof(ion_fpos_t)); + memcpy(bucket_map_cach...
vere: add ames counters for forwarded packets Track the amount of packets we forward, and the amount we drop due to forward queue pressure. Once every 1000 packets, printf the total.
c3_o fit_o; // filtering active c3_y ver_y; // protocol version c3_d foq_d; // forward queue size + c3_d fow_d; // forwarded count + c3_d fod_d; // forwards dropped count } u3_ames; /* u3_head: ames packet header @@ -599,6 +601,11 @@ _ames_forward(u3_panc* pac_u, u3_noun lan) u3z(bod); } + pac_u->sam_u->fow_d++; + if (...
tools: fix log message
@@ -1168,7 +1168,6 @@ class fpgaotsu_n3000(fpgaotsu): fpgaotsu_n3000.cfm2_erase_start , (fpgaotsu_n3000.cfm2_erase_end - fpgaotsu_n3000.cfm2_erase_start )+1) - retval = mtd.update_verify(first_mtd_dev, self._fpga_cfg_data.max10_factory.file, self._fpga_cfg_data.max10_factory.start, @@ -1180,7 +1179,6 @@ class fpgaotsu_...
rnndb/falcon: Add missing Falcon register INTR_MODE This MMIO register was already documented in docs/hw/falcon/io.rst
<reg32 offset="0x000" name="INTR_TRIGGER" access="w" type="falcon_intr"/> <reg32 offset="0x004" name="INTR_ACK" access="w" type="falcon_intr"/> <reg32 offset="0x008" name="INTR" access="r" type="falcon_intr"/> + <reg32 offset="0x00c" name="INTR_MODE" variants="GT215-"/> <!-- v3+ --> <reg32 offset="0x010" name="INTR_EN_...
discard: Added missing io_put in case of error
@@ -77,7 +77,7 @@ static int _ocf_discard_core(struct ocf_request *req) ocf_io_set_cmpl(io, req, NULL, _ocf_discard_core_complete); err = ocf_io_set_data(io, req->data, 0); if (err) { - _ocf_discard_complete_req(req, err); + _ocf_discard_core_complete(io, err); return err; }
Update Video codec list.txt
@@ -9,6 +9,7 @@ avrp: Avid 1:1 10-bit RGB Packer avui: Avid Meridien Uncompressed ayuv: Uncompressed packed MS 4:4:4:4 bmp: BMP (Windows and OS/2 bitmap) +cfhd: Cineform HD cinepak: Cinepak cljr: Cirrus Logic AccuPak dnxhd: VC3/DNxHD @@ -78,7 +79,6 @@ zlib: LCL (LossLess Codec Library) ZLIB zmbv: Zip Motion Blocks Vide...
improves u3r_mug_bytes() efficiency (a little)
@@ -1495,15 +1495,19 @@ u3r_mug_bytes(const c3_y *buf_y, c3_w syd_w = 0xcafebabe; c3_w ham_w = 0; - while ( 0 == ham_w ) { + while ( 1 ) { c3_w haz_w; MurmurHash3_x86_32(buf_y, len_w, syd_w, &haz_w); ham_w = (haz_w >> 31) ^ (haz_w & 0x7fffffff); + + if ( 0 == ham_w ) { syd_w++; } - + else { return ham_w; } + } +} /* u3...
ci: Update OpenBSD's MEM_PER_CONNECTION, based on error message
#ifdef __FreeBSD__ #define MEM_PER_CONNECTION 57 #elif defined(__OpenBSD__) - #define MEM_PER_CONNECTION 71 + #define MEM_PER_CONNECTION 75 #else #define MEM_PER_CONNECTION 49 #endif
init bang for train
@@ -18,7 +18,7 @@ typedef struct _train t_inlet *x_width_inlet; t_inlet *x_offset_inlet; double x_phase; - double x_rec_sr_khz; + t_float x_sr; t_outlet *x_bangout; t_clock *x_clock; } t_train; @@ -38,13 +38,13 @@ static t_int *train_perform(t_int *w) t_float *in2 = (t_float *)(w[4]); t_float *in3 = (t_float *)(w[5]); ...
Avoid a warning on Luos_assert(__FILE__, __LINE__) by explicitly casting file into char*
#if defined(LUOS_ASSERTION) #define LUOS_ASSERT(expr) \ if (!(expr)) \ - Luos_assert(__FILE__, __LINE__) + Luos_assert((char *)__FILE__, __LINE__) #else #define LUOS_ASSERT(expr) () #endif
build BUGFIX apple does not require rt library
@@ -188,12 +188,17 @@ add_library(sysrepo SHARED $<TARGET_OBJECTS:srobj>) set_target_properties(sysrepo PROPERTIES VERSION ${SYSREPO_SOVERSION_FULL} SOVERSION ${SYSREPO_SOVERSION}) # dependencies +# librt (shm_open, shm_unlink, not required on OSX) +if(NOT APPLE) target_link_libraries(sysrepo rt) +endif() +# libyang fi...
msp: ignore flash save and reboot when armed
#include "util/util.h" #include "vtx.h" +enum { + MSP_REBOOT_FIRMWARE = 0, + MSP_REBOOT_BOOTLOADER_ROM, + MSP_REBOOT_MSC, + MSP_REBOOT_MSC_UTC, + MSP_REBOOT_BOOTLOADER_FLASH, + MSP_REBOOT_COUNT, +}; + extern uint8_t msp_vtx_detected; extern vtx_settings_t msp_vtx_settings; extern const uint16_t frequency_table[VTX_BAND...
Type: Disable container overflow detection
+# ~~~ +# The unit test for the plugin fails on an ASAN enabled macOS build, if we do not disable container overflow detection. +# Reference: https://travis-ci.org/sanssecours/elektra/jobs/418554628 +# ~~~ add_plugin (type ADD_TEST CPP_TEST @@ -7,4 +11,5 @@ add_plugin (type types.hpp types.cpp type_checker.hpp - TEST_R...
** Not done ** moving the code between VMs
@@ -188,15 +188,15 @@ struct FuncArgs{ va_end(__args); \ }while(0) -extern void *_dl_sym(void *, const char *, void *); #define WRAP_CHECK_ONLY(func) \ if (g_fn.func == NULL ) { \ - if ((g_fn.func = _dl_sym(RTLD_NEXT, #func, func)) == NULL) { \ + if ((g_fn.func = dlsym(RTLD_NEXT, #func)) == NULL) { \ scopeLog("ERROR: "...
Redundant (channel is the `obj` part of the key)
@@ -130,16 +130,14 @@ static inline void client_test4free(client_s *cl) { free(cl); } -static inline uint64_t client_compute_hash(client_s client, - uint64_t channel_hash) { - return (channel_hash ^ - (((((uint64_t)(client.on_message) * +static inline uint64_t client_compute_hash(client_s client) { + return (((((uint64...
Makefile: simplify darwin build
@@ -108,7 +108,7 @@ else ifeq ($(OS),Darwin) CC := $(shell xcrun --sdk $(SDK_NAME) --find cc) LD := $(shell xcrun --sdk $(SDK_NAME) --find cc) - ARCH_CFLAGS += -arch x86_64 -isysroot $(SDK) \ + ARCH_CFLAGS += -isysroot $(SDK) \ -x objective-c -pedantic -fblocks \ -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninit...
task: remove unused variable
@@ -83,7 +83,6 @@ void flb_task_retry_destroy(struct flb_task_retry *retry) struct flb_task_retry *flb_task_retry_create(struct flb_task *task, void *data) { - int ret; struct mk_list *head; struct mk_list *tmp; struct flb_task_retry *retry = NULL;
zephyr: base32: Fix unit tests This change fixes unit test breakage caused by zephyr already declaring tolower. BRANCH=none TEST=zmake testall
@@ -104,6 +104,7 @@ int isspace(int c); int isalpha(int c); int isupper(int c); int isprint(int c); +int tolower(int c); #endif int memcmp(const void *s1, const void *s2, size_t len); @@ -154,8 +155,6 @@ char *strzcpy(char *dest, const char *src, int len); * Other strings return 0 and leave *dest unchanged. */ int pars...
removed all int int tests to isolate string key problems
@@ -30,5 +30,5 @@ void runalltests_behaviour_linear_hash( void ) { - bhdct_run_tests(linear_hash_dict_init, 15, ION_BHDCT_ALL_TESTS); + bhdct_run_tests(linear_hash_dict_init, 15, ION_BHDCT_ALL_TESTS & ~ION_BHDCT_INT_INT); }
android: reverting usage of requestLegacyExternalStorage flag in manifest
<supports-screens android:smallScreens='true' android:normalScreens='true' android:largeScreens='true' android:xlargeScreens='true'/> <application android:name='com.rhomobile.rhodes.RhodesApplication' - android:requestLegacyExternalStorage="true" <% if canRenderNetworkSecurityConfig %> android:networkSecurityConfig="@x...
Tests: ability to run unitd with specified "--user" option.
@@ -48,6 +48,11 @@ def pytest_addoption(parser): action="store_true", help="Run unsafe tests", ) + parser.addoption( + "--user", + type=str, + help="Default user for non-privileged processes of unitd", + ) unit_instance = {} @@ -60,6 +65,7 @@ def pytest_configure(config): option.print_log = config.option.print_log opti...
chat: code uses fontsize 0
@@ -16,7 +16,6 @@ export default class CodeContent extends Component { p='1' my='0' borderRadius='1' - fontSize='14px' overflow='auto' maxHeight='10em' maxWidth='100%' @@ -35,7 +34,6 @@ export default class CodeContent extends Component { my='0' p='1' borderRadius='1' - fontSize='14px' overflow='auto' maxHeight='10em' ...
Bootstrap: Set 16 MB limit to booted loader
@@ -47,7 +47,7 @@ LoadOpenCore ( ASSERT (ImageHandle != NULL); BufferSize = 0; - Buffer = ReadFile (FileSystem, OPEN_CORE_IMAGE_PATH, &BufferSize); + Buffer = ReadFile (FileSystem, OPEN_CORE_IMAGE_PATH, &BufferSize, BASE_16MB); if (Buffer == NULL) { DEBUG ((DEBUG_ERROR, "BS: Failed to locate valid OpenCore image - %p!\...
Hide replace tile button (not implemented yet) when multiple tiles are selected
@@ -293,12 +293,17 @@ export const SpriteEditor = ({ /> </FormField> </FormRow> + + {selectedTileIds.length === 1 && ( + <> <FormDivider /> <FormRow> <Button>Replace Tile</Button> </FormRow> </> )} + </> + )} {!metaspriteTile && ( <>
Fix torque resolution issue
@@ -122,7 +122,8 @@ namespace carto { std::shared_ptr<mvt::SymbolizerContext> symbolizerContext; { std::lock_guard<std::mutex> lock(_mutex); - resolution = _resolution; + int settingsResolution = (_map ? _map->getTorqueSettings().resolution : -1); + resolution = _resolution / (settingsResolution > 0 ? settingsResolutio...
Workaround for pip install on Window into a virtual environment.
@@ -424,6 +424,8 @@ PYTHON_VERSION = get_python_config('VERSION') if os.name == 'nt': if hasattr(sys, 'real_prefix'): PYTHON_LIBDIR = sys.real_prefix + elif hasattr(sys, 'base_prefix'): + PYTHON_LIBDIR = sys.base_prefix else: PYTHON_LIBDIR = get_python_config('BINDIR')
Fix PortManager when ot builds with musl
@@ -220,7 +220,7 @@ def get_ephemeral_range(): filename = "/proc/sys/net/ipv4/ip_local_port_range" if os.path.exists(filename): with open(filename) as afile: - data = afile.read() + data = afile.read(1024) # fix for musl port_range = tuple(map(int, data.strip().split())) if len(port_range) == 2: return port_range
nissa/nereid: enable keyboard With eSPI enabled, we can now enable the keyboard for Nereid because keyboard code depends on eSPI. TEST=kblight, kbpress and ksstate commands now work on Nereid console BRANCH=none
@@ -13,10 +13,6 @@ CONFIG_PLATFORM_EC_ACCELGYRO_BMI_COMM_I2C=y CONFIG_PLATFORM_EC_ACCELGYRO_BMI3XX=y CONFIG_PLATFORM_EC_ACCEL_BMA4XX=y -# Keyboard - disabled until host interface is available (b:211772002) -CONFIG_CROS_KB_RAW_ITE=n -CONFIG_PLATFORM_EC_KEYBOARD=n - # TCPC+PPC: ITE on-chip for C0, PS8745 for optional C1 ...
Virtqueue allocation should be initialized to zero
@@ -241,7 +241,7 @@ status virtqueue_alloc(vtdev dev, queue sched_queue) { u64 vq_alloc_size = sizeof(struct virtqueue) + size * sizeof(vqmsg); - virtqueue vq = allocate(dev->general, vq_alloc_size); + virtqueue vq = allocate_zero(dev->general, vq_alloc_size); vq->avail_offset = size * sizeof(struct vring_desc); vq->us...
chat: fixes scroll keys fixes
@@ -58,6 +58,7 @@ export default class VirtualScroller extends PureComponent<VirtualScrollerProps, this.heightOf = this.heightOf.bind(this); this.setScrollTop = this.setScrollTop.bind(this); this.scrollToData = this.scrollToData.bind(this); + this.scrollKeyMap = this.scrollKeyMap.bind(this); this.loadRows = _.memoize(t...
automation: Fix issue with Jenkins pipeline not picking up commit message The "Test: <instance>" commit message feature didn't work due to git command being echoed.
@@ -273,7 +273,7 @@ node('TEST-gb-cmb-dt-022') // Use git to get the last commit message, @echo off to avoid capturing the command // output as well as the returned text - git_commit_text = bat(script: "git log -1 --pretty=%%B", returnStdout: true) + git_commit_text = bat(script: "@echo off & git log -1 --pretty=%%B", ...
api/ethereum/signmsg: document signing format
@@ -46,6 +46,9 @@ pub async fn process(request: &pb::EthSignMessageRequest) -> Result<Response, Er verify_message::verify(&request.msg).await?; + // Construct message to be signed. There is no standard for this. We match what MyEtherWallet, + // Trezor, etc. do, e.g.: + // https://github.com/ethereumjs/ethereumjs-util/...
fix README to show correct branch
@@ -4,6 +4,8 @@ To get started with f18 development using the amd-fir-dev branch run these comma mkdir -p $HOME/git/f18 cd $HOME/git/f18 git clone https://github.com/rocm-developer-tools/aomp +cd $HOME/git/f18/aomp +git checkout amd-stg-openmp cd $HOME/git/f18/aomp/f18bin ./clone_f18.sh ./build_f18.sh
zephyr: Implement gpio_or_ioex_[gs]et_level This implements gpio_or_ioex_set_level and gpio_or_ioex_get_level in the shim layer to match cros ec functionality. BRANCH=none TEST=zmake build for volteer and brya pass
#include "gpio.h" #include "gpio/gpio.h" +#include "ioexpander.h" #include "sysjump.h" #include "cros_version.h" @@ -148,6 +149,22 @@ void gpio_set_level_verbose(enum console_channel channel, gpio_set_level(signal, value); } +void gpio_or_ioex_set_level(int signal, int value) +{ + if (IS_ENABLED(CONFIG_PLATFORM_EC_IOEX...
Updated LICENSE.txt copyright year
-Copyright (c) 2003-2019 Jason Perkins and individual contributors. +Copyright (c) 2003-2022 Jason Perkins and individual contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification,
Add renaming of ompModule.so, introduced with the Python3 build of ompd.
@@ -261,6 +261,18 @@ if [ "$1" == "install" ] ; then echo "ERROR make install failed " exit 1 fi + + # Rename ompd module library. This was introduced with the Python3 build. The include + # of ompdModule would fail otherwise. + if [ -f "$AOMP_INSTALL_DIR/lib-debug/ompd/ompdModule.cpython-36m-x86_64-linux-gnu.so" ]; th...
Fixed string length.
@@ -3434,7 +3434,7 @@ sigterm_handler(int sig) /* I - Signal */ * Flag that the job should be canceled... */ - write(2, "DEBUG: sigterm_handler: job_canceled = 1.\n", 25); + write(2, "DEBUG: sigterm_handler: job_canceled = 1.\n", 42); job_canceled = 1; return;
lora; include mic failures with join in statistics.
@@ -1404,6 +1404,8 @@ lora_mac_process_radio_rx(struct os_event *ev) LoRaMacParams.ChannelsDatarate = LoRaMacParamsDefaults.ChannelsDatarate; lora_mac_send_join_confirm(LORAMAC_EVENT_INFO_STATUS_OK, JoinRequestTrials); + } else { + STATS_INC(lora_mac_stats, rx_mic_failures); } break; case FRAME_TYPE_DATA_CONFIRMED_DOWN...
Windows makefile: Don't quote generator arguments Rely on the build.info constructor to do the right thing. Fixes
@@ -406,7 +406,8 @@ reconfigure reconf: sub generatesrc { my %args = @_; (my $target = $args{src}) =~ s/\.[sS]$/.asm/; - my $generator = '"'.join('" "', @{$args{generator}}).'"'; + my ($gen0, @gens) = @{$args{generator}}; + my $generator = '"'.$gen0.'"'.join('', map { " $_" } @gens); my $generator_incs = join("", map {...
app-prefs: fixing logic around enabled
@@ -10,7 +10,7 @@ export const AppPrefs = ({ match }: RouteComponentProps<{ desk: string }>) => { const charge = useCharge(desk); const vat = useVat(desk); const tracking = !!vat?.arak.rail; - const otasEnabled = vat?.arak.rail?.paused; + const otasEnabled = !vat?.arak.rail?.paused; const otaSource = vat?.arak.rail?.sh...
mdns: fix missing bye packet if services removed with mdns_service_remove_all() or mdns_free() Closes
@@ -1676,9 +1676,7 @@ static void _mdns_send_final_bye(bool include_ip) size_t srv_count = 0; mdns_srv_item_t * a = _mdns_server->services; while (a) { - if (!a->service->instance) { srv_count++; - } a = a->next; } if (!srv_count) { @@ -1688,9 +1686,7 @@ static void _mdns_send_final_bye(bool include_ip) size_t i = 0; a...
ci: Add extra_default_build_targets logic to check_build_test_rules.py
@@ -209,8 +209,10 @@ def check_test_scripts( paths: List[str], exclude_dirs: Optional[List[str]] = None, bypass_check_test_targets: Optional[List[str]] = None, + extra_default_build_targets: Optional[List[str]] = None, ) -> None: from idf_build_apps import App, find_apps + from idf_build_apps.constants import SUPPORTED...
dbus: removed todo for flags
@@ -37,8 +37,6 @@ static int dbusToFlags (int dbus) { flags |= ELEKTRA_IO_WRITABLE; } - // from docs: "all watches implicitly include a watch for hangups, errors, and other exceptional conditions." - // TODO add DBUS_WATCH_ERROR and DBUS_WATCH_ERROR to flags return flags; }
OcLog.c: more conversion mismatches fixed
@@ -111,7 +111,7 @@ OcLogAddEntry ( UINT32 LineLength; PLATFORM_DATA_HEADER *Entry; UINTN KeySize; - UINTN DataSize; + UINT32 DataSize; UINT32 TotalSize; Private = OC_LOG_PRIVATE_DATA_FROM_OC_LOG_THIS (OcLog); @@ -184,7 +184,7 @@ OcLogAddEntry ( if (Private->DataHub != NULL) { KeySize = (L_STR_LEN (OC_LOG_VARIABLE_NAME...
removed INT64_C define No longer used.
@@ -146,11 +146,6 @@ typedef unsigned long long libssh2_uint64_t; typedef long long libssh2_int64_t; #endif -#ifndef INT64_C -#define INT64_C(x) x ## I64 -#endif - - #ifdef WIN32 typedef SOCKET libssh2_socket_t; #define LIBSSH2_INVALID_SOCKET INVALID_SOCKET
Return SOTER_INVALID_PARAMETER when the caller tries to reuse a hash context after finalising Although it did not crash for OpenSSL backend before, this is to bring it in line with BoringSSL and to make error codes consistent.
@@ -64,6 +64,11 @@ soter_status_t soter_hash_update(soter_hash_ctx_t *hash_ctx, const void *data, s return SOTER_INVALID_PARAMETER; } + if (!EVP_MD_CTX_md(hash_ctx->evp_md_ctx)) + { + return SOTER_INVALID_PARAMETER; + } + if (EVP_DigestUpdate(hash_ctx->evp_md_ctx, data, length)) { return SOTER_SUCCESS; @@ -83,6 +88,11 ...
Resolve merge conflict in aws_dev_mode_key_provisioning.c
@@ -1155,56 +1155,7 @@ CK_RV xProvisionDevice( CK_SESSION_HANDLE xSession, ( CK_TRUE == xKeyPairGenerationMode ) ) && ( CK_FALSE == xImportedPrivateKey ) ) { -<<<<<<< HEAD - configPRINTF( ( "Warning: no client certificate is available. Please see https://aws.amazon.com/freertos/getting-started/.\r\n" ) ); - prvWriteHex...
network: make async dns query use TCP socket instead of UDP
@@ -508,7 +508,6 @@ static struct addrinfo *flb_net_translate_ares_addrinfo(struct ares_addrinfo *in if (1 == failure_detected) { if (NULL != output) { flb_net_free_translated_addrinfo(output); - output = NULL; } } @@ -562,6 +561,7 @@ static int flb_net_ares_sock_create_callback(ares_socket_t socket_fd, int type, void ...
UName: Remove `nodoc` from `info/status`
- infos/provides = storage/info - infos/needs = - infos/placements = getstorage setstorage -- infos/status = maintained unittest shelltest nodep readonly limited nodoc concept +- infos/status = maintained unittest shelltest nodep readonly limited concept - infos/description = Includes uname information into the key dat...
Update lv_cb.c fix bug: when out of the range of the checkbox, and press, when move to the checkbox, the checkbox's state will change.
@@ -83,6 +83,7 @@ lv_obj_t * lv_cb_create(lv_obj_t * par, const lv_obj_t * copy) lv_btn_set_layout(new_cb, LV_LAYOUT_ROW_M); lv_btn_set_fit(new_cb, true, true); lv_btn_set_toggle(new_cb, true); + lv_obj_set_protect(new_cb, LV_PROTECT_PRESS_LOST); /*Set the default styles*/ lv_theme_t * th = lv_theme_get_current();
turn off failing unit tests on Mac
@@ -187,7 +187,7 @@ matrix: compiler: gcc-4.8 script: - make test - - make utest + # make utest before_install: - brew update - brew install fftw gcc48 homebrew/science/openblas
imageinput: respect canUpload fixes urbit/landscape#893
@@ -14,8 +14,20 @@ export type ImageInputProps = Parameters<typeof Box>[0] & { placeholder?: string; }; -const prompt = (field, focus, uploading, meta, clickUploadButton) => { - if (!focus && !field.value && !uploading && meta.error === undefined) { +const prompt = ( + field, + focus, + uploading, + meta, + clickUpload...
Update uid/gid and remove cron job
@@ -70,16 +70,8 @@ make %install make DESTDIR=%{buildroot} install -%{__mkdir_p} %{buildroot}%{_sysconfdir}/cron.daily %{__mkdir_p} %{buildroot}%{_localstatedir}/log/%{pname} cp %{SOURCE1} %{buildroot}%{_sysconfdir} -%{__cat} << EOF > %{buildroot}%{_sysconfdir}/cron.daily/%{pname} -#!/bin/sh - -# Daily cleanup script f...
RP2: Update NINA bsp.
@@ -34,21 +34,30 @@ int nina_bsp_init() gpio_init(WIFI_GPIO0_PIN); gpio_set_dir(WIFI_GPIO0_PIN, GPIO_OUT); - gpio_put(WIFI_GPIO0_PIN, 1); + gpio_init(WIFI_SCLK_PIN); + gpio_set_function(WIFI_SCLK_PIN, GPIO_FUNC_SPI); + + gpio_init(WIFI_MOSI_PIN); + gpio_set_function(WIFI_MOSI_PIN, GPIO_FUNC_SPI); + + gpio_init(WIFI_MIS...
Remove some obsolete basic tests
@@ -143,38 +143,6 @@ const char* test_basic_status_is_error() { return NULL; } -const char* test_basic_status_strings() { - CHECK_FOCUS(__func__); - const char* s1 = wuffs_base__error__bad_wuffs_version; - const char* t1 = "#base: bad wuffs version"; - if (strcmp(s1, t1)) { - RETURN_FAIL("got \"%s\", want \"%s\"", s1, ...
Rename join_path to join
@@ -21,7 +21,7 @@ module Foreign.Lua.Module.Paths ( , has_extension , is_absolute , is_relative - , join_path + , join , normalise , split_directories , take_directory @@ -83,7 +83,7 @@ functions = , ("has_extension", has_extension) , ("is_absolute", is_absolute) , ("is_relative", is_relative) - , ("join_path", join_pa...
garden: Use 'latest' version by default; chop any "lily-" prefix. Many packages have a valid name for import if "lily-" is removed as a prefix. It's also brand recognition. Garden also now claims to always be drawning the latest version, instead of version -1.
@@ -28,14 +28,17 @@ from docopt import docopt fields = ["Author", "Description"] -def lily_github(repo, operator="=", version="-1"): +def lily_github(repo, operator="=", version="latest"): '''Fetches a given repository from GitHub with a given version you can control your versioning with the operator the version should...
sway.5: make formatting more consistent
@@ -179,8 +179,8 @@ set|plus|minus <amount> *layout* toggle [split|all] Cycles the layout mode of the focused container though a preset list of layouts. If no argument is given, then it cycles through stacking, tabbed - and the last split layout. If "split" is given, then it cycles through - splith and splitv. If "all"...
docs - remove persistent table information.
@@ -299,15 +299,6 @@ FROM gp_master_mirroring;</codeblock></p> database:<codeblock>gpcheckcat -O</codeblock></entry> <entry>Run repair scripts for any issues detected.</entry> </row> - <row> - <entry>Run a persistent table catalog check.<p>Recommended - frequency: monthly</p><p>Severity: CRITICAL</p></entry> - <entry>D...
add an example to the maya scripting docs of how to assign custom unique names to output meshes
@@ -300,7 +300,51 @@ global proc postSync(string $assetNode, int $syncOnlyAttributes, int $syncOnlyOu } @endverbatim <br> +@verbatim +// This proc shows how to give a unique custom name to all your output meshes +global proc postSyncRename(string $assetNode, int $syncOnlyAttributes, int $syncOnlyOutputs) +{ + // Here's...
[mod_authn_dbi] copy strings before escaping dbi_conn_escape_string_copy() requires '\0'-terminated string. While that is currently the case for strings in http_auth_info_t, that will soon change, so consumers must use ai->username with ai->ulen, and ai->realm with ai->rlen
@@ -416,6 +416,7 @@ mod_authn_dbi_password_cmp (const char *userpw, unsigned long userpwlen, http_au static buffer * mod_authn_dbi_query_build (buffer * const sqlquery, dbi_config * const dbconf, http_auth_info_t * const ai) { + char buf[1024]; buffer_clear(sqlquery); int qcount = 0; for (char *b = dbconf->sqlquery->pt...
Add while loop netcoon client to test manual TCP receive
@@ -240,7 +240,6 @@ main_thread(void* arg) { esp_ping("majerle.eu", &ping_time, NULL, NULL, 1); printf("Ping time: %d\r\n", (int)ping_time); - /* * Check if device has set IP address * @@ -262,8 +261,8 @@ main_thread(void* arg) { // printf("Device IP: %d.%d.%d.%d; is DHCP: %d\r\n", (int)ip.ip[0], (int)ip.ip[1], (int)ip...
sdl/surface: implement Set() for ARGB4444
@@ -76,10 +76,12 @@ static inline SDL_Surface* SDL_CreateRGBSurfaceWithFormatFrom(void* pixels, int #endif */ import "C" -import "unsafe" -import "reflect" -import "image" -import "image/color" +import ( + "image" + "image/color" + "reflect" + "unsafe" +) // Surface flags (internal use) const ( @@ -543,6 +545,8 @@ func...
[SDL2] fix mouse locate 2
@@ -131,7 +131,7 @@ void taskmng_rol(void) { case SDL_BUTTON_LEFT: if (menuvram != NULL) { - menubase_moving(e.button.x, e.button.y, 1); + menubase_moving(lmx, lmy, 1); } else { mousemng_buttonevent(&e.button); }
provide more hints about how open source can work
<!-- -NOTE WELL -A new issue should be about a bug or a feature! +NOTE WELL: +A new issue should be about a bug verified with a minimized example or about a new feature request! -A question should go to the mailinglist at: +Randomly opened "bug" or "feature" reports to debug your setup will be closed as "invalid". + +Q...
Error out if getcwd fails.
#include <sys/stat.h> #include <fcntl.h> #include <unistd.h> +#include <errno.h> #include "util.h" #include "parse.h" @@ -471,7 +472,8 @@ gengas(Node *file, FILE *fd) } popstab(); - getcwd(dir, sizeof dir); + if (!getcwd(dir, sizeof dir)) + die("could not get cwd: %s\n", strerror(errno)); for (i = 0; i < file->file.nfi...
Send protected ACK early from server once 1-RTT key is available
@@ -1966,7 +1966,15 @@ ssize_t ngtcp2_conn_write_pkt(ngtcp2_conn *conn, uint8_t *dest, size_t destlen, conn->state = NGTCP2_CS_SERVER_WAIT_HANDSHAKE; return nwrite; case NGTCP2_CS_SERVER_WAIT_HANDSHAKE: - return conn_write_server_handshake(conn, dest, destlen, 0, ts); + nwrite = conn_write_server_handshake(conn, dest, ...
record the network start time.
@@ -33,6 +33,9 @@ else: network_start_time = time.time() print "Network starts at {0}\n".format(time.ctime(network_start_time)) + with open('network_start_time.txt','a') as f: + f.write(str(network_start_time)) + # open socket socket_handler = socket.socket(socket.AF_INET6,socket.SOCK_DGRAM) socket_handler.bind(('',616...
input: lower the first chunk of the file to be tested from 8kB to 1kB
@@ -447,7 +447,7 @@ static bool input_shouldReadNewFile(run_t* run) { if (!run->staticFileTryMore) { run->staticFileTryMore = true; /* Start with a 8kB beginning of a file, increase the size in following iterations */ - input_setSize(run, HF_MIN(8192U, run->global->mutate.maxInputSz)); + input_setSize(run, HF_MIN(1024U...
esp32/machine_pwm: On deinit stop routing PWM signal to the pin. Fixes issue
@@ -234,6 +234,7 @@ STATIC mp_obj_t esp32_pwm_deinit(mp_obj_t self_in) { ledc_stop(PWMODE, chan, 0); self->active = 0; self->channel = -1; + gpio_matrix_out(self->pin, SIG_GPIO_OUT_IDX, false, false); } return mp_const_none; }
fix(bar): stop animation when set with LV_ANIM_OFF
@@ -584,6 +584,11 @@ static void lv_bar_set_value_with_anim(lv_obj_t * obj, int32_t new_value, int32_ if(en == LV_ANIM_OFF) { *value_ptr = new_value; lv_obj_invalidate((lv_obj_t *)obj); + + /*Stop the previous animation if it exists*/ + lv_anim_del(anim_info, NULL); + /*Reset animation state*/ + lv_bar_init_anim(obj, a...
Remove changes entry for RIPEMD160 in 3.2 It is already in 3.0.7.
@@ -24,10 +24,6 @@ OpenSSL 3.2 ### Changes between 3.0 and 3.2 [xx XXX xxxx] - * Added RIPEMD160 to the default provider. - - *Paul Dale* - * Add support for certificate compression (RFC8879), including library support for Brotli and Zstandard compression.
Temporarily put GOP hack to DataHubTest
@@ -89,13 +89,42 @@ TestDataHub ( STATIC UINT32 FirmwareFeatures = 0xE00FE137; STATIC UINT32 FirmwareFeaturesMask = 0xFF1FFF3F; STATIC UINT32 CsrActiveConfig = 0; + STATIC CHAR8 SecurityMode[] = "full"; gRT->SetVariable (L"MLB", &gAppleVendorVariableGuid, Attributes, AsciiStrLen (Mlb), Mlb); gRT->SetVariable (L"ROM", &...
autotools: use PKG_CHECK_MODULES Given that a `pkg-config` file is distributed by Criterion, it is better to make use of it.
@@ -2,9 +2,9 @@ AC_INIT([Criterion Autotools Tests], [1.0], [your@email.com]) AC_CONFIG_AUX_DIR([build-aux]) AM_INIT_AUTOMAKE([foreign -Wall -Werror]) -AC_CHECK_LIB([criterion], [criterion_initialize], [], [ +PKG_CHECK_MODULES([CRITERION], [criterion], [], [ AC_MSG_ERROR([unable to find Criterion]) -], []) +]) AC_PROG_...
Fixed project debug settings so you can connect to the board
<NotGenerated>0</NotGenerated> <InvalidFlash>1</InvalidFlash> </TargetStatus> - <OutputDirectory>out\Objects\</OutputDirectory> + <OutputDirectory>.\out\Objects\</OutputDirectory> <OutputName>aws_demos</OutputName> <CreateExecutable>1</CreateExecutable> <CreateLib>0</CreateLib> <UseTargetDll>1</UseTargetDll> <UseExtern...
schema compile BUGFIX unhandled error when compiling type in leaf Fixes
@@ -3670,6 +3670,8 @@ lys_compile_node_leaf(struct lysc_ctx *ctx, struct lysp_node *node_p, struct lys /* the dflt member is just filled to avoid getting the default value from the type */ leaf->dflt = (void*)leaf_p->dflt; ret = lys_compile_node_type(ctx, node_p, &leaf_p->type, leaf); + leaf->dflt = NULL; + LY_CHECK_RE...
apollo2 timer - Simplify stop of first timer. No need to remove and re-add the timer. Instead, just re-set the OCMP.
@@ -779,8 +779,7 @@ hal_timer_stop(struct hal_timer *timer) if (reset_ocmp) { timer = TAILQ_FIRST(&bsp_timer->hal_timer_q); if (timer != NULL) { - TAILQ_REMOVE(&bsp_timer->hal_timer_q, timer, link); - hal_timer_start_at(timer, timer->expiry); + apollo2_timer_set_ocmp_at(bsp_timer, timer->expiry); } else { apollo2_timer...
[core] save ptr to avoid static analyzer realloc warn
@@ -18,7 +18,8 @@ void *vector_resize(void *data, size_t elem_size, size_t *size, size_t used, siz ck_assert(*size <= SIZE_MAX / elem_size); const size_t total_size = elem_size * *size; const size_t used_size = elem_size * used; - data = realloc(data, total_size); + void *odata = data; /*(save ptr to avoid static analy...
[CI] Reenable OS build
@@ -48,10 +48,10 @@ jobs: python3 scripts/build_os_toolchain.py echo "Toolchain built successfully" - #- name: Build OS image - # shell: bash - # run: | - # git submodule update --init --recursive - # # TODO(PT): For nasm - Install deps can be removed once toolchain cache is rebuilt - # python3 scripts/install_dependen...
Fix app limit cc test
@@ -9200,7 +9200,7 @@ int app_limit_cc_test_one( uint64_t picoseq_per_byte_1 = (1000000ull * 8) / 1; picoquic_test_tls_api_ctx_t* test_ctx = NULL; picoquic_tp_t client_parameters; - uint64_t cwin_limit = 100000; + uint64_t cwin_limit = 120000; picoquic_connection_id_t initial_cid = { {0xac, 0xc1, 2, 3, 4, 5, 6, 7}, 8 }...
config.h: remove unused CONFIG_USB_PORT_POWER_IN_S3 CONFIG_USB_PORT_POWER_IN_S3 is nowhere to be found in the EC source. BRANCH=none TEST=verified there are no references to CONFIG_USB_PORT_POWER_IN_S3
/* Support simple control of power to the device's USB ports */ #undef CONFIG_USB_PORT_POWER_DUMB -/* - * Support supplying USB power in S3, if the host leaves the port enabled when - * entering S3. - */ -#undef CONFIG_USB_PORT_POWER_IN_S3 - /* * Support smart power control to the device's USB ports, using * dedicated ...
libbarrelfish: pass the fault type int he first argument
@@ -1532,8 +1532,8 @@ void thread_deliver_exception_disabled(dispatcher_handle_t handle, registers_set_initial(&thread->regs, thread, (lvaddr_t)exception_handler_wrapper, - stack_top, (lvaddr_t)cpuframe, 0, - hack_arg, (lvaddr_t)addr); + stack_top, (lvaddr_t)cpuframe, + hack_arg, (lvaddr_t)addr, 0); disp_resume(handle,...
[gpdemo] delete clusterConfigPostgresAddonsFile when clean demo cluster `clusterConfigPostgresAddonsFile` should be removed when destructing the demo cluster.
@@ -139,6 +139,10 @@ cleanDemo(){ echo "Deleting clusterConfigFile" rm -f clusterConfigFile fi + if [ -f clusterConfigPostgresAddonsFile ]; then + echo "Deleting clusterConfigPostgresAddonsFile" + rm -f clusterConfigPostgresAddonsFile + fi if [ -d ${DATADIRS} ]; then echo "Deleting ${DATADIRS}" rm -rf ${DATADIRS}
Exit with error code if jpm install fails.
@@ -761,7 +761,7 @@ int main(int argc, const char **argv) { (unless no-deps (do-rule "install-deps")) (do-rule "build") (do-rule "install")) - ([err] (print "Error building git repository dependency: " err))) + ([err f] (print "Error building git repository dependency: " err) (propagate err f))) (os/cd olddir)) (defn i...
docker: fixup spelling in release notes
@@ -175,8 +175,8 @@ These notes are of interest for people developing Elektra: - `clang-5.0` is now used for clang tests by the build system *(Lukas Winkler)* - An additional build job on Ubuntu:xenial has been added *(Lukas Winkler)* - Several improvments to the build system have been implemented *(Lukas Winkler)*: - ...
add new variable for RPATH without new-dtags
@@ -43,7 +43,8 @@ AOMP_CHECK_GIT_BRANCH=${AOMP_CHECK_GIT_BRANCH:-1} AOMP_APPLY_ROCM_PATCHES=${AOMP_APPLY_ROCM_PATCHES:-1} #Set common rpath for build scripts -AOMP_ORIGIN_RPATH="-DCMAKE_SHARED_LINKER_FLAGS='-Wl,--disable-new-dtags' -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_INSTALL_RPATH=\$ORIGIN:\$ORIGIN/../lib:\$...
Fix add_tag after refactoring Tested-by: Build Bot
@@ -78,7 +78,7 @@ void lcbtrace_span_add_tag_str_nocopy(lcbtrace_SPAN *span, const char *name, con if (!span || name == NULL || value == NULL) { return; } - span->add_tag(name, 0, value); + span->add_tag(name, 0, value, 0); } LIBCOUCHBASE_API @@ -87,7 +87,7 @@ void lcbtrace_span_add_tag_str(lcbtrace_SPAN *span, const c...
Scale outgoing ACK Delay field
@@ -422,7 +422,6 @@ static int conn_ensure_ack_blks(ngtcp2_conn *conn, ngtcp2_frame **pfr, static int conn_create_ack_frame(ngtcp2_conn *conn, ngtcp2_frame **pfr, ngtcp2_tstamp ts) { uint64_t first_pkt_num; - ngtcp2_tstamp ack_delay; uint64_t last_pkt_num; ngtcp2_ack_blk *blk; int initial = 1; @@ -457,9 +456,11 @@ stat...
Help kiln transition by inlining new types. These should be removed after an update has happened.
{$dirk wire @tas} :: {$ogre wire $@(@tas beam)} :: {$merg wire @p @tas @p @tas case germ} :: - {$perm wire ship desk path rite:clay} :: + {$perm wire ship desk path rite} :: {$poke wire dock pear} :: {$wipe wire @p $~} :: {$wait wire @da} :: q/path r/cage == + ++ rite ::tmp + $% {$r red/(unit rule)} + {$w wit/(unit rul...
console: Ignore var cloberred warning for argtable
#include "argtable3.h" +#pragma GCC diagnostic ignored "-Wclobbered" + /******************************************************************************* * This file is part of the argtable3 library. *