message
stringlengths
6
474
diff
stringlengths
8
5.22k
crash_test; add option to trigger hal watchdog without blocking interrupts.
@@ -55,6 +55,9 @@ crash_device(char *how) } else if (!strcmp(how, "wdog")) { OS_ENTER_CRITICAL(val1); while(1); + } else if (!strcmp(how, "wdog2")) { + /* no interrupt block */ + while(1); } else { return -1; }
smatrix: adding better description for create() & arguments
@@ -7459,11 +7459,13 @@ LIQUID_MATRIX_DEFINE_API(LIQUID_MATRIX_MANGLE_CDOUBLE, liquid_double_complex) /* Sparse matrix object (similar to MacKay, Davey, Lafferty convention) */ \ typedef struct SMATRIX(_s) * SMATRIX(); \ \ -/* Create _m x _n sparse matrix, initialized with zeros */ \ +/* Create \(M \times N\) sparse ma...
external/ffspart: Improve error output
@@ -226,8 +226,8 @@ static int parse_entry(struct blocklevel_device *bl, } rc = ffs_entry_add(tocs[toc], new_entry); if (rc) { - fprintf(stderr, "Couldn't add '%s' parition to TOC %d\n", - name, toc); + fprintf(stderr, "Couldn't add '%s' partition to TOC %d: %d\n", + name, toc, rc); ffs_entry_put(new_entry); return rc;...
Add debug printfs to generic ++quit arm in hall
|= wir/wire ^- (quip move _+>) :_ +> - ?. =(src.bol our.bol) ~ + ?. =(src.bol our.bol) + ~& [%kicked-by src.bol wir] + ~ + ~& [%self-quit--resubbing wir] [(wire-to-peer wir) ~] :: ++ quit-circle
Wait max. 60 seconds for s_client to connect
@@ -349,7 +349,7 @@ sub clientstart # Wait for incoming connection from client my $fdset = IO::Select->new($self->{proxy_sock}); - if (!$fdset->can_read(1)) { + if (!$fdset->can_read(60)) { kill(3, $self->{real_serverpid}); die "s_client didn't try to connect\n"; }
fix: missing functions declarations
@@ -244,6 +244,8 @@ void discord_on_message_reaction_add(struct discord *client, message_reaction_ad void discord_on_message_reaction_remove(struct discord *client, message_reaction_remove_cb *callback); void discord_on_message_reaction_remove_all(struct discord *client, message_reaction_remove_all_cb* callback); void ...
Packages: yet another fix added, missed in
@@ -170,7 +170,7 @@ endif debuild/unit_$(VERSION).orig.tar.gz: | debuild/$(SRCDIR)/debian cd ../.. && tar -czf pkg/deb/debuild/$(SRCDIR).tar.gz \ --transform "s#^#$(SRCDIR)/#" \ - LICENSE NOTICE CHANGES README configure auto src test + LICENSE NOTICE CHANGES README configure auto src test version mv debuild/$(SRCDIR).t...
Fix skipping IFEO when set as default task manager (Fixes
@@ -983,13 +983,14 @@ VOID PhMwpOnCommand( break; case ID_TOOLS_STARTTASKMANAGER: { + extern BOOLEAN PhpIsDefaultTaskManager(VOID); // options.c (dmex) PPH_STRING systemDirectory; PPH_STRING taskmgrFileName; systemDirectory = PH_AUTO(PhGetSystemDirectory()); taskmgrFileName = PH_AUTO(PhConcatStringRefZ(&systemDirectory...
Mysterious fix.
++ move {p/duct q/(wind note gift:able)} :: local move ++ note-ames :: weird ames move $% {$make p/(unit @t) q/@ud r/@ s/?} :: - {$sith p/@p q/@uw r/@uw} :: + {$sith p/@p q/@uw r/?} :: == :: ++ note-clay :: $% {$merg p/@p q/@tas r/@p s/@tas t/case u/germ:clay}:: merge desks
netkvm: Static analysis: coinstaller tweaks Static analysis was failing with: coinstaller\netkvmnetsh.cpp(64): warning C6011: Dereferencing NULL pointer 'pguidDevClassPtr'.
@@ -59,10 +59,11 @@ static bool _NetKVMGetDeviceClassGuids(vector<GUID>& GUIDs) NETCO_DEBUG_PRINT(TEXT("SetupDiClassGuidsFromNameEx failed with code ") << dwErr); return false; } - } GUIDs.insert(GUIDs.end(), &pguidDevClassPtr[0], &pguidDevClassPtr[dwNumGuids]); delete[] pguidDevClassPtr; + } + return true; }
thug2 update
@@ -73,12 +73,12 @@ DWORD WINAPI Init(LPVOID bDelay) injector::MakeInline<SetResHook>(pattern.count(2).get(1).get<void*>(0), pattern.count(2).get(1).get<void*>(6)); pattern = hook::pattern(pattern_str(0x89, '?', to_bytes(dword_787A7C))); - injector::MakeInline<SetResHook>(pattern.count(2).get(0).get<void*>(0), pattern....
Add test to see if mkauthlist exists, instead of just trying to pip upgrade it every time. Allow user to optionally specify mkauthlist command by setting environment var MKAUTHLIST
@@ -78,10 +78,15 @@ tar : main cd ${tardir} && tar -czf ../${outname}.tar.gz . && cd .. rm -rf ${tardir} -authlist : - pip install --upgrade mkauthlist +authlist : mkauthlist-exists + #pip install --upgrade mkauthlist +ifdef MKAUTHLIST + $(MKAUTHLIST) -j ${style} -f -c "LSST Dark Energy Science Collaboration" \ + --cnt...
Free the correct struct element
@@ -130,7 +130,7 @@ void mbedtls_mpi_mod_modulus_free( mbedtls_mpi_mod_modulus *m ) case MBEDTLS_MPI_MOD_REP_MONTGOMERY: mbedtls_free( m->rep.mont ); break; case MBEDTLS_MPI_MOD_REP_OPT_RED: - mbedtls_free( m->rep.mont ); break; + mbedtls_free( m->rep.ored ); break; default: break; }
Bypass mem files for prod build
@@ -21,8 +21,11 @@ if (isDevMode) enableLiveReload({ strategy: "react-hmr" }); // Allow images and json outside of application package to be loaded in production build addBypassChecker(filePath => { return ( - filePath.indexOf(app.getAppPath()) === -1 && - (/.jpg/.test(filePath) || /.json/.test(filePath) || /.png/.test...
SoapyLMS: remove 8bit limit from GPIO resd/write now it is limited by parameter/return type (sizeof(unsigned))
@@ -884,30 +884,28 @@ std::vector<std::string> SoapyLMS7::listGPIOBanks(void) const void SoapyLMS7::writeGPIO(const std::string &, const unsigned value) { - uint8_t buffer = uint8_t(value); - int r = lms7Device->GetConnection()->GPIOWrite(&buffer, 1); + int r = lms7Device->GetConnection()->GPIOWrite((uint8_t*)&value, s...
Update main.c Updated the constant name due to SGDK 1.7 update
@@ -33,7 +33,7 @@ void setupBackground() { VDP_drawImageEx( BG_B, &image_sgdk_logo, - TILE_ATTR_FULL(PAL0, FALSE, FALSE, FALSE, TILE_USERINDEX), + TILE_ATTR_FULL(PAL0, FALSE, FALSE, FALSE, TILE_USER_INDEX), x, y, FALSE, DMA );
Fix no-srp
@@ -3292,18 +3292,15 @@ int ssl3_handshake_write(SSL *s) int ssl3_new(SSL *s) { - #ifndef OPENSSL_NO_SRP if (!SSL_SRP_CTX_init(s)) - goto err; + return 0; #endif if (!s->method->ssl_clear(s)) return 0; return 1; - err: - return 0; } void ssl3_free(SSL *s)
[arch][riscv] use a simpler access method for current_thread
@@ -41,14 +41,16 @@ static inline int atomic_swap(volatile int *ptr, int val) { return __atomic_exchange_n(ptr, val, __ATOMIC_RELAXED); } +// store the current thread in the tp register which is reserved in the ABI +// as pointing to thread local storage. +register struct thread *__current_thread asm("tp"); + static in...
Reformat Source: Only use upper case variables
@@ -13,16 +13,16 @@ MIN_VERSION=6 CLANG_FORMAT=$(command -v clang-format-$MIN_VERSION.0 || command -v clang-format) if [ -n "$CLANG_FORMAT" ]; then - location="$CLANG_FORMAT" - version=$("$CLANG_FORMAT" --version 2> /dev/null) - majorVersion=$(printf '%s' "$version" | sed -E 's/.* ([0-9]+)\.[0-9].[0-9][ -].*/\1/') - [ ...
RP2: Fix audio deinit.
@@ -65,6 +65,7 @@ typedef struct _audio_data_t { void (*pdm_filter_func) (uint8_t*, int16_t*, uint16_t, TPDMFilter_InitStruct*); } audio_data_t; +static bool audio_initialized = false; #define audio_data MP_STATE_PORT(audio_data) #define NEXT_BUFFER(x) (((x) + 1) % (audio_data->n_buffers)) @@ -298,6 +299,7 @@ static mp...
papi: fix papi default handling Type: fix
@@ -77,13 +77,15 @@ class Packer(object): raise NotImplementedError # override as appropriate in subclasses - def _get_packer_with_options(self, f_type, options): + @staticmethod + def _get_packer_with_options(f_type, options): return types[f_type] def get_packer_with_options(self, f_type, options): if options is not N...
enable docs build for 2.6
@@ -43,7 +43,7 @@ skip_x86 = ["-arm1"] compiler_families=["gnu12","intel","arm1"] mpi_families=["openmpi4","mpich","mvapich2","impi"] -standalone = ["cmake","slurm","!docs","gnu-compilers","hwloc","lmod","lustre-client","pmix","valgrind", +standalone = ["docs","cmake","slurm","!docs","gnu-compilers","hwloc","lmod","lus...
Fix coverity issue 236044 (uncaught exception in C++ RSA) The uncaught exception was a bug in the SharedPromiseState, which threw an exception if a promise was resolved more than one time.
@@ -923,9 +923,7 @@ void celix::impl::SharedPromiseState<T>::complete(std::unique_lock<std::mutex>& if (!lck.owns_lock()) { lck.lock(); } - if (done) { - throw celix::PromiseInvocationException("Promise is already resolved"); - } + if (!done) { done = true; cond.notify_all(); while (!chain.empty()) { @@ -939,14 +937,13...
apps/bttester: Enable debug logs and make RTT TERMINAL BUFFER larger Small buffer size caused some logs to be dropped
@@ -63,7 +63,7 @@ syscfg.vals: OS_MAIN_STACK_SIZE: 12444 SHELL_TASK: 1 SHELL_NEWTMGR: 0 - LOG_LEVEL: 1 + LOG_LEVEL: 0 MSYS_1_BLOCK_COUNT: 48 BLE_MONITOR_RTT: 1 @@ -123,4 +123,5 @@ syscfg.vals: syscfg.vals.BTTESTER_PIPE_UART: CONSOLE_UART: 0 CONSOLE_RTT: 1 + RTT_TERMINAL_BUFFER_SIZE_UP: 8192
Improve tab-completion for FETCH/MOVE. Author: Naoki Nakamichi Discussion:
@@ -3077,19 +3077,27 @@ psql_completion(const char *text, int start, int end) COMPLETE_WITH("SELECT", "INSERT", "DELETE", "UPDATE", "DECLARE"); /* FETCH && MOVE */ - /* Complete FETCH with one of FORWARD, BACKWARD, RELATIVE */ + + /* + * Complete FETCH with one of ABSOLUTE, BACKWARD, FORWARD, RELATIVE, ALL, + * NEXT, P...
Update link in Bugreporting.md
# SNAP Framework Bug Reporting For bugs, questions or requests for enhancements, please use Github issues: -https://github.com/open-power/donut/issues +https://github.com/open-power/snap/issues All issues should have one of the labels * `bug`
entrypoint: Don't download headers when kheaders mod is available
@@ -61,8 +61,11 @@ fi # In the gadget image, /usr/src is a symlink to /host/usr/src (see gadget-*.Dockerfile). # If the kernel headers are already available on the gadget pod via the symlink, -# no need to download them. +# or the kheaders module is available no need to download them. if [ "$ID" = "rhcos" ] && [ ! -d "...
Use MEM_CONTEXT_BEGIN() block in varFree(). We probably arrived at this unusual construction because of the complexity of getting the mem context. Whether or not this is a good way to store the mem context, it still makes sense to use the standard pattern for switching mem contexts.
@@ -1234,77 +1234,73 @@ varFree(Variant *this) if (this != NULL) { - MemContext *contextOld = memContextCurrent(); + MemContext *memContext = NULL; - TRY_BEGIN() - { switch (this->type) { case varTypeBool: { - memContextSwitch(((VariantBool *)this)->memContext); + memContext = ((VariantBool *)this)->memContext; break; ...
SOVERSION bump to version 4.3.11
@@ -39,7 +39,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 4) set(SYSREPO_MINOR_SOVERSION 3) -set(SYSREPO_MICRO_SOVERSION 10) +set(SYSREPO_MICRO_S...
bugId:18683049:increase timer stack to 700*4byte to avoid crash in some platform
@@ -15,7 +15,7 @@ $(NAME)_SOURCES-$(FS_ENABLED) += HAL_FS_rhino.c $(NAME)_COMPONENTS += ulog activation chip_code netmgr -GLOBAL_DEFINES +=RHINO_CONFIG_TIMER_TASK_STACK_SIZE=512 +GLOBAL_DEFINES +=RHINO_CONFIG_TIMER_TASK_STACK_SIZE=700 ifeq (y,$(strip $(SUPPORT_ITLS))) $(info FEATURE_SUPPORT_ITLS = y, so using iTLS)
esp_netif: fix esp_netif_get_dns_info() to copy the entire ip_addr_t closes closes
@@ -1308,7 +1308,7 @@ static esp_err_t esp_netif_get_dns_info_api(esp_netif_api_msg_t *msg) const ip_addr_t* dns_ip = NULL; dns_ip = dns_getserver(type); if(dns_ip != NULL) { - memcpy(&dns->ip.u_addr, &dns_ip, sizeof(ip4_addr_t)); + memcpy(&dns->ip, dns_ip, sizeof(ip_addr_t)); } }
phb5: Enable Gen5 Registers for Gen5 have been initialized in a previous patch. So let's activate it!
@@ -3008,12 +3008,16 @@ static int64_t phb4_poll_link(struct pci_slot *slot) static unsigned int phb4_get_max_link_speed(struct phb4 *p, struct dt_node *np) { - unsigned int max_link_speed; + unsigned int max_link_speed, hw_max_link_speed; struct proc_chip *chip; chip = get_chip(p->chip_id); + hw_max_link_speed = 4; + ...
postpone -z now
@@ -92,7 +92,7 @@ LFLAGS = -lsodium -largp else LFLAGS = -lsodium -lseccomp -fno-common ifndef NODPKG -LFLAGS +=$(shell dpkg-buildflags --get LDFLAGS) -z now +LFLAGS +=$(shell dpkg-buildflags --get LDFLAGS) endif endif ifeq ($(USE_CJSON_SO),1)
Change comment for searchability.
@@ -40,7 +40,7 @@ Vagrant.configure(2) do |config| echo 'supersede domain-name-servers 8.8.8.8;' >> /etc/dhcp/dhclient.conf /etc/init.d/networking restart - # Set time sync settings so builds don't fail with clock drift errors + # Set time sync settings so builds don't fail with clock skew errors #---------------------...
Clean up temp dir in failure cases
@@ -127,6 +127,7 @@ clib_mem_vm_ext_alloc (clib_mem_vm_alloc_t * a) if (mount ("none", (char *) mount_dir, "hugetlbfs", 0, NULL)) { + rmdir ((char *) mount_dir); err = clib_error_return_unix (0, "mount hugetlb directory '%s'", mount_dir); goto error; @@ -136,6 +137,8 @@ clib_mem_vm_ext_alloc (clib_mem_vm_alloc_t * a) i...
Fix podchecker warnings
@@ -19,7 +19,6 @@ evp_keymgmt_export, evp_keymgmt_export_types void *keydata, OSSL_PARAM params[]); const OSSL_PARAM *evp_keymgmt_gettable_params(const EVP_KEYMGMT *keymgmt); - int evp_keymgmt_has(const EVP_KEYMGMT *keymgmt, void *keyddata, int selection); int evp_keymgmt_validate(const EVP_KEYMGMT *keymgmt, void *keyd...
decisions: further fix of sentences
@@ -35,8 +35,8 @@ But substantial decisions must be made in a transparent and participative way. - Unlike the Rust Decision process, decisions in Elektra do not have a disadvantage if they were flawed in early stages. Only the end results counts. - Different to initiatives like Rust, most contributors in Elektra are no...
data tree DOC improve lyd_new_path description
@@ -1259,8 +1259,8 @@ LY_ERR lyd_new_attr2(struct lyd_node *parent, const char *module_ns, const char * and @p value is ignored. Also, if a leaf-list is being created and both a predicate is defined in @p path * and @p value is set, the predicate is preferred. * - * For key-less lists and state leaf-lists, positional p...
Fix incorrect control/catalog versions in command/stanza test. These were not caught because backup info load automatically corrects them.
@@ -266,14 +266,14 @@ testRun(void) contentBackup = strNew ( "[db]\n" - "db-catalog-version=201608131\n" - "db-control-version=960\n" + "db-catalog-version=201510051\n" + "db-control-version=942\n" "db-id=1\n" "db-system-id=6569239123849665679\n" "db-version=\"9.5\"\n" "\n" "[db:history]\n" - "1={\"db-catalog-version\"...
ble_mesh: fix starting iv update when not on primary subnet
@@ -722,6 +722,16 @@ u32_t bt_mesh_next_seq(void) bt_mesh_store_seq(); } + if (!bt_mesh_atomic_test_bit(bt_mesh.flags, BLE_MESH_IVU_IN_PROGRESS) && + bt_mesh.seq > IV_UPDATE_SEQ_LIMIT && + bt_mesh_subnet_get(BLE_MESH_KEY_PRIMARY)) { +#if CONFIG_BLE_MESH_NODE + bt_mesh_beacon_ivu_initiator(true); +#endif + bt_mesh_net_i...
update to new preferred format
-#!/usr/local/bin/dictu +#!/usr/bin/env dictu /* * This script is used in the CI process to create RPMs, debs, and apks when @@ -18,12 +18,12 @@ const PKG_FORMATS = ["deb", "rpm", "apk"], var semver = Env.get("SEMVER"); if (not semver) { - const GIT_REV = Process.run(["git", "rev-parse", "--short", "HEAD"], true); - if...
server session BUGFIX zero server options on destroy So that init can be safely called again. Refs cesnet/netopeer2#269
@@ -504,6 +504,9 @@ nc_server_destroy(void) lydict_remove(server_opts.ctx, server_opts.capabilities[i]); } free(server_opts.capabilities); + server_opts.capabilities = NULL; + server_opts.capabilities_count = 0; + pthread_spin_destroy(&server_opts.sid_lock); #if defined(NC_ENABLED_SSH) || defined(NC_ENABLED_TLS) @@ -51...
Really revert xDOT changes from 1832 neglected to rebase on merging
@@ -6,10 +6,6 @@ CROTKERNEL = ../mips/zrot.c ZROTKERNEL = ../mips/zrot.c CSWAPKERNEL = ../mips/zswap.c ZSWAPKERNEL = ../mips/zswap.c -SDOTKERNEL = ../mips/dot.c -DDOTKERNEL = ../mips/dot.c -CDOTKERNEL = ../mips/zdot.c -ZDOTKERNEL = ../mips/zdot.c ifndef SNRM2KERNEL
[ci] testing rc.ubuntu with Ubuntu 17.04 (works!), but installing lsb_release seems useful for containers.
#!/bin/sh -# should support 12.04 to 16.10 +# should support 12.04 to 17.04 apt-get update +lsb_release -r || apt-get -y install lsb-release + UBUNTU_VER=$(lsb_release -r | sed -n 's/.*\([0-9][0-9]\.[0-9][0-9]\).*/\1/p') LESS_THAN_1304=$(awk 'BEGIN{print '$UBUNTU_VER' < 13.04 ? 1 : 0}') LESS_THAN_1404=$(awk 'BEGIN{prin...
add Tinker Board 1/1S compilation steps
@@ -21,6 +21,11 @@ It's better to define the CMake Build type, preferably `RelWithDebInfo`, that de `mkdir build; cd build; cmake .. -DODROID=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo; make` +*Tinker Board 1/1S or RK3288* +--- + + use ODROID profile. + *OrangePI* ---
moving to for loops
@@ -49,11 +49,11 @@ int ping() int build_info() { - int retries = 0; + int retries; bool result = false; supervisor_version_t version = {0}; - while (retries < SUPERVISOR_MAX_REQUEST_RETRIES) + for (retries = 0; retries < SUPERVISOR_MAX_REQUEST_RETRIES; retries++) { result = supervisor_get_version(&version); if (result...
[kernel] add all RT_DEBUG_* options macro to menuconfig
@@ -41,12 +41,6 @@ config RT_TICK_PER_SECOND help System's tick frequency, Hz. -config RT_DEBUG - bool "Enable debug features" - default y - -if RT_DEBUG - config RT_USING_OVERFLOW_CHECK bool "Using stack overflow checking" default y @@ -54,20 +48,6 @@ config RT_USING_OVERFLOW_CHECK Enable thread stack overflow checkin...
add +nsid documentation in the manpage
@@ -222,6 +222,15 @@ specify named base64 tsig key, and optional an algorithm (defaults to hmac-md5.s \fB\-z \fR don't randomize the nameserver list before sending queries. + +.SS EDNS QUERY OPTIONS + +.TP +\fB\+nsid \fR +When set, this EDNS option includes an EDNS name server ID request in the query. + + + .SH "EXIT S...
test(ethereum): Add test_007Transfer_0003TransferWithSpecifyChainIDSuccess
@@ -136,7 +136,34 @@ START_TEST(test_007Transfer_0002TransferFailureNullParam) BoatIotSdkDeInit(); } +START_TEST(test_007Transfer_0003TransferWithSpecifyChainIDSuccess) +{ + BSINT32 rtnVal; + BOAT_RESULT result; + BoatEthTx tx_ctx; + + BoatIotSdkInit(); + BoatEthWalletConfig wallet = get_ethereum_wallet_settings(); + +...
[mod_accesslog] process backslash-escapes in fmt Process basic backslash-escapes in format string from lighttpd.conf Supported sequences: \a \b \f \n \r \t \v Other backslash-sequences are replaces with the char following backslash (Apache mod_log_config supports \n and \t as special-cases)
@@ -562,6 +562,29 @@ SETDEFAULTS_FUNC(mod_accesslog_set_defaults) { cpv->v.v = x; break; case 1: /* accesslog.format */ + if (NULL != strchr(cpv->v.b->ptr, '\\')) { + /* process basic backslash-escapes in format string */ + buffer *b; + *(const buffer **)&b = cpv->v.b; + char *t = b->ptr; + for (char *s = t; *s; ++s) {...
More scan build fixes.
@@ -1497,9 +1497,10 @@ int h09_header_split_test(const uint8_t* bytes, size_t length, size_t split, h09 ret = -1; } else if (stream_ctx->ps.hq.path_length != strlen(expected->expected_path) || - (expected->expected_path != NULL && - memcmp(expected->expected_path, stream_ctx->ps.hq.path, stream_ctx->ps.hq.path_length) ...
RemoteContent: stop propagation on unfold click
@@ -24,7 +24,8 @@ export function RemoteContentWrapper(props: RemoteContentWrapperProps) { } = props; const [unfold, setUnfold] = useState(false); - const toggleUnfold = useCallback(() => { + const toggleUnfold = useCallback((e: React.MouseEvent) => { + e.stopPropagation(); setUnfold(s => !s); }, []);
Find device with USB context An explicit context was used everywhere except for listing the devices. PR <https://github.com/Genymobile/scrcpy/pull/2974>
@@ -42,10 +42,10 @@ accept_device(libusb_device *device, const char *serial) { } static libusb_device * -sc_usb_find_device(const char *serial) { +sc_usb_find_device(struct sc_usb *usb, const char *serial) { libusb_device **list; libusb_device *result = NULL; - ssize_t count = libusb_get_device_list(NULL, &list); + ssi...
tweaks explicit stack conventions in +cue jet
#define CUE_HEAD 1 #define CUE_TAIL 2 -// stack frame for record head vs tail iteration +// stack frame for recording head vs tail iteration // // In Hoon, this structure would be as follows: // @@ -97,7 +97,7 @@ u3qe_cue(u3_atom a) // // TRANSFER .cur // - pass: { + read: { // read tag bit at cur // c3_y tag_y = u3qc_...
fix on esp_hidh report map length checking function Closes
@@ -639,7 +639,7 @@ esp_hidh_dev_report_t *esp_hidh_dev_get_input_report_by_proto_and_data(esp_hidh_ } r = dev->reports; while (r) { - if (r->value_len == len + 1 && r->report_id == *data && (r->report_type & 1) && + if (r->value_len == len - 1 && r->report_id == *data && (r->report_type & 1) && r->protocol_mode == pro...
fix: use relative position for trimming CRLF from header
@@ -237,31 +237,30 @@ conn_respheader_cb(char *buf, size_t size, size_t nmemb, void *p_userdata) struct ua_resp_header *resp_header = p_userdata; char *ptr; - if (!(ptr = strchr(buf, ':'))) { // returns if can't find ':' field/value separator + if (!(ptr = strchr(buf, ':'))) { // returns if can't find ':' field/value d...
modules/tools/DataLog: make args match docs
@@ -8,7 +8,7 @@ from utime import localtime, ticks_us class DataLog(): - def __init__(self, *headers, name='log', timestamp=True, ext='csv'): + def __init__(self, *headers, name='log', timestamp=True, extension='csv'): # Make timestamp of the form yyyy_mm_dd_hh_mm_ss_uuuuuu if timestamp: @@ -25,8 +25,8 @@ class DataLog...
media: Refactor FileInputDataSource logic sync with
@@ -50,11 +50,7 @@ FileInputDataSource::~FileInputDataSource() bool FileInputDataSource::open() { - if (mFp) { - meddbg("FileInputDataSource::open : file is already open\n"); - return false; - } - + if (!mFp) { setAudioType(utils::getAudioTypeFromPath(mDataPath)); switch (getAudioType()) { @@ -74,24 +70,44 @@ bool File...
baselibc - Add %p format specifier to tinyprintf.
@@ -52,7 +52,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /* This is a smaller implementation of printf-family of functions, * based on tinyprintf code by Kustaa Nyholm. - * The formats supported by this implementation are: 'd' 'u' 'c' 's' 'x' 'X'. + * The formats supported by this implementation a...
Use proper ragger import
import pytest from pathlib import Path -from ragger import Firmware +from ragger.firmware import Firmware from ragger.backend import SpeculosBackend, LedgerCommBackend, LedgerWalletBackend, BackendInterface from ethereum_client.client import EthereumClient
daos: initialize buffers and structs to 0 Most daos parameters are in and out params. We need to make sure they are initialized to 0 so we don't get memory access errors.
@@ -1312,7 +1312,7 @@ static int alloc_iov_buf( { for (uint32_t i = 0; i < number; i++) { buf_len[i] = recxs[i].rx_nr * size; - buf[i] = MFU_MALLOC(buf_len[i]); + buf[i] = calloc(buf_len[i], sizeof(void*)); if (buf[i] == NULL) { free_iov_buf(number, buf); return -1; @@ -1493,8 +1493,8 @@ static int mfu_daos_obj_sync_ke...
permalinks; conditional addtional rows, dependent on graph type
import { BaseAnchor, Box, Center, Col, Icon, Row, Text } from "@tlon/indigo-react"; import { Association, GraphNode, resourceFromPath, GraphConfig } from '@urbit/api'; import React, { useCallback, useEffect, useState } from "react"; +import _ from 'lodash'; import { useHistory, useLocation } from 'react-router-dom'; im...
tools: update recursive bmc and max10 version sysfs path for n5010
#define MACADDR_LEN 19 // DFL SYSFS -#define DFL_SYSFS_BMCFW_VER "dfl*/*spi*/spi_master/spi*/spi*/bmcfw_version" -#define DFL_SYSFS_MAX10_VER "dfl*/*spi*/spi_master/spi*/spi*/bmc_version" +#define DFL_SYSFS_BMCFW_VER "dfl*/**/spi_master/spi*/spi*/bmcfw_version" +#define DFL_SYSFS_MAX10_VER "dfl*/**/spi_master/spi*/spi*...
Accepting an invite to your own circle won't create hall-internal circle now
@@ -29,6 +29,7 @@ export class SidebarInvite extends Component { updateInvite(uid, cir, resp) { let tagstring = resp ? "Accept" : "Reject"; + let hostName = cir.split('/')[0]; let circleName = cir.split('/')[1]; let actions = [ @@ -50,7 +51,7 @@ export class SidebarInvite extends Component { } ]; - if (resp) { + if (re...
Fixing more MSVC Build Errors I don't necessarily _know_ that these are correct, but that's what PRs are for right? MSVC compiles with these fixes made on my end though...
@@ -497,7 +497,7 @@ static int mpfunc(int m, int n, FLT *p, FLT *deviates, FLT **derivs, void *priva for (size_t up_idx = 0; up_idx < meas_count - mpfunc_ctx->measurementsCnt; up_idx++) { LinmathPoint3d up = {0}; - LinmathAxisAngle rot = {}; + LinmathAxisAngle rot = {0}; size_t m_idx = up_idx + mpfunc_ctx->measurements...
python/plugins: lint README.md
- infos = Information about the python plugin is in keys below -- infos/author = Lukas Hartl <>, Leonard Guelmino <e1503940@student.tuwien.ac.at> +- infos/author = Lukas Hartl <git@lukashartl.at>, Leonard Guelmino <e1503940@student.tuwien.ac.at> - infos/licence = BSD - infos/provides = check -- infos/needs = -- infos/p...
Typo fix in gen-test-certs.sh
# tests/tls/ca.{crt,key} Self signed CA certificate. # tests/tls/redis.{crt,key} A certificate with no key usage/policy restrictions. # tests/tls/client.{crt,key} A certificate restricted for SSL client usage. -# tests/tls/server.{crt,key} A certificate restricted fro SSL server usage. +# tests/tls/server.{crt,key} A c...
pluginprocess-improvements: handle gir as well
@@ -120,7 +120,11 @@ endif () # if (ENABLE_ASAN) set (EXTRA_FLAGS "${EXTRA_FLAGS} -fsanitize=undefined -fsanitize=address -fno-omit-frame-pointer") + if (UNIX AND NOT APPLE) set (ASAN_LIBRARY "-lubsan") # this is needed for GIR to put asan in front + else (UNIX AND NOT APPLE) + set (ASAN_LIBRARY "-lasan") # this is nee...
Prevent too large protoop write_frame* without a current_plugin from crashing
@@ -2547,8 +2547,12 @@ protoop_arg_t prepare_packet_ready(picoquic_cnx_t *cnx) length += (uint32_t) data_bytes; } else { if (data_bytes > rfs->nb_bytes) { + if (cnx->current_plugin != NULL) printf("WARNING: plugin %s reserved frame %lu for %lu bytes, but wrote %lu; erasing the frame\n", cnx->current_plugin->name, rfs->...
py/misc.h: Rename _MP_STRINGIFY to not use leading underscore in ident. Macro identifiers with a leading underscore are reserved.
@@ -47,8 +47,8 @@ typedef unsigned int uint; #endif // Classical double-indirection stringification of preprocessor macro's value -#define _MP_STRINGIFY(x) #x -#define MP_STRINGIFY(x) _MP_STRINGIFY(x) +#define MP_STRINGIFY_HELPER(x) #x +#define MP_STRINGIFY(x) MP_STRINGIFY_HELPER(x) // Static assertion macro #define MP...
reset its backoff variable when a neighbor is removed.
@@ -803,6 +803,8 @@ void removeNeighbor(uint8_t neighborIndex) { neighbors_vars.neighbors[neighborIndex].asn.bytes2and3 = 0; neighbors_vars.neighbors[neighborIndex].asn.byte4 = 0; neighbors_vars.neighbors[neighborIndex].f6PNORES = FALSE; + neighbors_vars.neighbors[neighborIndex].backoffExponenton = MINBE-1;; + neighbor...
Add FireCallback to AtkUnitBase
@@ -56,6 +56,12 @@ namespace FFXIVClientStructs.FFXIV.Component.GUI [MemberFunction("E8 ?? ?? ?? ?? 8D 55 4D")] public partial AtkImageNode* GetImageNodeById(uint nodeId); + [MemberFunction("E9 ?? ?? ?? ?? 83 FB 15")] + public partial byte FireCallbackInt(int callbackValue); + + [MemberFunction("E8 ?? ?? ?? ?? 8B 44 24...
Ignore newline in passphrase file
@@ -1746,13 +1746,14 @@ ParseSourcePassFile( UINT64 FileBufferSize = 0; UINT64 StringLength = 0; CHAR16 **ppLinesBuffer = NULL; + CHAR16 *pCurrentLine = NULL; VOID *pFileBuffer = NULL; CHAR16 *pPassFromFile = NULL; CHAR16 *pFileString = NULL; UINT32 NumberOfChars = 0; BOOLEAN PassphraseProvided = FALSE; BOOLEAN NewPass...
Pass E2E tests
@@ -114,7 +114,9 @@ jobs: - uses: actions/checkout@v2 - name: Build testing binaries - run: cd tests && ./build_local_test_elfs.sh + run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + cd tests && ./build_local_test_elfs.sh - name: Upload app binaries uses: actions/upload-artifact@v2
naive: add l1 changed-keys transaction
|= [lost=ship parent=ship] (log lost-sponsor:log-names:naive *@ux lost parent ~) :: - :: TODO: ChangedKeys (lib/naive.hoon still has TODOs) + ++ changed-keys + |= [=ship encr=@ auth=@ suite=@ life=@] + =/ keys=@ux + %: can 8 + 1^life + 1^suite + 1^auth + 1^encr + ~ + == + (log changed-keys:log-names:naive keys ship ~) ...
Update FindPTLS based on detected issues
find_path(PICOTLS_INCLUDE_DIR NAMES picotls/minicrypto.h - HINTS ${CMAKE_SOURCE_DIR}/../picotls/include ) + HINTS ${CMAKE_SOURCE_DIR}/../picotls/include + ${CMAKE_BINARY_DIR}/../picotls/include + ../picotls/include/ ) set(PTLS_HINTS ${CMAKE_BINARY_DIR}/../picotls ../picotls)
Disable xterm renderer on MinGW.
#include <stdlib.h> #include <limits.h> -#ifdef _WIN32 +#if defined(_WIN32) #include <windows.h> -#else +#elif !defined(__MINGW32__) #include <termios.h> #include <unistd.h> #include <signal.h> #include "error.h" -#ifdef _WIN32 +#if defined(_WIN32) static DWORD g_old_mode_stdin = 0; static DWORD g_old_mode_stdout = 0; ...
Reduce the Tests in Wan Perf
@@ -64,15 +64,15 @@ jobs: iterations: 3 duration: 10000 pacing: 1 - reorder: "(0,1000,10000)" + reorder: "(0,1000)" delay: "(0,5,10)" congestionControl: "(\"cubic\", \"bbr\")" loss: "(0,1000,10000)" strategy: fail-fast: false matrix: - rate: [5, 10, 20, 50, 100, 200, 1000] - rtt: [5, 50, 200, 500] + rate: [10, 50, 100,...
Standardize CMake file. Adds a proper alias for the library and uses targets for compile definitions.
@@ -13,6 +13,7 @@ include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) conan_basic_setup(TARGETS) add_library(TCOD) +add_library(TCOD::TCOD ALIAS TCOD) target_compile_features(TCOD PUBLIC cxx_std_14) target_link_libraries(TCOD CONAN_PKG::sdl2 CONAN_PKG::zlib) @@ -20,15 +21,15 @@ target_include_directories(TCOD PUBLIC ./) ...
fixed small bug in TSK_init()
@@ -22,6 +22,8 @@ task_sr: .word 0x0400 // User task program counter task_pc: .long 0x00000000 + .align 2 + // User task registers saved on context switch task_regs: .fill UTSK_REGS_LEN, 1, 0 @@ -32,7 +34,7 @@ task_lock: .word 0 .section .text /** - * Initialize the task sub system (reset internal variables). + * Initi...
Remove redundant parentheses in While's generated code
@@ -865,7 +865,7 @@ generate_stat = function(stat, ctx) return util.render([[ for(;;) { ${COND_STATS} - if (!(${COND})) break; + if (!${COND}) break; ${BLOCK} } ]], {
sysdeps/linux: implement sys_ftruncate
@@ -711,6 +711,13 @@ int sys_rmdir(const char *path) { return 0; } +int sys_ftruncate(int fd, size_t size) { + auto ret = do_syscall(NR_ftruncate, fd, size); + if (int e = sc_error(ret); e) + return e; + return 0; +} + int sys_readlink(const char *path, void *buf, size_t bufsiz, ssize_t *len) { auto ret = do_syscall(SY...
[core] combine Cookie request headers with ';' (thx avij) clients should send a single Cookie header with multiple cookie values separated with ';'. However, HTTP/2 loosens this requirement for Cookie. Section 8.1.2.5 Compressing the Cookie Header Field and some HTTP/2 clients (Chrome, Firefox) send multiple 'cookie:' ...
@@ -138,6 +138,15 @@ static inline void http_header_token_append(buffer * const vb, const char * cons buffer_append_string_len(vb, v, vlen); } +__attribute_cold__ +static inline void http_header_token_append_cookie(buffer * const vb, const char * const v, const uint32_t vlen) { + /* Cookie request header must be specia...
rm libreadline-dev on other pm
@@ -48,9 +48,9 @@ test_tools() install_tools() { { apt-get --version >/dev/null 2>&1 && $sudoprefix apt-get install -y git build-essential libreadline-dev; } || - { yum --version >/dev/null 2>&1 && $sudoprefix yum install -y git libreadline-dev && $sudoprefix yum groupinstall -y 'Development Tools'; } || - { zypper --v...
Ast: Make it more obvious that binary operations are correct.
@@ -407,9 +407,11 @@ void lily_es_push_binary_op(lily_expr_state *es, lily_expr_op op) new_prio == 0 is so that assign and assign-like operations run right-to-left. */ new_ast->left = active->right; + new_ast->left->parent = new_ast; + active->right = new_ast; + active->right->parent = active; - new_ast->parent = activ...
Ensure WS ping interval is cleared onclose.
@@ -94,7 +94,7 @@ window.GoAccess = window.GoAccess || { }, setWebSocket: function (wsConn) { - var host = null; + var host = null, pingId = null; host = wsConn.url ? wsConn.url : window.location.hostname ? window.location.hostname : "localhost"; var str = /^(wss?:\/\/)?[^\/]+:[0-9]{1,5}\//.test(host + "/") ? host : St...
DX11 objects in kernel device
@@ -10,5 +10,9 @@ namespace FFXIVClientStructs.FFXIV.Client.Graphics.Kernel public unsafe struct Device { [FieldOffset(0x80)] public SwapChain* SwapChain; + [FieldOffset(0x94)] public int D3DFeatureLevel; // D3D_FEATURE_LEVEL enum + [FieldOffset(0x98)] public void* DXGIFactory; // IDXGIFactory1 + [FieldOffset(0xA8)] pu...
remove some petty TODOs from vwebp. they're rather low-prio anyway.
@@ -248,9 +248,9 @@ static void HandleKey(unsigned char key, int pos_x, int pos_y) { } } } else if (key == 'i') { + // Note: doesn't handle refresh of animation's last-frame (it's quite + // more involved to do, since you need to save the previous frame). kParams.print_info = 1 - kParams.print_info; - // TODO(skal): ha...
Synchronize CWD between debug mode and daemon When running openwsman in foreground mode, the CWD is not changed as it is in the daemon mode. This can have material effects on requested paths.
@@ -198,6 +198,10 @@ static void daemonize(void) int fd; char *pid; + /* Change our CWD to / */ + i=chdir("/"); + assert(i == 0); + if (wsmand_options_get_foreground_debug() > 0) { return; } @@ -214,10 +218,6 @@ static void daemonize(void) log_pid = 0; setsid(); - /* Change our CWD to / */ - i=chdir("/"); - assert(i ==...
luci-proto-minieap: fix dhcp script
@@ -91,6 +91,7 @@ proto_minieap_setup() { append_setting ${heartbeat:+heartbeat=$heartbeat} append_setting ${eap_bcast_addr:+eap-bcast-addr=$eap_bcast_addr} append_setting ${dhcp_type:+dhcp-type=$dhcp_type} + append_setting ${dhcp_script:+dhcp-script="$dhcp_script"} json_for_each_item append_setting_list rj_option 'rj-...
s5j/gpio: add to support drive strength on pins This commit introduces s5j_setdrv() that sets the slew rates on each GPIO pin when it is configured as an output or an alternative function.
@@ -110,6 +110,25 @@ static const uint32_t g_intbase[S5J_GPIO_NPORTS] = { /**************************************************************************** * Private Functions ****************************************************************************/ +/********************************************************************...
Stylecheck for plgo/pkg/cdn/
@@ -527,12 +527,6 @@ migrations: - a.yandex-team.ru/strm/plgo/pkg/balancer_test - a.yandex-team.ru/strm/plgo/pkg/channel - a.yandex-team.ru/strm/plgo/pkg/channel_test - - a.yandex-team.ru/strm/plgo/pkg/cms/region - - a.yandex-team.ru/strm/plgo/pkg/cms/region_test - - a.yandex-team.ru/strm/plgo/pkg/cms/region/api - - a....
fix setsockopt ipv6_recvtclass argument
@@ -221,7 +221,7 @@ int picoquic_socket_set_ecn_options(SOCKET_TYPE sd, int af, int * recv_set, int #endif #ifdef IPV6_RECVTCLASS { - unsigned char set = 0x03; + unsigned char set = 0x01; /* Request receiving TOS reports in recvmsg */ if (setsockopt(sd, IPPROTO_IPV6, IPV6_RECVTCLASS, &set, sizeof(set)) < 0) {
only read temperature in ack.
@@ -30,7 +30,7 @@ corresponding to the incoming frame. #define LENGTH_PACKET 3+LENGTH_CRC // maximum length is 127 bytes #define MAX_PKT_LEN 125+LENGTH_CRC -#define CHANNEL 12 // 24ghz: 11 = 2.405GHz, subghz: 11 = 865.325 in FSK operating mode #1 +#define CHANNEL 11 // 24ghz: 11 = 2.405GHz, subghz: 11 = 865.325 in FSK ...
new_log2_pages may increase 2 when try_resplit
@@ -621,7 +621,6 @@ vnet_classify_add_del (vnet_classify_table_t * t, } /* Crap. Try again */ vnet_classify_entry_free (t, save_new_v, new_log2_pages); - new_log2_pages++; if (resplit_once) goto mark_linear;
init timer to zero on futex creation
@@ -77,6 +77,7 @@ static fut soft_create_futex(process p, u64 key) if (!(f = table_find(p->futices, pointer_from_u64(key)))) { f = allocate(h, sizeof(struct fut)); f->waiters = allocate_queue(h, 32); + f->t = 0; table_set(p->futices, pointer_from_u64(key), f); } return f;
Require libavcodec >= 57.37 In ffmpeg/doc/APIchanges: > 2016-04-21 - 7fc329e - lavc 57.37.100 - avcodec.h > Add a new audio/video encoding and decoding API with decoupled input > and output -- avcodec_send_packet(), avcodec_receive_frame(), > avcodec_send_frame() and avcodec_receive_packet(). Refs Refs <https://g...
@@ -85,7 +85,7 @@ if not get_option('crossbuild_windows') # native build dependencies = [ dependency('libavformat', version: '>= 57.33'), - dependency('libavcodec'), + dependency('libavcodec', version: '>= 57.37'), dependency('libavutil'), dependency('sdl2', version: '>= 2.0.5'), ]
Remove ambiguous symbol Visual studio complained about ambiguous symbol float_type replaced it with double worked fine with gcc
@@ -792,7 +792,7 @@ void SoapyLMS7::writeSetting(const int direction, const size_t channel, const st else if (key == "CALIBRATE_TX") { - float_type bw = std::stof(value); + double bw = std::stof(value); SoapySDR::logf(SOAPY_SDR_INFO, "Calibrate Tx %f", bw); if (lms7Device->Calibrate(true, channel, bw, 0)!=0) throw std:...
Fix issue in documentation. Indicate that the `match` method in `yara-python` accepts both a `str` and `bytes`.
@@ -427,7 +427,7 @@ Reference :param str filepath: Path to the file to be scanned. :param int pid: Process id to be scanned. - :param str data: Data to be scanned. + :param str/bytes data: Data to be scanned. :param dict externals: Dictionary with external variables. Keys are variable names and values are variable valu...
task: fix debug/warn message
@@ -386,7 +386,7 @@ void flb_task_destroy(struct flb_task *task) struct flb_task_route *route; struct flb_task_retry *retry; - flb_warn("[task] destroy task=%p (task_id=%i)", task, task->id); + flb_debug("[task] destroy task=%p (task_id=%i)", task, task->id); /* Release task_id */ map_free_task_id(task->id, task->confi...