message
stringlengths
6
474
diff
stringlengths
8
5.22k
autogen.sh: (dash) fix 'test: unexpected operator'
@@ -30,7 +30,7 @@ fi #=========================================================================== -if test "$1" == "release" || test "$1" == "--release" ; then +if test "$1" = "release" || test "$1" = "--release" ; then pkg="$(grep -m 1 AC_INIT configure.ac | cut -f 2 -d '[' | cut -f 1 -d ']')" ver="$(grep -m 1 AC_INIT...
Template copying & overrides based on parent configuration priority. Fixes
package; +import Lambda; +import haxe.xml.Fast; import haxe.io.Path; // Can't really use haxe_ver becaise it has been at 4 for over a year #if !force_xml_access // (haxe_ver < 4) @@ -588,6 +590,55 @@ class NMMLParser } private function parseXML(xml:Access, section:String, extensionPath:String, inWarnUnknown):Void + { +...
Update CI to use macOS-latest
@@ -9,7 +9,7 @@ jobs: strategy: matrix: - image_name: ["macOS-10.14", "windows-2016", "ubuntu-18.04"] + image_name: ["macOS-latest", "windows-2016", "ubuntu-18.04"] no_libc: ["", "-DZYAN_NO_LIBC=ON"] include: - image_name: "ubuntu-16.04"
build the windows port files if on windows
cmake_minimum_required(VERSION 3.13) project(iotivity-lite) +# Detect the platform and pick the right port +if(UNIX) + set(PORT_DIR ${PROJECT_SOURCE_DIR}/port/linux) +elseif(WIN32) + set(PORT_DIR ${PROJECT_SOURCE_DIR}/port/windows) +endif() + # Patch mbedtls set(OC_REAPPLY_MBEDTLS_PATCHES ON CACHE BOOL "") if(OC_REAPPL...
parser json UPDATE use metadata value hints
@@ -736,7 +736,7 @@ lydjson_metadata(struct lyd_json_ctx *lydctx, const struct lysc_node *snode, str const struct ly_ctx *ctx = lydctx->jsonctx->ctx; ly_bool is_attr = 0; struct lyd_node *prev = node; - uint32_t instance = 0; + uint32_t instance = 0, val_hints; uint16_t nodetype; assert(snode || node); @@ -849,13 +849,...
clay: give %u answer for non-existent desks Instead of considering it "in the future", an existence check for paths on non-existent desks now always produce false.
++ read-u |= [yon=aeon pax=path] ^- (unit (unit (each [%flag (hypo ?)] lobe))) + :: if asked for version 0, that never exists, so always give false + :: + ?: =(0 yon) + ``[%& %flag -:!>(*?) |] :: if asked for a future version, we don't have an answer :: ?~ tak=(~(get by hit.dom) yon)
Improve consistency, no functional change intended.
@@ -3297,7 +3297,7 @@ usrsctp_conninput(void *addr, const void *buffer, size_t length, uint8_t ecn_bit struct mbuf *m, *mm; struct sctphdr *sh; struct sctp_chunkhdr *ch; - int remaining; + int remaining, offset; SCTP_STAT_INCR(sctps_recvpackets); SCTP_STAT_INCR_COUNTER64(sctps_inpackets); @@ -3327,17 +3327,19 @@ usrsct...
bugfix: hc-sr04 example: init queue before setup ISR Closes
@@ -79,6 +79,13 @@ static bool sr04_echo_isr_handler(mcpwm_unit_t mcpwm, mcpwm_capture_channel_id_t void app_main(void) { ESP_LOGI(TAG, "HC-SR04 example based on capture function from MCPWM"); + // the queue where we read data + cap_queue = xQueueCreate(1, sizeof(uint32_t)); + if (cap_queue == NULL) { + ESP_LOGE(TAG, "...
filter_record_modifier: fix leak of split_entry
@@ -67,6 +67,7 @@ static int configure(struct record_modifier_ctx *ctx, if (mk_list_size(split) != 2) { flb_error("[%s] invalid record parameters",PLUGIN_NAME); flb_free(mod_record); + flb_utils_split_free(split); continue; } /* Get first value (field) */
simplified / fixed binary compression block with alignment
@@ -260,19 +260,8 @@ public class Util return out(data, 1, false, fout); } - public static void align(ByteArrayOutputStream out, int align) - { - if (align > 1) - { - while ((out.size() % align) != 0) - out.write(0); - } - } - - public static void outB(ByteArrayOutputStream out, short data, int align, boolean swap) + p...
prevent heap_caps_add_region exception if region is empty Calling `esp_bt_controller_mem_release` or `esp_bt_mem_release` might result in exception if any of the regions returned to heap are empty. This happens usually if BT/BLE is enabled, but not used/linked in the final firmware.
@@ -885,13 +885,17 @@ esp_err_t esp_bt_controller_mem_release(esp_bt_mode_t mode) if (mode == ESP_BT_MODE_BTDM) { mem_start = (intptr_t)&_btdm_bss_start; mem_end = (intptr_t)&_btdm_bss_end; + if (mem_start != mem_end) { ESP_LOGD(BTDM_LOG_TAG, "Release BTDM BSS [0x%08x] - [0x%08x]\n", mem_start, mem_end); ESP_ERROR_CHEC...
netkvm: Force disable code analysis warning for RWSpinLock For some reason code analysis from EWDK1903 ignore _Releases_lock_ annotation and always generates warning 26110 for PNDIS_RW_LOCK_EX.
@@ -692,7 +692,9 @@ public: NdisReleaseReadWriteLock(&m_lock, &lockState.m_state); #endif #ifdef RW_LOCK_62 +#pragma warning(disable:26110) NdisReleaseRWLock(m_pLock, &lockState.m_state); +#pragma warning(default:26110) #endif } @@ -729,7 +731,9 @@ public: NdisDprReleaseReadWriteLock(&m_lock, &lockState.m_state); #endi...
Fix return value when path is invalid in rename function It should set error code and return ERROR
@@ -123,7 +123,8 @@ int rename(FAR const char *oldpath, FAR const char *newpath) */ if (!oldpath || *oldpath == '\0' || oldpath[0] != '/' || !newpath || *newpath == '\0' || newpath[0] != '/') { - return -EINVAL; + errcode = EINVAL; + goto errout; } /* Get an inode that includes the oldpath */
anahera: Update fan table version 2 BRANCH=none TEST=Thermal team verified thermal policy is expected.
@@ -37,44 +37,44 @@ struct fan_step { static const struct fan_step fan_table[] = { { /* level 0 */ - .on = {49, 51, 0, -1}, + .on = {51, 51, 0, -1}, .off = {99, 99, 99, -1}, .rpm = {0}, }, { /* level 1 */ - .on = {50, 52, 0, -1}, - .off = {48, 50, 99, -1}, + .on = {52, 52, 0, -1}, + .off = {50, 50, 99, -1}, .rpm = {300...
leap: yank window.ship from contacts fixes urbit/landscape#598
@@ -8,6 +8,7 @@ import React, { import { useLocation, useHistory } from 'react-router-dom'; import * as ob from 'urbit-ob'; import Mousetrap from 'mousetrap'; +import { omit } from 'lodash'; import { Box, Row, Text } from '@tlon/indigo-react'; import makeIndex from '~/logic/lib/omnibox'; @@ -60,9 +61,10 @@ export funct...
inet_sockif: errno alignment to Linux cunittest error case: protocol invalid need return 123(EPROTONOSUPPORT) now return 106(EAFNOSUPPORT) inet_setup will check type ande protocol
@@ -1809,23 +1809,15 @@ FAR const struct sock_intf_s * } else #endif -#ifdef NET_UDP_HAVE_STACK - if (type == SOCK_DGRAM && (protocol == 0 || protocol == IPPROTO_UDP)) - { - return &g_inet_sockif; - } - else -#endif -#ifdef NET_TCP_HAVE_STACK - if (type == SOCK_STREAM && (protocol == 0 || protocol == IPPROTO_TCP)) +#if...
[NFSU2] revert AnimScene framerate to 60
@@ -755,8 +755,8 @@ void Init() if (bHighFPSCutscenes) { - static int AnimSceneFPS = 120; - static float fAnimSceneFPS = 120.0f; + static int AnimSceneFPS = 60; + static float fAnimSceneFPS = 60.0f; if (nFPSLimit > 0) AnimSceneFPS = nFPSLimit; @@ -764,10 +764,10 @@ void Init() if (AnimSceneFPS % 30) AnimSceneFPS = Anim...
Fix Timeout (-t) can be -1 (forever) or any number less than which is 49 days and 17 h
#include <donut_internal.h> #include <donut_queue.h> -#define timediff_usec(t0, t1) \ - ((double)(((t0)->tv_sec * 1000000 + (t0)->tv_usec) - \ - ((t1)->tv_sec * 1000000 + (t1)->tv_usec))) - /* Trace hardware implementation */ static unsigned int dnut_trace = 0x0; static unsigned int dnut_config = 0x0; @@ -103,6 +99,18 ...
lyd mods CHANGE allow transparent sysrepo module update Fixes
@@ -1000,8 +1000,8 @@ sr_lydmods_parse(struct ly_ctx *ly_ctx, struct lyd_node **sr_mods_p) goto cleanup; } - /* load sysrepo data */ - sr_mods = lyd_parse_path(ly_ctx, path, LYD_LYB, LYD_OPT_DATA | LYD_OPT_STRICT); + /* load sysrepo data even if the stored data used an older revision of the sysrepo module */ + sr_mods ...
jenkinsfile.release: publish images also to Elektra's public registry
@@ -821,7 +821,7 @@ def buildImageWithPackagesStage(image, previousTaskName) { } /** - * Builds and publishes an image to the official Docker Hub. + * Builds and publishes an image to the official DockerHub and Elektra's pubic Docker registry. * * The image is tagged with a version number and additional * with 'latest'...
docs/library/uselect: Update for Pycopy.
@@ -18,10 +18,9 @@ Functions .. function:: select(rlist, wlist, xlist[, timeout]) - Wait for activity on a set of objects. - - This function is provided by some MicroPython ports for compatibility - and is not efficient. Usage of :class:`Poll` is recommended instead. + This function is inefficient and not supported by ...
[build] add --with-brotli to meson.build
@@ -223,6 +223,17 @@ if not(get_option('build_static')) endif endif +libbrotli = [] +if get_option('with_brotli') + libbrotli = [ compiler.find_library('brotlienc') ] + if compiler.has_function('BrotliEncoderCreateInstance', args: defs, dependencies: libbrotlienc, prefix: '#include <brotli/encode.h>') + conf_data.set('...
http-api: prevent double-processing of events In reconnect scenarios (or wonky network situations) we may receive events we had already heard. Here we make sure to drop those. Also simplifies the getEventId() logic.
@@ -28,11 +28,13 @@ export class Urbit { private uid: string = `${Math.floor(Date.now() / 1000)}-${hexString(6)}`; /** - * Last Event ID is an auto-updated index of which events have been sent over this channel + * lastEventId is an auto-updated index of which events have been *sent* over this channel. + * lastHeardEve...
HTTP parser: restricting allowed characters in fields values. According to RFC 7230 only printable 7-bit ASCII characters are allowed in field values.
@@ -679,7 +679,8 @@ nxt_http_lookup_field_end(u_char *p, u_char *end) #define nxt_field_end_test_char(ch) \ \ - if (nxt_slow_path((ch) < 0x10)) { \ + /* Values below 0x20 become more than 0xdf. */ \ + if (nxt_slow_path((u_char) ((ch) - 0x20) > 0x5e)) { \ return &(ch); \ }
capture authenticationsframes, too
@@ -1632,6 +1632,7 @@ while(1) } else if(mac_ptr->subtype == IEEE80211_STYPE_AUTH) { + CHK_ERR(retw = write(fd_pcap, packetin, pkh->incl_len +PCAPREC_SIZE)); authentication_ptr = (authf_t*)(packet_ptr +MAC_SIZE_NORM); if(authentication_ptr->sequence == 1) {
Parallelization cost depending on tensorsize
@@ -465,7 +465,7 @@ static unsigned long parallelizable(unsigned int D, unsigned int io, unsigned in extern long num_chunk_size; -long num_chunk_size = 32 * 1024; +long num_chunk_size = 32 * 256; /** @@ -478,7 +478,11 @@ unsigned long dims_parallel(unsigned int D, unsigned int io, unsigned int N, con unsigned int i = N...
pack: new function to print metrics (debug)
#include <fluent-bit/flb_pack.h> #include <fluent-bit/flb_unescape.h> +/* cmetrics */ +#include <cmetrics/cmetrics.h> +#include <cmetrics/cmt_decode_msgpack.h> +#include <cmetrics/cmt_encode_text.h> + #include <msgpack.h> #include <jsmn/jsmn.h> @@ -454,6 +459,32 @@ void flb_pack_print(const char *data, size_t bytes) ms...
publish: don't leave notebooks on OTA
?: ?=(%& -.old-state) [~ this(state p.old-state)] =/ zero !<(state-zero old) - :: unsubscribe from all foreign notebooks :: kill all ford builds :: flush all state :: detect files in /web/publish :_ this(state [%1 new-state]) ;: weld kill-builds - leave-subs kick-cards init-cards (move-files old-subs) == :: - ++ leave-...
SOVERSION bump to version 2.24.13
@@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 24) -set(LIBYANG_MICRO_SOVERSION 12) +set(LIBYANG_MICRO_SOVERSION 13) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG...
build UPDATE increase required libyang version
@@ -73,8 +73,8 @@ set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION} set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION}) # Version of libyang library that this sysrepo depends on -set(LIBYANG_DEP_VERSION 2.0.43) -set(LIBYANG_DEP_SOVERSION 2.4.1) +set(LIBYANG_DEP_VERSION 2.0.51) +set(LIBYANG_...
zip code loading fix
@@ -132,7 +132,7 @@ void tic_cart_load(tic_cartridge* cart, const u8* buffer, s32 size) LOAD_CHUNK(code[chunk->bank].data); break; case CHUNK_CODE_ZIP: - tic_tool_unzip(cart->code.data, TIC_CODE_SIZE, buffer, chunk->size); + tic_tool_unzip(cart->code.data, TIC_CODE_SIZE, ptr, chunk->size); break; #if defined(DEPRECATED...
Handle max_fragment_length overflow for DTLS Allow for encryption overhead in early DTLS size check and send overflow if validated record is too long
@@ -1630,6 +1630,7 @@ int dtls1_process_record(SSL *s, DTLS1_BITMAP *bitmap) int imac_size; size_t mac_size; unsigned char md[EVP_MAX_MD_SIZE]; + size_t max_plain_length = SSL3_RT_MAX_PLAIN_LENGTH; rr = RECORD_LAYER_get_rrec(&s->rlayer); sess = s->session; @@ -1797,7 +1798,12 @@ int dtls1_process_record(SSL *s, DTLS1_B...
clay: share logic between build-file and directory By factoring their shared logic out into +build-dependency, which gets passed the relevant details about how to track the file being built in the dependency stack.
=^ res=vase nub (run-pile pile) res :: - ++ build-file - |= =path + ++ build-dependency + |= dep=(each [dir=path fil=path] path) ^- [vase state] + =/ =path + ?:(?=(%| -.dep) p.dep fil.p.dep) ~| %error-building^path ?^ got=(~(get by files.cache.nub) path) =? stack.nub ?=(^ stack.nub) ?: (~(has in cycle.nub) file+path) ~...
stm32/i2c: Make sure stop condition is sent after receiving addr nack.
@@ -113,7 +113,8 @@ int i2c_start_addr(i2c_t *i2c, int rd_wrn, uint16_t addr, size_t len, bool stop) // Check if the slave responded or not if (i2c->ISR & I2C_ISR_NACKF) { - // If we get a NACK then I2C periph releases the bus, so don't send STOP + // If we get a NACK then I2C periph unconditionally sends a STOP + i2c_...
py/pbobj: remove unused macro We use a change at the micropython level instead.
@@ -15,9 +15,6 @@ mp_store_global(name, mp_import_name(name, mp_const_none, MP_OBJ_NEW_SMALL_INT(0 #define PB_FROM_MODULE_IMPORT_ALL(name) \ mp_import_all(mp_import_name(name, mp_const_none, MP_OBJ_NEW_SMALL_INT(0))) -// Shortcut for defining attribute as address offset from base -#define PB_ATTR(type, elem) &(mp_int_t...
YAML CPP: Use `uintmax_t`
@@ -60,7 +60,7 @@ NameIterator relativeKeyIterator (Key const & key, Key const & parent) * * @retval The index of the array element, or `0` if the given key part is not an array element. */ -unsigned long long getArrayIndex (NameIterator const & nameIterator) +uintmax_t getArrayIndex (NameIterator const & nameIterator)...
[core] iOS does not provide netinet/tcp_fsm.h x-ref:
@@ -545,11 +545,18 @@ int fdevent_connect_status(int fd) { #include <netinet/tcp.h> -#if (defined(__APPLE__) && defined(__MACH__)) \ - || defined(__FreeBSD__) || defined(__NetBSD__) \ +#if defined(__FreeBSD__) || defined(__NetBSD__) \ || defined(__OpenBSD__) || defined(__DragonFly__) #include <netinet/tcp_fsm.h> #endif...
esp_wifi: Turn off wifi iram optimization by default, when using both Bluetooth and psram
@@ -309,8 +309,8 @@ menu "Wi-Fi" default n config ESP32_WIFI_IRAM_OPT - depends on !(BT_ENABLED && ESP32_SPIRAM_SUPPORT) bool "WiFi IRAM speed optimization" + default n if (BT_ENABLED && ESP32_SPIRAM_SUPPORT) default y help Select this option to place frequently called Wi-Fi library functions in IRAM. @@ -318,8 +318,8 ...
Increase number of dictionary entries (1024 -> 8192) and their size (256 -> 512)
@@ -246,9 +246,9 @@ typedef struct { } timing; struct { struct { - uint8_t val[256]; + uint8_t val[512]; size_t len; - } dictionary[1024]; + } dictionary[8192]; size_t dictionaryCnt; const char* dictionaryFile; size_t mutationsMax;
remove duplicate lv_txt_get_width code in lv_label
@@ -446,22 +446,8 @@ void lv_label_get_letter_pos(const lv_obj_t * label, uint16_t index, lv_point_t } /*Calculate the x coordinate*/ - lv_coord_t x = 0; - uint32_t i = line_start; - uint32_t cnt = line_start; /*Count the letter (in UTF-8 1 letter not 1 byte)*/ - lv_txt_cmd_state_t cmd_state = LV_TXT_CMD_STATE_WAIT; - ...
chip/stm32/usb_dwc_hw.h: Format with clang-format BRANCH=none TEST=none
__attribute__((alias(STRINGIFY(rx_handler)))); \ void _EP_EVENT_HANDLER(num)(enum usb_ep_event evt) \ __attribute__((alias(STRINGIFY(evt_handler)))); \ - static __unused void \ - (*_EP_TX_HANDLER_TYPECHECK(num))(void) = tx_handler; \ - static __unused void \ - (*_EP_RX_HANDLER_TYPECHECK(num))(void) = rx_handler; \ - st...
Test DTLS cookie generation and verification
* https://www.openssl.org/source/license.html */ +#include <string.h> #include <openssl/bio.h> #include <openssl/crypto.h> #include <openssl/ssl.h> @@ -240,6 +241,55 @@ static int test_dtls_drop_records(int idx) return testresult; } +static const char dummy_cookie[] = "0123456"; + +static int generate_cookie_cb(SSL *ss...
Cirrus: Update D-Bus startup command The `brew services` command is now part of the `homebrew/services` tap.
@@ -148,7 +148,8 @@ mac_task: brew install zeromq - > # Try to install `checkbashisms` (The file server that hosts the package is unfortunately quite unreliable.) brew install checkbashisms || >&2 printf 'Warning: Unable to install `checkbashims`\n' - - > # Start D-Bus session bus + - | # Start D-Bus session bus + brew...
session: target app.fib_index in unbind_uri Type: fix
@@ -143,6 +143,7 @@ int vnet_unbind_uri (vnet_unlisten_args_t * a) { session_endpoint_cfg_t sep = SESSION_ENDPOINT_CFG_NULL; + application_t *app; session_t *listener; u32 table_index; int rv; @@ -150,9 +151,11 @@ vnet_unbind_uri (vnet_unlisten_args_t * a) if ((rv = parse_uri (a->uri, &sep))) return rv; - /* NOTE: only...
Add Jean-Francois Smigielski to AUTHORS file
@@ -5,6 +5,7 @@ Bent Cardan <bent@nothingsatisfies.com> Constantine Tarasenkov <constantine@protonmail.com> Eli Riggs <eli@rje.li> Gonzalo Diethelm <gonzalo.diethelm@diethelm.org>* +Jean-Francois Smigielski <jf.smigielski@gmail.com> Jim Jagielski <jimjag@gmail.com> Jim Schimpf <jim.schimpf@gmail.com> Luca Barbato <luca...
Removed 1./0 in body.c.
@@ -405,19 +405,19 @@ double fdMassToRad(double dMass,int iRelation) { // Assign mass from radius and published relationship double fdRadToMass(double dMass,int iRelation) { - if (iRelation == REIDHAWLEY) + if (iRelation == REIDHAWLEY) { return fdRadToMass_ReidHawley(dMass); - else if (iRelation == GORDASVECH99) + } el...
sa: fix handling for skipped first magic byte
@@ -206,8 +206,7 @@ vtx_update_result_t serial_smart_audio_update() { return VTX_ERROR; } - static const uint8_t magic_bytes[3] = { - 0x0, + static const uint8_t magic_bytes[2] = { 0xaa, 0x55, }; @@ -288,9 +287,14 @@ vtx_update_result_t serial_smart_audio_update() { parser_state = ERROR; return VTX_ERROR; } + if (data ...
OpenSSL::Ordinals: add a renumber() function, to assign unassigned symbols This should be used when it's time to assign constant numbers to the unassigned symbols.
@@ -169,7 +169,26 @@ sub load { return 1; } -=item B<$ordinals-E<gt>rewrite> +=item B<< $ordinals->renumber >> + +Renumber any item that doesn't have an assigned number yet. + +=cut + +sub renumber { + my $self = shift; + + my $max_assigned = 0; + foreach ($self->items(by => by_number())) { + $_->number($_->intnum()) i...
arch/linux: make thousands separator work with en_US locale
@@ -376,7 +376,7 @@ void arch_reapChild(honggfuzz_t* hfuzz, fuzzer_t* fuzzer) bool arch_archInit(honggfuzz_t* hfuzz) { /* Make %'d work */ - setlocale(LC_NUMERIC, ""); + setlocale(LC_NUMERIC, "en_US"); if (access(hfuzz->cmdline[0], X_OK) == -1) { PLOG_E("File '%s' doesn't seem to be executable", hfuzz->cmdline[0]);
TestsUser/Prelinked: Don't try to prelink vSMC when Lilu was not.
@@ -502,6 +502,7 @@ int main(int argc, char** argv) { DEBUG ((DEBUG_WARN, "%s injected - %r\n", argc > 2 ? "Passed.kext" : "Lilu.kext", Status)); #ifndef TEST_SLE + if (argc <= 2) { Status = PrelinkedInjectKext ( &Context, "/Library/Extensions/VirtualSMC.kext", @@ -513,6 +514,7 @@ int main(int argc, char** argv) { ); D...
in_forward: fix handling of nanoseconds timestamp
@@ -183,7 +183,9 @@ int fw_prot_process(struct fw_conn *conn) /* Forward format 1: [tag, [[time, map], ...]] */ fw_process_array(conn->in, stag, stag_len, &entry); } - else if (entry.type == MSGPACK_OBJECT_POSITIVE_INTEGER) { + else if (entry.type == MSGPACK_OBJECT_POSITIVE_INTEGER || + entry.type == MSGPACK_OBJECT_EXT...
[autoconf] update ax_prog_cc_for_build.m4 update scripts/m4/ax_prog_cc_for_build.m4 from serial 20 to serial 21 (This should fix build errors occuring with './configure -C' caching) http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_prog_cc_for_build.m4
# and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 20 +#serial 21 AU_ALIAS([AC_PROG_CC_FOR_BUILD], [AX_PROG_CC_FOR_BUILD]) AC_DEFUN([AX_PROG_CC_FOR_BUILD], [dnl @@ -89,16 +89,16 @@ AC_LANG_PUSH([C]) dnl The pushdef([ac_cv_c_compiler_gnu], ...) currently does not cover dnl the ...
ci: Remove lcov workaround for Fedora The bug being worked around here was fixed ages ago in F29 and F30. There's no need to continue using the testing version of lcov so go back to using the production version.
FROM fedora:32 RUN dnf -y update RUN dnf -y install --allowerasing wget curl xterm gcc git xz make diffutils findutils expect valgrind valgrind-devel ccache dtc openssl-devel gcc-powerpc64-linux-gnu -# for building documentation -RUN dnf -y install python-pip -# for GCOV coverage reports (need testing due to https://bu...
examples: Fix disksnoop Kernel commit ("block: move struct request to blk-mq.h") and ("block: inline hot paths of blk_account_io_*()") introduce changes which break disksnoop. Like and but for disksnoop, this commit fixes those issues. Closes
@@ -19,7 +19,7 @@ REQ_WRITE = 1 # from include/linux/blk_types.h # load BPF program b = BPF(text=""" #include <uapi/linux/ptrace.h> -#include <linux/blkdev.h> +#include <linux/blk-mq.h> BPF_HASH(start, struct request *); @@ -46,6 +46,9 @@ void trace_completion(struct pt_regs *ctx, struct request *req) { if BPF.get_kpro...
Clarify a method TypeExpr's string form
@@ -225,8 +225,11 @@ func (n *TypeExpr) appendStr(buf []byte, tm *t.Map, depth uint32) []byte { return n.Inner().appendStr(buf, tm, depth) case t.IDOpenParen: buf = append(buf, "func "...) - buf = n.Receiver().appendStr(buf, tm, depth) - buf = append(buf, '.') + if r := n.Receiver(); r != nil { + buf = append(buf, '(')...
driver/usb_mux/anx7451.c: Format with clang-format BRANCH=none TEST=none
#define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ##args) #define CPRINTF(format, args...) cprintf(CC_USBCHARGE, format, ##args) -static inline int anx7451_read(const struct usb_mux *me, - uint8_t reg, int *val) +static inline int anx7451_read(const struct usb_mux *me, uint8_t reg, int *val) { return i2c_r...
Fixed a bug that may cause seg-fault for STARconsensus runs.
@@ -27,7 +27,7 @@ void Genome::genomeOutLoad(){//allocate and load *output* Genome ifstream GenomeIn; - nGenome = OpenStream("Genome", GenomeIn, nGenome); + nGenome = OpenStream("Genome", GenomeIn, 0); G=new char[nGenome]; //uint64 genomeReadBytesN = fstreamReadBig(GenomeIn,G,nGenome);
Increase lifetime of player projectiles in sample shooter scene
], "__collapse": false, "animSpeed": 7, - "lifeTime": 1, + "lifeTime": 1.2, "directionType": "direction", "angleVariable": "0", "angle": 0, ], "__collapse": false, "animSpeed": 7, - "lifeTime": 1, + "lifeTime": 1.2, "directionType": "direction", "angleVariable": "0", "angle": 0,
Ensure we retrieve int record from db using tcadbget instead of tcadbget2.
@@ -457,13 +457,13 @@ inc_iu64 (void *hash, int key, uint64_t inc) static int inc_si32 (void *hash, const char *key, int inc) { - int value = inc; + int value = inc, sp; void *ptr; if (!hash) return -1; - if ((ptr = tcadbget2 (hash, key)) != NULL) { + if ((ptr = tcadbget (hash, key, strlen (key), &sp)) != NULL) { value...
doc: avoid Other
- [Architecture](architecture.md) - [Classes](classes.md) - [The data structures](data-structures.md) -- [Error Handling](error-handling.md) -## Other Topics +## Concepts +- [Error Handling](error-handling.md) - [Metadata](metadata.md) ## Internals
fix gate signal in pulsed_nmr
@@ -142,7 +142,7 @@ module tx_0 { slice_1/din rst_slice_0/dout slice_2/din cfg_slice_1/dout slice_3/din cfg_slice_1/dout - delay_0/Q concat_0/In0 + delay_1/Q concat_0/In0 } # Create axis_combiner
Semlock: Disable test for plugin Issue Reference:
@@ -36,6 +36,10 @@ std::vector<std::string> getAllPlugins () plugins.erase (std::remove (plugins.begin (), plugins.end (), "crypto_gcrypt"), plugins.end ()); plugins.erase (std::remove (plugins.begin (), plugins.end (), "crypto_openssl"), plugins.end ()); plugins.erase (std::remove (plugins.begin (), plugins.end (), "c...
FIX: fixed format-truncation compile error in arcus_zk.c
@@ -630,7 +630,7 @@ arcus_zk_log(zhandle_t *zh, const char *action) int rc; char zpath[200] = ""; char rcbuf[200] = ""; - char sbuf[200] = ""; + char sbuf[128] = ""; struct timeval now; struct tm *ltm;
Resolved an issue where setSocketBlocking() was called with the incorrect fd. Changed setSocketBlocking() to take an transport_t pointer instead of a function pointer to fcntl.
@@ -213,9 +213,11 @@ transportDisconnect(transport_t *trans) } static int -setSocketBlocking(int (*myfcntl)(int, int, ...), int sock, bool block) +setSocketBlocking(transport_t *trans, int sock, bool block) { - int current_flags = myfcntl(sock, F_GETFL, NULL); + if (!trans) return 0; + + int current_flags = trans->fcnt...
rex: Modify battery i2c frequency Modify battery i2c frequency from 400k to 100k BRANCH=main TEST=Read battery information success.
&i2c5_0 { label = "I2C__BATTERY"; - clock-frequency = <I2C_BITRATE_FAST>; + clock-frequency = <I2C_BITRATE_STANDARD>; pinctrl-0 = <&i2c5_0_sda_scl_gp33_36>; pinctrl-names = "default";
Bump version for 13.0-4 dev.
@@ -19,7 +19,7 @@ ROCM_VERSION=${ROCM_VERSION:-4.0.0} # Set the AOMP VERSION STRING and AOMP_PROJECT_REPO_BRANCH. AOMP_VERSION=${AOMP_VERSION:-"13.0"} -AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"3"} +AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"4"} AOMP_VERSION_STRING=${AOMP_VERSION_STRING:-"$AOMP_VERSION-$AOMP_VERSION_MOD"} expor...
mount with ni instead of ini
@@ -30,8 +30,8 @@ fi #echo "Use folder $FOLDER" -$KDB mount "$FOLDER/METADATA.ini" "$MOUNTPOINT/metadata/#0" ini -$KDB mount "$FOLDER/CONTRACT.ini" "$MOUNTPOINT/contract/#0" ini +$KDB mount "$FOLDER/METADATA.ini" "$MOUNTPOINT/metadata/#0" ni +$KDB mount "$FOLDER/CONTRACT.ini" "$MOUNTPOINT/contract/#0" ni $KDB mount --r...
Modify a Makefile in the external folder to remove mbedtls folders.
@@ -117,6 +117,7 @@ ifneq ("$(wildcard $(IOTIVITY_BASE_DIR)/iotivity.built)","") $(Q) echo "Cleaning IoTivity Build" $(Q) TOPDIR="$(TOPDIR)" $(TOPDIR)/../external/iotivity/clean_iotivity.sh $(Q) rm -rf $(IOTIVITY_BASE_DIR)/out + $(Q) rm -rf $(IOTIVITY_BASE_DIR)/extlibs/mbedtls/mbedtls $(Q) rm -rf $(IOTIVITY_BASE_DIR)/....
dsssframegen: removing lingering exit call on internal error
@@ -361,14 +361,12 @@ float complex dsssframegen_generate_symbol(dsssframegen _q) } switch (_q->state) { - case STATE_PREAMBLE: return dsssframegen_generate_preamble(_q); break; - case STATE_HEADER: return dsssframegen_generate_header(_q); break; - case STATE_PAYLOAD: return dsssframegen_generate_payload(_q); break; - ...
sysdeps/managarm: Convert sys_linkat to bragi
@@ -258,41 +258,30 @@ int sys_link(const char *old_path, const char *new_path) { int sys_linkat(int olddirfd, const char *old_path, int newdirfd, const char *new_path, int flags) { SignalGuard sguard; - HelAction actions[3]; - globalQueue.trim(); - managarm::posix::CntRequest<MemoryAllocator> req(getSysdepsAllocator())...
Update record~-help.pd
-#N canvas 428 64 557 724 10; +#N canvas 692 23 563 713 10; #X obj 3 685 cnv 15 552 21 empty empty empty 20 12 0 14 -233017 -33289 0; #X obj 5 320 cnv 3 550 3 empty empty inlets 8 12 0 13 -228856 -1 0 #X msg 335 170 loop \$1; #X obj 335 148 tgl 15 0 empty empty empty 0 -6 0 8 -228856 -1 -1 0 1; -#X floatatom 357 212 5 ...
bump pdsh to v2.32
Summary: Parallel remote shell program Name: %{pname}%{PROJ_DELIM} -Version: 2.31 +Version: 2.32 Release: 1 License: GPL Url: http://sourceforge.net/projects/pdsh
Explicitly free local processes after restore error unit test. Local processes are still running after this error and it is best to free them before ending the test.
@@ -2589,6 +2589,9 @@ testRun(void) "raised from local-1 protocol: unable to open missing file" " '%s/repo/backup/test1/20161219-212741F_20161219-212918I/pg_data/global/pg_control' for read", testPath()); + + // Free local processes that were not freed because of the error + protocolFree(); } FUNCTION_HARNESS_RETURN_VO...
Parse floats in C locale, hopefully
#endif static enum overlay_param_position - parse_position(const char *str) { if (!str || !strcmp(str, "top-left")) @@ -60,21 +59,13 @@ parse_control(const char *str) } static float -parse_font_size(const char *str) -{ - return strtof(str, NULL); -} - -static float -parse_background_alpha(const char *str) -{ - return s...
run-stp-tests.sh: Update number of warning Needed due issue
@@ -1134,10 +1134,10 @@ fi # Warning log messages count=`$GREP '^W ' $BASE/log/error_log | $GREP -v CreateProfile | $GREP -v 'libusb error' | $GREP -v ColorManager | $GREP -v 'Avahi client failed' | wc -l | awk '{print $1}'` -if test $count != 12; then - echo "FAIL: $count warning messages, expected 12." +if test $coun...
[bsp][stm32] remove C99 feature
@@ -44,8 +44,9 @@ static struct stm32_adc stm32_adc_obj[sizeof(adc_config) / sizeof(adc_config[0]) static rt_err_t stm32_adc_enabled(struct rt_adc_device *device, rt_uint32_t channel, rt_bool_t enabled) { + ADC_HandleTypeDef *stm32_adc_handler; RT_ASSERT(device != RT_NULL); - ADC_HandleTypeDef *stm32_adc_handler = devi...
Obtain python coverage from child processes executed during testing issue:https://st.yandex-team.ru/DEVTOOLS-6410
@@ -38,30 +38,8 @@ yatest_logger = logging.getLogger("ya.test") _pytest.main.EXIT_NOTESTSCOLLECTED = 0 -COVERAGE_INSTANCE = [0] -COVERAGE_ENV_NAME = 'PYTHON_COVERAGE_PREFIX' SHUTDOWN_REQUESTED = False -# Start coverage collection as soon as possible to avoid missing coverage for modules imported from plugins -if COVERA...
artik05x: Add Download support of smartfs image This patch adds support for downloading the smartfs image onto the flash using "make download USER" command.
@@ -37,6 +37,7 @@ SCRIPTS_PATH=${ARTIK05X_DIR_PATH}/scripts TIZENRT_BIN=${OUTPUT_BINARY_PATH}/tinyara_head.bin TIZENRT_APPS_BIN=${OUTPUT_BINARY_PATH}/tinyara_user.bin +SMARTFS_BIN=${OUTPUT_BINARY_PATH}/artik05x_smartfs.bin OPENOCD_DIR_PATH=${BUILD_DIR_PATH}/tools/openocd if [[ $OSTYPE == "darwin"* ]]; then @@ -62,7 +63...
Protect against uninitialized hash map (if initialized to `{0}`)
@@ -209,12 +209,12 @@ struct fio_hash_s { #undef FIO_HASH_FOR_LOOP #define FIO_HASH_FOR_LOOP(hash, container) \ for (fio_hash_data_ordered_s *container = (hash)->ordered; \ - !FIO_HASH_KEY_ISINVALID(container->key); ++container) + container && !FIO_HASH_KEY_ISINVALID(container->key); ++container) #undef FIO_HASH_FOR_EM...
BugID:18434353:fix sim800 at send
@@ -753,8 +753,8 @@ int HAL_SAL_Start(sal_conn_t *conn) case TCP_CLIENT: snprintf(pccmd, SIM800_CONN_CMD_LEN - 1, "%s=%d,\"TCP\",\"%s\",%d", AT_CMD_START_CLIENT_CONN, linkid, conn->addr, conn->r_port); - atcmd_config_t atcmd_config = { NULL, AT_CMD_CLIENT_CONNECT_OK, AT_CMD_CLIENT_CONNECT_FAIL}; - at_send_wait_reply(pc...
tools: fix an invalid parameter of send_msg in query_state The issue is "acrnctl list" command always returns error with "no vmname provided" information. The rootcause is that vmname is an invalid parameter, which does not contain any vm information.
@@ -72,7 +72,7 @@ static int query_state(const char *name) req.msgid = DM_QUERY; req.timestamp = time(NULL); - ret = send_msg(vmname, &req, &ack); + ret = send_msg(name, &req, &ack); if (ret) return ret;
Update lv_btnm.c Attempt to fix an LV_BORDER_RIGHT drawing issue.
@@ -437,7 +437,6 @@ static bool lv_btnm_design(lv_obj_t * btnm, const lv_area_t * mask, lv_design_mo lv_area_t area_tmp; lv_coord_t btn_w; lv_coord_t btn_h; - bool border_mod = false; uint16_t btn_i = 0; uint16_t txt_i = 0; @@ -465,21 +464,8 @@ static bool lv_btnm_design(lv_obj_t * btnm, const lv_area_t * mask, lv_desi...
simd: optimize vec4_distance with sse and neon
@@ -707,10 +707,25 @@ glm_vec4_normalize(vec4 v) { CGLM_INLINE float glm_vec4_distance(vec4 a, vec4 b) { +#if defined( __SSE__ ) || defined( __SSE2__ ) + __m128 x0; + x0 = _mm_sub_ps(glmm_load(b), glmm_load(a)); + x0 = _mm_mul_ps(x0, x0); + x0 = _mm_add_ps(x0, glmm_shuff1(x0, 1, 0, 3, 2)); + return _mm_cvtss_f32(_mm_sq...
network/utils: fix ping6 fix ping6 to send ipv6 packet
@@ -405,7 +405,7 @@ static int ping_send(int s, struct sockaddr *to, int size) static int _set_icmp6_config(struct addrinfo *hints) { memset(hints, 0, sizeof(struct addrinfo)); - hints->ai_family = AF_UNSPEC; + hints->ai_family = AF_INET6; hints->ai_socktype = SOCK_RAW; hints->ai_protocol = IPPROTO_ICMPV6; return 0; @@...
adding more logging and delay 2 second between present testVC and test start up
@@ -1286,7 +1286,8 @@ public: TEST_METHOD(UIButton_ImageEdgeInsets) { StrongId<UIButtonWithControlsViewController> buttonVC; buttonVC.attach([[UIButtonWithControlsViewController alloc] init]); - UXTestAPI::ViewControllerPresenter testHelper(buttonVC); + UXTestAPI::ViewControllerPresenter testHelper(buttonVC, 2); + LOG_...
Examples: fix memory leak
@@ -138,6 +138,7 @@ int main(int argc, char** argv) CODES_CHECK(codes_get_size(h, name, &keySize), 0); byte_val = (unsigned char*)malloc(keySize * sizeof(char)); GRIB_CHECK(codes_get_bytes(h, name, byte_val, &keySize), name); + free(byte_val); } codes_handle_delete(h);
Modify NOFORTRAN tests to always check the value; fix rewriting of NO_FORTRAN
@@ -21,13 +21,15 @@ ifeq ($(BUILD_RELAPACK), 1) RELA = re_lapack endif -ifeq ($(NOFORTRAN), 0) -undefine NOFORTRAN -endif - ifeq ($(NO_FORTRAN), 1) -undefine NO_FORTRAN -NOFORTRAN=1 +define NOFORTRAN +1 +endef +define NO_LAPACK +1 +endef +export NOFORTRAN +export NO_LAPACK endif LAPACK_NOOPT := $(filter-out -O0 -O1 -O2...
Suppress console spam
@@ -70,10 +70,13 @@ bool fLogTimeMicros = false; int LogPrintStr(const std::string &str) { +#ifdef DEBUG int ret = 0; // Returns total number of characters written // print to console ret = fwrite(str.data(), 1, str.size(), stdout); fflush(stdout); return ret; +#else + return 0; +#endif } -
Fix callback ordering logic Startup typed callbacks should execute on first come first served basis (FIFO). Shutdown oriented callbacks shold be LIFO. This accomodates buildup and shutdown ordering layers.
@@ -2909,12 +2909,39 @@ void fio_state_callback_force(callback_type_e c_type) { fio_ls_embd_s copy = FIO_LS_INIT(copy); fio_lock(&callback_collection[c_type].lock); fio_state_callback_ensure(&callback_collection[c_type]); + switch (c_type) { /* the difference between `unshift` and `push` */ + case FIO_CALL_ON_INITIALIZ...
upstream: fix deletion of destroy_queue
@@ -206,7 +206,6 @@ static int destroy_conn(struct flb_upstream_conn *u_conn) /* Add node to destroy queue */ mk_list_add(&u_conn->_head, &u->destroy_queue); - /* * note: the connection context is destroyed by the engine once all events * have been processed. @@ -299,6 +298,12 @@ int flb_upstream_destroy(struct flb_ups...
Fixed async policy
@@ -81,7 +81,7 @@ namespace Miningcore.Payments protected readonly IMasterClock clock; protected readonly IMessageBus messageBus; protected ClusterConfig clusterConfig; - private Policy faultPolicy; + private IAsyncPolicy faultPolicy; protected ILogger logger; protected PoolConfig poolConfig; @@ -94,7 +94,7 @@ namespac...
nanosleep, clock_nanosleep: use locked heap for blockq actions Since timer_handlers are now invoked without the kernel lock held, use of the general heap for blockq actions was leading to allocator corruption and occasional crashes on closure deallocations.
@@ -45,7 +45,7 @@ sysreturn nanosleep(const struct timespec *req, struct timespec *rem) timestamp tnow = now(CLOCK_ID_MONOTONIC); thread_log(current, "nanosleep: req %p (%T) rem %p, now %T", req, interval, rem, tnow); return blockq_check_timeout(current->thread_bq, current, - closure(heap_general(get_kernel_heaps()), n...
error prone flags from javac flags extraction
@@ -22,6 +22,12 @@ JAVA10_EXPORTS = [ def just_do_it(argv): java, error_prone_tool, javac_cmd = argv[0], argv[1], argv[2:] if java.endswith('javac') or java.endswith('javac.exe'): + for f in javac_cmd: + if f.startswith('-Xep:'): + ERROR_PRONE_FLAGS.append(f) + for f in ERROR_PRONE_FLAGS: + if f in javac_cmd: + javac_c...
bricks/ev3dev/pbdevice: default mode delay as 0 To minimize the impact on existing code, set the default to 0, and only add delays for sensors that we know require a delay.
@@ -105,7 +105,7 @@ static uint32_t get_mode_switch_delay(pbio_iodev_type_id_t id, uint8_t mode) { return 200; // Default delay for other sensors and modes: default: - return 50; + return 0; } } @@ -134,7 +134,10 @@ static pbio_error_t get_values(pbdevice_t *pbdev, uint8_t mode, int32_t *values) } // Give some time for...
apps/system/dhcpc: Currently only works with IPv4 and Ethernet MAC.
@@ -7,7 +7,7 @@ config SYSTEM_DHCPC bool "DHCP Address Renewal" default n select NETUTILS_DHCPC - depends on NET_UDP && NET_BROADCAST && NET_IPv4 + depends on NET_UDP && NET_BROADCAST && NET_IPv4 && NET_ETHERNET ---help--- Enble the DHCP client 'renew' command
riscv: Adds support for returning from exception handler
@@ -176,16 +176,31 @@ _panic_handler: bgeu a1, t0, _call_panic_handler sw a1, RV_STK_MCAUSE(sp) /* exception_from_panic never returns */ - j panic_from_exception + jal panic_from_exception + /* We arrive here if the exception handler has returned. */ + j _return_from_exception + _call_panic_handler: /* Remove highest b...
fix nlinv bug The normal operator in NLINV is adjoint after derivative, and not adjoint after forward
@@ -44,7 +44,7 @@ static void normal(iter_op_data* _data, float* dst, const float* src) { struct irgnm_s* data = CAST_DOWN(irgnm_s, _data); - iter_op_call(data->frw, data->tmp, src); + iter_op_call(data->der, data->tmp, src); iter_op_call(data->adj, dst, data->tmp); }
apps/bttester: Adjust config values for mesh PTS test cases
@@ -124,6 +124,9 @@ syscfg.vals: BLE_MESH_FRIEND: 1 BLE_MESH_CFG_CLI: 1 BLE_MESH_RX_SDU_MAX: 110 + BLE_MESH_HEALTH_CLI: 1 + BLE_MESH_FRIEND_QUEUE_SIZE: 32 + CONFIG_BT_MESH_TX_SEG_MSG_COUNT: 6 BLE_MESH_ADV_BUF_COUNT: 20 BLE_MESH_TX_SEG_MAX: 6
Fixed options insert bugs
@@ -269,9 +269,11 @@ void lv_dropdown_add_option(lv_obj_t * ddlist, const char * option, int pos) /*Allocate space for the new option*/ size_t old_len = (ext->options == NULL) ? 0 : strlen(ext->options); size_t ins_len = strlen(option); - size_t new_len = ins_len + old_len + 1; /* +1 for terminating NULL */ - if(ext->o...
Fixed weird code for updating /circles subscriptions. No longer incorrectly uses the subscriber's ship name when getting the affected story.
::REVIEW this could be considered leaky, since it :: doesn't check if {who} ever knew of {nom}, :: but does that matter? can't really check.. + :: if the story got deleted, remove it from the circles listing. ?: ?=($remove -.det.det) `| - =+ soy=(~(got by stories) who.qer) - ?. ?| ?=($new -.det.det) + =+ soy=(~(got by ...