message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix formatting and message re-use
@@ -433,21 +433,22 @@ notationDecl(void *userData, { XmlwfUserData *data = (XmlwfUserData *)userData; NotationList *entry = malloc(sizeof(NotationList)); + const char *errorMessage = "Unable to store NOTATION for output\n"; if (entry == NULL) { - fprintf(stderr, "Unable to store NOTATION for output\n"); + fputs(errorMe...
docs/library/uio: Remove description of uio.open(). Given that this function is exact alias of builtins.open(), it makes no sense to expose it thru uio module too, increasing binary code size. So, deprecate such usage and remove it from docs.
@@ -186,15 +186,6 @@ described here. for stream operations. If an operation is not completed in the time alloted, ``OSError(ETIMEDOUT)`` is raised. -Functions ---------- - -.. function:: open(name, mode='r', **kwargs) - - Open a file. Builtin ``open()`` function is aliased to this function. - All ports (which provide a...
kdb: fix kdbGet global postgetstorage parent key
@@ -894,6 +894,8 @@ int kdbGet (KDB * handle, KeySet * ks, Key * parentKey) splitMerge (split, ks); } + keySetName (parentKey, keyName (initialParent)); + elektraGlobalGet (handle, ks, parentKey, POSTGETSTORAGE, INIT); elektraGlobalGet (handle, ks, parentKey, POSTGETSTORAGE, MAXONCE); elektraGlobalGet (handle, ks, pare...
zonemd, unbound-control auth_zone_reload errors when ZONEMD fails.
@@ -2566,14 +2566,17 @@ do_auth_zone_reload(RES* ssl, struct worker* worker, char* arg) auth_zone_verify_zonemd(z, &worker->env, &worker->env.mesh->mods, &reason, 0, 0); if(reason && z->zone_expired) { + lock_rw_unlock(&z->lock); (void)ssl_printf(ssl, "error zonemd for %s failed: %s\n", arg, reason); + free(reason); + ...
VERSION bump to version 2.0.215
@@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 214) +set(LIBYANG_MICRO_VERSION 215) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}...
moved dump_a_chip to debug output, minor code style fix
static struct stlink_chipid_params *devicelist; -void dump_a_chip (FILE *fp, struct stlink_chipid_params *dev) { - fprintf(fp, "# Device Type: %s\n", dev->dev_type); - fprintf(fp, "# Reference Manual: RM%s\n", dev->ref_manual_id); - fprintf(fp, "#\n"); - fprintf(fp, "chip_id 0x%x\n", dev->chip_id); - fprintf(fp, "flash...
OcAppleKernelLib: Verify VTable length only via extern relocs.
@@ -565,7 +565,7 @@ InternalInitializeVtablePatchData ( ++EntryOffset ) { if (VtableData[EntryOffset] == 0) { - Result = MachoGetSymbolByRelocationOffset64 ( + Result = MachoGetSymbolByExternRelocationOffset64 ( MachoContext, (VtableSymbol->Value + (EntryOffset * sizeof (*VtableData))), &Symbol
Fixed a few minor typos in the comments for the C++ wrapper classes
@@ -58,7 +58,7 @@ namespace details { /** * Recursive interface type for defining the interface functions for `MessageHandler`. * - * These types define a virtual `operator()` for handling a specific SBP message type, + * These types define a virtual `handle_sbp_msg()` for handling a specific SBP message type, * as wel...
Fix external/pstdint.h header in Autotools.
@@ -34,6 +34,11 @@ libtcodgui_la_CXXFLAGS = $(CXXFLAGS) -I$(top_srcdir)/../../include/gui libtcodgui_la_LIBADD = libtcodxx.la libtcod.la +externalincludedir = $(includedir)/libtcod/external +externalinclude_HEADERS = \ + ../../include/external/pstdint.h + + otherincludedir = $(includedir)/libtcod/gui otherinclude_HEADE...
CLI save injected code
@@ -2993,6 +2993,9 @@ void initConsole(Console* console, tic_mem* tic, FileSystem* fs, Config* config, else if(strcmp(arg, "-skip") == 0) console->skipStart = true; + else if(strcmp(arg, "-save") == 0) + saveCart(console); + else continue; argp |= 0b1 << i;
Optimize greater1 encoding loop Calculating the c1 variable need not be a serial operation!
@@ -584,29 +584,34 @@ void kvz_encode_coeff_nxn_avx2(encoder_state_t * const state, ctx_set++; } - c1 = 1; - base_ctx_mod = (type == 0) ? &(cabac->ctx.cu_one_model_luma[4 * ctx_set]) : &(cabac->ctx.cu_one_model_chroma[4 * ctx_set]); num_c1_flag = MIN(num_non_zero, C1FLAG_NUMBER); first_c2_flag_idx = -1; + + /* + * c1s_...
Default output to stdout if no output directory was specified
@@ -206,27 +206,24 @@ void usage_formats() FILE * open_outfile(const char * cid_name, const char * binlog_name, const char * out_dir, const char * out_ext) { - int ret = 0; + if (out_dir == NULL) { + return stdout; + } char filename[512]; - if (ret == 0) { - if (out_dir != NULL) { - ret = picoquic_sprintf(filename, siz...
hv: remove UEFI_OS_LOADER_NAME from Kconfig Since UEFI boot is no longer supported.
@@ -334,14 +334,6 @@ config L1D_FLUSH_VMENTRY_ENABLED bool "Enable L1 cache flush before VM entry" default n -config UEFI_OS_LOADER_NAME - string "UEFI OS loader name" - default "\\EFI\\BOOT\\bootx64.efi" - help - Name of the UEFI bootloader that starts the Service VM. This is - typically the systemd-boot or Grub bootl...
use also ESSIDs with two characters length
@@ -592,7 +592,7 @@ static void writeessidsweeped(FILE *fhout, uint8_t essidlen, uint8_t *essid) static int l1, l2; static uint8_t sweepstring[PSKSTRING_LEN_MAX] = {}; -for(l1 = 3; l1 <= essidlen; l1++) +for(l1 = 2; l1 <= essidlen; l1++) { for(l2 = 0; l2 <= essidlen -l1; l2++) { @@ -600,7 +600,7 @@ for(l1 = 3; l1 <= es...
CUPS_EXE_FILE_PERM: also match host_os_name on *-gnu, to also catch kfreebsd-gnu Debian's kfreebsd-gnu architectures (kfreebsd-amd64 and kfreebsd-i386) work as Debian/GNU systems, hence with a 755 CUP_EXE_FILE_PERM, not 555
@@ -53,7 +53,7 @@ dnl Default executable file permissions AC_ARG_WITH(exe_file_perm, [ --with-exe-file-perm set default executable permissions value, default=0555], CUPS_EXE_FILE_PERM="$withval", [case "$host_os_name" in - linux* | gnu*) + linux* | gnu* | *-gnu) CUPS_EXE_FILE_PERM="755" ;; *)
Clean default scenario
@@ -70,40 +70,6 @@ void Init_Context(void) // Fill basic messages Init_Messages(); - // * Msg buffer is filled with 3 Tx messages - // * Each message is filled with 7 bytes for header + 64 data bytes (0,1,2,3...) + 64 data bytes to 0 - // - // msg_buffer - // +-----------------------------------+ - // | Msg Tx | Msg Tx...
try building oidc-agent-desktop without replacing oidc-agent
@@ -65,7 +65,7 @@ Depends: ${misc:Depends}, oidc-agent-cli, xterm | x-terminal-emulator, yad -Replaces: oidc-agent (<= 4.0.2-1), oidc-agent-prompt (<= 4.0.2-1) +Replaces: oidc-agent-prompt (<= 4.0.2-1) Description: oidc-agent desktop integration Desktop integration files for oidc-gen and oidc-agent and for creating the...
[bsp][imxrt1052-evk]: fix parameter type incompatible error
@@ -234,7 +234,7 @@ static void _search_i2c_device(rt_device_t dev, uint8_t cmd) msgs[0].addr = i; msgs[1].addr = i; - len = rt_i2c_transfer(dev, msgs, 2); + len = rt_i2c_transfer((struct rt_i2c_bus_device *)dev, msgs, 2); if (len == 2) { count++;
pyapi CHANGE do not cover libyang messaging in own printer
@@ -172,6 +172,7 @@ static struct PyModuleDef ncModule = { PyMODINIT_FUNC PyInit_netconf2(void) { + void* clb; PyObject *nc; /* import libyang Python module to have it available */ @@ -187,7 +188,9 @@ PyInit_netconf2(void) */ /* set print callback */ + clb = ly_get_log_clb(); nc_set_print_clb(clb_print); + ly_set_log_c...
Use empty class when NME_APPLOVIN_KEY is not specified
package org.haxe.nme; + +::if NME_APPLOVIN_KEY:: + import com.applovin.sdk.AppLovinSdk; import com.applovin.sdk.AppLovinSdkConfiguration; import com.applovin.sdk.AppLovinAdRewardListener; @@ -10,6 +13,7 @@ import com.applovin.adview.AppLovinInterstitialAd; import com.applovin.adview.AppLovinInterstitialAdDialog; import...
Add !BUILD_PROTECTED && !BUILD_KERNEL dependency for ENABLE_STACKMONITOR flag This feature internally uses kernel data structures and thus should not be enabled during kernel build(BUILD_KERNEL) and protected build (BUILD_PROTECTED)
@@ -107,12 +107,13 @@ config ENABLE_PS config ENABLE_STACKMONITOR bool "Stack monitor" default n + depends on !BUILD_PROTECTED && !BUILD_KERNEL select STACK_COLORATION ---help--- The stack monitor is a daemon that will periodically assess stack usage by all tasks and threads in the system. This feature depends on inter...
fix typeroute~ prototype
@@ -22,11 +22,9 @@ static t_int *typeroute_perform(t_int *w) int nblock = (int)(w[2]); t_float *in = (t_float *)(w[3]); t_float *out = (t_float *)(w[4]); - t_float sig; while (nblock--) { - sig = *in1++; - *out++ = sig; + *out++ = *in++; } return (w + 5); } @@ -50,11 +48,11 @@ void typeroute_tilde_setup(void) { typerou...
docs: Fix typo in naming the Celsius family
@@ -78,7 +78,7 @@ is: - NV1 family: NV1 - NV3 (aka RIVA) family: NV3, NV3T - NV4 (aka TNT) family: NV4, NV5 -- Calsius family: NV10, NV15, NV1A, NV11, NV17, NV1F, NV18 +- Celsius family: NV10, NV15, NV1A, NV11, NV17, NV1F, NV18 - Kelvin family: NV20, NV2A, NV25, NV28 - Rankine family: NV30, NV35, NV31, NV36, NV34 - Cur...
Analysis workflow, also fix other makefiles.
@@ -291,9 +291,19 @@ jobs: cd expat-2.2.10 echo "./configure SHELL=/usr/bin/bash CONFIG_SHELL=/usr/bin/bash --prefix=\"$prepath/expat\" --exec-prefix=\"$prepath/expat\" --bindir=\"$prepath/expat/bin\" --includedir=\"$prepath/expat/include\" --mandir=\"$prepath/expat/man\" --libdir=\"$prepath/expat/lib\"" ./configure SH...
let linop_sum use md_zsum
@@ -34,6 +34,8 @@ struct sum_data { long *imgd_strs; long *img_strs; + + unsigned long flags; }; static DEF_TYPEID(sum_data); @@ -58,6 +60,7 @@ static struct sum_data* sum_create_data(int N, const long imgd_dims[N], unsigned long level_dims[N]; md_select_dims(N, flags, level_dims, imgd_dims); + data->flags = flags; dat...
[mod_fastcgi] move delayed connect() into switch() move delayed connect() handling into switch()
@@ -2120,22 +2120,7 @@ static handler_t fcgi_write_request(server *srv, handler_ctx *hctx) { int ret; - /* we can't handle this in the switch as we have to fall through in it */ - if (hctx->state == FCGI_STATE_CONNECT_DELAYED) { - int socket_error = fdevent_connect_status(hctx->fd); - if (socket_error != 0) { - fcgi_pr...
make sure we return 0 from __clone
@@ -1002,8 +1002,9 @@ void patchClone() printf("mprotect failed\n"); } - uint8_t ass[1] = { - 0xc3 //retq + uint8_t ass[6] = { + 0xc3, // retq + 0xb8, 0x00, 0x00, 0x00, 0x00 // mov $0x0,%eax }; memcpy(clone, ass, sizeof(ass));
[core] con->uri.scheme is maintained lowercase con->uri.scheme is maintained lowercase "http" or "https" so scheme string comparisons need not be case-insensitive
@@ -78,7 +78,7 @@ int http_response_buffer_append_authority(server *srv, connection *con, buffer * { unsigned short listen_port = sock_addr_get_port(&our_addr); unsigned short default_port = 80; - if (buffer_is_equal_caseless_string(con->uri.scheme, CONST_STR_LEN("https"))) { + if (buffer_is_equal_string(con->uri.schem...
dnstap io, cast void unused return value.
@@ -158,17 +158,17 @@ char* fstrm_describe_control(void* pkt, size_t len) } frametype = sldns_read_uint32(pkt); if(frametype == FSTRM_CONTROL_FRAME_ACCEPT) { - sldns_str_print(&str, &slen, "accept"); + (void)sldns_str_print(&str, &slen, "accept"); } else if(frametype == FSTRM_CONTROL_FRAME_START) { - sldns_str_print(&s...
build: adding prototype enumeration for error types
# define LIBFEC_ENABLED 1 #endif +// error handling +#if 0 +#define LIQUID_ERROR_STRLEN (256); +extern int liquid_errval; +extern char liquid_errstr[LIQUID_ERROR_STRLEN]; +#endif + +// basic error types +typedef enum { + // everything ok + LIQUID_OK=0, + + // invalid parameter, or configuration; examples: + // - settin...
Prototype set_blocking_action()
@@ -2808,6 +2808,7 @@ int check_blocking_chance(entity *ent); int check_blocking_conditions(entity *ent, entity *other, s_collision_attack *attack); int check_blocking_eligible(entity *ent, entity *other, s_collision_attack *attack); int check_blockpain(entity *ent, s_collision_attack *attack); +void set_blocking_actio...
Fixed wrong NID in SceDisplay
@@ -1153,7 +1153,7 @@ modules: ksceDisplayRegisterVblankStartCallback: 0x7FB0BD28 ksceDisplayRegisterVblankStartCallbackInternal: 0x4AE2A2B1 ksceDisplaySetBrightness: 0x9E3C6DC6 - ksceDisplaySetDisplayColorSpaceMode: 0x8D79D187 + ksceDisplaySetColorSpaceMode: 0x8D79D187 ksceDisplaySetFrameBuf: 0x289D82FE ksceDisplaySet...
Set temporary verbose mode for libcurl
@@ -32,6 +32,7 @@ ebi::util::curl::Easy::Easy() { curl_global_init(CURL_GLOBAL_DEFAULT); curlHandle = curl_easy_init(); if ( curlHandle ) { + curl_easy_setopt(curlHandle, CURLOPT_VERBOSE, 1L); // TODO: remove this curl_easy_setopt(curlHandle, CURLOPT_SSL_VERIFYPEER, 0L); curl_easy_setopt(curlHandle, CURLOPT_SSL_VERIFYH...
tools: acrn-manager: update Makefile Update the Makefiel to sync the compiler options with devicemode and enable options to harden software. Acked-by: Eddie Dong
+T := $(CURDIR) +OUT_DIR ?= $(shell mkdir -p $(T)/build;cd $(T)/build;pwd) +CC ?= gcc -OUT_DIR ?= . +CFLAGS := -g -O0 -std=gnu11 +CFLAGS += -D_GNU_SOURCE +CFLAGS += -DNO_OPENSSL +CFLAGS += -m64 +CFLAGS += -Wall -ffunction-sections +CFLAGS += -Werror +CFLAGS += -O2 -D_FORTIFY_SOURCE=2 +CFLAGS += -Wformat -Wformat-securi...
possibel fix for endianess error
@@ -3994,10 +3994,10 @@ if(linktype == DLT_IEEE802_11_RADIO) return; } rth = (rth_t*)capptr; - #ifdef BIG_ENDIAN_HOST - rth->it_len = byte_swap_16(rth->it_len); - rth->it_present = byte_swap_32(rth->it_present); - #endif +// #ifdef BIG_ENDIAN_HOST +// rth->it_len = byte_swap_16(rth->it_len); +// rth->it_present = byte_...
include/charge_ramp.h: Format with clang-format BRANCH=none TEST=none
#include "timer.h" /* Charge ramp state used for checking VBUS */ -enum chg_ramp_vbus_state { - CHG_RAMP_VBUS_RAMPING, - CHG_RAMP_VBUS_STABLE -}; +enum chg_ramp_vbus_state { CHG_RAMP_VBUS_RAMPING, CHG_RAMP_VBUS_STABLE }; /** * Check if VBUS is too low @@ -81,11 +78,15 @@ int chg_ramp_is_detected(void); * @voltage Negot...
add (noreplace) to %config option for slurm.conf to avoid squashing admin edits
@@ -891,7 +891,7 @@ rm -rf $RPM_BUILD_ROOT # 9/8/14 karl.w.schulz@intel.com - provide starting config file %if 0%{?OHPC_BUILD} -%config %{_sysconfdir}/slurm.conf +%config (noreplace) %{_sysconfdir}/slurm.conf %endif # 11/13/14 karl.w.schulz@intel.com - include systemd files
CMake: macOS move_lib supports imported libraries;
@@ -705,17 +705,17 @@ elseif(APPLE) function(move_lib) if(TARGET ${ARGV0}) get_target_property(TARGET_TYPE ${ARGV0} TYPE) - if(${TARGET_TYPE} STREQUAL "MODULE_LIBRARY") + if(${TARGET_TYPE} STREQUAL "SHARED_LIBRARY") add_custom_command(TARGET move_files POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy - $<TARGET_FILE:${ARGV0...
docs/esp32: Mention Signal in GPIO section of quickref.
@@ -171,6 +171,10 @@ Notes: * The pull value of some pins can be set to ``Pin.PULL_HOLD`` to reduce power consumption during deepsleep. +There's a higher-level abstraction :ref:`machine.Signal <machine.Signal>` +which can be used to invert a pin. Useful for illuminating active-low LEDs +using ``on()`` or ``value(1)``. ...
Comment change: exclude more unreachable code from coverage
@@ -1318,7 +1318,7 @@ XmlUtf8Encode(int c, char *buf) buf[3] = (char)((c & 0x3f) | 0x80); return 4; } - return 0; + return 0; /* LCOV_EXCL_LINE: this case too is eliminated before calling */ } int FASTCALL
out_stdout: create buffer for tag
@@ -213,6 +213,7 @@ static void cb_stdout_flush(void *data, size_t bytes, size_t off = 0, cnt = 0; struct flb_out_stdout_config *ctx = out_context; char *json = NULL; + char *buf = NULL; uint64_t json_len; (void) i_ins; @@ -227,15 +228,24 @@ static void cb_stdout_flush(void *data, size_t bytes, fflush(stdout); } else {...
vere: avoids allocations by attempting synchronous terminal writes
@@ -313,11 +313,13 @@ _term_tcsetattr(c3_i fil_i, c3_i act_i, const struct termios* tms_u) return ret_i; } -/* _term_write_cb(): general write callback. +/* _term_it_write_cb(): general write callback. */ static void -_term_write_cb(uv_write_t* wri_u, c3_i sas_i) +_term_it_write_cb(uv_write_t* wri_u, c3_i sas_i) { + //...
SOVERSION bump to version 2.8.6
@@ -63,7 +63,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 8) -set(LIBYANG_MICRO_SOVERSION 5) +set(LIBYANG_MICRO_SOVERSION 6) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI...
Completions: Improve code to detect options
@@ -18,6 +18,20 @@ function __join -d 'Join variables into one variable using a given separator' echo $joined end +function __includes_options -d 'Check if the values starting at position 3 contain the options specified at position one and two' + set -l opt_long $argv[1] + set -l opt_short $argv[2] + set -l input $argv...
Fixed compiler warnings when no music used
@@ -281,10 +281,10 @@ const compile = async ( .join(`\n`) + `\n` + `const unsigned char * music_tracks[] = {\n` + - (music.map(track => track.dataName + "_Data").join(", ") || 0) + + (music.map(track => track.dataName + "_Data").join(", ") || "0, 0") + `\n};\n\n` + `const unsigned char music_banks[] = {\n` + - (music.m...
X509_PUBKEY_set(): Fix error reporting
@@ -99,11 +99,10 @@ int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey) { X509_PUBKEY *pk = NULL; - if (x == NULL) + if (x == NULL || pkey == NULL) { + ERR_raise(ERR_LIB_X509, ERR_R_PASSED_NULL_PARAMETER); return 0; - - if (pkey == NULL) - goto unsupported; + } if (pkey->ameth != NULL) { if ((pk = X509_PUBKEY_new()) =...
docs(flex) update flex.md Description sentences "LV_FLEX_FLOW_ROW_WRAP_REVERSE" and "LV_FLEX_FLOW_COLUMN_WRAP_REVERSE" are corrected.
@@ -39,8 +39,8 @@ The possible values for `flex_flow` are: - `LV_FLEX_FLOW_COLUMN_WRAP` Place the children in a column with wrapping - `LV_FLEX_FLOW_ROW_REVERSE` Place the children in a row without wrapping but in reversed order - `LV_FLEX_FLOW_COLUMN_REVERSE` Place the children in a column without wrapping but in reve...
release: urbit-os-v1.0.34
/- glob /+ default-agent, verb, dbug |% -++ hash 0v4.sc96b.vnevk.1j41q.98hpu.u6hpe +++ hash 0v2.gm6p4.0gctq.j5uu6.pgkan.8jq93 +$ state-0 [%0 hash=@uv glob=(unit (each glob:glob tid=@ta))] +$ all-states $% state-0
Disabled O2 in release for avoiding compiler options to fail.
@@ -177,23 +177,19 @@ if(WIN32 AND MSVC) add_compile_options(/GR-) # Enable optimizations - add_compile_options(/O2) + # add_compile_options(/O2) # TODO: Enable when runtime checks can be disabled properly add_compile_options(/Oi) add_compile_options(/Oy) - # Disable runtime checks (not compatible with O2) - foreach(FL...
board/ghost/usbc_config.h: Format with clang-format BRANCH=none TEST=none
#define CONFIG_USB_PD_PORT_MAX_COUNT 2 #endif -enum usbc_port { - USBC_PORT_C0 = 0, - USBC_PORT_C1, - USBC_PORT_COUNT -}; +enum usbc_port { USBC_PORT_C0 = 0, USBC_PORT_C1, USBC_PORT_COUNT }; #endif /* __CROS_EC_USBC_CONFIG_H */
e_loader_attic: fix a use after free issue Fixes
@@ -199,6 +199,7 @@ static OSSL_STORE_INFO *new_EMBEDDED(const char *new_pem_name, return NULL; } + data->blob = embedded; data->pem_name = new_pem_name == NULL ? NULL : OPENSSL_strdup(new_pem_name); @@ -207,7 +208,6 @@ static OSSL_STORE_INFO *new_EMBEDDED(const char *new_pem_name, store_info_free(info); info = NULL; }...
Update scrollbar scrolling speed
@@ -1381,8 +1381,8 @@ void Widget_UpdateSize( LCUI_Widget w ) LCUI_Rect r; RectF2Rect( rect, r ); Widget_InvalidateArea( w->parent, &r, SV_PADDING_BOX ); - r.width = (int)(w->box.graph.width + 0.5); - r.height = (int)(w->box.graph.height + 0.5); + r.width = roundi( w->box.graph.width ); + r.height = roundi( w->box.grap...
correct performance cut owing to removal of Makefile switches
@@ -16,7 +16,7 @@ export OBJ_DIR = obj export BIN_DIR = bin export SRC_DIR = src export UTIL_DIR = src/utils -export CXX ?= g++ +export CXX = g++ ifeq ($(DEBUG),1) export CXXFLAGS = -Wall -Wextra -DDEBUG -D_DEBUG -g -O0 -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES) else @@ -25,10 +25,9 @@ endif # If the user has specified t...
io: release socket on exception (CID 300962)
@@ -136,6 +136,7 @@ FLB_INLINE int flb_io_net_connect(struct flb_upstream_conn *u_conn, ret = bind(fd, (struct sockaddr *) &addr, sizeof(addr)); if (ret == -1) { flb_errno(); + flb_socket_close(fd); flb_error("[io] could not bind source_address=%s", u->net.source_address); return -1;
list actual branch as well as desired for list option
@@ -44,7 +44,8 @@ fi function list_repo(){ repodirname=$AOMP_REPOS/$reponame cd $repodirname -echo `git config --get remote.origin.url` " " $COBRANCH " " `git log --numstat --format="%h" |head -1` +abranch=`git branch | awk '/\*/ { print $2; }'` +echo `git config --get remote.origin.url` " desired: " $COBRANCH " actual...
Fix PhOpenThemeData typo
@@ -521,15 +521,15 @@ PVOID PhOpenThemeData( if (baseAddress) { - if (!(OpenThemeDataForDpi_I = PhGetDllBaseProcedureAddress(baseAddress, "OpenThemeDataForDpi", 0))) - OpenThemeData_I = PhGetDllBaseProcedureAddress(baseAddress, "OpenThemeDat", 0); + OpenThemeDataForDpi_I = PhGetDllBaseProcedureAddress(baseAddress, "Ope...
decision: apply suggestion
@@ -102,6 +102,9 @@ The `spec` plugin should check if it is a valid array, i.e.: which is a possibility also in all the alternatives of this decision. - A `user:/` or `dir:/` key can change the semantics of a `system:/` array, if not avoided by `spec`. +- user-facing documentation should contain a note like: + "Mixing ...
[awm2] Extra background rects are pushed to video memory
@@ -753,13 +753,13 @@ impl Desktop { // Copy the bits of the background that we decided we needed to redraw logs.push(format!("Extra background draws:")); - for background_copy_rect in self.compositor_state.extra_background_draws.drain(..) { + for background_copy_rect in self.compositor_state.extra_background_draws.ite...
update unit test module source
"import System;\n" \ "\n" \ "abstract class UnitTest {\n" \ -" var METHOD_NAME_PADDING = ' ';\n" \ -" var RESULTS_PADDING = ' ';\n" \ -" var ASSERTION_PADDING = ' ';\n" \ +" const METHOD_NAME_PADDING = ' ';\n" \ +" const RESULTS_PADDING = ' ';\n" \ +" const ASSERTION_PADDING = ' ';\n" \ " var forceOnlyFailures = false;...
Fix typos in string/find-all documentation
@@ -599,7 +599,7 @@ static const JanetReg string_cfuns[] = { JDOC("(string/find-all patt str)\n\n" "Searches for all instances of pattern patt in string " "str. Returns an array of all indices of found patterns. Overlapping " - "instances of the pattern are counted individual, meaning a byte in string " + "instances of...
store/loader_file.c: fix char-subscripts warning. This happens on systems that perform is* character classifictions as array lookup, e.g. NetBSD.
@@ -1216,9 +1216,9 @@ static int file_name_check(OSSL_STORE_LOADER_CTX *ctx, const char *name) * Last, check that the rest of the extension is a decimal number, at * least one digit long. */ - if (!isdigit(*p)) + if (!ossl_isdigit(*p)) return 0; - while (isdigit(*p)) + while (ossl_isdigit(*p)) p++; # ifdef __VMS @@ -12...
Fix Break in Perf Public Script
@@ -3,8 +3,6 @@ $PSDefaultParameterValues['*:ErrorAction'] = 'Stop' # Root directory of the project. $RootDir = Split-Path $PSScriptRoot -Parent -$RootDir = Split-Path $RootDir -Parent - $ResultsPath = Join-Path $RootDir "artifacts/PerfDataResults" # Enumerate files
Call before and after fork on single process
@@ -233,6 +233,11 @@ static void *srv_start_no_gvl(void *s_) { sock_io_thread = 1; defer(iodine_start_io_thread, NULL, NULL); fprintf(stderr, "\n"); + if (s->processes == 1 || (s->processes == 0 && s->threads > 0)) { + /* single worker */ + RubyCaller.call(Iodine, rb_intern("before_fork")); + RubyCaller.call(Iodine, rb...
util/lock/file_lock.c: Format with clang-format BRANCH=none TEST=none
@@ -100,8 +100,8 @@ static int file_lock_open_or_create(struct ipc_lock *lock) if (!tmpdir) return -1; - if (snprintf(path, sizeof(path), "%s/%s", - tmpdir, lock->filename) < 0) { + if (snprintf(path, sizeof(path), "%s/%s", tmpdir, + lock->filename) < 0) { return -1; } } else { @@ -115,10 +115,9 @@ static int file_lock...
filter_kubernetes: fix error/warn message for local Pod
@@ -715,8 +715,13 @@ int flb_kube_meta_init(struct flb_kube *ctx, struct flb_config *config) ret = get_api_server_info(ctx, ctx->namespace, ctx->podname, &meta_buf, &meta_size); if (ret == -1) { - flb_error("[filter_kube] could not get meta for POD %s", + if (!ctx->podname) { + flb_warn("[filter_kube] could not get met...
config: EHL passthough network to pre-launched VM for hybrid_rt For EHL hybrid_rt scenario, the requirement needs a network device passthough to pre-launched VM0. Acked-by: Victor Sun
</vuart> <pci_devs desc="pci devices list"> <pci_dev desc="pci device">00:17.0 SATA controller: Intel Corporation Device 4b63</pci_dev> + <pci_dev desc="pci device">00:1d.2 Ethernet controller: Intel Corporation Device 4bb0</pci_dev> </pci_devs> <mmio_resources desc="mmio devices list to passthrough"> <TPM2 desc="TPM2 ...
net/lwip: ping receive function shows the exact length. ping v4 and v6 shows the exact legnth of received ping reply. > payload length + icmp header length
@@ -235,6 +235,7 @@ static int nu_ping_recv(int family, int s, struct timespec *ping_time) int ok = 0; ip6hdr = (struct ip6_hdr *)buf; + len = IP6H_PLEN(ip6hdr); curp = (char *)(buf + sizeof(struct ip6_hdr)); nexth = ip6hdr->_nexth; @@ -248,6 +249,7 @@ static int nu_ping_recv(int family, int s, struct timespec *ping_ti...
common/keyboard_backlight.c: Format with clang-format BRANCH=none TEST=none
@@ -22,9 +22,13 @@ static struct kblight_conf kblight; static int current_percent; static uint8_t current_enable; -__overridable void board_kblight_init(void) {} +__overridable void board_kblight_init(void) +{ +} -__overridable void board_kblight_shutdown(void) {} +__overridable void board_kblight_shutdown(void) +{ +} ...
Document perf counters in Diagnostics.md
@@ -72,4 +72,50 @@ First off, you're going to need xperf and wpa. Installing the [Windows ADK](http ## Counters +To assist investigations into running systems, MsQuic has a number of performance counters that are updated during runtime. These counters are exposed as an array of unsigned 64-bit integers, via a global `G...
Remove "unused variable self" warnings from Luacheck The "self" variable not being used in a method is very common and something that can easily happen when defining functions with ":" syntax
-- [2] https://github.com/vim-syntastic/syntastic ignore = { - "212/_.*", -- Unused argument, (unless name starts with "_") - "411/err", -- Redefining local (unless called "err") - "421/err", -- Shadowing local (unless called "err") + "212/_.*", -- Unused argument, when name starts with "_" + "212/self", -- Unused argu...
Updated epoll wrappers.
@@ -233,15 +233,15 @@ int nsa_epoll_create(int size) } -/* ###### NEAT select() implementation ################################### */ -int nsa_epoll_ctl(int epfd, int op, int fd, struct epoll_event* event) +/* ###### NEAT epoll_create1() implementation ############################ */ +int nsa_epoll_create(int flags) { ...
Nicer comment text.
@@ -52,7 +52,7 @@ void* fstrm_create_control_frame_start(char* contenttype, size_t* len) * 4byte 0: control indicator. * 4byte bigendian: length of control frame * 4byte bigendian: type START - * 4byte bigendian: frame option: content-type + * 4byte bigendian: option: content-type * 4byte bigendian: length of string * ...
More reasonable default vertical ranges. Replace flat 1000 with (height * 2), or (vertical res / 2) if model doesn't have a height.
@@ -10126,9 +10126,32 @@ s_model *load_cached_model(char *name, char *owner, char unload) newanim->range.z.min = (int) - newchar->grabdistance / 3; //zmin newanim->range.z.max = (int)newchar->grabdistance / 3; //zmax newanim->range.y.min = T_MIN_BASEMAP; //amin - newanim->range.y.max = 1000; //amax + + // Vertical rang...
newlib: Fix adjtime, returns the amount of time remaining from any previous adjustment If the olddelta argument is not a null pointer, the adjtime function returns information about any previous time adjustment that has not yet completed. Closes:
@@ -193,6 +193,18 @@ static void adjtime_corr_stop (void) int adjtime(const struct timeval *delta, struct timeval *outdelta) { #if defined( WITH_FRC ) || defined( WITH_RTC ) + if(outdelta != NULL){ + _lock_acquire(&s_adjust_time_lock); + adjust_boot_time(); + if (adjtime_start != 0) { + outdelta->tv_sec = adjtime_total...
added fclairamb/ftpserver Issue:
@@ -371,6 +371,9 @@ ALLOW .* -> vendor/github.com/pariz/gountries # CONTRIB-1630- Go binding for qemu/qmp runtime ALLOW .* -> vendor/github.com/intel/govmm/qemu +# CONTRIB-1650 golang ftp server library with a sample implementation +ALLOW .* -> vendor/github.com/fclairamb/ftpserver + # # Temporary exceptions. #
Entering power off now disables FSMC
// See LICENSE file in the project root for full license information. // +#include <ch.h> +#include <hal.h> +#include <hal_nf_community.h> #include <nanoHAL_Power.h> #include <nanoHAL_v2.h> #include <target_platform.h> #include <cmsis_os.h> -#include <hal.h> -#include <hal_nf_community.h> -#include <ch.h> + +#if (HAL_U...
Fix icon path in README The data/ directory was moved to app/data/. Refs
# scrcpy (v1.23) -<img src="data/icon.svg" width="128" height="128" alt="scrcpy" align="right" /> +<img src="app/data/icon.svg" width="128" height="128" alt="scrcpy" align="right" /> _pronounced "**scr**een **c**o**py**"_
Increase was file size limit to 256MB. Fix
@@ -126,7 +126,7 @@ M3Result repl_load (const char* fn) if (fsize < 8) { result = "file is too small"; goto on_error; - } else if (fsize > 64*1024*1024) { + } else if (fsize > 256*1024*1024) { result = "file is too big"; goto on_error; }
king: remove spurious Term changes
@@ -562,10 +562,6 @@ localClient doneSignal = fst <$> mkRAcquire start stop writeTQueue wq [Term.Trace "interrupt\r\n"] writeTQueue rq $ Ctl $ Cord "c" loop rd - else if w == 20 then do - -- DC4 (^T) - atomically $ writeTQueue wq [Term.Trace "<stat>\r\n"] - loop rd else if w <= 26 then do case pack [BS.w2c (w + 97 - 1)...
Modified to accept new key structure
@@ -147,9 +147,7 @@ bool CAlert::RelayTo(CNode* pnode) const bool CAlert::CheckSignature() const { - CKey key; - if (!key.SetPubKey(ParseHex(fTestNet ? pszTestKey : pszMainKey))) - return error("CAlert::CheckSignature() : SetPubKey failed"); + CPubKey key(ParseHex(fTestNet ? pszTestKey : pszMainKey)); if (!key.Verify(H...
A missing semicolon prevents compilation with ENGINE_REF_COUNT_DEBUG enabled.
@@ -82,7 +82,7 @@ int engine_free_util(ENGINE *e, int not_locked) else i = --e->struct_ref; #endif - engine_ref_debug(e, 0, -1) + engine_ref_debug(e, 0, -1); if (i > 0) return 1; REF_ASSERT_ISNT(i < 0);
Skip ResizeMemory if no need to grow
@@ -120,6 +120,9 @@ d_m3OpDef (MemGrow) u32 requiredPages = memory->numPages + numPagesToGrow; _r0 = memory->numPages; + if (numPagesToGrow == 0) + return nextOp (); + M3Result r = ResizeMemory (runtime, requiredPages); if (r) _r0 = -1;
Doc: Update history section of EC_GROUP API's. Fixes The remaining functions are at least as old as 0.9.8 so it is not worth documenting this.
@@ -247,8 +247,8 @@ L<EC_GFp_simple_method(3)>, L<d2i_ECPKParameters(3)> =head1 HISTORY EC_GROUP_method_of() was deprecated in OpenSSL 3.0. - -EC_GROUP_check_named_curve() and EC_GROUP_get_field_type() were added in OpenSSL 3.0. +EC_GROUP_get0_field(), EC_GROUP_check_named_curve() and EC_GROUP_get_field_type() were add...
Packages: "test" and "test-debug" targets for deb.
@@ -76,7 +76,7 @@ CONFIGURE_ARGS=\ export CR=\\n default: - @echo "valid targets: all modules unit $(addprefix unit-, $(MODULES)) clean" + @echo "valid targets: all modules unit $(addprefix unit-, $(MODULES)) test test-debug clean" all: check-build-depends unit modules @@ -219,10 +219,30 @@ unit-%: check-build-depends-...
Add ability in viz tool to see accel
@@ -435,8 +435,14 @@ function create_tracked_object(info, external) { objs[info.tracker].angVelocity = new THREE.Line(angVelocityGeom, new THREE.LineDashedMaterial({color : 0x00FFFF, scale : .1})); + var accelGeom = new THREE.Geometry(); + accelGeom.vertices.push(new THREE.Vector3(0, 0, 0), new THREE.Vector3(0, 0, 0));...
Try to install php5-dev instead of php-dev.
@@ -36,7 +36,7 @@ pushd "$DEPS_DIR" doxygen \ graphviz \ python-dev \ - php-dev \ + php5-dev \ liblua5.2-dev \ octave-pkg-dev \ r-base \
update docs/gftp.1
-.TH GFTP 1 "MARCH 2007" +.TH GFTP 1 "JUNE 2020" .SH NAME gftp - file transfer client for *NIX based machines. .SH SYNOPSIS @@ -14,7 +14,7 @@ gftp - file transfer client for *NIX based machines. .I directory .B ]] .SH DESCRIPTION -gFTP is a file transfer client for *NIX based machines. It currently has a text interface...
Add PLATFORM_INTENDED_DEVICE_FAMILY to generated platform configuration. The value is derived from the fpga-family encoded in the platform database and may be passed to megafunctions as "intended_device_family" to get proper simulated semantics for a target architecture.
@@ -54,6 +54,26 @@ def emitHeader(f, afu_ifc_db, platform_db, comment="//"): afu_ifc_db['file_name'], comment)) +def getIntendedDevFamily(platform_db): + try: + f = platform_db['fpga-family'] + except KeyError: + # Older platform databases didn't include fpga-family + f = 'A10' + + # Map OPAE platform_db families to me...
Enable coverage testing on Fedora 30. Now that coverage testing works reliably with gcc9 it makes sense to enable it for CI.
@@ -219,6 +219,7 @@ my $oyVm = &VM_IMAGE => 'fedora:30', &VM_ARCH => VM_ARCH_AMD64, &VMDEF_PGSQL_BIN => '/usr/pgsql-{[version]}/bin', + &VMDEF_COVERAGE_C => true, &VMDEF_DEBUG_INTEGRATION => false,
Split long string in test_nsalloc_long_namespace() C99 compilers are only obliged to cope with 4095 character strings literals. Split the parse string so that it is under this limit.
@@ -11085,7 +11085,7 @@ END_TEST START_TEST(test_nsalloc_long_namespace) { - const char *text = + const char *text1 = "<" /* 64 characters per line */ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789AZ" @@ -11121,7 +11121,8 @@ START_TEST(test_nsalloc_long_namespace) "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijk...
task_construct takes an argument to pass to entry point
@@ -82,16 +82,17 @@ static void _tasking_add_task_to_runlist(task_small_t* task) { list_tail->next = task; } -task_small_t* task_construct(uint32_t entry_point) { +task_small_t* task_construct(void* entry_point, void* arg1) { task_small_t* new_task = kmalloc(sizeof(task_small_t)); memset(new_task, 0, sizeof(task_small_...
out_file: use flb_metrics.h header
#include <fluent-bit/flb_pack.h> #include <fluent-bit/flb_utils.h> #include <fluent-bit/flb_time.h> +#include <fluent-bit/flb_metrics.h> #include <msgpack.h> -#include <cmetrics/cmetrics.h> -#include <cmetrics/cmt_encode_text.h> -#include <cmetrics/cmt_decode_msgpack.h> - #include <stdio.h> #include <sys/types.h> #incl...
Remove WIDE class
@@ -159,8 +159,8 @@ union { strDataTmp_t tmp; } strings; -WIDE internalStorage_t N_storage_real; -#define N_storage (*(WIDE internalStorage_t*) PIC(&N_storage_real)) +internalStorage_t N_storage_real; +#define N_storage (*(internalStorage_t*) PIC(&N_storage_real)) static const char const CONTRACT_ADDRESS[] = "New contr...
Fix test/recipes/80-test_ca.t to skip_all properly in a subtest It's perfectlt ok to 'plan skip_all' in a subtest, but in that case, it must really be inside the subtest. Fixes
@@ -113,16 +113,18 @@ test_revoke('both_generalizedtime', { sub test_revoke { my ($filename, $opts) = @_; - # Before Perl 5.12.0, the range of times Perl could represent was limited by - # the size of time_t, so Time::Local was hamstrung by the Y2038 problem - - # Perl 5.12.0 onwards use an internal time implementation...
Solve threading bug for new macos versions without pthread extensions.
#include <share.h> #endif #elif defined(__linux__) || \ - ((defined(__APPLE__) && defined(__MACH__)) || defined(__MACOSX__) && (!defined(MAC_OS_X_VERSION_10_12) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12)) + ((defined(__APPLE__) && defined(__MACH__)) || defined(__MACOSX__) #define _GNU_SOURCE #include <un...
Use all available CPU cores on Travis
@@ -12,4 +12,4 @@ env: - CMAKE_CALL="cmake -DZYAN_DEV_MODE=ON -DCMAKE_BUILD_TYPE=Release .." script: - - mkdir build && cd build && eval "${CMAKE_CALL}" && VERBOSE=1 make + - mkdir build && cd build && eval "${CMAKE_CALL}" && VERBOSE=1 make -j2
fixed IAR project add LIBS
@@ -54,13 +54,13 @@ def IARAddGroup(parent, name, files, project_path): fn = f.rfile() name = fn.name path = os.path.dirname(fn.abspath) - basename = os.path.basename(path) path = _make_path_relative(project_path, path) path = os.path.join(path, name) file = SubElement(group, 'file') file_name = SubElement(file, 'name'...
Fixed use of IsGhostNodeType
@@ -911,7 +911,7 @@ vtkPLOT3DReader::ReadGrid(FILE *xyzFp) unsigned char value = 0; for (vtkIdType ptIdx = 0; ptIdx < numIds; ptIdx++) { - if (avtGhostData::IsGhostNodeType(ids->GetId(ptIdx), NODE_NOT_APPLICABLE_TO_PROBLEM)) + if (avtGhostData::IsGhostNodeType(gnp[ids->GetId(ptIdx)], avtGhostNodeTypes::NODE_NOT_APPLICA...
out_influxdb: fix escaping in string fields
static const uint64_t ONE_BILLION = 1000000000; -static int influxdb_escape(char *out, const char *str, int size) { +static int influxdb_escape(char *out, const char *str, int size, bool quote) { int out_size = 0; int i; for (i = 0; i < size; ++i) { char ch = str[i]; - if (isspace(ch) || ch == ',' || ch == '=' || ch ==...
fix: merge apdu.md into ethapp.asc
@@ -94,6 +94,8 @@ The address can be optionally checked on the device before being returned. #### Description +https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md + This command signs an Ethereum transaction after having the user validate the following parameters - Gas price