message
stringlengths
6
474
diff
stringlengths
8
5.22k
hv: Hide Service VM hypercalls from REE Though REE VM has its load order to be Service_VM, it does not offer services as Service VM does. The only hypercalls allowed for REE are the ones with GUEST_FLAG_REE. Acked-by: Anthony Xu
#include <asm/guest/vcpu.h> #include <asm/guest/vm.h> #include <asm/guest/virq.h> +#include <asm/guest/optee.h> #include <acrn_hv_defs.h> #include <hypercall.h> #include <trace.h> @@ -220,9 +221,13 @@ static int32_t dispatch_hypercall(struct acrn_vcpu *vcpu) uint64_t param1 = vcpu_get_gpreg(vcpu, CPU_REG_RDI); /* hyper...
makefile: disable optimization "-fipa-icf" for gcc since it triggers a bug observed in http_upgrade2ws()
@@ -149,6 +149,12 @@ else DOCUMENTATION= endif +# GCC (at least) >= 7 triggers some bug when -fipa-icf is enabled +# (as in our default: -O2) +ifeq ($(shell $(CC) -v 2>&1 | grep -o "^gcc version"),gcc version) + OPTIMIZATION += -fno-ipa-icf +endif + ######################################################################...
show driver information
@@ -3918,12 +3918,13 @@ free(epmaddr); return true; } /*===========================================================================*/ -static bool get_perm_addr(char *ifname, uint8_t *permaddr) +static bool get_perm_addr(char *ifname, uint8_t *permaddr, char *drivername) { static int fd_info; static struct iwreq iwr; s...
Remove old renamed prototype for TCOD_console_set_dirty_character
@@ -192,7 +192,6 @@ int TCOD_console_print_internal(TCOD_console_t con,int x,int y, int w, int h, TC int TCOD_console_stringLength(const unsigned char *s); unsigned char * TCOD_console_forward(unsigned char *s,int l); char *TCOD_console_vsprint(const char *fmt, va_list ap); -void TCOD_console_set_dirty_character_code(i...
calloc -> alloc_sameplace in kern_adj
@@ -246,7 +246,8 @@ static void kern_adjoint(const linop_data_t* _data, complex float* dst, const co long line_dims[] = {wx, nc, 1, 1}; long vthrd_dims[] = {wx, nc, tf, 1, num_threads}; - complex float* vec = md_calloc(5, vthrd_dims, CFL_SIZE); + complex float* vec = md_alloc_sameplace(5, vthrd_dims, CFL_SIZE, dst); + ...
schema compile BUGFIX set DISABLED flag when compiling augment children
#include "plugins_exts.h" #include "schema_compile.h" #include "schema_compile_node.h" +#include "schema_features.h" #include "set.h" #include "tree.h" #include "tree_data.h" @@ -1795,10 +1796,10 @@ lys_compile_augment(struct lysc_ctx *ctx, struct lysp_augment *aug_p, struct lys struct lysc_when *when_shared = NULL; st...
fix dpdk cryptodev enable issue
@@ -1041,12 +1041,15 @@ dpdk_ipsec_process (vlib_main_t * vm, vlib_node_runtime_t * rt, } - ipsec_register_esp_backend (vm, im, "dpdk backend", + u32 idx = ipsec_register_esp_backend (vm, im, "dpdk backend", "dpdk-esp4-encrypt", "dpdk-esp4-decrypt", "dpdk-esp6-encrypt", "dpdk-esp6-decrypt", - dpdk_ipsec_check_support, ...
config_tools: board_inspector: parse bdf for ioport serial controler Add bdf infomation to ioport serial controler.
# SPDX-License-Identifier: BSD-3-Clause # -import parser_lib +import parser_lib, os +from extractors.helpers import get_bdf_from_realpath MEM_PATH = ['/proc/iomem', '/proc/meminfo'] TTY_PATH = '/sys/class/tty/' @@ -91,6 +92,14 @@ def dump_ttys_info(ttys_list, config): if ttys_type[serial_type] == 'PORT': base_path = '{...
tacho: store counts_per_degree Needed for display of motor settings
@@ -16,6 +16,7 @@ static pbio_error_t pbio_tacho_setup(pbio_tacho_t *tacho, uint8_t counter_id, pb return PBIO_ERROR_INVALID_ARG; } // Get overal ratio from counts to output variable, including gear train + tacho->counts_per_degree = counts_per_degree; tacho->counts_per_output_unit = fix16_mul(counts_per_degree, gear_r...
[Readme] Added missing params
@@ -135,6 +135,8 @@ A partial list of parameters are below. See the config file for a complete list. | `vsync`<br> `gl_vsync` | Set vsync for OpenGL or Vulkan | | `media_player` | Show media player metadata | | `media_player_name` | Set main media player DBus service name without the `org.mpris.MediaPlayer2` part, like...
add -mcmodel option for aarch64 ((#466)
@@ -24,6 +24,11 @@ Patch0: configure.patch BuildRequires: libevent-devel +%global extraflags "" +%ifarch aarch64 +%global extraflags "-mcmodel=large" +%endif + %global install_path %{OHPC_LIBS}/%{pname}/%version %description @@ -50,7 +55,7 @@ This RPM contains all the tools necessary to compile and link against PMIx. %...
roller: set default quota to 25
++ on-init ^- (quip card _this) =: frequency ~h1 - quota 7 + quota 25 slice ~d7 resend-time ~m5 update-rate ~m5 :: %naive-state ~& > %received-azimuth-state - :: cache naive and ownership state - :: =+ !<([nas=^state:naive =indices] q.cage.sign) =^ effects state (predicted-state:do nas indices)
Looking at dlsym options for guarded_close_np
@@ -148,9 +148,30 @@ __attribute__((constructor)) void init(void) g_close = dlsym(RTLD_NEXT, "close"); g_close$NOCANCEL = dlsym(RTLD_NEXT, "close$NOCANCEL"); g_close_nocancel = dlsym(RTLD_NEXT, "close_nocancel"); - g_guarded_close_np = dlsym(RTLD_NEXT, "guarded_close_np"); g_shutdown = dlsym(RTLD_NEXT, "shutdown"); g_b...
Cache lib/interval's small bit-masks
@@ -42,15 +42,33 @@ var ( one = big.NewInt(1) ) +var smallBitMasks = [...]*big.Int{ + big.NewInt(0x00), + big.NewInt(0x01), + big.NewInt(0x03), + big.NewInt(0x07), + big.NewInt(0x0F), + big.NewInt(0x1F), + big.NewInt(0x3F), + big.NewInt(0x7F), + big.NewInt(0xFF), +} + // bitMask returns ((1<<n) - 1), where n is the lar...
unix/Makefile: Update coverage tests to match those in Travis.
@@ -258,7 +258,8 @@ coverage_test: coverage cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/micropython_coverage ./run-tests cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/micropython_coverage ./run-tests -d thread cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/micropython_coverage ./run-tests --emit n...
tap: fix the total length of packet for stats byte Type: fix Fixes:
@@ -313,12 +313,12 @@ virtio_device_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node, { virtio_input_trace_t *tr; vlib_trace_buffer (vm, node, next0, b0, - /* follow_chain */ 0); + /* follow_chain */ 1); vlib_set_trace_count (vm, node, --n_trace); tr = vlib_add_trace (vm, node, b0, sizeof (*tr)); tr->next_ind...
fix imxrt uart2 wrong configure
@@ -206,7 +206,7 @@ static void uart_get_dma_config(void) uarts[LPUART2_INDEX].dma_flag |= RT_DEVICE_FLAG_DMA_RX; #endif #ifdef BSP_LPUART2_TX_USING_DMA - static struct dma_tx_config uart2_dma_tx = {.request = kDmaRequestMuxLPUART4Tx, .channel = BSP_LPUART2_TX_DMA_CHANNEL}; + static struct dma_tx_config uart2_dma_tx = ...
script cleanup import from future no longer necessary w/ python3
@@ -19,7 +19,6 @@ Utility functions for functional tests. This is imported into test runner script in subdirectories under this one. """ -from __future__ import print_function import argparse import binascii import hashlib
mdns: filter instance name for ANY queries The instance name in ANY quries was ignored. The MR fixes the issue.
@@ -1534,6 +1534,8 @@ static bool _mdns_service_match_ptr_question(const mdns_service_t *service, cons if (!_mdns_service_match(service, question->service, question->proto, NULL)) { return false; } + // The question parser stores anything before _type._proto in question->host + // So the question->host can be subtype o...
docker: fix script exiting bug
@@ -22,8 +22,7 @@ IMAGE_NAME="simde-dev-${RELEASE}" # (Re)build image # We only do this if the current image is older than a week (if jq is installed) BUILD_IMAGE=auto -command -v jq >/dev/null -if [ 0 = $? ]; then +if command -v jq >/dev/null; then BUILD_CUTOFF_TIME="$(expr $(date +%s) - \( 60 \* 60 \* 24 \* 7 \))" CU...
Disable rotation correction if not used.
@@ -12180,6 +12180,7 @@ void imlib_find_rects(list_t *out, image_t *ptr, rectangle_t *roi, fb_free(); // umm_init_x(); } +#ifdef IMLIB_ENABLE_ROTATION_CORR // http://jepsonsblog.blogspot.com/2012/11/rotation-in-3d-using-opencvs.html void imlib_rotation_corr(image_t *img, float x_rotation, float y_rotation, float z_rota...
win32 IO patches
@@ -764,12 +764,14 @@ void rb_w32_sysinit(int *argc, char ***argv) { #if RUBY_MSVCRT_VERSION >= 80 - static void set_pioinfo_extra(void); +//RHO +// static void set_pioinfo_extra(void); _CrtSetReportMode(_CRT_ASSERT, 0); _set_invalid_parameter_handler(invalid_parameter); _RTC_SetErrorFunc(rtc_error_handler); - set_pioi...
printer json UPDATE opaq nodes enhancements Fixes
@@ -567,12 +567,12 @@ json_print_any_content(struct jsonpr_ctx *pctx, struct lyd_node_any *any) pctx->options = prev_opts; /* terminate the object */ + LEVEL_DEC; if (DO_FORMAT) { ly_print_(pctx->out, "\n%*s}", INDENT); } else { ly_print_(pctx->out, "}"); } - LEVEL_DEC; break; case LYD_ANYDATA_JSON: if (!any->value.jso...
esp32: fix sys_clock_gettime nsec It was returning microseconds instead
@@ -33,7 +33,7 @@ static inline void sys_clock_gettime(struct timespec *t) { TickType_t ticks = xTaskGetTickCount(); t->tv_sec = (ticks * portTICK_PERIOD_MS) / 1000; - t->tv_nsec = (ticks * portTICK_PERIOD_MS) % 1000; + t->tv_nsec = ((ticks * portTICK_PERIOD_MS) % 1000) * 1000000; } static int32_t timespec_diff_to_ms(s...
Fix netconn warning
@@ -431,7 +431,7 @@ lwesp_netconn_connect_ex(lwesp_netconn_p nc, const char* host, lwesp_port_t port * - Set netconn callback function for connection management * - Start connection in blocking mode */ - cs.type = nc->type; + cs.type = (lwesp_netconn_type_t)nc->type; cs.remote_host = host; cs.remote_port = port; cs.loc...
clean up how subprocesses for integration tests are open
@@ -29,23 +29,25 @@ from multiprocessing.pool import ThreadPool from s2n_test_constants import * def try_gnutls_handshake(endpoint, port, priority_str, mfl_extension_test): - # Fire up s2nd + + s2nd_cmd = ["../../bin/s2nd", "-c", "test_all", str(endpoint), str(port)] + if mfl_extension_test: - s2nd = subprocess.Popen([...
added support for arbitrary resolutions on HM-01B0
@@ -195,6 +195,8 @@ static const uint16_t QQVGA_regs[][2] = { static int set_framesize(sensor_t *sensor, framesize_t framesize) { int ret=0; + uint16_t w = resolution[framesize][0]; + uint16_t h = resolution[framesize][1]; switch (framesize) { case FRAMESIZE_QVGA: @@ -208,6 +210,7 @@ static int set_framesize(sensor_t *...
server_queuereader: try and silence Coverity
@@ -306,7 +306,7 @@ server_queuereader(void *d) } /* if this didn't resolve to anything, treat as failure */ if (self->saddr == NULL) - __sync_fetch_and_add(&(self->failure), 1); + __sync_add_and_fetch(&(self->failure), 1); /* if all addrinfos failed, try again later */ if (self->fd < 0) continue; @@ -427,7 +427,7 @@ s...
appveyor.yml: exercise build_all_generated.
@@ -43,7 +43,8 @@ build_script: - cd _build - ps: >- If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) { - cmd /c "nmake 2>&1" + cmd /c "nmake build_all_generated 2>&1" + cmd /c "nmake PERL=no-perl 2>&1" } - cd ..
Issue Added workaround for missing __CLZ intrinsic on ARMv6 in IAR compilers prior 8.
#define __ALIGNED(x) #endif + // Workaround for missing __CLZ intrinsic in + // IAR compilers prior 8.0 + #if (__CORE__ == __ARM6M__) && (__VER__ < 8000000) + __STATIC_INLINE uint32_t __CLZ(uint32_t data) + { + if (data == 0u) { return 32u; } + + uint32_t count = 0; + uint32_t mask = 0x80000000; + + while ((data & mask...
Deleting AHRS logs no longer stops all AHRS logging.
@@ -407,6 +407,7 @@ func handleDeleteAHRSLogFiles(w http.ResponseWriter, r *http.Request) { os.Remove("/var/log/" + fn) log.Printf("Deleting AHRS log file %s\n", fn) } + analysisLogger = nil } }
filter_expect: use flb_free instead of free
@@ -295,7 +295,7 @@ static int rule_apply(struct flb_expect *ctx, msgpack_object map) "exception on rule #%i 'key_exists', key '%s' " "not found. Record content:\n%s", n, rule->value, json); - free(json); + flb_free(json); return FLB_FALSE; } else if (rule->type == FLB_EXP_KEY_NOT_EXISTS) { @@ -308,7 +308,7 @@ static i...
mmapstorage: fix unlinking pointer format error
@@ -585,14 +585,13 @@ static void * hexStringToAddress (const char * hexString) char * endptr; errno = 0; - long int val = strtol (hexString, &endptr, hexBase); + unsigned long int val = strtoul (hexString, &endptr, hexBase); - /* Check for various possible errors */ - if ((errno == ERANGE && (val == LONG_MAX || val ==...
fix(ML302): Return the correct BOAT_RESULT value issue
@@ -79,7 +79,9 @@ BOAT_RESULT BoatRandom(BUINT8 *output, BUINT32 outputLen, void *rsvd) (void)rsvd; - return random_buffer(output, outputLen); + random_buffer(output, outputLen); + + return BOAT_SUCCESS; }
Disable OMV2 build.
@@ -57,9 +57,9 @@ CFLAGS += -O2 -ggdb3 -DNDEBUG endif # OpenMV1 is No longer supported -ifeq ($(TARGET), OPENMV1) +ifeq ($(TARGET), $(filter $(TARGET),OPENMV1 OPENMV2)) BRACKET = :) -$(error "OPENMV1 is no longer supported :O Have fun hacking the code $(BRACKET)") +$(error "This camera is no longer supported :O Have fu...
fix(docs) handle tuple
@@ -23,7 +23,7 @@ def cmd(s): # Get the current branch name status, br = subprocess.getstatusoutput("git branch | grep '*'") -gitcommit = subprocess.getstatusoutput("git rev-parse HEAD") +_, gitcommit = subprocess.getstatusoutput("git rev-parse HEAD") br = re.sub('\* ', '', br) urlpath = re.sub('release/', '', br)
Fix outdated comment. This was probably missed when a new test was added and the timeline was updated.
@@ -950,7 +950,7 @@ sub run $oHostDbMaster->sqlSelectOneTest('select message from test', $strNameMessage); } - # Restore (restore type = default, timeline = 3) + # Restore (restore type = default, timeline = 4) #------------------------------------------------------------------------------------------------------------...
Property: fix memory leak. Coverity
@@ -546,9 +546,9 @@ int ossl_method_store_cache_set(OSSL_METHOD_STORE *store, int nid, } ossl_method_free(&p->method); } - OPENSSL_free(p); err: res = 0; + OPENSSL_free(p); end: ossl_property_unlock(store); return res;
Build: Account for Format/Style in Sample Lint Failure Message
@@ -194,7 +194,7 @@ jobs: /<\/data>$/ {inside=0; print "</data>"; next} inside {gsub ("\t", "", $0); printf $0; next} {print}' "${File}" > "${File}.tmp" && mv "${File}.tmp" "${File}" - if [ "$(git diff $File)" != '' ]; then echo "$File keys are not in alphabetical order"; exit 1 ; fi + if [ "$(git diff ${File})" != '' ...
Add prefix room to include in pc.in
prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=@CMAKE_INSTALL_PREFIX@ libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ -includedir=${prefix}/include/libsurvive +includedir=${prefix}/include Name: @CMAKE_PROJECT_NAME@ Description: Libsurvive Version: 0 Libs: -L${libdir} -lsurvive @EXTRA_LIBS@ -Cflags: -I${includedir} -I${include...
remove archs var
@@ -17,7 +17,7 @@ jobs: strategy: matrix: os: [ubuntu-20.04, macos-10.15] # windows-2019, - cibw_archs: ["auto"] + # cibw_archs: ["auto"] # include: # - os: ubuntu-20.04 # cibw_archs: "aarch64" @@ -40,19 +40,19 @@ jobs: if: runner.os == 'Linux' uses: pypa/cibuildwheel@v2.1.2 env: - CIBW_BUILD: cp37-* cp38-* cp39-* cp31...
net: fix bug in mbufq
@@ -19,11 +19,11 @@ struct mbufq { */ static inline void mbufq_push_tail(struct mbufq *q, struct mbuf *m) { + m->next = NULL; if (!q->head) { q->head = q->tail = m; return; } - m->next = NULL; q->tail->next = m; q->tail = m; }
Fix vpp "unix interactive" when running under emacs + gdb In this specific corner-case setup, ioctl (0, TIOCGWINSZ) returns window height = 0 and width = 0. Rather than declaring the terminal to be non-interactive, set the window size parameters to 80 x 24.
@@ -2776,8 +2776,14 @@ unix_cli_config (vlib_main_t * vm, unformat_input_t * input) cf->height = ws.ws_row; if (cf->width == 0 || cf->height == 0) - /* We have a tty, but no size. Stick to line mode. */ - goto notty; + { + /* + * We have a tty, but no size. Use defaults. + * vpp "unix interactive" inside emacs + gdb en...
Reduce tree depth limit from 512 to 400 For the same reason as commit
@@ -4652,7 +4652,7 @@ GumboOutput* gumbo_parse_with_options ( } } - if (unlikely(parser._parser_state->_open_elements.length > 512)) { + if (unlikely(parser._parser_state->_open_elements.length > 400)) { parser._output->status = GUMBO_STATUS_TREE_TOO_DEEP; gumbo_debug("Tree depth limit exceeded.\n"); break;
BugID:18713033: synchronize the dependencies of mk and config.in in osal
menuconfig AOS_COMP_OSAL_AOS bool "osal_aos" + select AOS_COMP_DEBUG if OSAL_CONFIG = rhino + select AOS_COMP_RHINO if OSAL_CONFIG = rhino default y help AliOS things OSAL -- interface adaptation layer if AOS_COMP_OSAL_AOS -menu "OSAL Configurations" -endmenu +config OSAL_CONFIG + string "OSAL_CONFIG" + default rhino +...
protocomm: Fix debug print on encrypting failure Closes
@@ -240,7 +240,7 @@ esp_err_t protocomm_req_handle(protocomm_t *pc, const char *ep_name, uint32_t se /* Encrypt response to be sent back */ uint8_t *enc_resp = (uint8_t *) malloc(plaintext_resp_len); if (!enc_resp) { - ESP_LOGE(TAG, "Failed to allocate decrypt buf len %d", inlen); + ESP_LOGE(TAG, "Failed to allocate en...
Added missing typedef breaking vitasdkkern.h Added missing typedef breaking vitasdkkern.h
@@ -44,7 +44,7 @@ typedef struct SceUsbdDeviceDescriptor { unsigned char bNumConfigurations; } SceUsbdDeviceDescriptor; /* size = 20 */ -struct SceUsbdEndpointDescriptor { +typedef struct SceUsbdEndpointDescriptor { unsigned char bLength; unsigned char bDescriptorType; unsigned char bEndpointAddress;
tests: distops_delete: use arch-independent invocation to test presence of cap
@@ -139,7 +139,7 @@ void init_client(struct test_binding *b) void client_do_test(struct test_binding *b, uint32_t test, struct capref cap) { errval_t err; - struct vnode_identity vi; + struct frame_identity fi; struct client_state *st = b->st; assert(st); @@ -147,7 +147,7 @@ void client_do_test(struct test_binding *b, ...
landscape: fix link route breaking popover When you're on a link page, hitting the settings popover will trigger an error since the LinkResource matches the path. This makes it so that it only matches numerical indexes.
@@ -95,7 +95,7 @@ export function LinkResource(props: LinkResourceProps) { }} /> <Route - path={relativePath("/:index/:commentId?")} + path={relativePath("/:index(\\d+)/:commentId?")} render={(props) => { const index = bigInt(props.match.params.index); const editCommentId = props.match.params.commentId || null;
Refers gpdb readme to orca readme for installation instead of trying to keep GPDB readme in sync with GPORCA readme, just refer to it
@@ -47,26 +47,12 @@ Follow [these linux steps](README.linux.md) for getting your system ready for GP cd .. #### Manually -Currently GPDB assumes ORCA libraries and headers are available in the targeted -system and tries to build with ORCA by default. For your convenience, here are -the steps of how to build the optimiz...
Size of random output is now a long, also added option to select chunk size
@@ -52,7 +52,9 @@ int rand_main(int argc, char **argv) BIO *out = NULL; char *outfile = NULL, *prog; OPTION_CHOICE o; - int format = FORMAT_BINARY, i, num = -1, r, ret = 1; + int format = FORMAT_BINARY, r, i, ret = 1, buflen = 131072; + long num = -1; + uint8_t *buf = NULL; prog = opt_init(argc, argv, rand_options); wh...
{AH} ignore header test in CRAM2CRAM, see
@@ -475,12 +475,17 @@ class TestIO(unittest.TestCase): "rb", "wb") def testCRAM2CRAM(self): + # in some systems different reference sequence paths might be + # embedded in the CRAM files which will result in different headers + # see #542 self.checkEcho("ex2.cram", "ex2.cram", "tmp_ex2.cram", "rc", "wc", sequence_filen...
iokernel: disable moving parked tasks to the linux core The second call to sched_setaffinity() is a performance bottleneck. Let's disable this for now and revisit later.
@@ -479,7 +479,6 @@ void cores_park_kthread(struct thread *th, bool force) unsigned int kthread = th - p->threads; ssize_t s; uint64_t val; - int ret; struct thread *th_new; assert(kthread < NCPU); @@ -500,14 +499,16 @@ void cores_park_kthread(struct thread *th, bool force) } } +#if 0 /* move the kthread to the linux c...
hv: fix possible inconsistent issue for 'vm->hw.create_vcpus' to decrease the value of 'create_vcpus' in fail case. Acked-by: Eddie Dong
@@ -326,6 +326,7 @@ int create_vcpu(uint16_t pcpu_id, struct acrn_vm *vm, struct acrn_vcpu **rtn_vcp */ vcpu_id = atomic_xadd16(&vm->hw.created_vcpus, 1U); if (vcpu_id >= CONFIG_MAX_VCPUS_PER_VM) { + vm->hw.created_vcpus--; pr_err("%s, vcpu id is invalid!\n", __func__); return -EINVAL; }
cygwin: drop explicit O_TEXT Cygwin binaries should not enforce text mode these days, just use text mode if the underlying mount point requests it CLA: trivial
@@ -253,9 +253,7 @@ static long file_ctrl(BIO *b, int cmd, long num, void *ptr) } # elif defined(OPENSSL_SYS_WIN32_CYGWIN) int fd = fileno((FILE *)ptr); - if (num & BIO_FP_TEXT) - setmode(fd, O_TEXT); - else + if (!(num & BIO_FP_TEXT)) setmode(fd, O_BINARY); # endif } @@ -279,11 +277,14 @@ static long file_ctrl(BIO *b,...
Finish using time_utc before initializing time_local gmtime and localtime may share the same static internal struct tm, so they cannot both be initialized and then used.
@@ -760,7 +760,6 @@ void sym_Init(time_t now) now = 0; } - const struct tm *time_utc = gmtime(&now); const struct tm *time_local = localtime(&now); strftime(savedTIME, sizeof(savedTIME), "\"%H:%M:%S\"", time_local); @@ -769,6 +768,8 @@ void sym_Init(time_t now) sizeof(savedTIMESTAMP_ISO8601_LOCAL), "\"%Y-%m-%dT%H:%M:%S...
Fix buffer overflow in append_stacktrace This has been causing Segmentation Faults while trying to write error messages to the logs. Also: fix logic for detecting errors while calling addr2line or atos (previously, addr2line_ok was always set to true, even after a failure)
@@ -158,7 +158,7 @@ static void write_eventlog(int level, const char *line, int len); #define ERRORDATA_STACK_SIZE 10 #define CMD_BUFFER_SIZE 1024 -#define SYMBOL_SIZE 512 +#define SYMBOL_SIZE 2048 #define ADDRESS_SIZE 20 #define STACK_DEPTH_MAX 100 @@ -3631,9 +3631,9 @@ append_stacktrace(PipeProtoChunk *buffer, String...
Don't return ERROR_WRONG_ARGUMENTS in "hash" module's functions. Some functions in "hash" module (like sha256, sha1, md5) were returning ERROR_WRONG_ARGUMENTS upon receiving negative offsets or lengths. In those cases a more appropriate behaviour is returning an UNDEFINED value, as ERROR_WRONG_ARGUMENTS makes YARA abor...
@@ -195,9 +195,7 @@ define_function(data_md5) yr_md5_init(&md5_context); if (offset < 0 || length < 0 || offset < block->base) - { - return ERROR_WRONG_ARGUMENTS; - } + return_string(UNDEFINED); cached_ascii_digest = get_from_cache( module(), "md5", arg_offset, arg_length); @@ -280,9 +278,7 @@ define_function(data_sha1...
Fixed a double boot_lite
@@ -1018,7 +1018,6 @@ _cw_eval_commence(c3_i argc, c3_c* argv[]) } c3_c* evl_c = argv[2]; - u3m_boot_lite(); c3_d len_d = u3_Ivory_pill_len; c3_y* byt_y = u3_Ivory_pill; u3_cue_xeno* sil_u;
Fix test framework keepalive The pipe used for sending keepalive messages was being added to an instance of KeepAliveReporter and then used by the class itself. This worked in the past but doesn't anymore. Fix the issue by adding the pipe to the class instead of an instance.
@@ -1255,8 +1255,7 @@ class VppTestRunner(unittest.TextTestRunner): super(VppTestRunner, self).__init__(sys.stdout, descriptions, verbosity, failfast, buffer, resultclass) - reporter = KeepAliveReporter() - reporter.pipe = keep_alive_pipe + KeepAliveReporter.pipe = keep_alive_pipe VppTestResult.test_framework_result_pi...
Minor TCP socket documentation fix.
@@ -130,7 +130,7 @@ enum { * * TCP sockets use input and output buffers for incoming * and outgoing data. The memory for these buffers must be - * allocated by the caller. The size of the buffers + * allocated by the caller. The sizes of the buffers * determine the amount of data that can be received and * sent, and th...
remove comment abput printf. printf is now synchronous (per waveorm).
@@ -168,7 +168,4 @@ See the release notes in github. Here are some limitations. ``` - Dwarf debugging is turned off for GPUs. -g will turn on host level debugging only. - Some simd constructs fail to vectorize on both host and GPUs. - - There are debug versions of the runtime libraries. However, these use printf on the...
cmake: updated header file list
@@ -99,33 +99,48 @@ endif () set(INTERFACE_FILES - include/criterion/assert.h include/criterion/abort.h + include/criterion/alloc.h + include/criterion/assert.h include/criterion/criterion.h + include/criterion/embedded.h include/criterion/event.h include/criterion/hooks.h - include/criterion/logging.h - include/criter...
bricks/ev3dev/modules/boot: remove resources This is no longer available
@@ -4,6 +4,5 @@ from pybricks.iodevices import I2CDevice, UARTDevice, AnalogSensor, DCMotor, Ev3 from pybricks.parameters import Port, Stop, Direction, Button, Color, Align from pybricks.tools import print, wait, StopWatch from pybricks.robotics import DriveBase -from pybricks.resources import Font, Image from pybricks...
better handle hcxlabtool PMF attack results
@@ -2048,6 +2048,8 @@ for(zeigerhs = zeigerhsakt; zeigerhs < handshakelistptr; zeigerhs++) { if(donotcleanflag == false) { + if(memcmp(&mac_broadcast, zeigerhs->client, 6) == 0) continue; + if(memcmp(&mac_broadcast, zeigerhs->ap, 6) == 0) continue; if(zeigerhsold != NULL) { if((memcmp(zeigerhs->ap, zeigerhsold->ap, 6) ...
pyocf: register composite volume type id in ctx
@@ -14,7 +14,9 @@ from pyocf.types.volume import RamVolume, ErrorDevice from pyocf.types.volume_cache import CacheVolume from pyocf.types.volume_core import CoreVolume from pyocf.types.volume_replicated import ReplicatedVolume +from pyocf.types.cvolume import CVolume from pyocf.types.ctx import OcfCtx +from pyocf.helpe...
include/mock/rollback_mock.h: Format with clang-format BRANCH=none TEST=none
@@ -18,7 +18,8 @@ struct mock_ctrl_rollback { }; #define MOCK_CTRL_DEFAULT_ROLLBACK \ -(struct mock_ctrl_rollback) { \ + (struct mock_ctrl_rollback) \ + { \ .get_secret_fail = false, \ }
Updated README.md Ubuntu repo HTTPS note.
@@ -134,7 +134,7 @@ alternative option below. **Note**: * For *on-disk* support (Trusty+ or Wheezy+), run: `sudo apt-get install goaccess-tcb` -* `.deb` packages in the official repo are available through https as well. You may need to install `apt-transport-https`. +* `.deb` packages in the official repo are available...
Small tweaks to QuickStart.
@@ -6,14 +6,14 @@ Quickstart Downloading the code -------------------- -Navigate to the directory in which you want the :code:`VPLANET` source code to live -and type +Navigate to the directory in which you want to place :code:`VPLANET` and type .. code-block:: bash git clone https://github.com/VirtualPlanetaryLaborator...
netutils/netlib: Fix buffer overflow
@@ -154,7 +154,7 @@ int netlib_parsehttpurl(FAR const char *url, FAR uint16_t *port, /* The copy the rest of the file name to the user buffer */ - strncpy(dest, src, namelen); + strncpy(dest, src, bytesleft); filename[namelen-1] = '\0'; return ret; }
haskell-cmake-improvements: adjust ENV
@@ -105,5 +105,5 @@ WORKDIR /home/jenkins/elektra-cabal-sandbox RUN cabal update && \ cabal sandbox init && \ cabal install 'containers >=0.4 && <0.6' 'base >=4.7 && <5' 'directory >=1.1 && <1.4' \ -'process >=1.2 && <1.7' 'filepath >=1.3 && <1.5' 'base -any' 'hspec -any' 'QuickCheck -any' && \ -echo 'export HASKELL_SH...
tree schema free BUGFIX nesting error
@@ -1204,6 +1204,7 @@ lyplg_ext_instance_substatements_free(struct ly_ctx *ctx, struct lysc_ext_substm FREE_ARRAY(ctx, iff, lysc_iffeature_free); } break; + } case LY_STMT_TYPE: if (substmts[u].cardinality < LY_STMT_CARD_SOME) { /* single item */ @@ -1223,7 +1224,6 @@ lyplg_ext_instance_substatements_free(struct ly_ctx...
doc: tweak formatting for :kbd: role update custom css to make kbd tag more interesting
@@ -133,3 +133,24 @@ th,td { col.option { width: 25%; } + +/* tweak format for <kbd> (:kbd:`F10`) */ +kbd +{ + -moz-border-radius:3px; + -moz-box-shadow:0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset; + -webkit-border-radius:3px; + -webkit-box-shadow:0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset; + background-color:#f7f7f...
fix depth in directory iterator
@@ -71,7 +71,7 @@ void *plugin_load_from_path(size_t argc, void *args[], void *data) auto i = fs::recursive_directory_iterator(ext_path); while (i != fs::recursive_directory_iterator()) { - if (i.depth() == 2) + if (i.depth() == 1) { i.disable_recursion_pending(); } @@ -95,7 +95,11 @@ void *plugin_load_from_path(size_t...
Add definitions of OSSL_DEPRECATED[_FOR] for Microsoft VC It turns out that they have __declspec(deprecated) that correspond pretty much to GCC's __attribute__((deprecated)), including for messages.
# ifndef OSSL_DEPRECATED # undef OSSL_DEPRECATED_FOR # ifndef OPENSSL_SUPPRESS_DEPRECATED -# if defined(__GNUC__) +# if defined(_MSC_VER) + /* + * MSVC supports __declspec(deprecated) since MSVC 2003 (13.10), + * and __declspec(deprecated(message)) since MSVC 2005 (14.00) + */ +# if _MSC_VER >= 1400 +# define OSSL_DEPR...
remove atomic_iread
@@ -114,9 +114,6 @@ static inline void* mi_atomic_exchange_ptr(volatile _Atomic(void*)* p, void* exc return (void*)mi_atomic_exchange((volatile _Atomic(uintptr_t)*)p, (uintptr_t)exchange); } -static inline intptr_t mi_atomic_iread(volatile intptr_t* p) { - return (intptr_t)mi_atomic_read( (volatile uintptr_t*)p ); -} #...
OcMachoLib: Remove superfluous 32-bit limit check.
@@ -523,13 +523,6 @@ MachoSymbolGetFileOffset64 ( if (Offset > Section->Size) { return FALSE; } - // - // The check against Section->Size guarantees a 32-bit value for the current - // library implementation. - // - if (Offset != (UINT32)Offset) { - return FALSE; - } *FileOffset = (Section->Offset + (UINT32)Offset);
Set ctrlp and knots in new.
@@ -356,6 +356,8 @@ void ts_internal_bspline_new(size_t n_ctrlp, size_t dim, size_t deg, _spline_->pImpl->dim = dim; _spline_->pImpl->n_ctrlp = n_ctrlp; _spline_->pImpl->n_knots = n_knots; + _spline_->pImpl->ctrlp = ((tsReal *) (_spline_->pImpl + 1)) - sof_real; + _spline_->pImpl->knots = _spline_->pImpl->ctrlp + sof_c...
Work CI-CD Fix filter for changes in .NET tool (only host and CLI projects should trigger a build). ***NO_CI***
@@ -217,7 +217,11 @@ jobs: Write-host "Building nanoCLR target" } - if(($files.where{$_.Contains('targets/netcore')}).Count -gt 0) + if( + (($files.where{$_.Contains('targets/netcore/nanoFramework.nanoCLR.CLI')}).Count -gt 0) -Or + (($files.where{$_.Contains('targets/netcore/nanoCLR.sln')}).Count -gt 0) -Or + (($files....
admin/meta-packages: add OS singularity variant to compute metapackage; needed with removal of ohpc singularity variant in shared file system
@@ -85,6 +85,7 @@ Requires: libicu Requires: libunwind Requires: numactl Requires: python3 +Requires: singularity %if 0%{?rhel} Requires: cairo-devel Requires: libpciaccess
Add a timestamp to the cookie
/* * 2 bytes for packet length, 2 bytes for format version, 2 bytes for * protocol version, 2 bytes for group id, 2 bytes for cipher id, 1 byte for - * key_share present flag, 2 bytes for the hashlen, EVP_MAX_MD_SIZE for - * transcript hash, 1 byte for app cookie length, app cookie length bytes, - * SHA256_DIGEST_LENGT...
doc/man1/openssl.pod: Add missing commands and links Fixes and more
@@ -182,6 +182,10 @@ PKCS#12 Data Management. PKCS#7 Data Management. +=item L<B<pkcs8>|pkcs8(1)> + +PKCS#8 format private key conversion tool. + =item L<B<pkey>|pkey(1)> Public and private key management. @@ -194,10 +198,18 @@ Public key algorithm parameter management. Public key algorithm cryptographic operation util...
ci: Fix paths in
@@ -30,13 +30,13 @@ node { } stage('Compile sysdeps: dripos') { dir('sysdeps-compilation/dripos') { - sh 'meson --cross-file ../../src/ci/dripos.cross-file ../../src/mlibc' + sh 'meson --cross-file ../../src/mlibc/ci/dripos.cross-file ../../src/mlibc' sh 'ninja' } } stage('Compile sysdeps: qword') { dir('sysdeps-compil...
clang-format: reduce penalty for excess characters
@@ -76,8 +76,8 @@ PenaltyBreakAssignment: 50 PenaltyBreakBeforeFirstCallParameter: 19 PenaltyBreakComment: 200 PenaltyBreakFirstLessLess: 120 -PenaltyBreakString: 5 -PenaltyExcessCharacter: 1000000 +PenaltyBreakString: 2 +PenaltyExcessCharacter: 30 PenaltyReturnTypeOnItsOwnLine: 60 PointerAlignment: Right ReflowComment...
Don't mess up old wifi
@@ -2340,8 +2340,16 @@ int DeRestPluginPrivate::configureWifi(const ApiRequest &req, ApiResponse &rsp) return REQ_READY_SEND; } + if (gwWifiType == "accesspoint") + { gwWifiName = name; } + else + { + gwWifiClientName = name; + gwWifiName = name; + } + } if (map.contains("password")) { QString password = map["password"...
Added args handling for pure redscript
@@ -207,7 +207,23 @@ bool HookRunPureScriptFunction(RED4ext::CBaseFunction* apFunction, RED4ext::CSta { if (apFunction->flags.isNative == 1) { - RED4ext::CStack stack(apContext->context18, apContext->args, apContext->argsCount, apContext->result); + // Here it's actually another CStackBase but args is at the same locat...
board/moonbuggy/pse.c: Format with clang-format BRANCH=none TEST=none
@@ -204,8 +204,7 @@ static int command_pse(int argc, char **argv) else return EC_ERROR_PARAM2; } -DECLARE_CONSOLE_COMMAND(pse, command_pse, - "<port# 0-3> <off | on | min | max>", +DECLARE_CONSOLE_COMMAND(pse, command_pse, "<port# 0-3> <off | on | min | max>", "Set PSE port power"); static int ec_command_pse_status(int...
Creating /var/lib/owamp/hierarchy at installation time. Fixes
@@ -148,7 +148,7 @@ setcap "cap_net_raw+p" %{_bindir}/powstream %post -n owamp-server #create data dir (must be prior to selinux) -mkdir -p /var/lib/owamp +mkdir -p /var/lib/owamp/hierarchy chown -R owamp:owamp /var/lib/owamp %if 0%{?el7} @@ -170,7 +170,7 @@ fi %else if [ "$1" = "1" ]; then /sbin/chkconfig --add owamp-...
mesh/transport: fix unreachable os_mbuf_free_chain in bt_mesh_ctl_send
@@ -994,6 +994,7 @@ static inline int32_t ack_timeout(struct seg_rx *rx) int bt_mesh_ctl_send(struct bt_mesh_net_tx *tx, uint8_t ctl_op, void *data, size_t data_len, const struct bt_mesh_send_cb *cb, void *cb_data) { + int err; struct os_mbuf *buf = NET_BUF_SIMPLE(data_len); net_buf_simple_init_with_data(buf, data, dat...
devicemodel: hw: pci: xhci: Remove unnecessary condition Because of the iteration of i as is, the condition i <= XHCI_MAX_DEVS always results as true and thus is unnecessary. When compiling with cflag -Werror this condition will result in a compilation failure.
@@ -1942,7 +1942,7 @@ pci_xhci_cmd_disable_slot(struct pci_xhci_vdev *xdev, uint32_t slot) if (dev == xdev->devices[i]) break; - if (i <= XHCI_MAX_DEVS && XHCI_PORTREG_PTR(xdev, i)) { + if (XHCI_PORTREG_PTR(xdev, i)) { XHCI_PORTREG_PTR(xdev, i)->portsc &= ~(XHCI_PS_CSC | XHCI_PS_CCS | XHCI_PS_PED);
Fixed instance of strncat_s being used instead of strncpy_s
@@ -203,14 +203,13 @@ static void acvp_http_user_agent_check_env_for_var(ACVP_CTX *ctx, char *var_stri if (strnlen_s(envVal, maxLength + 1) > maxLength) { ACVP_LOG_WARN("Environment-provided %s string too long! (%d char max.) Omitting...\n", var, maxLength); } else { - strncat_s(var_string, maxLength + 1, envVal, maxLe...
adding libc getgroups not 100% sure of type gid_t list[] took it as gid_t = uint
@@ -477,7 +477,7 @@ GO(getgrgid_r, iFuppup) GO(getgrnam, pFp) GO(getgrnam_r, iFpppup) // getgrouplist -// getgroups // Weak +GOW(getgroups, iFiu) // __getgroups_chk GO(gethostbyaddr, pFpui) GO(gethostbyaddr_r, iFpuippupp)
lib/ev3dev/nxtcolor: EAGAIN if sysfs not ready After a mode change, we are not immediately ready to init the sensor, so return PBIO_ERROR_AGAIN if so.
@@ -340,7 +340,7 @@ static pbio_error_t nxtcolor_init(nxtcolor_t *nxtcolor, pbio_port_t port) { if (!nxtcolor->fs_initialized) { err = nxtcolor_init_fs(nxtcolor, port); if (err != PBIO_SUCCESS) { - return err; + return PBIO_ERROR_AGAIN; } nxtcolor->fs_initialized = true;
BLE_L2CAP_EVENT_COC_DATA_RECEIVED and conn_handle It seems that the "ble_l2cap_event_coc_received_data" function does not assign the "conn_handle" member of the "event" variable before calling the channel callback. I did not found any other function raising the "BLE_L2CAP_EVENT_COC_DATA_RECEIVED" event so I think this ...
@@ -124,6 +124,7 @@ ble_l2cap_event_coc_received_data(struct ble_l2cap_chan *chan, struct ble_l2cap_event event; event.type = BLE_L2CAP_EVENT_COC_DATA_RECEIVED; + event.receive.conn_handle = chan->conn_handle; event.receive.chan = chan; event.receive.sdu_rx = om;
Update for UTC
@@ -134,8 +134,8 @@ public: consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008 consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008 consensus.vDeployments[Consensus::DEPLOYMENT_ASSETS].bit = 5; //Assets (RIP2) - consensus.vD...
sim/video: fix hang when user temporarily blocks host_set_fmt should not return error when EBUSY
@@ -229,7 +229,7 @@ static int sim_video_data_start_capture(uint8_t nr_datafmt, imgdata_fmt_to_v4l2( datafmt[IMGDATA_FMT_MAIN].pixelformat), interval->denominator, interval->numerator); - if (ret < 0) + if (ret < 0 && ret != -EBUSY) { return ret; }
Remove unused MAX_DOTS constant.
#define MAX_SELECT_LOADS 512 #define MAX_PAL_SIZE 1024 #define MAX_CACHED_BACKGROUNDS 9 -#define MAX_DOTS 10 // Max active dot effects. #define MAX_ARG_COUNT 64 #define PLATFORM_DEFAULT_X 99999
fskframesync: adding reset() method on invalid header
/* - * Copyright (c) 2007 - 2018 Joseph Gaeddert + * Copyright (c) 2007 - 2019 Joseph Gaeddert * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -575,6 +575,8 @@ void fskframesync_execute_rxheader(fskframes...
post: do not notify on top level content
++ graph-permissions-remove |= vip=vip-metadata:met [%yes %self %self] - :: +notification-kind: no notifications for now + :: +notification-kind: don't track unreads, notify on replies :: ++ notification-kind =/ len (lent index.p.i) + ?: =(1 len) ~ `[%post [(dec len) len] %none %children] :: ++ transform-add-nodes
Fix off-by-one NULL write (reported by Jurriaan Bremer)
@@ -487,7 +487,7 @@ YR_OBJECT* _yr_object_lookup( i = 0; p++; // skip the opening quotation mark - while (*p != '"' && *p != '\0' && i < sizeof(str)) + while (*p != '"' && *p != '\0' && i < sizeof(str) - 1) str[i++] = *p++; str[i] = '\0';