message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
update for new mandiant url | @@ -1403,7 +1403,7 @@ Reference
an MD5 hash of the PE's import table after some normalization. The imphash
for a PE can be also computed with `pefile <http://code.google.com/p/pefile/>`_
and you can find more information in `Mandiant's blog
- <https://www.mandiant.com/blog/tracking-malware-import-hashing/>`_. The retur... |
update the uart interrupt priority. | #define UART_BAUDRATE_115200 0x01D7E000 // Baud 115200
#define UART_BAUDRATE_1M 0x10000000 // Baud 1M
-#define UART_PRIORITY 2
-
#define UART_INTEN_RXDRDY_POS 2
#define UART_INTEN_TXDRDY_POS 7
@@ -121,12 +119,8 @@ void uart_init(void) {
| (uint32_t)(1<<UART_INTEN_TXDRDY_POS);
// set priority and enable interrupt in NVI... |
BugID:17920924:add support of chdir getcwd creat 3 | @@ -147,6 +147,16 @@ int aos_access(const char *path, int amode)
return _vfs_to_aos_res(vfs_access(path, amode));
}
+int aos_chdir(const char *path)
+{
+ return _vfs_to_aos_res(vfs_chdir(path));
+}
+
+char *aos_getcwd(char *buf, size_t size)
+{
+ return vfs_getcwd(buf, size);
+}
+
int aos_vfs_fd_offset_get(void)
{
retu... |
scripts: Update mountpoint-info location | @@ -16,7 +16,7 @@ install (PROGRAMS benchmark-createtree DESTINATION ${TARGET_TOOL_EXEC_FOLDER})
install (PROGRAMS upgrade-bootstrap DESTINATION ${TARGET_TOOL_EXEC_FOLDER})
-install (PROGRAMS mountpoint-info DESTINATION ${TARGET_TOOL_EXEC_FOLDER})
+install (PROGRAMS kdb/mountpoint-info DESTINATION ${TARGET_TOOL_EXEC_FO... |
Controller: fixed reading of request body. | @@ -301,7 +301,7 @@ nxt_controller_conn_read(nxt_task_t *task, void *obj, void *data)
preread = nxt_buf_mem_used_size(&b->mem);
nxt_debug(task, "controller request header parsing complete, "
- "body length: %O, preread: %uz",
+ "body length: %uz, preread: %uz",
r->length, preread);
if (preread >= r->length) {
@@ -382,2... |
I added surface to the list of toss3 machines in the customlauncher script. | @@ -98,6 +98,9 @@ class JobSubmitter_mpirun_LLNL(JobSubmitter_mpirun):
# Cyrus Harrison, Wed Jun 27 12:41:03 PDT 2018
# I added catalyst to the list of toss3 machines.
#
+# Eric Brugger, Thu Jul 26 13:48:28 PDT 2018
+# I added surface to the list of toss3 machines.
+#
###################################################... |
Add some docs about the Node ID fields | @@ -131,6 +131,29 @@ type Node struct {
filename string
line uint32
+ // The idX fields' meaning depend on what kind of node it is.
+ //
+ // kind id0 id1 kind
+ // ----------------------------------------------
+ // Arg . name Arg
+ // Assert keyword reason Assert
+ // Assign operator . Assign
+ // Const . name Const
... |
Update data.yml
rename g_Client::Game::UI::Hotbar | @@ -50,7 +50,7 @@ globals:
0x141DDFE40: g_GameObjectManager
0x141DDFE50: g_GameObjectManager_ObjectList
0x141DE0B90: g_GameObjectManager_ObjectListEnd
- 0x141DE2B30: g_Client::Game::UI::Hotbar # not a pointer
+ 0x141DE2B30: g_Client::Game::UI::UIState # not a pointer
0x141DE3EE8: g_Client::Game::UI::Telepo # not a poin... |
Use payload in no-nic L2 main | @@ -115,10 +115,16 @@ static void init_mem()
static struct rte_mbuf*
fake_dpdk_packet(unsigned lcore_id, int index)
{
- int offset = ((lcore_id * 4) + index)*sizeof(struct ether_header);
+ int PAYLOAD_LENGTH = 6;
+ uint8_t PAYLOAD[] = { 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF };
+
+ int HEADERS_TOTAL_LENGTH = sizeof(struct ... |
Made public functions in swd_host_ca.c non-static.
These functions were (implicitly) declared extern in swd_host.h, then
defined as static in swd_host_ca.c. | @@ -75,8 +75,6 @@ static uint32_t soft_reset = SYSRESETREQ;
static uint32_t select_state = SELECT_MEM;
static volatile uint32_t swd_init_debug_flag = 0;
-static uint8_t swd_read_core_register(uint32_t n, uint32_t *val);
-static uint8_t swd_write_core_register(uint32_t n, uint32_t val);
/* Add static functions */
static... |
sysdeps/managarm: Stub CLOCK_BOOTTIME in sys_clock_get | @@ -70,6 +70,11 @@ int sys_clock_get(int clock, time_t *secs, long *nanos) {
"\e[39m" << frg::endlog;
*secs = 0;
*nanos = 0;
+ }else if(clock == CLOCK_BOOTTIME) {
+ mlibc::infoLogger() << "\e[31mmlibc: clock_gettime does not support CLOCK_BOOTTIME"
+ "\e[39m" << frg::endlog;
+ *secs = 0;
+ *nanos = 0;
}else{
mlibc::pan... |
GitHub badge: | ecCodes
=======
-[](https://github.com/ecmwf/eccodes/actions/workflows/ci.yml?query=branch%3Amaster)
-[
{
time_t t;
srand((unsigned)time(&t));
- }
-
+ } else
+ {
adjustProcessAndThreadPriority();
+ }
for (uint8_t i = 0; i < ZYDIS_ARRAY_SIZE(tests); ++i)
{
|
esp_wifi: update noise floor unit | @@ -344,7 +344,7 @@ typedef struct {
unsigned fec_coding:1; /**< Flag is set for 11n packets which are LDPC */
unsigned sgi:1; /**< Short Guide Interval(SGI). 0: Long GI; 1: Short GI */
#if CONFIG_IDF_TARGET_ESP32
- signed noise_floor:8; /**< noise floor of Radio Frequency Module(RF). unit: 0.25dBm*/
+ signed noise_flo... |
Fix validation of swupdateaction to allow upgrade action | @@ -560,7 +560,7 @@ post_swu(oc_request_t *request, oc_interface_mask_t interfaces, void *user_data)
rep = rep->next;
}
- if (action >= OC_SWUPDATE_UPGRADE || !purl || !ut) {
+ if (action > OC_SWUPDATE_UPGRADE || !purl || !ut) {
error_state = true;
}
if (action != OC_SWUPDATE_IDLE && action <= OC_SWUPDATE_UPGRADE && !p... |
CUDA: don't leak the epoch_event | @@ -525,8 +525,10 @@ pocl_cuda_uninit (unsigned j, cl_device_id device)
{
pocl_cuda_device_data_t *data = device->data;
- if (device->available)
+ if (device->available) {
+ cuEventDestroy (data->epoch_event);
cuCtxDestroy (data->context);
+ }
POCL_MEM_FREE (data);
device->data = NULL;
|
Remove some trailing spaces fro default def of AOMP_GPU which messes up liba_bundled on gfx900 systems | @@ -25,7 +25,8 @@ endif
UNAMEP=$(shell uname -p)
-AOMP_GPU ?= gfx900 # Default AOMP_GPU is gfx900 which is vega
+# Default AOMP_GPU is gfx900 which is vega
+AOMP_GPU ?= gfx900
AOMP_CPUTARGET ?= $(UNAMEP)-pc-linux-gnu
CC = $(AOMP)/bin/clang
CUDA ?= /usr/local/cuda
|
perf-tools/likwid: fix src url | @@ -24,7 +24,7 @@ Release: 1%{?dist}
License: GPLv3
Group: %{PROJ_NAME}/perf-tools
URL: https://github.com/RRZE-HPC/likwid
-Source0: https://github.com/RRZE-HPC/likwid/archive/4.3.0.tar.gz#/%{pname}-%{version}.tar.gz
+Source0: https://github.com/RRZE-HPC/likwid/archive/%{version}.tar.gz#/%{pname}-%{version}.tar.gz
Sour... |
le_tc/kernel: refine tc_umm_heap_random_malloc
mem_ptr[alloc_cnt-1] maybe NULL because of invalid size,
then mm_get_heap will get default g_mmheap[0], that is
incorrect logic for multi-region case | @@ -203,6 +203,7 @@ static void tc_umm_heap_random_malloc(void)
{
struct mallinfo info;
int *mem_ptr[ALLOC_FREE_TIMES] = { NULL };
+ int *valid_ptr = NULL;
int allocated[ALLOC_FREE_TIMES] = { 0 };
int alloc_cnt;
int alloc_tc_cnt;
@@ -215,6 +216,7 @@ static void tc_umm_heap_random_malloc(void)
for (alloc_tc_cnt = 0; all... |
Remove useless `header` argument | @@ -14,12 +14,12 @@ static h2o_header_t *find_header(h2o_headers_t *headers, h2o_iovec_t *name)
return headers->entries + index;
}
-static int is_in_list(const char *base, size_t len, h2o_headers_command_t *cmd, int header)
+static int is_in_list(const char *base, size_t len, h2o_headers_command_t *cmd)
{
size_t i;
h2o... |
fix compiler warning in secure mode | @@ -650,7 +650,7 @@ mi_decl_restrict char* mi_strdup(const char* s) mi_attr_noexcept {
mi_decl_restrict char* mi_heap_strndup(mi_heap_t* heap, const char* s, size_t n) mi_attr_noexcept {
if (s == NULL) return NULL;
const char* end = (const char*)memchr(s, 0, n); // find end of string in the first `n` characters (return... |
Tests: use blocking to print unit.log files. | @@ -371,7 +371,7 @@ class TestUnit(unittest.TestCase):
# set stdout to non-blocking
- if TestUnit.detailed:
+ if TestUnit.detailed or TestUnit.print_log:
fcntl.fcntl(sys.stdout.fileno(), fcntl.F_SETFL, 0)
def _print_log(self, data=None):
|
Fix unbound env variable error in tool script
Forgot that our strict options would make this fail. | @@ -73,7 +73,7 @@ if [[ $os = cygwin ]]; then
# user doesn't have gcc-core installed. I have no idea if that actually
# happens. So we'll just explicitly set it to gcc. This might mess up people
# who have clang installed but not gcc, I guess? Is that even possible?
- case $CC in
+ case $cc_exe in
i686-w64-mingw32-gcc.... |
Support reading POST form data. | @@ -1241,7 +1241,8 @@ static int /* O - Number of options */
parse_options(server_client_t *client, /* I - Client */
cups_option_t **options)/* O - Options */
{
- char *name, /* Name */
+ char *post_data = NULL, /* POST form data */
+ *name, /* Name */
*value, /* Value */
*next; /* Next name=value pair */
int num_optio... |
tests/basics/int_big_error.py: Use bytearray to test for int overflow.
In Python 3.7 "1 >> (big int)" is now allowed, it no longer raises an
OverflowError. So use bytearray to test big-int conversion overflow. | @@ -17,9 +17,9 @@ try:
except TypeError:
print("TypeError")
-# overflow because rhs of >> is being converted to machine int
+# overflow because arg of bytearray is being converted to machine int
try:
- 1 >> i
+ bytearray(i)
except OverflowError:
print('OverflowError')
|
frsky: wait for telemetry transmission to complete | @@ -438,6 +438,21 @@ static uint8_t frsky_d_handle_packet() {
protocol_state = STATE_UPDATE;
break;
+ case STATE_RESUME:
+ // wait for IDLE
+ if ((cc2500_get_status() & (0x70)) == 0) {
+ // re-enter rx mode after telemetry
+ cc2500_enter_rxmode();
+ next_channel(1);
+ cc2500_strobe(CC2500_SRX);
+ }
+
+ if ((debug_timer... |
libcupsfilters: Somewhat simpler way to fix the double free in imagetoraster() | @@ -211,7 +211,7 @@ imagetoraster(int inputfd, /* I - File descriptor input stream */
xc1, yc1;
ppd_file_t *ppd; /* PPD file */
ppd_choice_t *choice; /* PPD option choice */
- char *resolution = strdup("300dpi") , /* Output resolution */
+ char *resolution, /* Output resolution */
*media_type; /* Media type */
ppd_prof... |
BugID:17394649:fix memory leak in alcs_rec_heart_beat | @@ -525,6 +525,7 @@ void alcs_rec_heart_beat(CoAPContext *ctx, const char *path, NetworkAddr *remote
CoAPLenString token = {request->header.tokenlen, request->token};
alcs_sendrsp (ctx, remote, &msg, 1, request->header.msgid, &token);
}
+ alcs_msg_deinit(&msg);
}
int observe_data_encrypt(CoAPContext *ctx, const char* p... |
Correcting Makefile. Makefiles from subsystems should be always executed. Adding .FORCE dependency. | #
# Makefile for Phoenix-RTOS 3.0 kernel
#
-# Copyright 2012-2015, 2016 Phoenix Systems
+# Copyright 2012-2015, 2016-2018 Phoenix Systems
# Copyright 2001, 2005-2007, 2011 Pawel Pisarczyk
#
# %LICENSE%
@@ -78,9 +78,11 @@ all: subsystems $(OBJS) $(EMBED) $(BIN)
$(OBJS): $(filter clean,$(MAKECMDGOALS))
+
subsystems: $(AR... |
sx128x: improve busy handling | @@ -36,8 +36,11 @@ void sx128x_init() {
gpio_init.Pull = LL_GPIO_PULL_NO;
gpio_pin_init(&gpio_init, SX12XX_RESET_PIN);
+ spi_bus_device_init(&bus);
+ spi_bus_device_reconfigure(&bus, true, MHZ_TO_HZ(10));
+
gpio_init.Mode = LL_GPIO_MODE_INPUT;
- gpio_init.Speed = LL_GPIO_SPEED_FREQ_LOW;
+ gpio_init.Speed = LL_GPIO_SPEE... |
Update bug_report.md
Steps are now module specfic. | @@ -6,7 +6,7 @@ about: Create a report to help us improve
Please complete the following template to help us investigate your issue. Developer time is very limited - incomplete issue reports may be ignored and deleted.
-Note: Legacy builds are not supported. Issue fixes are applied to the latest engine builds.
+**Note:*... |
[voting-reward] remove aergo.vault balance warning | @@ -148,7 +148,6 @@ func sendVotingReward(bState *state.BlockState, dummy []byte) error {
vaultBalance := vs.GetBalanceBigInt()
if vaultBalance.Cmp(new(big.Int).SetUint64(0)) == 0 {
- logger.Info().Msgf("%s address has zero balance. skip voting reward", types.AergoVault)
return nil
}
|
qtbase_%.bbappend: update PACKAGECONFIG name for xkbcommon
As per [Qt 5.12.2 commit update](https://github.com/meta-qt5/meta-qt5/commit/28d4bfdf74ba9d66ad749fc7208ca8dc147a3927), xkbcommon-evdev PACKAGECONFIG option has been renamed to xkbcommon.
This commit fixes BitBake QA:
WARNING: qtbase-5.12.2+gitAUTOINC+856fb1ab4... | @@ -4,7 +4,7 @@ PACKAGECONFIG_GL_rpi = "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'g
PACKAGECONFIG_GL_append_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', ' kms', '', d)}"
PACKAGECONFIG_GL_append_rpi = " gbm"
PACKAGECONFIG_FONTS_rpi = "fontconfig"
-PACKAGECONFIG_append_rpi = " libinput exam... |
common/regulator.c: Format with clang-format
BRANCH=none
TEST=none | #include "host_command.h"
#include "regulator.h"
-static enum ec_status
-hc_regulator_get_info(struct host_cmd_handler_args *args)
+static enum ec_status hc_regulator_get_info(struct host_cmd_handler_args *args)
{
const struct ec_params_regulator_get_info *p = args->params;
struct ec_response_regulator_get_info *r = ar... |
Add status ErrFile used by luaL_loadfile | @@ -46,6 +46,8 @@ import Foreign.Ptr (FunPtr, Ptr)
import Foreign.Storable (Storable)
#include "lua.h"
+-- required only for LUA_ERRFILE
+#include "lauxlib.h"
-- | An opaque structure that points to a thread and indirectly (through the
-- thread) to the whole state of a Lua interpreter. The Lua library is fully
@@ -201... |
naive: use get-network for retrieving chain data | ++ run-logs
|= [nas=^state:naive logs=(list event-log:rpc:ethereum) =network]
^- [(list tagged-diff) ^state:naive]
- =/ [contract=@ux chain-id=@]
- =< [azimuth chain-id]
- =, azimuth
- ?- network
- %mainnet mainnet-contracts
- %ropsten ropsten-contracts
- %local local-contracts
- ==
+ =/ [contract=@ux * chain-id=@ *] (... |
forgot one refresh_config | @@ -905,7 +905,7 @@ void check_keybinds(struct overlay_params& params){
}
}
- if (elapsedRefreshConfig >= 500000){
+ if (elapsedReloadCfg >= 500000){
if (key_is_pressed(params.reload_cfg)){
parse_overlay_config(¶ms, getenv("MANGOHUD_CONFIG"));
reload_cfg_press = now;
|
st patch: vertcenter | @@ -83,6 +83,7 @@ typedef struct {
int w, h; /* window width and height */
int ch; /* char height */
int cw; /* char width */
+ int cyo; /* char y offset */
int mode; /* window state/mode flags */
int cursor; /* cursor style */
} TermWindow;
@@ -1001,6 +1002,7 @@ xloadfonts(char *fontstr, double fontsize)
/* Setting ch... |
plasma is providing a combined C/fortran interface in libplasma.so and
the fortran interface looks to leverage iso_c_bindings. Add additional
fortran library linkage to resolve missing iso_c routines for C tests. | @@ -29,7 +29,7 @@ if test "x$LMOD_FAMILY_COMPILER" = "xintel"; then
CFLAGS="-I ${PLASMA_INC} -I ${MKLROOT}/include ${CFLAGS}"
FFLAGS="-I ${PLASMA_INC} -I ${MKLROOT}/include ${FFLAGS}"
FCFLAGS="-I ${PLASMA_INC} -I ${MKLROOT}/include ${FFLAGS}"
- LDFLAGS="-L${PLASMA_LIB} -lplasma -lcoreblasqw -lcoreblas -lquark -lmkl_rt ... |
esp_hw_support: always inline cpu_hal_set_vecbase | @@ -136,7 +136,7 @@ static inline void cpu_hal_clear_watchpoint(int id)
*
* @param base address to move the exception vector table to
*/
-static inline void cpu_hal_set_vecbase(const void *base)
+static inline __attribute__((always_inline)) void cpu_hal_set_vecbase(const void *base)
{
esp_cpu_intr_set_ivt_addr(base);
}... |
removed obj-files, that are moved to lapack 3.7.0 | @@ -84,10 +84,10 @@ CBLAS1OBJS = \
CBLAS2OBJS = \
cgemv.$(SUFFIX) cgeru.$(SUFFIX) cgerc.$(SUFFIX) \
- ctrsv.$(SUFFIX) ctrmv.$(SUFFIX) csymv.$(SUFFIX) \
- csyr.$(SUFFIX) csyr2.$(SUFFIX) cgbmv.$(SUFFIX) \
- csbmv.$(SUFFIX) cspmv.$(SUFFIX) \
- cspr.$(SUFFIX) cspr2.$(SUFFIX) \
+ ctrsv.$(SUFFIX) ctrmv.$(SUFFIX) \
+ csyr2.$(... |
Tools: Make clear the used platform in the PowerShell export script | @@ -24,7 +24,8 @@ foreach ($line in $envars_raw) {
}
if ($IsWindows -eq $null) {
- # $IsWindows was added in PowerShell Core 6 and PowerShell 7.
+ # $IsWindows was added in PowerShell Core 6 and PowerShell 7 together with multi-platform support. # I.E. if this
+ # internal variable is not set then PowerShell 5 is used ... |
[apps] Use GCC's `objdump` binary for LLVM | @@ -39,13 +39,14 @@ ifeq ($(COMPILER),gcc)
RISCV_PREFIX ?= $(GCC_INSTALL_DIR)/bin/$(RISCV_TARGET)-
RISCV_CC ?= $(RISCV_PREFIX)gcc
RISCV_CXX ?= $(RISCV_PREFIX)g++
+ RISCV_OBJDUMP ?= $(RISCV_PREFIX)objdump
else
# Use LLVM by default
RISCV_PREFIX ?= $(LLVM_INSTALL_DIR)/bin/llvm-
RISCV_CC ?= $(LLVM_INSTALL_DIR)/bin/clang
R... |
hv: cpuid: expose PCID related capabilities to VMs
Pass-through PCID related capabilities to VMs:
The support of PCID (CPUID.01H.ECX[17])
The support of instruction INVPCID (CPUID.07H.EBX[10])
Acked-by: Eddie Dong | @@ -116,8 +116,8 @@ static void init_vcpuid_entry(uint32_t leaf, uint32_t subleaf,
case 0x07U:
if (subleaf == 0U) {
cpuid_subleaf(leaf, subleaf, &entry->eax, &entry->ebx, &entry->ecx, &entry->edx);
- /* mask invpcid */
- entry->ebx &= ~(CPUID_EBX_INVPCID | CPUID_EBX_PQM | CPUID_EBX_PQE);
+
+ entry->ebx &= ~(CPUID_EBX_P... |
Make bootstrap-t4p4s.sh install curl | @@ -13,7 +13,7 @@ case $DPDK_VSN in
esac
# Download libraries
-sudo apt-get update && sudo apt-get -y install g++ git automake libtool libgc-dev bison flex libfl-dev libgmp-dev libboost-dev libboost-iostreams-dev pkg-config python python-scapy python-ipaddr tcpdump cmake python-setuptools libprotobuf-dev libnuma-dev &
... |
fix: Remove the call to fprintf
issue | @@ -554,7 +554,7 @@ int Platone_get_Nodeinfo(const char *const monitor,nodesResult *result_out)
const char *error_ptr = cJSON_GetErrorPtr();
if (error_ptr != NULL)
{
- fprintf(stderr, "Error before: %s\n", error_ptr);
+ BoatLog(BOAT_LOG_CRITICAL, "Error before: %s\n", error_ptr);
}
status = 0;
goto end;
|
[numerics] add POSIX define to get strtok_r | *
* Contact: Vincent ACARY, siconos-team@lists.gforge.inria.fr
*/
-
+#define _POSIX_C_SOURCE 200112L
#include <stdio.h>
#include <stdlib.h>
+
#include <assert.h>
#include <math.h>
#include <float.h>
+
+
+
#include <string.h>
+
+
#include "numerics_verbose.h"
#include "CSparseMatrix_internal.h"
#include "SiconosCompat.h... |
another entry for ChangeLog | @@ -7,6 +7,7 @@ Version 1.2.1 (09 January 2017)
* update nagios package installation for compute image (https://github.com/openhpc/ohpc/issues/248)
* removal of hard-coded paths in Makefiles installed with TAU (https://github.com/openhpc/ohpc/issues/355)
* document need for resolvable SMS hostname (https://github.com/o... |
Fixed long wait when the loader refuses to run. Fixes | @@ -384,10 +384,20 @@ int stlink_flash_loader_run(stlink_t *sl, flash_loader_t* fl, stm32_addr_t targe
/* run loader */
stlink_run(sl);
-#define WAIT_ROUNDS 10000
+// This piece of code used to try to spin for .1 second by waiting
+// doing 10000 rounds of 10 microseconds. But because this usually runs
+// on Unix-like... |
Temporal fix for byte-ordering if local variables are used to fill header fields. | @@ -251,6 +251,10 @@ def gen_format_statement_fieldref_short(dst, src, dst_width, dst_is_vw, dst_byte
indirection = "&" if is_primitive(src.type) else ""
var_name = src.path.name
refbase = "local_vars->" if is_control_local_var(src.decl_ref.name) else 'parameters.'
+ if refbase == "local_vars->":
+ #[ memcpy(&$varname,... |
Add :fiber-flags options to run-context.
This also improves eval-string error behavior. | @@ -1477,7 +1477,8 @@ value, one key will be ignored."
:env - the environment to compile against - default is *env*\n\t
:source - string path of source for better errors - default is \"<anonymous>\"\n\t
:on-compile-error - callback when compilation fails - default is bad-compile\n\t
- :on-status - callback when a value... |
esp32/modnetwork: Synchronize WiFi AUTH_xxx constants with IDF values. | @@ -772,6 +772,11 @@ STATIC const mp_rom_map_elem_t mp_module_network_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR_AUTH_WPA_PSK), MP_ROM_INT(WIFI_AUTH_WPA_PSK) },
{ MP_ROM_QSTR(MP_QSTR_AUTH_WPA2_PSK), MP_ROM_INT(WIFI_AUTH_WPA2_PSK) },
{ MP_ROM_QSTR(MP_QSTR_AUTH_WPA_WPA2_PSK), MP_ROM_INT(WIFI_AUTH_WPA_WPA2_PSK) },
+ { MP_R... |
Disabled current_thread update breaking ftrace | @@ -254,7 +254,9 @@ process exec_elf(buffer ex, process kp)
assert(proc->heap_map != INVALID_ADDRESS);
exec_debug("entry %p, brk %p (offset 0x%lx)\n", entry, proc->brk, brk_offset);
- current_cpu()->current_thread = (nanos_thread)t;
+ /* XXX temporarily disable because it breaks ftrace. Will need to
+ eventually deal w... |
out_azure: register upstream with instance | @@ -182,6 +182,7 @@ struct flb_azure *flb_azure_conf_create(struct flb_output_instance *ins,
return NULL;
}
ctx->u = upstream;
+ flb_output_upstream_set(ctx->u, ins);
/* Compose uri */
ctx->uri = flb_sds_create_size(1024);
|
Copy rollover extra field
Added copy of the new extra field when creating a new spinbox copying an existing one | @@ -101,6 +101,7 @@ lv_obj_t * lv_spinbox_create(lv_obj_t * par, const lv_obj_t * copy)
lv_spinbox_set_digit_format(new_spinbox, (uint8_t)copy_ext->digit_count, (uint8_t)copy_ext->dec_point_pos);
lv_spinbox_set_range(new_spinbox, copy_ext->range_min, copy_ext->range_max);
lv_spinbox_set_step(new_spinbox, copy_ext->step... |
Elevated banning logging to level Info | @@ -154,7 +154,7 @@ namespace MiningCore.Stratum
// boot pre-connected clients
if (banManager?.IsBanned(client.RemoteEndpoint.Address) == true)
{
- logger.Trace(() => $"[{LogCat}] [{connectionId}] Disconnecting banned client @ {remoteEndPoint.Address}");
+ logger.Info(() => $"[{LogCat}] [{connectionId}] Disconnecting b... |
Switch back to ALSA on Linux; | #define MINIAUDIO_IMPLEMENTATION
#define MA_ENABLE_ONLY_SPECIFIC_BACKENDS
#define MA_ENABLE_WASAPI
-#define MA_ENABLE_PULSEAUDIO
+#define MA_ENABLE_ALSA
#define MA_ENABLE_COREAUDIO
#define MA_ENABLE_AAUDIO
#define MA_ENABLE_WEBAUDIO
|
rename Current Implementation -> Old Implementation; highlight speedup of keyCopy | @@ -81,8 +81,8 @@ This means noticeably reduced memory usage for cases where keys and keysets are
We run some very promising benchmarks, each were performed with 400,000 keys.
All benchmarks were executed using `valgrind --tool=massif --time-unit=B --max-snapshots=200 --threshold=0.1`.
-| Benchmark | Current Implementa... |
mmapstorage: fix flag documentation | @@ -125,16 +125,16 @@ typedef enum {
will lead to an error.
Needed for metakeys.*/
KEY_FLAG_MMAP_STRUCT = 1 << 4, /*!<
- Key lies inside a mmap region.
- This flag is set once a Key has been moved to a mapped region.
+ Key struct lies inside a mmap region.
+ This flag is set once a Key struct has been moved to a mapped... |
encodings definitions | @@ -1207,6 +1207,18 @@ char *ruby_hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign
/* utf_8.c */
extern rb_encoding OnigEncodingUTF_8;
+//RHO
+extern rb_encoding OnigEncodingWindows_31J;
+extern rb_encoding OnigEncodingUTF_16BE;
+extern rb_encoding OnigEncodingUTF_16LE;
+extern rb_encoding OnigEnco... |
gall: crash on agent build failure | ==
~> %slog.[0 leaf+"gall: {tex} {<dap>}"]
::
- ?^ existing
+ ?^ yak
=. yokes.state
(~(put by yokes.state) dap u.yak(beak bek))
=/ ap-core (ap-abed:ap dap `our)
=/ tim (slav da+dat)
=/ =beak [(slav %p her) desk da+tim]
?> ?=([?(%behn %clay) %writ *] sign-arvo)
- |^ ^+ mo-core
?~ p.sign-arvo
- (fail leaf+"gall: failed t... |
[core] add comment for FastCGI mem use in hctx->rb
x-ref:
"Memory Growth with PUT and full buffered streams" | @@ -2052,6 +2052,11 @@ handler_t gw_handle_subrequest(request_st * const r, void *p_d) {
if ((r->conf.stream_response_body & FDEVENT_STREAM_RESPONSE_BUFMIN)
&& r->resp_body_started) {
if (chunkqueue_length(&r->write_queue) > 65536 - 4096) {
+ /* Note: if apps inheriting gw_handle use hctx->rb, then those apps
+ * are r... |
add missing const in cast | @@ -74,7 +74,7 @@ static int test_idea_cbc(void)
IDEA_set_encrypt_key(k, &key);
IDEA_set_decrypt_key(&key, &dkey);
memcpy(iv, k, sizeof(iv));
- IDEA_cbc_encrypt((unsigned char *)text, out, text_len, &key, iv, 1);
+ IDEA_cbc_encrypt((const unsigned char *)text, out, text_len, &key, iv, 1);
memcpy(iv, k, sizeof(iv));
IDE... |
Fix build failure caused by merge | @@ -218,8 +218,8 @@ static void _httpProcessResponseBody( OTA_AgentContext_t * pAgentCtx, uint8_t *
{
IotLogDebug( "Invoking _httpProcessResponseBody" );
- OTAEventData_t * pMessage;
- OTAEventMsg_t eventMsg = { 0 };
+ OTA_EventData_t * pMessage;
+ OTA_EventMsg_t eventMsg = { 0 };
pAgentCtx->xStatistics.ulOTA_PacketsRe... |
Prevent race condition in fast path
Request submitted in fast path may be freed before the sequential cutoff stats
are updated. Increment request reference counter to prevent it. | @@ -302,12 +302,16 @@ void ocf_core_volume_submit_io(struct ocf_io *io)
ocf_core_update_stats(core, io);
ocf_io_get(io);
+ /* Prevent race condition */
+ ocf_req_get(req);
if (!ocf_core_submit_io_fast(io, req, core, cache)) {
ocf_core_seq_cutoff_update(core, req);
+ ocf_req_put(req);
return;
}
+ ocf_req_put(req);
ocf_r... |
lovr.headset.getPose works with keyboard device on Quest; | @@ -91,7 +91,9 @@ uintptr_t gpu_vk_get_queue(uint32_t* queueFamilyIndex, uint32_t* queueIndex);
X(xrGetHandMeshFB)\
X(xrGetDisplayRefreshRateFB) \
X(xrEnumerateDisplayRefreshRatesFB) \
- X(xrRequestDisplayRefreshRateFB)
+ X(xrRequestDisplayRefreshRateFB) \
+ X(xrQuerySystemTrackedKeyboardFB) \
+ X(xrCreateKeyboardSpace... |
Fix 4 lane swz for NEON | @@ -167,9 +167,9 @@ struct vfloat4
*
* TODO: Implement using permutes.
*/
- template <int l0, int l1, int l2, int l3> ASTCENC_SIMD_INLINE float3 swz() const
+ template <int l0, int l1, int l2, int l3> ASTCENC_SIMD_INLINE vfloat4 swz() const
{
- return float3(lane<l0>(), lane<l1>(), lane<l2>(), lane<l3>());
+ return vfl... |
contact-store: upgrade existing paths on OTA | $: %1
=rolodex
==
++$ state-two
+ $: %2
+ =rolodex
+ ==
--
::
=| state-one
++ on-load
|= old-vase=vase
=/ old !<(versioned-state old-vase)
+ =| cards=(list card)
+ |-
+ ?: ?=(%2 -.old)
+ [cards this(state old)]
?: ?=(%1 -.old)
- [~ this(state old)]
+ =/ new-rolodex=^rolodex
+ %- malt
+ %+ turn
+ ~(tap by rolodex.old)
+... |
removing experimental feature notice for gpbackup/restore | </section>
<section>
<title>Parallel Backup with gpbackup and gprestore</title>
- <note><codeph>gpbackup</codeph> and <codeph>gprestore</codeph> are experimental utilities and
- are not intended for use in a production environment. Experimental features are subject to
- change without notice in future releases.</note>
... |
I built OpenEXR and the latest Ice-T on cab and updated the config site
file. | @@ -162,8 +162,7 @@ VISIT_OPTION_DEFAULT(VISIT_HDF4_LIBDEP ${VISITHOME}/szip/2.1/${VISITARCH}/lib sz
##
## Ice-T
##
-VISIT_OPTION_DEFAULT(VISIT_ICET_DIR /g/g17/whitlocb/thirdparty_shared/3.0.0/icet/77c708f9090236b576669b74c53e9f105eedbd7e/${VISITARCH}) # For now
-#VISIT_OPTION_DEFAULT(VISIT_ICET_DIR ${VISITHOME}/icet/7... |
revert __FORCE_COMMIT__ | #include <utility>
#include "yexception.h"
-#include "bt_exception.h"
#include <util/system/align.h>
#include <util/stream/output.h>
namespace NMaybe {
struct TPolicyUndefinedExcept {
static void OnEmpty() {
- ythrow TWithBackTrace<yexception>() << AsStringBuf("TMaybe is empty");
+ ythrow yexception() << AsStringBuf("T... |
hw/ipc_nrf5340: Clear shared memory on init | @@ -233,6 +233,8 @@ ipc_nrf5340_init(void)
NRF_GPIO_Type *nrf_gpio;
#endif
+ memset(ipc_shared, 0, sizeof(ipc_shared));
+
#if MYNEWT_VAL(NRF5340_EMBED_NET_CORE)
/*
* Get network core image size and placement in application flash.
|
Removing buggy debug code. | @@ -1172,10 +1172,6 @@ static int tls_api_data_sending_loop(picoquic_test_tls_api_ctx_t* test_ctx,
while (ret == 0 && nb_trials < max_trials && nb_inactive < 256 && TEST_CLIENT_READY && TEST_SERVER_READY) {
int was_active = 0;
- if (nb_trials = 86) {
- ret = 0;
- }
-
nb_trials++;
ret = tls_api_one_sim_round(test_ctx, s... |
machinarium: fix obj cast in machine_write_batch() | @@ -165,7 +165,7 @@ machine_write_batch(machine_io_t *obj, machine_channel_t *obj_channel)
return -1;
}
mm_channelfast_t *channel;
- channel = mm_cast(mm_channelfast_t*, obj);
+ channel = mm_cast(mm_channelfast_t*, obj_channel);
if (channel->readers_count > 0) {
mm_errno_set(EINVAL);
return -1;
|
Logging: Document how to log from multiple sources | @@ -72,6 +72,17 @@ If you want to only log messages below a specific directory prefix, then please
#endif
```
+ . To log messages from multiple source you can use the operator `&&` to chain multiple calls to `strncmp`. For example, to log messages
+ from the `directoryvalue` and `yamlcpp` plugin use the code:
+
+ ```c
... |
openssl.pod: Improve doc of -verify_email, -verify_hostname, and -verify_ip | @@ -1051,18 +1051,18 @@ B<-verify_depth> limit.
=item B<-verify_email> I<email>
-Verify if I<email> matches the email address in Subject Alternative Name or
-the email in the subject Distinguished Name.
+Verify if I<email> matches any email address in a Subject Alternative Name or
+(if no SAN is included) the email add... |
Fix formatting of archiveGetFile(). | @@ -17,8 +17,9 @@ Archive Get File
#include "storage/helper.h"
/**********************************************************************************************************************************/
-FN_EXTERN ArchiveGetFileResult archiveGetFile(
- const Storage *storage, const String *request, const List *actualList, con... |
Fix - round up memory size for decompressing glyph | @@ -94,11 +94,12 @@ const uint8_t * lv_font_get_bitmap_fmt_txt(const lv_font_t * font, uint32_t unic
if(gsize == 0) return NULL;
uint32_t buf_size = gsize;
+ /*Compute memory size needed to hold decompressed glyph, rounding up*/
switch(fdsc->bpp) {
- case 1: buf_size = gsize >> 3; break;
- case 2: buf_size = gsize >> 2... |
better cmake process for MI_VALGRIND | @@ -108,6 +108,9 @@ endif()
if(MI_SECURE)
message(STATUS "Set full secure build (MI_SECURE=ON)")
list(APPEND mi_defines MI_SECURE=4)
+ #if (MI_VALGRIND)
+ # message(WARNING "Secure mode is a bit weakened when compiling with Valgrind support as buffer overflow detection is no longer byte-precise (if running without valg... |
Include the new `sort()` method in docs.
Fix a typo in docs. | @@ -198,13 +198,28 @@ print(list2); // [10, 2]
#### list.deepCopy()
To get around this, we can deepCopy the list.
```js
-var list1 = [[1, 2];
+var list1 = [[1, 2]];
var list2 = list1.deepCopy();
list2[0][0] = 10;
print(list1); // [[1, 2]]
print(list2); // [[10, 2]]
```
+### Sorting Lists
+#### list.sort()
+
+To sort nu... |
Fix invalid string comparison. | @@ -1257,7 +1257,7 @@ resolv_lookup(const char *name, uip_ipaddr_t **ipaddr)
name = remove_trailing_dots(name);
#if UIP_CONF_LOOPBACK_INTERFACE
- if(strcmp(name, "localhost")) {
+ if(strcmp(name, "localhost") == 0) {
static uip_ipaddr_t loopback =
{ { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x... |
py/mpz: Apply a small code-size optimisation. | @@ -1395,8 +1395,9 @@ void mpz_pow3_inpl(mpz_t *dest, const mpz_t *lhs, const mpz_t *rhs, const mpz_t
return;
}
- if (rhs->len == 0) {
mpz_set_from_int(dest, 1);
+
+ if (rhs->len == 0) {
return;
}
@@ -1404,8 +1405,6 @@ void mpz_pow3_inpl(mpz_t *dest, const mpz_t *lhs, const mpz_t *rhs, const mpz_t
mpz_t *n = mpz_clone(... |
Add ShowConnectionSetting values | @@ -2,12 +2,14 @@ import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import { RootState } from "../../configureStore";
import projectActions from "../project/projectActions";
+type ShowConnectionsSetting = "all" | "selected" | true | false
+
export type SettingsState = {
startSceneId: string;
startX: number... |
Fix a license text | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-// Copyright 2016 Eotvos Lorand University, Budapest, Hungary
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// ... |
Detected memory leak in python loader. | @@ -227,11 +227,15 @@ static char *py_loader_impl_main_module = NULL;
void py_loader_impl_value_invoke_state_finalize(value v, void *data)
{
- loader_impl_py_function_type_invoke_state invoke_state = (loader_impl_py_function_type_invoke_state)data;
+ PyObject *capsule = (PyObject *)data;
+
+ loader_impl_py_function_typ... |
[MLNUI] 0.1.2 | Pod::Spec.new do |s|
s.name = 'MLNUI'
- s.version = '0.1.1'
+ s.version = '0.1.2'
s.summary = 'A lib of Momo Lua UI.'
# This description is used to generate tags and improve search results.
|
docker: Switch docker repo
Switch to Berlin server | @@ -3,7 +3,7 @@ version: '3.7'
# Define services
services:
ubxlib_agent:
- image: registry.git-sho-mlm.u-blox.net/sw-emb-sho/devtools/ubxlib-docker/ubxlib_docker:latest
+ image: nexus-de-bln.u-blox.net:18001/ubxlib_docker:latest
restart: unless-stopped
device_cgroup_rules:
- 'c 188:* rmw'
|
Add missing psa_pake_cipher_suite_init() | @@ -1153,6 +1153,10 @@ typedef uint32_t psa_pake_primitive_t;
*/
typedef struct psa_pake_cipher_suite_s psa_pake_cipher_suite_t;
+/** Return an initial value for a PAKE cipher suite object.
+ */
+static psa_pake_cipher_suite_t psa_pake_cipher_suite_init(void);
+
/** Retrieve the PAKE algorithm from a PAKE cipher suite.... |
Update go.mod with newer pretty version required by ebpf
This commit updates pretty module to version 0.2.1 because it is
required by ebpf version 0.4.0 which was introduced in
(Implement support for Node Resource Interface). | @@ -10,7 +10,7 @@ require (
github.com/gorilla/mux v1.7.4 // indirect
github.com/iovisor/gobpf v0.0.0-20191129151106-ac26197bb7be // indirect
github.com/kinvolk/traceloop v0.0.0-20210623155108-6f4efc6fca46
- github.com/kr/pretty v0.2.0
+ github.com/kr/pretty v0.2.1
github.com/moby/term v0.0.0-20200507201656-73f35e472e8... |
add cmake build option to build openssl async
This code is orignally in automake, but it is missing in cmake.
Thus add it to make openssl async work in cmake build system | # See the License for the specific language governing permissions and
# limitations under the License.
+include (CheckFunctionExists)
if(OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIR})
add_vpp_plugin(tlsopenssl
@@ -21,5 +22,15 @@ if(OPENSSL_FOUND)
LINK_LIBRARIES
${OPENSSL_LIBRARIES}
)
+
+ set(CMAKE_REQUIRED_... |
link fe: prefix ship names in comments with sig | @@ -41,7 +41,7 @@ export class CommentItem extends Component {
/>
<p className="gray2 f9 flex items-center ml2">
<span className={"black white-d " + props.nameClass}>
- {((props.nickname) ? props.nickname : props.ship)}
+ {props.nickname ? props.nickname : '~'+props.ship}
</span>
<span className="ml2">
{this.state.time... |
Removing app data debug message.
This message produces too many noise in log and complicates analysis. | @@ -3393,10 +3393,6 @@ nxt_router_response_ready_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg,
dump_size = 300;
}
- nxt_debug(task, "%srouter app data (%uz): %*s",
- msg->port_msg.last ? "last " : "", msg->size, dump_size,
- b->mem.pos);
-
if (msg->size == 0) {
b = NULL;
}
|
Ethash implementation | @@ -106,16 +106,16 @@ namespace MiningCore.Native
public struct ethash_h256_t
{
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U8, SizeConst = 32)]
- byte[] value;
+ public byte[] value;
}
[StructLayout(LayoutKind.Sequential)]
public struct ethash_return_value
{
- ethash_h256_t result;
- ethash_h256_... |
libhfcommon/util: implement LOCK_BTS for x86(-64) specifically | @@ -76,7 +76,17 @@ __attribute__((always_inline)) static inline bool ATOMIC_BITMAP_SET(uint8_t* add
if (ATOMIC_GET(*addr) & mask) {
return true;
}
+
+#if defined(__x86_64__) || defined(__i386__)
+ bool old;
+ __asm__ __volatile__("lock bts %2, %0\n\t"
+ "sbb %1, %1\n\t"
+ : "+m"(*addr), "=r"(old)
+ : "Ir"(offset % 8));... |
DEV_TestManaged(): Static init | @@ -987,5 +987,6 @@ Device *DEV_GetOrCreateDevice(QObject *parent, deCONZ::ApsController *apsCtrl, D
*/
bool DEV_TestManaged()
{
- return (deCONZ::appArgumentNumeric("--dev-test-managed", 0) > 0);
+ static bool managed = (deCONZ::appArgumentNumeric("--dev-test-managed", 0) > 0);
+ return managed;
}
|
cmd_args: fix memleak | @@ -653,8 +653,9 @@ bool processLongOptSpec (struct Specification * spec, struct OptionData * option
const char * argName = optionData->argName;
bool hidden = optionData->hidden;
- const char * longMeta = elektraFormat ("%s/long", optionData->metaKey);
+ char * longMeta = elektraFormat ("%s/long", optionData->metaKey);... |
Documentation change only: mention malloc()/free() override in porting guide. | @@ -20,6 +20,7 @@ If your platform is not currently supported you may be able to port it yourself,
- some [crypto](api/u_port_crypto.h) functions are required if you want to use the security features in `ubxlib`; in our experience these are almost always provided by [mbedTLS](https://www.trustedfirmware.org/projects/mb... |
Fix method name encoder.fromBase64 in example code | @@ -29,7 +29,7 @@ Decodes a Base64 representation of a (binary) Lua string back into the original
thrown if the string is not a valid base64 encoding.
#### Syntax
-`binary_string = encoder.toBase64(b64)`
+`binary_string = encoder.fromBase64(b64)`
#### Parameters
`b64` Base64 encoded input string
|
Remove 'const' qualifier compilation warning | @@ -1222,7 +1222,7 @@ gen_cmd["GetTable"] = function(self, cmd, _func)
-- Else, use Lua's default getStr method
else
find_slot = util.render([[
- TValue *slot = luaH_getstr($tab, $key);
+ TValue *slot = cast(TValue *, luaH_getstr($tab, $key));
]], ops)
end
@@ -1260,7 +1260,7 @@ gen_cmd["SetTable"] = function(self, cmd,... |
remove error in case client did not enable forwarding | @@ -15,7 +15,7 @@ OIDC_SOCK=/tmp/oidc-forward`).
Put the following in your `.bash_profile` on the server:
```
test -z $OIDC_SOCK && {
- export OIDC_SOCK=`/bin/ls -rt /tmp/oidc-forward-* | tail -n 1`
+ export OIDC_SOCK=`/bin/ls -rt /tmp/oidc-forward-* 2>/dev/null | tail -n 1`
}
```
and this into your `.bash_logout` on t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.