message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix the order of statements in sys_opengl_c.c Declared variables must be at the top of their scope.
@@ -179,14 +179,16 @@ void TCOD_opengl_uninit_state() { /* call after creating window */ bool TCOD_opengl_init_state(int conw, int conh, void *font) { - glcontext = SDL_GL_CreateContext(window); SDL_Surface *font_surf=(SDL_Surface *)font; + SDL_PixelFormat *my_format=SDL_AllocFormat(SDL_GetWindowPixelFormat(window)); /...
QoS: publish qos.api.h file
@@ -1210,6 +1210,9 @@ libvnet_la_SOURCES += \ API_FILES += vnet/qos/qos.api +nobase_include_HEADERS += \ + vnet/qos/qos.api.h + ######################################## # BIER ########################################
Add a boolean to track whether the generator was disposed. If so don't call do send
@@ -48,6 +48,7 @@ struct rp_generator_t { unsigned req_done : 1; unsigned res_done : 1; unsigned pipe_inflight : 1; + int *generator_disposed; }; static h2o_httpclient_ctx_t *get_client_ctx(h2o_req_t *req) @@ -476,14 +477,18 @@ static void on_body_on_close(struct rp_generator_t *self, const char *errstr) static int on_...
Send two ordered messages.
@@ -399,7 +399,7 @@ main(void) exit(EXIT_FAILURE); } printf("Change send socket buffer size from %d ", cur_buf_size); - snd_buf_size = 1<<20; /* 1 MB */ + snd_buf_size = 1<<22; /* 4 MB */ if (usrsctp_setsockopt(s_c, SOL_SOCKET, SO_SNDBUF, &snd_buf_size, sizeof(int)) < 0) { perror("usrsctp_setsockopt"); exit(EXIT_FAILUR...
Finish market/idx/delivery/bin/delivery_uploader migration
@@ -132,7 +132,6 @@ migrations: - a.yandex-team.ru/mail/so/spamstop/tools/smtp2http - a.yandex-team.ru/mail/payments-sdk-backend/backend/cmd/server - a.yandex-team.ru/mail/payments-sdk-backend/backend/cmd/server_test - - a.yandex-team.ru/market/idx/delivery/bin/delivery_uploader - a.yandex-team.ru/market/logistics/trac...
ConfigValidity: Fix printing format
@@ -77,7 +77,7 @@ int main(int argc, char** argv) { OC_GLOBAL_CONFIG Config; OcConfigurationInit (&Config, b, f); - DEBUG ((EFI_D_ERROR, "Done checking %s in %llu ms\n", argc > 1 ? argv[1] : "./config.plist", current_timestamp() - a)); + DEBUG ((EFI_D_ERROR, "Done checking %a in %llu ms\n", argc > 1 ? argv[1] : "./conf...
Added more SceKernelUtilsForDriver NIDs
@@ -1819,15 +1819,34 @@ modules: nid: 0xFD00C69A SceKernelUtilsForDriver: functions: + ksceDeflateDecompress: 0x8AF1FAD4 + ksceDeflateDecompressPartial: 0x3D74CCDF ksceGzipDecompress: 0x367EE3DF ksceGzipGetComment: 0xCD3AE08F ksceGzipGetCompressedData: 0x63619124 ksceGzipGetInfo: 0xFFC6A10F ksceGzipGetName: 0xF901FD3E ...
Make clang happy and indicate a parameter is a printf-style format using the __attribute__.
@@ -255,6 +255,7 @@ static const struct tpl_type_t tpl_types[] = { }; /* default error-reporting function. Just writes to stderr. */ +__attribute__((__format__ (__printf__, 1, 0))) static int tpl_oops (const char *fmt, ...) { va_list ap; @@ -2350,6 +2351,7 @@ tpl_byteswap (void *word, int len) { } } +__attribute__((__f...
Install mono-devel on ubuntu.
@@ -20,6 +20,7 @@ pushd "$DEPS_DIR" php-dev \ liblua5.3-dev \ luarocks \ + mono-devel \ nuget \ octave-pkg-dev \ openjdk-8-jdk \
Test for tcp ephemeral ports added
@@ -183,6 +183,16 @@ int main(void) { rc = hclose(cr); errno_assert(rc == 0); + /* Test ephemeral ports. */ + rc = ipaddr_local(&addr, NULL, 0, 0); + errno_assert(rc == 0); + ls = tcp_listen(&addr, 10); + errno_assert(ls >= 0); + int port = ipaddr_port(&addr); + assert(port > 0); + rc = hclose(ls); + errno_assert(rc ==...
UPX compress enable on arm64
@@ -97,9 +97,7 @@ $(SCOPE): run/bundle.go $(GOVVV) $(filter-out %_test.go,$(shell find . -type f - -o $(SCOPE) compressscope: $(SCOPE) require-upx - if [ "$(ARCH)" = "x86_64" ]; then \ upx -l $(SCOPE) >/dev/null 2>&1 || upx -9 $(SCOPE); \ - fi ## test: run unit tests test:
[build] Refine Makefile
@@ -16,23 +16,34 @@ ifeq ($(OS),Windows_NT) endif endif -.PHONY: all release debug clean +BUILD_RULES := \ + vendor deps \ + aergocli aergosvr aergoluac polaris colaris brick \ + libtool libtool-clean \ + libluajit liblmdb libgmp \ + libluajit-clean liblmdb-clean libgmp-clean \ + check cover-check \ + distclean \ + pro...
Fixed bug in using AtmoicInteger
@@ -104,12 +104,11 @@ object Caller { */ def callV(namespace: Option[String], fnName: String, args: List[Value]): Value = { val call = Call(namespace, fnName, args) - val callId = callCounter.get + 1 + val callId = callCounter.getAndIncrement() if (callId == Int.MaxValue) callCounter.set(0) - else - callCounter.set(cal...
dsp/lossless: workaround gcc-4.8 bug on arm and all older versions. force Sub3() to not be inlined, otherwise the code in Select() will be incorrect. extends the check add previously in: dsp/lossless: workaround gcc-4.9 bug on arm
@@ -80,8 +80,9 @@ static WEBP_INLINE uint32_t ClampedAddSubtractHalf(uint32_t c0, uint32_t c1, return ((uint32_t)a << 24) | (r << 16) | (g << 8) | b; } -// gcc-4.9 on ARM generates incorrect code in Select() when Sub3() is inlined. -#if defined(__arm__) && LOCAL_GCC_VERSION == 0x409 +// gcc <= 4.9 on ARM generates inco...
Fix NuGet packages.config files missing from projects
-- I need to look at them all. for cfg in p.project.eachconfig(prj) do - table.foreachi(cfg.files, function(fname) + local function addFile(fname) -- If this is the first time I've seen this file, start a new -- file configuration for it. Track both by key for quick lookups p.fileconfig.addconfig(files[fname], cfg) - e...
components/bt: change HCI task size back
#include "osi/fixed_queue.h" #define HCI_HOST_TASK_PINNED_TO_CORE (TASK_PINNED_TO_CORE) -#define HCI_HOST_TASK_STACK_SIZE (4096 + BT_TASK_EXTRA_STACK_SIZE) +#define HCI_HOST_TASK_STACK_SIZE (2048 + BT_TASK_EXTRA_STACK_SIZE) #define HCI_HOST_TASK_PRIO (BT_TASK_MAX_PRIORITIES - 3) #define HCI_HOST_TASK_NAME "hciT"
appveyor.yml: omit makedepend step. makedepend makes lesser sense in a throw-away build like CI, but it spares some computational time, because with MSVC it takes separate per-file compiler invocation.
@@ -22,9 +22,9 @@ before_build: } - ps: >- If ($env:Configuration -Match "shared") { - $env:SHARED="" + $env:SHARED="no-makedepend" } Else { - $env:SHARED="no-shared" + $env:SHARED="no-shared no-makedepend" } - ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS")) - call "%VSCOMNTOOLS%\..\..\VC\vc...
HV: Fix mistake use stac() & clac() The commit HV: cache: Fix page fault by flushing cache for VM trusty RAM in HV It is wrong in using stac()/clac()
@@ -450,9 +450,9 @@ void cpu_dead(void) /* clean up native stuff */ vmx_off(); - clac(); - flush_cache_range((void *)get_hv_image_base(), CONFIG_HV_RAM_SIZE); stac(); + flush_cache_range((void *)get_hv_image_base(), CONFIG_HV_RAM_SIZE); + clac(); /* Set state to show CPU is dead */ pcpu_set_current_state(pcpu_id, PCPU_...
doc: added spec-mount explanation
@@ -242,8 +242,14 @@ Now we apply this _Specfile_ to the key database to all keys below `tests/tutori ```sh kdb spec-mount /tests/tutorial ``` -This command automatically mounts `/tests/tutorial` to the backend `tutorial.dump` and -loads the validation plugin. +This command automatically mounts `/tests/tutorial` to the...
nat: correct detection of icmp bypass presence Type: fix
@@ -614,8 +614,8 @@ create_bypass_for_fwd (snat_main_t *sm, vlib_buffer_t *b, snat_session_t *s, if (ip->protocol == IP_PROTOCOL_ICMP) { - if (nat_get_icmp_session_lookup_values (b, ip, &lookup_saddr, - &lookup_sport, &lookup_daddr, + if (nat_get_icmp_session_lookup_values (b, ip, &lookup_daddr, + &lookup_sport, &looku...
Docs: Mention updating to edk2-stable202011
@@ -2,6 +2,7 @@ OpenCore Changelog ================== #### v0.6.5 - Fixed installing OpenDuet on protected volumes +- Updated underlying EDK II package to edk2-stable202011 #### v0.6.4 - Added `BlacklistAppleUpdate` to fix macOS 11 broken update optout
MIME rules: Added application/vnd.cups-pdf-banner rule for universal filter bannertopdf() is added to the universal() filter function now, so we can tell CUPS that the universal CUPS filter accepts banner/test page instruction files.
@@ -56,6 +56,7 @@ application/postscript application/vnd.universal-input 0 - application/pdf application/vnd.universal-input 0 - text/plain application/vnd.universal-input 0 - application/PCLm application/vnd.universal-input 0 - +application/vnd.cups-pdf-banner application/vnd.universal-input 0 - # CUPS file conversion...
Free isr service related resources in hal_gpio_finalize
@@ -171,6 +171,7 @@ int32_t hal_gpio_finalize(aos_gpio_dev_t *gpio) io_conf.pull_up_en = 0; //configure GPIO with the given settings ret = gpio_config(&io_conf); - + // uninstall isr service + gpio_uninstall_isr_service(); return ret; }
uname: Use elektra macros for error handling
#include <kdberrors.h> #include <kdbmacros.h> -static void elektraAddUname (KeySet * returned, Key * parentKey) +static int elektraAddUname (KeySet * returned, Key * parentKey) { Key * dir; Key * key = keyDup (parentKey, KEY_CP_ALL); @@ -30,11 +30,8 @@ static void elektraAddUname (KeySet * returned, Key * parentKey) if...
pg_upgrade/test: don't show whitespace diffs in the CI dump It's confusing to see whitespace differences after a failure, since they weren't the diffs that *caused* the failure. Suppress them.
@@ -225,8 +225,9 @@ diff_and_exit() { exit 0 fi - # To aid debugging in pipelines, print the diff to stdout - diff -du "$temp_root/dump1.sql" "$temp_root/dump2.sql" | tee regression.diffs + # To aid debugging in pipelines, print the diff to stdout. Ignore + # whitespace, as above, to avoid misdirecting the troubleshoot...
Handle shmem init failures in cpu affinity setup code Failures to obtain or attach shared memory segments would lead to an exit without explanation of the exact cause. This change introduces a more verbose error message and tries to make the code continue without setting cpu affinity. Fixes
@@ -26,7 +26,7 @@ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIA DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIAB...
fix use printf format bug fix use printf format bug
@@ -55,7 +55,7 @@ int dfs_register(const struct dfs_filesystem_ops *ops) if (empty == NULL) { rt_set_errno(-ENOSPC); - LOG_E("There is no space to register this file system (%d).", ops->name); + LOG_E("There is no space to register this file system (%s).", ops->name); ret = -1; } else if (ret == RT_EOK)
Add detailed comments to TLS1.3 cryptol RFC implementation
@@ -21,6 +21,18 @@ module rfc_handshake_tls13 where import s2n_handshake_io +/** + * True if the given Parameters do not match the given connection, or if + * the sequence of handshake messages produced by s2n matches the sequence + * produced by the cryptol RFC implementation in this file. + * + * Why is this True if ...
document focusfollowsmouse in instantwmctrl
@@ -11,6 +11,7 @@ Commands: alttab layout <number>|<name> Change window layout to given argument, e.g. $0 layout monocle prefix + focusfollowsmouse Control if window focus will change with mouse movement allttag hidetags"
Coding: Mention name of Clang-Format 7 executable
@@ -191,7 +191,7 @@ For the basic use cases you can use `clang-format` directly. To do that, just ca ```sh # On some systems such as Debian the `cmake-format` executable also contains # the version number. For those systems, please replace `clang-format`, -# with `clang-format-6.0` in the command below. +# with `clang-...
idf.py: Add positional arguments to subcommands
@@ -599,6 +599,13 @@ def init_cli(): self.callback = wrapped_callback + class Argument(click.Argument): + """Positional argument""" + + def __init__(self, **kwargs): + names = kwargs.pop("names") + super(Argument, self).__init__(names, **kwargs) + class CLI(click.MultiCommand): """Action list contains all actions with ...
Initial import of YTAlloc
@@ -869,6 +869,9 @@ module _LINK_UNIT: _BASE_UNIT { "LOCKLESS" ? { PEERDIR+=library/malloc/lockless } + "YT" ? { + PEERDIR+=library/ytalloc/impl + } } } @@ -2869,10 +2872,11 @@ macro ADD_PERL_MODULE(Dir, Module) { ### Set memory allocator implementation for the PROGRAM()/DLL() module. ### This may only be specified for...
Don't rely on obscure printf features. They may not work on all platforms.
@@ -487,11 +487,16 @@ static void kshowcomp(void) { if (cols == 0) cols = 1; int current_col = 0; for (int i = 0; i < gbl_match_count; i++) { - if (current_col == 0) printf("\n"); - printf("%-*s", col_width, (const char *) gbl_matches[i].bytes); + if (current_col == 0) putc('\n', stdout); + JanetByteView s = gbl_matche...
CMake: Consider diff format for man page revert
@@ -24,16 +24,20 @@ if (NOT EXISTS "${OLD_MAN_PAGE_COPY}") endif (NOT EXISTS "${OLD_MAN_PAGE_COPY}") # We revert newly generated man pages, where only the date has changed. -execute_process (COMMAND ${DIFF_COMMAND} ${MANPAGE} ${OLD_MAN_PAGE_COPY} OUTPUT_VARIABLE DIFF_OUTPUT) -string (FIND "${DIFF_OUTPUT}" ">" DIFF_FIRS...
ci: include flash_project_args in artifacts
@@ -161,7 +161,7 @@ if [ "${TEST_TYPE}" = "unit_test" ]; then rm -rf ${dst} mkdir -p ${dst} - cp ${src}/{*.bin,*.elf,*.map,sdkconfig,flasher_args.json} ${dst}/ + cp ${src}/{*.bin,*.elf,*.map,sdkconfig,flasher_args.json,flash_project_args} ${dst}/ mkdir -p ${dst}/bootloader cp ${src}/bootloader/*.bin ${dst}/bootloader/
tests: remove invalid arguments passed to papi This changeset removes keys that are invalid in papi kwargs. Type: test
@@ -61,7 +61,6 @@ defaultmapping = { 'ip6nd_send_router_solicitation': {'irt': 1, 'mrt': 120, }, 'ip_add_del_route': {'next_hop_sw_if_index': 4294967295, 'next_hop_weight': 1, 'next_hop_via_label': 1048576, - 'next_hop_id': 4294967295, 'classify_table_index': 4294967295, 'is_add': 1, }, 'ip_mroute_add_del': {'is_add': ...
rune/libenclave: Update skeleton README.md 1. Add way to build and install rune. 2. Add way to configure rune to Docker runtimes.
@@ -32,6 +32,35 @@ docker build . -t liberpal-skeleton ``` # Run skeleton docker image +## Build and install rune +`rune` is a CLI tool for spawning and running enclaves in containers according to the OCI specification. + +Please refer to [this guide](https://github.com/alibaba/inclavare-containers#rune) to build `rune...
test MAINTENANCE deprecated function
#include <poll.h> #include <pthread.h> +#include <sched.h> #include <setjmp.h> #include <stdarg.h> #include <stdlib.h> @@ -6359,7 +6360,7 @@ module_yield_cb(sr_session_ctx_t *session, uint32_t sub_id, const char *module_n (void)private_data; /* yield to make any race conditions more evident */ - pthread_yield(); + sche...
HTTP server: always send "Accept-Ranges: bytes" along with Content-Length, some clients depend on it to determine seekability
@@ -1606,6 +1606,10 @@ int http_MakeMessage(membuffer *buf, int http_major_version, if (http_MakeMessage(buf, http_major_version, http_minor_version, "shc", "CONTENT-LENGTH: ", bignum) != 0) goto error_handler; + // Add accept ranges + if (http_MakeMessage(buf, http_major_version, http_minor_version, + "sc", "Accept-Ra...
io: removed call to deprecated function
#include <fluent-bit/tls/flb_tls.h> #include <fluent-bit/flb_socket.h> #include <fluent-bit/flb_upstream.h> +#include <fluent-bit/flb_downstream.h> #include <fluent-bit/flb_utils.h> #include <fluent-bit/flb_macros.h> @@ -164,7 +165,8 @@ int flb_io_net_connect(struct flb_connection *connection, #ifdef FLB_HAVE_TLS /* Ch...
Redirect EVP_DigestInit to EVP_DigestSignInit_ex if appropriate Prior to OpenSSL 3.0 calling EVP_DigestInit_ex() on an mdctx previously initialised with EVP_DigestSignInit() would retain information about the key, and re-initialise for another sign operation. To emulate that we redirect calls to EVP_DigestInit() to EVP...
@@ -140,6 +140,25 @@ int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) ENGINE *tmpimpl = NULL; #endif +#if !defined(FIPS_MODULE) + if (ctx->pctx != NULL + && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx) + && ctx->pctx->op.sig.sigprovctx != NULL) { + /* + * Prior to OpenSSL 3.0 calling EVP_DigestInit_e...
init/os_bringup: Add return value check when creating app init task WID:5130364 Return value of a function 'task_create' called at os_bringup.c:255 is not checked, but it is usually checked for this function (6/7).
@@ -257,6 +257,9 @@ static inline void os_do_appstart(void) #else pid = task_create("appinit", SCHED_PRIORITY_DEFAULT, CONFIG_SYSTEM_PREAPP_STACKSIZE, preapp_start, (FAR char *const *)NULL); #endif + if (pid < 0) { + svdbg("Failed to create application init thread\n"); + } #endif #ifdef CONFIG_TASK_MANAGER
remove useless comments, adjust init sequence for json-rpc
@@ -178,12 +178,8 @@ int xdag_init(int argc, char **argv, int isGui) printf("Transport module: "); if (xdag_transport_start(transport_flags, bindto, n_addrports, addrports)) return -1; - /* initialize log system */ if (xdag_log_init()) return -1; - /* initialize json rpc */ - if(is_rpc && xdag_rpc_service_init(rpc_port...
remove stdint.h from bison ([arc::pullid] 3fc187e5-be098470-3442f55b-3f5f12da)
- signal.h: contrib/tools/bison/gnulib/platform/win64/signal.h - spawn.h: contrib/tools/bison/gnulib/platform/win64/spawn.h - stdbool.h: contrib/tools/bison/gnulib/platform/win64/stdbool.h - - stdint.h: contrib/tools/bison/gnulib/platform/win64/stdint.h - sys/stat.h: contrib/tools/bison/gnulib/platform/win64/sys/stat.h...
Moved SSAT and USAT implementation to work for all compiler versions
@@ -448,40 +448,12 @@ __IAR_FT int32_t __REVSH(int32_t val) { return (r << sc); } - __STATIC_INLINE int32_t __SSAT(int32_t val, uint32_t sat) { - if ((sat >= 1U) && (sat <= 32U)) { - const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U); - const int32_t min = -1 - max ; - if (val > max) { - return max; - } else if (va...
fix buffer-overflow for WKTransferIncludeStatus
@@ -55,7 +55,7 @@ public class WKTransferIncludeStatus extends Structure { public abstract int toCore(); } - private static int WK_TRANSFER_STATUS_DETAILS_LENGTH = (63+1); + private static final int WK_TRANSFER_STATUS_DETAILS_LENGTH = (127+1); public int type; public byte[] details = new byte[WK_TRANSFER_STATUS_DETAILS...
Listen to Giel Bremmers ;-)
4. crawl the given locations and monitor file system changes `-> clap_preset_discovery_indexer.get_metadata() for each presets files - Then to load a preset, use ext/draft/preset-load.h - If the plugin do not implement preset-load (or similar extension for other plugin ABI), - then call the state loading mechanism with...
uncrustify: disable var alignment inside structs
@@ -926,7 +926,7 @@ align_var_class_thresh = 0 # number align_var_class_gap = 0 # number # The span for aligning struct/union (0=don't align) -align_var_struct_span = 4 # number +align_var_struct_span = 0 # number # The threshold for aligning struct/union member definitions (0=no limit) align_var_struct_thresh = 0 # nu...
audio: increase buffer size for audio device string
@@ -89,7 +89,7 @@ struct autx { struct auresamp resamp; /**< Optional resampler for DSP */ struct list filtl; /**< Audio filters in encoding order */ struct mbuf *mb; /**< Buffer for outgoing RTP packets */ - char device[64]; /**< Audio source device name */ + char device[128]; /**< Audio source device name */ void *sa...
ucode: refine acrn_update_ucode with copy_from_gva using copy_from_gva to refine function acrn_update_ucode v2: inject #PF if copy_from_gva meet -EFAULT remove VCPU_RETAIN_RIP when inject #PF refine MACRO GET_DATA_SIZE Acked-by: Eddie Dong
@@ -23,28 +23,28 @@ uint64_t get_microcode_version(void) * According to SDM vol 3 Table 9-7. If data_size field of uCode * header is zero, the ucode length is 2000 */ -#define GET_DATA_SIZE(hdptr) \ - ((hdptr)->data_size ? ((hdptr)->data_size) : 2000) +#define UCODE_GET_DATA_SIZE(uhdr) \ + (uhdr.data_size ? uhdr.data_s...
ocspapitest: properly check the return of memory-allocating functions
@@ -78,7 +78,10 @@ static OCSP_BASICRESP *make_dummy_resp(void) ASN1_BIT_STRING *key = ASN1_BIT_STRING_new(); ASN1_INTEGER *serial = ASN1_INTEGER_new(); - if (!X509_NAME_add_entry_by_NID(name, NID_commonName, MBSTRING_ASC, + if (!TEST_ptr(name) + || !TEST_ptr(key) + || !TEST_ptr(serial) + || !X509_NAME_add_entry_by_NID...
fix bash completion using list-commands
@@ -23,7 +23,7 @@ _kdb() { # only kdb was entered yet, print a list of available commands if [[ $COMP_CWORD -eq 1 ]]; then local IFS=$'\n' - local commands=($(${kdbpath} 2> /dev/null | sed -e '0,/^Known commands are/d' | awk '{print $1}' | sed -r "s/\x1B\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]//g" )) + local commands=($($...
schema compile CHANGE explicit cast to silence GCC
@@ -2717,7 +2717,7 @@ lys_compile_node_leaflist(struct lysc_ctx *ctx, struct lysp_node *node_p, int op } llist->min = llist_p->min; - llist->max = llist_p->max ? llist_p->max : -1; + llist->max = llist_p->max ? llist_p->max : (uint32_t)-1; ret = lys_compile_type(ctx, node_p, node_p->flags, ctx->mod->parsed, node_p->nam...
esp_https_ota: Fix counters for sending POST body Closes:
@@ -123,10 +123,10 @@ static esp_err_t _http_connect(esp_http_client_handle_t http_client) ESP_LOGE(TAG, "Write failed"); return ESP_FAIL; } - } post_len -= write_len; post_data += write_len; } + } header_ret = esp_http_client_fetch_headers(http_client); if (header_ret < 0) { return header_ret;
Add two lines to document quic grease bit usage.
@@ -698,7 +698,7 @@ int quic_client(const char* ip_address_text, int server_port, if (picoquic_get_cnx_state(cnx_client) == picoquic_state_client_almost_ready && notified_ready == 0) { if (picoquic_tls_is_psk_handshake(cnx_client)) { - fprintf(stdout, "The session was properly resumed!"); + fprintf(stdout, "The session...
common.c: fix define - use Gx Base for Gx defines avoid some potential issues later.
// Flash registers common to STM32G0 and STM32G4 series. #define STM32Gx_FLASH_REGS_ADDR ((uint32_t)0x40022000) -#define STM32Gx_FLASH_ACR (STM32G0_FLASH_REGS_ADDR + 0x00) -#define STM32Gx_FLASH_KEYR (STM32G0_FLASH_REGS_ADDR + 0x08) -#define STM32Gx_FLASH_OPTKEYR (STM32G0_FLASH_REGS_ADDR + 0x0c) -#define STM32Gx_FLASH_...
Add tests to check janet_table_remove behaviour
@@ -61,5 +61,11 @@ int table_test() { assert(janet_equals(janet_table_get(t2, janet_csymbolv("t2key1")), janet_wrap_integer(10))); assert(janet_equals(janet_table_get(t2, janet_csymbolv("t2key2")), janet_wrap_integer(100))); + assert(t2->count == 4); + assert(janet_equals(janet_table_remove(t2, janet_csymbolv("t2key1")...
[chainmaker][#531]modify tls macro
@@ -28,7 +28,7 @@ api_ethereum.h is header file for BoAT IoT SDK ethereum's interface. /*! @defgroup eth-api boat chainmaker-API * @{ */ -#define BOAT_CHAINMAKER_TLS_SUPPORT 1 //!< If need client support TLS, set it to 1. +#define BOAT_CHAINMAKER_TLS_SUPPORT BOAT_TLS_SUPPORT //!< If need client support TLS, set it to 1...
Safety modes that violate ISO26262 requirements are not compiled in RELEASE build
@@ -67,17 +67,19 @@ const safety_hook_config safety_hook_registry[] = { {SAFETY_ELM327, &elm327_hooks}, {SAFETY_GM, &gm_hooks}, {SAFETY_HONDA_BOSCH, &honda_bosch_hooks}, - {SAFETY_FORD, &ford_hooks}, - {SAFETY_CADILLAC, &cadillac_hooks}, {SAFETY_HYUNDAI, &hyundai_hooks}, {SAFETY_CHRYSLER, &chrysler_hooks}, - {SAFETY_TE...
apps/cmp.c: Improve order of -path option: just after -server
@@ -71,9 +71,9 @@ typedef enum { /* message transfer */ static char *opt_server = NULL; static char server_port[32] = { '\0' }; +static char *opt_path = NULL; static char *opt_proxy = NULL; static char *opt_no_proxy = NULL; -static char *opt_path = NULL; static int opt_msg_timeout = -1; static int opt_total_timeout = -...
add rules-requires-root
@@ -4,6 +4,7 @@ Priority: optional Maintainer: Marcus Hardt <packages@lists.kit.edu> Homepage: https://github.com/indigo-dc/oidc-agent/ Standards-Version: 4.5.0 +Rules-Requires-Root: no Build-Depends: debhelper-compat (= 9), fakeroot, devscripts,
fix build on ARM
@@ -381,7 +381,7 @@ arm_exidx_extract (struct dwarf_cursor *c, uint8_t *buf) return nbuf; } -int +static int arm_search_unwind_table (unw_addr_space_t as, unw_word_t ip, unw_dyn_info_t *di, unw_proc_info_t *pi, int need_unwind_info, void *arg)
needed to update the marks to read the new format
:- 'except:' %+ turn (sort ~(tap in mems.con) aor) |= a=@p - == (cat 3 ' ' (scot %p a)) + == ++ elem :: web display ;div ::;pre: {(trip (of-wain:format txt))} ++ txt |= txs/(pole @t) ~& %reading-config - ?> ?=([des=@t pub=@t vis=@t %'except:' mem=*] txs) - :^ (rash des.txs ;~(pfix (jest '> ') (cook crip (star next)))) ...
Correctly fix extra manifest folder.
@@ -23,14 +23,14 @@ $WindowsBuilds = @() $AllBuilds = @() foreach ($Platform in $Platforms) { - if ($Platform.FullName -eq "_manifest") { - continue; - } $PlatBuilds = Get-ChildItem -Path $Platform.FullName foreach ($PlatBuild in $PlatBuilds) { if (!(Test-Path $PlatBuild.FullName -PathType Container)) { continue; } + i...
display: use a separate ANSI code for vertical scrolling
#define ESC_RED "\033[31m" #define ESC_RESET "\033[0m" #define ESC_SCROLL(x, y) "\033[" #x ";" #y "r" +#define ESC_SCROLL_VERT(x) "\033[" #x "d" #define ESC_SCROLL_DISABLE "\033[?7h" #define ESC_SCROLL_ENABLE "\033[r" #define ESC_RESET_SETTINGS "\033[!p" @@ -268,7 +269,7 @@ static void display_displayLocked(honggfuzz_t...
Account for in-source builds, remove CMakeFiles dirs from plugin list
@@ -55,11 +55,11 @@ import pprint # Helper which saves a file to the test suite's logs directory. # # ----------------------------------------------------------------------------- -def saveLogFile(f, pluginType): +def saveLogFile(f): logdir = test_root_path("logs") if not os.path.isdir(logdir): os.mkdir(logdir) - logdi...
Update with changes from 0.3.7
OpenBLAS ChangeLog +==================================================================== +Version 0.3.7 +11-Aug 2019 + +common: + * having the gmake special variables TARGET_ARCH or TARGET_MACH + defined no longer causes build failures in ctest or utest + * defining NO_AFFINITY or USE_TLS to 0 in gmake builds no longer...
media: Fix build error because of invalid type casting
@@ -104,7 +104,7 @@ public: void onRecordBufferDataReached(MediaRecorder& mediaRecorder, std::shared_ptr<unsigned char> data, size_t size) { if (mfp != NULL) { - fwrite(data, sizeof(unsigned char), size, mfp); + fwrite((const void *)data.get(), sizeof(unsigned char), size, mfp); } std::cout << "onRecordBufferDataReache...
Add ACL editor generic mapping / inheritance support
@@ -448,6 +448,16 @@ HRESULT STDMETHODCALLTYPE PhSecurityInformation_MapGeneric( _Inout_ PACCESS_MASK Mask ) { + static GENERIC_MAPPING genericMappings = + { + FILE_GENERIC_READ, + FILE_GENERIC_WRITE, + FILE_GENERIC_EXECUTE, + FILE_ALL_ACCESS + }; + + RtlMapGenericMask(Mask, &genericMappings); + return S_OK; } @@ -457,...
Done what I can, canonicalization is still in flux.
@@ -222,12 +222,12 @@ static uint8_t s2n_verify_host_information(struct s2n_x509_validator *validator, if (ip_addr_len == 4) { struct sockaddr_in s = {0}; s.sin_family = AF_INET; - memcpy(&s.sin_addr.s_addr, ip_addr, ip_addr_len); + memcpy_check(&s.sin_addr.s_addr, ip_addr, ip_addr_len); address_ptr = inet_ntop(AF_INET...
otatool: Fix incorrect using otadata.seq&crc in switch_ota_partition cmd Closes:
@@ -85,9 +85,8 @@ class OtatoolTarget(): seq = bytearray(self.otadata[start:start + 4]) crc = bytearray(self.otadata[start + 28:start + 32]) - seq = struct.unpack('>I', seq) - crc = struct.unpack('>I', crc) - + seq = struct.unpack('I', seq) + crc = struct.unpack('I', crc) info.append(otadata_info(seq[0], crc[0])) retur...
extmod/moductypes: Implement __int__ for PTR. Allows to get address a pointer contains, as an integer.
@@ -614,6 +614,25 @@ STATIC mp_obj_t uctypes_struct_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_ob } } +STATIC mp_obj_t uctypes_struct_unary_op(mp_unary_op_t op, mp_obj_t self_in) { + mp_obj_uctypes_struct_t *self = MP_OBJ_TO_PTR(self_in); + switch (op) { + case MP_UNARY_OP_INT: + if (MP_OBJ_IS_TYPE(self->desc, &mp_...
EVP_PKEY_derive_set_peer_ex: Export the peer key to proper keymgmt The peer key has to be exported to the operation's keymgmt not the ctx->pkey's keymgmt. Fixes
@@ -306,7 +306,7 @@ int EVP_PKEY_derive_init_ex(EVP_PKEY_CTX *ctx, const OSSL_PARAM params[]) /* * Ensure that the key is provided, either natively, or as a cached * export. We start by fetching the keymgmt with the same name as - * |ctx->pkey|, but from the provider of the exchange method, using + * |ctx->keymgmt|, bu...
refactor: add early returns for http-common.c function set_method, for methods that will never use postfields
@@ -179,14 +179,13 @@ set_method(CURL *ehandle, enum http_method method, struct sized_buffer *req_body case HTTP_GET: ecode = curl_easy_setopt(ehandle, CURLOPT_HTTPGET, 1L); ASSERT_S(CURLE_OK == ecode, curl_easy_strerror(ecode)); - break; + return; /* EARLY RETURN */ case HTTP_POST: curl_easy_setopt(ehandle, CURLOPT_PO...
ectool: add 'kbinfo' command We might use this in the kernel, so it's nice to have a diagnostic command for it too. BRANCH=none TEST=`ectool kbinfo` on kevin and scarlet
@@ -156,6 +156,8 @@ const char help_str[] = " Get info about USB type-C accessory attached to port\n" " inventory\n" " Return the list of supported features\n" + " kbinfo\n" + " Dump keyboard matrix dimensions\n" " keyscan <beat_us> <filename>\n" " Test low-level key scanning\n" " led <name> <query | auto | off | <colo...
Link Checker: Ignore specific API links
@@ -15,6 +15,8 @@ NUMTHREADS=10 check() { # Ignore links that contain version placeholder echo "$1" | grep -Eq 'doc/news/_preparation_next_release\.md.*<<VERSION>>' && return + # TODO: Fix Doxygen build upload for latest version of documentation + echo "$1" | grep -Eq 'https://doc\.libelektra\.org/api/latest/html' && r...
Only erase FLASH_BANK_2 when available Some parts in the STM32L4xx family do not have a FLASH_BANK_2. (The STM32L432 for example) This results in a compile error. Added #define to prevent this.
@@ -36,11 +36,16 @@ stm32_mcu_flash_erase_sector(const struct hal_flash *dev, uint32_t sector_addres if (!(sector_address & (_FLASH_SECTOR_SIZE - 1))) { eraseinit.TypeErase = FLASH_TYPEERASE_PAGES; +#ifdef FLASH_BANK_2 if ((sector_address - dev->hf_base_addr) < (_FLASH_SIZE / 2)) { eraseinit.Banks = FLASH_BANK_1; - } e...
validator: skip stubbed messages
@@ -112,6 +112,9 @@ def validate_bitfields( def validate_fields(filename: str, previous_fields: dict, current_fields: dict) -> None: + if "stub" in [list(K.keys())[0] for K in previous_fields]: + logging.warning("Found stubbed message, skipping validation check...") + return if len(previous_fields) != len(current_field...
Correctly find the . char
@@ -88,7 +88,8 @@ bool resolvePath(char *directory, char *path, char *ret) { ObjString *getDirectory(DictuVM *vm, char *source) { // Slight workaround to ensure only .du files are the ones // attempted to be found. - if (vm->repl || source[-3] != '.') { + int len = strlen(source); + if (vm->repl || len < 4 || source[le...
mem: do not produce usage counts when tsan is unavailable. Doing the tsan operations under lock would be difficult to arrange here (locks require memory allocation).
@@ -26,11 +26,17 @@ static CRYPTO_free_fn free_impl = CRYPTO_free; #if !defined(OPENSSL_NO_CRYPTO_MDEBUG) && !defined(FIPS_MODULE) # include "internal/tsan_assist.h" +# ifdef TSAN_REQUIRES_LOCKING +# define INCREMENT(x) /* empty */ +# define LOAD(x) 0 +# else /* TSAN_REQUIRES_LOCKING */ static TSAN_QUALIFIER int malloc...
Configurations/descrip.mms.tmpl: Add another inclusion hack crypto/ec/curve448/ has a series of inclusions that throws VMS C off, so we compensate for it the same way as we have done before. Fixes
$unified_info{after}->{$obj} = qq(deassign arch); } + my $sd32 = sourcedir("crypto", "ec", "curve448", "arch_32"); + my $sd64 = sourcedir("crypto", "ec", "curve448", "arch_64"); + foreach (grep /\[\.crypto\.ec\.curve448.*?\].*?\.o$/, keys %{$unified_info{sources}}) { + my $obj = platform->obj($_); + $unified_info{befor...
Checked and repaired with styleguide
@@ -27,12 +27,12 @@ TVector<TVector<double>> TDocumentImportancesEvaluator::GetDocumentImportances(c TVector<TVector<double>> documentImportances(DocCount, TVector<double>(pool.Docs.GetDocCount())); const ui32 docDivider = 1000; - size_t docBlockSize = DocCount < docDivider ? CB_THREAD_LIMIT : CB_THREAD_LIMIT * (CeilDi...
Added replaces for old mangohud package names to PKGBUILD
@@ -5,6 +5,7 @@ pkgdesc="Vulkan overlay layer to display information about the application" arch=('x86_64') makedepends=('gcc' 'meson' 'python-mako' 'libx11' 'lib32-libx11') depends=('glslang' 'libglvnd' 'lib32-libglvnd' 'vulkan-headers') +replaces=('vulkan-mesa-layer-mango' 'lib32-mesa-layer-mango') url="https://githu...
naive: L2 csv thread refactor filters just some cleaning, no semantic difference
%- %- slog :_ ~ leaf+"processing {<net>} ethereum logs with {<(lent logs)>} total events, of which {<(lent l2-logs)>} are l2 events" =/ blocks=(list @ud) (get-block-numbers l2-logs) - ;< out=(list [block=@ud timestamp=@da]) bind:m (get-timestamps blocks) - (pure:m !>(out)) + ::;< out=(list [block=@ud timestamp=@da]) bi...
`memset` is faster than realloc (first impression) The `memset` vs. `realloc` battle should be tested a bit more, but for now it seems that this is a better strategy.
@@ -248,11 +248,8 @@ struct fio_hash_s { #define FIO_HASH_FOR_EMPTY(hash, container) \ for (fio_hash_data_ordered_s *container = (hash)->ordered; \ (container && !FIO_HASH_KEY_ISINVALID(container->key)) || \ - (((hash)->pos = (hash)->count = 0) != 0 || \ - (FIO_HASH_FREE((hash)->map), \ - ((hash)->map = (fio_hash_data_...
YAML: Remove unnecessary attributes
@@ -40,7 +40,7 @@ static inline KeySet * contractYaml () // ==================== /** @see elektraDocGet */ -int elektraYamlGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned ELEKTRA_UNUSED, Key * parentKey ELEKTRA_UNUSED) +int elektraYamlGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key * parentKey) { if ...
kazuho's correction
@@ -3333,9 +3333,11 @@ static int handle_ack_frame(quicly_conn_t *conn, size_t epoch, quicly_ack_frame_ quicly_loss_on_ack_received(&conn->egress.loss, frame->largest_acknowledged, latest_rtt, ack_delay); + if (largest_newly_acked.packet_number != UINT64_MAX) + quicly_loss_on_newly_acked(&conn->egress.loss); + /* OnPac...
Clear exception when OP_RETURN
@@ -1361,8 +1361,9 @@ static inline int op_return( mrbc_vm *vm, mrbc_value *regs ) regs[0] = regs[a]; regs[a].tt = MRBC_TT_EMPTY; - STOP_IF_TOPLEVEL(); + vm->exc = mrbc_nil_value(); + STOP_IF_TOPLEVEL(); mrbc_pop_callinfo(vm);
main: add tcmu_load_config error check and clean up the code
@@ -467,9 +467,9 @@ static int load_our_module(void) { struct kmod_list *list = NULL, *itr; struct kmod_ctx *ctx; - int ret; struct stat sb; struct utsname u; + int ret; ctx = kmod_new(NULL, NULL); if (!ctx) { @@ -562,10 +562,10 @@ static void cmdproc_thread_cleanup(void *arg) static void *tcmur_cmdproc_thread(void *ar...
Add support for displaying behave test output for easier debugging of the build failures
@@ -36,7 +36,7 @@ class PulseBuildResult puts "\n=== Artifacts ===\n" @build_artifacts.each do |artifact| artifact_name = artifact["name"] - next unless artifact_name =~ /\.log/ + next unless (artifact_name =~ /\.log/ || artifact_name =~ /\.out/) # convert "Test Results (results.log) into 'results.log'" artifact_name.g...
Add flush support for qcow Adds flush support to the qcow handler. Removes O_SYNC flag and unconditionally sets WCE=1 for qcow.
@@ -1407,11 +1407,11 @@ static int qcow_open(struct tcmu_device *dev) tcmu_dbg("%s\n", config); /* - * We do not implement flush, so set WCE=0 and do sync IO. + * Force WCE=1 until we support reconfig for WCE */ - tcmu_set_dev_write_cache_enabled(dev, 0); + tcmu_set_dev_write_cache_enabled(dev, 1); - if (bdev_open(bdev...
sse: add a shuffle implementation of simde_mm_movehl_ps
@@ -2311,10 +2311,14 @@ simde_mm_movehl_ps (simde__m128 a, simde__m128 b) { a_ = simde__m128_to_private(a), b_ = simde__m128_to_private(b); + #if defined(SIMDE__SHUFFLE_VECTOR) + r_.f32 = SIMDE__SHUFFLE_VECTOR(32, 16, a_.f32, b_.f32, 6, 7, 2, 3); + #else r_.f32[0] = b_.f32[2]; r_.f32[1] = b_.f32[3]; r_.f32[2] = a_.f32[...
Skip newline translation on csv write
# SPDX-License-Identifier: Apache-2.0 # ----------------------------------------------------------------------------- -# Copyright 2020 Arm Limited +# Copyright 2020-2022 Arm Limited # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. Yo...
Tests for sending too much data after set lengths We previously had tests for not sending enough (additional) data, but were missing tests for sending too much. I have added these to the state tests, as I don't think this is complex enough to deserve a standalone test.
@@ -4407,6 +4407,40 @@ void aead_multipart_state_test( int key_type_arg, data_t *key_data, psa_aead_abort( &operation ); + /* Test for sending too much additional data after setting lengths. */ + + operation = psa_aead_operation_init( ); + + PSA_ASSERT( psa_aead_encrypt_setup( &operation, key, alg ) ); + + PSA_ASSERT( ...
hw: mcu: kinetis: clean commented out flash code Remove commented out code in kinetis_flash_write.
@@ -114,8 +114,6 @@ kinetis_flash_write(const struct hal_flash *dev, } } return 0; - /* return FLASH_Program(&kinetis_config, address, (uint8_t *)src, len) == */ - /* kStatus_Success ? 0 : -1; */ } static int
test-suite: add llvm5 as viable compiler family
@@ -34,6 +34,11 @@ elif test "x$LMOD_FAMILY_COMPILER" = "xllvm4"; then CXX=clang++ FC=flang AC_MSG_RESULT([llvm4]) +elif test "x$LMOD_FAMILY_COMPILER" = "xllvm5"; then + CC=clang + CXX=clang++ + FC=flang + AC_MSG_RESULT([llvm4]) elif test "x$LMOD_FAMILY_COMPILER" = "xintel"; then CC=icc CXX=icpc
fix(memory leak): Should use "mbedtls_ecp_keypair_free" to release the key.
@@ -430,7 +430,7 @@ BOAT_RESULT BoatSignature(BoatWalletPriKeyCtx prikeyCtx, mbedtls_ctr_drbg_free(&ctr_drbg); mbedtls_pk_free(&mbedtls_pkCtx); if(ecPrikey != NULL){ - BoatFree(ecPrikey); + mbedtls_ecp_keypair_free(ecPrikey); } return result;
[numerics] NM_LU_*: sha1 for NM_{DENSE,SPARSEBLOCK} + codacy attempt
@@ -4597,13 +4597,28 @@ bool NM_check_values_sha1(NumericsMatrix* A) char* digest = NM_values_sha1(A); NM_compute_values_sha1(A, current_digest); - return (bool) !memcmp(digest, current_digest, SHA_DIGEST_LENGTH); + + if (memcmp(digest, current_digest, SHA_DIGEST_LENGTH) == 0) + { + return true; + } + else + { + return...
Fix certificate and key test.
@@ -4470,6 +4470,7 @@ int set_certificate_and_key_test() /* Proceed with the connection loop. */ if (ret == 0) { + picoquic_enforce_client_only(test_ctx->qserver, 0); ret = tls_api_connection_loop(test_ctx, &loss_mask, 0, &simulated_time); } @@ -5261,7 +5262,6 @@ int client_error_test() int client_only_test() { uint64_...
Fix typo in example (parameters were mixed)
@@ -67,7 +67,7 @@ Wrapper to createServer() which also connects to the WiFi channel. #### Example ```Lua -require("ftpserver").open('myWifi', 'wifiPassword', 'user', 'password') +require("ftpserver").open('user', 'password', 'myWifi', 'wifiPassword') ``` ## close()