message
stringlengths
6
474
diff
stringlengths
8
5.22k
control: hold after stop at target This ensures that a new track_target movement is triggered when hold is activated at the end of a maneuver.
@@ -135,19 +135,16 @@ pbio_error_t control_update_angle_target(pbio_control_t *ctl, ustime_t time_now, // And the motor stands still. abs(rate_now) < ctl->settings.rate_tolerance) { - // If so, we have reached our goal. Decide what to do next. - if (ctl->after_stop == PBIO_ACTUATION_HOLD) { - // Holding just means that...
update cribl version in examples
@@ -101,8 +101,8 @@ In this example, we'll start by grepping for process IDs of `cribl` (Cribl Strea ``` $ ps -ef | grep cribl -ubuntu 1820 1 1 21:03 pts/4 00:00:02 /home/ubuntu/someusername/cribl/3.1.2/m/cribl/bin/cribl server -ubuntu 1838 1820 4 21:03 pts/4 00:00:07 /home/ubuntu/someusername/cribl/3.1.2/m/cribl/bin/c...
Fix go int tests to kill all servers the same way.
@@ -90,7 +90,7 @@ curl http://localhost:${PORT}/hello ERR+=$? # This stops plainServerStatic -kill $! +pkill -f plainServerStatic # this sleep gives plainServerStatic a chance to report its events on exit sleep 0.5 @@ -155,7 +155,7 @@ curl -k --key server.key --cert server.crt https://localhost:${PORT}/hello ERR+=$? # ...
added the patch id
@@ -770,13 +770,20 @@ avtUintahFileFormat::ReadMetaData(avtDatabaseMetaData *md, int timeState) if (addProcId) { avtScalarMetaData *scalar = new avtScalarMetaData(); - scalar->name = "proc_id"; scalar->meshName = mesh_for_procid; scalar->centering = AVT_ZONECENT; scalar->hasDataExtents = false; scalar->treatAsASCII = f...
Improve Rack 3.0 compatibility, fix(?)
@@ -477,8 +477,10 @@ Handling the HTTP response static int for_each_header_data(VALUE key, VALUE val, VALUE h_) { http_s *h = (http_s *)h_; // fprintf(stderr, "For_each - headers\n"); - if (TYPE(key) == T_NIL) + if (TYPE(val) == T_NIL) return ST_CONTINUE; + if (TYPE(val) == T_ARRAY) + goto rack3_style_multi_value; if (...
docs: Added documentation for using pre-calculated signatures to generate secure boot enabled binaries.
@@ -368,9 +368,12 @@ Remember that the strength of the Secure Boot system depends on keeping the sign Remote Signing of Images ------------------------ +Signing using espsecure.py +~~~~~~~~~~~~~~~~~~~~~~~~~~ + For production builds, it can be good practice to use a remote signing server rather than have the signing key...
Update controls help message
@@ -1634,7 +1634,7 @@ void push_controls_msg(void) { {"Arrow Keys", "Move Cursor"}, {"Ctrl+D or F1", "Open Main Menu"}, {"0-9, A-Z, a-z,", "Insert Character"}, - {"!, :, #, and *", NULL}, + {"!, :, =, #, *", NULL}, {"Spacebar", "Play/Pause"}, {"Ctrl+Z or Ctrl+U", "Undo"}, {"Ctrl+X", "Cut"}, @@ -1652,7 +1652,7 @@ void p...
Partially fix process username caching
@@ -843,7 +843,7 @@ static VOID PhpUpdateProcessNodeUserName( { if (ProcessNode->ProcessItem->Sid) { - ProcessNode->UserName = PhGetSidFullName(ProcessNode->ProcessItem->Sid, TRUE, NULL); + PhMoveReference(&ProcessNode->UserName, PhGetSidFullName(ProcessNode->ProcessItem->Sid, TRUE, NULL)); } ProcessNode->ValidMask |= ...
Use the GPIO HAL (OpenMote CC2538)
@@ -95,15 +95,8 @@ value(int type) return 0; } /*---------------------------------------------------------------------------*/ -/** - * \brief Callback registered with the GPIO module. Gets fired with a button - * port/pin generates an interrupt - * \param port The port number that generated the interrupt - * \param pi...
hal/ia32: set spinlock for single PCI device configuration
@@ -108,39 +108,40 @@ int hal_pciSetBusmaster(pci_dev_t *dev, u8 enable) int hal_pciGetDevice(pci_id_t *id, pci_dev_t *dev, void *caps) { spinlock_ctx_t sc; - unsigned int b, d, f, i; + unsigned char b, d, f, i; u32 dv, cl, mask, val; int res = EOK; if ((id == NULL) || (dev == NULL)) return -EINVAL; - hal_spinlockSet(&...
Build script tweak
@@ -98,7 +98,7 @@ def getVersion(buildnumber): try: lastCommit = "None" gitLog = subprocess.Popen(["git", "describe"], stdout=subprocess.PIPE).communicate()[0] - lastCommit = gitLog + lastCommit = gitLog.strip() branch = "None" gitBranches = subprocess.Popen(["git", "branch"], stdout=subprocess.PIPE).communicate()[0]
fix build error for buster / bionic
@@ -10,7 +10,8 @@ Build-Depends: debhelper (>= 9), help2man (>= 1.46.4), libseccomp-dev (>= 2.1.1), libmicrohttpd-dev (>= 0.9.33), - check (>= 0.10.0) + check (>= 0.10.0), + pkg-config (>= 0.29) Package: oidc-agent Architecture: any
OcDebugLogLib: Warn about halting, 2nd attempt
@@ -228,7 +228,6 @@ OcLogAddEntry ( } if (OcLog->Delay > 0) { - gST->ConOut->OutputString (gST->ConOut, L"Halting on critical error\r\n"); gBS->Stall (OcLog->Delay); } @@ -268,6 +267,8 @@ OcLogAddEntry ( } if ((ErrorLevel & OcLog->HaltLevel) != 0) { + gST->ConOut->OutputString (gST->ConOut, L"Halting on critical error\...
JPEGDEC: Open just before decode to avoid seek overrun.
@@ -22,7 +22,7 @@ typedef struct _ModPicoGraphics_obj_t { typedef struct _JPEG_obj_t { mp_obj_base_t base; JPEGDEC *jpeg; - void *buf; + mp_buffer_info_t buf; ModPicoGraphics_obj_t *graphics; } _JPEG_obj_t; @@ -93,9 +93,8 @@ mp_obj_t _JPEG_del(mp_obj_t self_in) { return mp_const_none; } -static int _open(_JPEG_obj_t *s...
Relax platform configuration for 6lowpan fragmentation
/* 6LoWPAN */ #define SICSLOWPAN_CONF_MAC_MAX_PAYLOAD 1280 + +#ifndef SICSLOWPAN_CONF_FRAG #define SICSLOWPAN_CONF_FRAG 0 /**< We don't use 6LoWPAN fragmentation as IPSP takes care of that for us.*/ +#endif + #define SICSLOWPAN_FRAMER_HDRLEN 0 /**< Use fixed header len rather than framer.length() function */ /* Packet ...
esp32s2-saola-1: Initialize EFUSE driver
# include "esp32s2_rt_timer.h" #endif +#ifdef CONFIG_ESP32S2_EFUSE +# include "esp32s2_efuse.h" +#endif + #ifdef CONFIG_WATCHDOG # include "esp32s2_board_wdt.h" #endif @@ -111,6 +115,14 @@ int esp32s2_bringup(void) } #endif +#if defined(CONFIG_ESP32S2_EFUSE) + ret = esp32s2_efuse_initialize("/dev/efuse"); + if (ret < 0...
put read() back on the waiting queue
@@ -147,9 +147,14 @@ static void read_hup(sock s, thread t) static CLOSURE_1_3(socket_read, int, sock, void *, u64, u64); static int socket_read(sock s, void *dest, u64 length, u64 offset) { - apply(s->f.check, - closure(s->h, read_complete, s, current, dest, length), - closure(s->h, read_hup, s, current)); + thunk com...
set with_slurm to 0 for pmix build
%define with_psm2 1 %endif -%define with_lustre 0 -%define with_slurm 1 - +%{!?with_lustre: %define with_lustre 0} +%{!?with_slurm: %define with_slurm 0} %{!?with_tm: %global with_tm 1} Summary: A powerful implementation of MPI
Solved minor bug in C Loader related to libffi.
@@ -195,12 +195,13 @@ function_return function_c_interface_invoke(function func, function_impl impl, f c_function->values[args_count] = value_data((value)args[args_count]); } - type_id ret_id = type_index(signature_get_return(s)); - void *ret = value_type_create(NULL, value_type_id_size(ret_id), ret_id); + ffi_arg resu...
flounder: making const pointer in mt waitset test
@@ -154,7 +154,7 @@ static void export_cb(void *st, errval_t err, iref_t iref) } } -static errval_t server_rpc_method_call(struct mt_waitset_binding *b, uint64_t i1, uint8_t *s, size_t ss, uint32_t i2, uint64_t *o1, uint8_t *r, size_t *rs, uint32_t *o2) +static errval_t server_rpc_method_call(struct mt_waitset_binding ...
filter_rewrite_tag: fix Match aborting issue We should take care Match and Rule to determine if it causes infinite loop. Rule is depended on incoming record and we can't determine on init. Fluent-bit only reports warning if Match may cause infinite loop.
@@ -215,9 +215,7 @@ static int cb_rewrite_tag_init(struct flb_filter_instance *ins, return -1; } if (is_wildcard(ins->match)) { - flb_plg_error(ins, "'Match' causes infinite loop. abort."); - flb_free(ctx); - return -1; + flb_plg_warn(ins, "'Match' may cause infinite loop."); } ctx->ins = ins; ctx->config = config;
cmake BUGFIX find expect
@@ -42,15 +42,15 @@ endfunction(add_yanglint_test) # tests of non-interactive mode using shunit2 find_program(PATH_SHUNIT NAMES shunit2) if(NOT PATH_SHUNIT) - message(WARNING "'shunit2' is not found! The yanglint(1) non-interactive tests will not be available.") + message(WARNING "'shunit2' not found! The yanglint(1) n...
[bsp][w60x] update GCC linker scripts
@@ -10,6 +10,7 @@ MEMORY { FLASH (rx) : ORIGIN = 0x8010100, LENGTH = 959K /* 960K-256B */ RAM (rw) : ORIGIN = 0x20000000, LENGTH = 0x28000 /* 160K */ + RAM2 (rw) : ORIGIN = 0x20028000, LENGTH = 0x14000 /* 80K */ } /* Linker script to place sections and symbol values. Should be used together @@ -164,6 +165,13 @@ SECTION...
rnn: Fix undefined variable error reported by pylint ************* Module rnndec E:102,28: Undefined variable 'TypeFloat' (undefined-variable)
@@ -99,7 +99,7 @@ class Context: value |= -1 << width value = value / (1 << ti.radix) # XXX return self.colors('num', str(value)) - elif isinstance(ti, TypeFloat): + elif isinstance(ti, rnn.TypeFloat): if width == 64: return self.colors('num', str(fp.float64(value))) elif width == 32:
chat: removed unnecessary cast
^- (list move) %+ turn (prey:pubsub:userlib [%mailbox path.act] bol) |= [=bone *] - ^- move [bone %quit ~] == ?. |(=(u.ship src.bol) (team:title our.bol src.bol))
native/hal_hw_id.c: limit hwid length to HAL_BSP_MAX_ID_LEN.
int hal_bsp_hw_id(uint8_t *id, int max_len) { + if (max_len > HAL_BSP_MAX_ID_LEN) { + max_len = HAL_BSP_MAX_ID_LEN; + } memset(id, 0x42, max_len); return max_len; }
Update: One level implicit subterm linking suffices for now
@@ -378,8 +378,8 @@ void Cycle_Inference(long currentTime) conceptPriorityThreshold = MIN(1.0, MAX(0.0, conceptPriorityThreshold + increment)); //IN_DEBUG( printf("conceptPriorityThreshold=%f\n", conceptPriorityThreshold); ) Event *e = &selectedEvents[i]; - Term subterms_of_e[6] = {0}; //subterms up to level 2 - for(in...
commander_btc: Check the return value of snprintf. snprintf writing too much data would make the target buffer contain a truncated string. This could somehow deceive the user into accepting something that is not what it looks like. Check that this is not happening before proceeding.
@@ -53,6 +53,7 @@ static commander_error_t _btc_pub_xpub(const BTCPubRequest* request, PubResponse } if (request->display) { char title[100] = {0}; + int n_written; switch (request->output.xpub_type) { case BTCPubRequest_XPubType_TPUB: case BTCPubRequest_XPubType_XPUB: @@ -62,12 +63,20 @@ static commander_error_t _btc_...
Miscellaneous tiny stylistic changes and comments.
%text :: :: ++ cape :: xml-escape + ::FIXME p sure this is redundant with native manx escaping |= tex/tape ^- tape ?~ tex tex :: =. q.cur ?~ q.cur q.cur - :_(q.cur (clue `@`10 ~)) + :_(q.cur ;/("\0a")) %= . q.cur %+ weld |= tape ^- flow :: each line is text data with its newline :: - (clue (weld (slag (dec col) +<) `ta...
kdb: preserve KEY_FLAG_SYNC in backendsDivide
@@ -1255,9 +1255,22 @@ static elektraCursor backendsDivideInternal (KeySet * backends, elektraCursor * Key * k = ksAtCursor (ks, cur); Key * nextBackendKey = *curBackend >= ksGetSize (backends) - 1 ? defaultBackendKey : ksAtCursor (backends, *curBackend + 1); + bool originalKeyNeedsSync = keyNeedSync(k) == 1; + if (key...
base: include kernel headers, enabling 1GB mappings
*/ #include <asm/mman.h> +#include <linux/mman.h> +#include <linux/shm.h> + #include <unistd.h> #include <fcntl.h> #include <signal.h> #include <sys/types.h> #include <sys/syscall.h> #include <sys/mman.h> -#include <sys/ipc.h> -#include <sys/shm.h> #include <base/stddef.h> #include <base/mem.h> #warning "Your system do...
Fix ZGRC-KEY-009 button event 5002
[1, "0x01", "LEVEL_CONTROL", "STEP_WITH_ON_OFF", "1", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "Step down (with on/off)"], [1, "0x01", "LEVEL_CONTROL", "MOVE_WITH_ON_OFF", "1", "S_BUTTON_4", "S_BUTTON_ACTION_HOLD", "Move down (with on/off)"], [1, "0x01", "LEVEL_CONTROL", "STOP_WITH_ON_OFF", "0", "S_BUTTON_4", "S...
always full rpath
@@ -33,13 +33,25 @@ if (APPLE) endif (APPLE) # always use full RPATH: https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/RPATH-handling +# use, i.e. don't skip the full RPATH for the build tree +set(CMAKE_SKIP_BUILD_RPATH FALSE) + +# when building, don't use the install RPATH already +# (but later on when ins...
Refactored platform extensions and added two queries
@@ -120,6 +120,34 @@ static const char *pocl_version #endif ; +static const cl_name_version pocl_platform_extensions[] = { +#ifdef BUILD_ICD + { CL_MAKE_VERSION (1, 0, 0), "cl_khr_icd" }, +#endif + { CL_MAKE_VERSION (1, 0, 0), "cl_pocl_content_size" } +}; +static const size_t pocl_platform_extensions_num + = sizeof (po...
Note bugfix and RFC support. Fix unbound using TLS in a forwarding configuration does not verify the server's certificate (RFC 8310 support).
- Can set tls authentication with forward-addr: IP#tls.auth.name And put the public cert bundle in tls-cert-bundle: "ca-bundle.pem". such as forward-addr: 9.9.9.9@853#dns.quad9.net or - 1.1.1.1@853#cloudflare-dns.com (RFC 8310). + 1.1.1.1@853#cloudflare-dns.com + - Fix #658: unbound using TLS in a forwarding configurat...
nrf/boards/microbit: Use mp_sched_exception() where appropriate.
@@ -305,7 +305,7 @@ static void draw_object(mp_obj_t obj) { async_stop(); } } else { - MP_STATE_VM(mp_pending_exception) = mp_obj_new_exception_msg(&mp_type_TypeError, MP_ERROR_TEXT("not an image.")); + mp_sched_exception(mp_obj_new_exception_msg(&mp_type_TypeError, MP_ERROR_TEXT("not an image."))); async_stop(); } } @...
libcpu/nuclei: Fix wrong RT_KERNEL_INTERRUPT_LEVEL RT_KERNEL_INTERRUPT_LEVEL set to 0 is the lowest level.
#define SYSTICK_TICK_CONST (SOC_TIMER_FREQ / RT_TICK_PER_SECOND) /* Interrupt level for kernel systimer interrupt and software timer interrupt */ -#define RT_KERNEL_INTERRUPT_LEVEL 1 +#define RT_KERNEL_INTERRUPT_LEVEL 0 /* Initial CSR MSTATUS value when thread created */ #define RT_INITIAL_MSTATUS (MSTATUS_MPP | MSTATU...
Fix Elektra.System example
@@ -67,18 +67,21 @@ defmodule Main do use Elektra def main do - config = Elektra.System.ks_new() - root = Elektra.System.key_new('user:/test') + error_key = Elektra.System.key_new("user:/error/key") + + config = Elektra.System.ks_new(0) + root = Elektra.System.key_new("user:/test") IO.puts("Open key database") - handle...
Do not try to insert 0{40} objects We use them as an obviously bogus value, but part of hardening the objectdb paths we no longer allow all-zero object names, so use a slightly different obviously bogus name instead.
@@ -192,24 +192,24 @@ class TreeUpdateTest < Rugged::TestCase def test_treebuilder_add_nonexistent_fails builder = Rugged::Tree::Builder.new(@repo, @repo.head.target.tree) assert_raises Rugged::TreeError do - builder << { :type => :blob, :name => "another-readme", :oid => "0000000000000000000000000000000000000000", :fi...
Settings from Makefile(_kernel).conf should be available to DYNAMIC_ARCH kernel builds
@@ -284,8 +284,10 @@ GETARCH_FLAGS += -DHAVE_GAS=$(HAVE_GAS) # Generating Makefile.conf and config.h DUMMY := $(shell $(MAKE) -C $(TOPDIR) -f Makefile.prebuild CC="$(CC)" FC="$(FC)" HOSTCC="$(HOSTCC)" HOST_CFLAGS="$(GETARCH_FLAGS)" CFLAGS="$(CFLAGS)" BINARY=$(BINARY) USE_OPENMP=$(USE_OPENMP) DYNAMIC_ARCH=$(DYNAMIC_ARCH...
Add a compilation error in use of MAX_CONTAINER_NUMBER, fix
#define MAX_SERVICE_NUMBER 5 #endif +#ifdef MAX_CONTAINER_NUMBER +#error 'MAX_CONTAINER_NUMBER' is deprecated since luos_engine@2.0.0, replace it by 'MAX_SERVICE_NUMBER', see: www.github.com/Luos-io/luos_engine/releases/tag/2.0.0 for more information. +#endif + #ifndef MAX_PROFILE_NUMBER #define MAX_PROFILE_NUMBER MAX_...
VERSIOn bump to version 1.4.104
@@ -46,7 +46,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 4) -set(SYSREPO_MICRO_VERSION 103) +set(SYSREPO_MICRO_VERSION 104) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_...
arm: fma msub and nmsub
@@ -99,5 +99,21 @@ glmm_fnmadd(float32x4_t a, float32x4_t b, float32x4_t c) { #endif } +static inline +float32x4_t +glmm_fmsub(float32x4_t a, float32x4_t b, float32x4_t c) { +#if defined(__aarch64__) + return vfmsq_f32(c, a, b); +#else + return vmlsq_f32(c, a, b); +#endif +} + +static inline +float32x4_t +glmm_fnmsub(f...
src/gtk/transfer.c: hack for glibc < 2.7 if glibc < 2.7 use mkstemp() intead of mkstemps()
@@ -72,7 +72,12 @@ do_view_or_edit_file (gftp_window_data * fromwdata, int is_view) if (new_fle->destfile) g_free (new_fle->destfile); - if ((suffix = strrchr (curfle->file, '.')) != NULL) +#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 7 + suffix = NULL; // glibc < 2.7: use mkstemp +#else + suffix = str...
Add missing PEB address check (fixes issue with Pico processes)
@@ -282,7 +282,7 @@ NTSTATUS PhpUpdateMemoryRegionTypes( ULONG *processHeaps32; #endif - if (NT_SUCCESS(PhGetProcessBasicInformation(ProcessHandle, &basicInfo))) + if (NT_SUCCESS(PhGetProcessBasicInformation(ProcessHandle, &basicInfo)) && basicInfo.PebBaseAddress != 0) { PhpSetMemoryRegionType(List, basicInfo.PebBaseAd...
nsim: fix quad-loop packet trace Type: fix
@@ -179,16 +179,15 @@ nsim_inline (vlib_main_t * vm, ep->buffer_index = from[0]; buffered++; } - if (is_trace) { - if (b[1]->flags & VLIB_BUFFER_IS_TRACED) + if (b[0]->flags & VLIB_BUFFER_IS_TRACED) { - nsim_trace_t *t = vlib_add_trace (vm, node, b[1], sizeof (*t)); + nsim_trace_t *t = vlib_add_trace (vm, node, b[0], s...
Don't report battery if it hasn't initialized yet
@@ -999,7 +999,7 @@ static ButtonQueueEntry *incrementAndPostButtonQueue(SurviveObject *so) { return 0; ButtonQueueEntry *entry = &(ctx->buttonQueue.entry[ctx->buttonQueue.nextWriteIndex]); - + SV_VERBOSE(100, "%s Button event %d %d", survive_colorize_codename(so), entry->eventType, entry->buttonId); for (int i = 0; i ...
vere: ensure debug symbols aren't stripped by default (by nix)
, ed25519, ent, ge-additions, gmp, h2o, herb, ivory, libaes_siv, libscrypt , libsigsegv, libuv, lmdb, murmur3, openssl, secp256k1, softfloat3, zlib , enableStatic ? stdenv.hostPlatform.isStatic, enableDebug ? false -, doCheck ? true, enableParallelBuilding ? true }: +, doCheck ? true, enableParallelBuilding ? true, don...
Simplify code paths, add comments
@@ -188,8 +188,13 @@ if __name__ == '__main__': # either we need a hard limit on the size of assets built in RGBA or RGB native formats (24/32bpp) # or drop output format altogether. parser_sprite.add_argument('--format', type=str, choices=('RGB', 'RGBA', 'P'), help='data output format (UNIMPLEMENTED)') - parser_sprite...
add support to query repo versions prior to 1.3
@@ -26,8 +26,15 @@ skip="" baseos="" arch="" +echo $version | egrep -q "^1.2|1.1" +if [ $? -eq 0 ];then + pwd | grep -q sles12 && baseos="SLE_12_SP1" + pwd | grep -q centos7 && baseos="CentOS_7.2" +else pwd | grep -q sles12 && baseos="SLE_12" pwd | grep -q centos7 && baseos="CentOS_7" +fi + pwd | grep -q aarch64 && arc...
linux-raspberrypi-dev: Update for testing v5.10.y Linux 5.10 series will be the next LTS kernel so it's likely to be the new stable branch for linux-raspberrypi within a couple of months. Let's get set up to test it now.
@@ -5,19 +5,27 @@ python __anonymous() { raise bb.parse.SkipRecipe(msg) } -FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:" +LINUX_VERSION ?= "5.10.y" +LINUX_RPI_BRANCH ?= "rpi-5.10.y" -LINUX_VERSION ?= "4.19" -LINUX_RPI_BRANCH ?= "rpi-4.19.y" +SRCREV_machine = "${AUTOREV}" +SRCREV_meta = "${AUTOREV}" + +KMET...
A few minor Verilator main loop changes Style cleanups Don't close the trace file until after final is called.
// #include <iostream> -#include <stdlib.h> +#include <cstdlib> #include "Vsoc_tb.h" #include "verilated.h" #include "verilated_vpi.h" #if VM_TRACE #include <verilated_vcd_c.h> #endif -using namespace std; // // This is compiled into the verilog simulator executable along with the @@ -83,7 +82,6 @@ int main(int argc, c...
lambert_azimuthal_equal_area: return error code when grib1
@@ -1066,6 +1066,7 @@ grib_handle* grib_util_set_spec2(grib_handle* h, case GRIB_UTIL_GRID_SPEC_LAMBERT_AZIMUTHAL_EQUAL_AREA: if (editionNumber==1) { fprintf(stderr,"GRIB_UTIL_SET_SPEC: grid type='%s' not available in GRIB edition 1.\n", grid_type); + *err = GRIB_WRONG_GRID; goto cleanup; } sprintf(name, "GRIB%ld", edi...
Add extra space to nginx test volume
}, "Boot": "../../../output/test/e2e/boot.img", "Kernel": "../../../output/test/e2e/kernel.img", - "Mkfs": "../../../output/tools/bin/mkfs" + "Mkfs": "../../../output/tools/bin/mkfs", + "BaseVolumeSz": "30m" }
tools: use relative paths when reverting to compile Using the full path will make __FILE__ longer, which will lead to a larger flash footprint revert &&
@@ -281,7 +281,7 @@ endif define PREPROCESS $(ECHO_BEGIN)"CPP: $1->$2 " - $(Q) $(CPP) $(CPPFLAGS) $($(strip $1)_CPPFLAGS) $(abspath $1) -o $(abspath $2) + $(Q) $(CPP) $(CPPFLAGS) $($(strip $1)_CPPFLAGS) $1 -o $2 $(ECHO_END) endef @@ -299,7 +299,7 @@ endef define COMPILE $(ECHO_BEGIN)"CC: $1 " - $(Q) $(CCACHE) $(CC) -c ...
Don't DeleteLocalRef prematurely. Part 2.
@@ -592,9 +592,6 @@ JNIEXPORT jstring JNICALL Java_ai_catboost_CatBoostJNIImpl_catBoostModelPredict_ for (size_t i = 0; i < documentCount; ++i) { const auto row = (jfloatArray)jenv->GetObjectArrayElement(jnumericFeaturesMatrix, i); CB_ENSURE(jenv->IsSameObject(row, NULL) == JNI_FALSE, "got null row"); - Y_SCOPE_EXIT(je...
Make move-mode outline behave better with aerosnap.
@@ -228,7 +228,12 @@ char MoveClient(ClientNode *np, int startx, int starty) flags = MAX_VERT | MAX_HORIZ; atSideFirst = 0; } + if(flags != np->state.maxFlags) { + if(settings.moveMode == MOVE_OUTLINE) { + ClearOutline(); + } MaximizeClient(np, flags); + } if(!np->state.maxFlags) { DoSnap(np); }
Platform native: print global IPv6 at init
@@ -181,6 +181,10 @@ set_global_address(void) uip_ds6_set_addr_iid(&ipaddr, &uip_lladdr); uip_ds6_addr_add(&ipaddr, 0, ADDR_AUTOCONF); + LOG_INFO("Added global IPv6 address "); + LOG_INFO_6ADDR(&ipaddr); + LOG_INFO_("\n"); + /* set the PREFIX::1 address to the IF */ uip_ip6addr(&ipaddr, UIP_DS6_DEFAULT_PREFIX, 0, 0, 0,...
Maybe fix windows build;
@@ -213,7 +213,9 @@ if(LOVR_ENABLE_PHYSICS) set(ODE_BUILD_SHARED ON CACHE BOOL "") endif() add_subdirectory(deps/ode ode) + if(NOT WIN32) set_target_properties(ode PROPERTIES COMPILE_FLAGS "-Wno-unused-volatile-lvalue -Wno-array-bounds -Wno-undefined-var-template") + endif() include_directories(deps/ode/include "${CMAK...
bricks/cityhub: enable pybricks.experimental Allows experimental non-blocking data input (see
#define PYBRICKS_PY_COMMON_KEYPAD (0) #define PYBRICKS_PY_COMMON_LIGHT_MATRIX (0) #define PYBRICKS_PY_COMMON_MOTORS (1) -#define PYBRICKS_PY_EXPERIMENTAL (0) +#define PYBRICKS_PY_EXPERIMENTAL (1) #define PYBRICKS_PY_GEOMETRY (1) #define PYBRICKS_PY_HUBS (1) #define PYBRICKS_PY_IODEVICES (1)
Docs: Fix Omissions in Earlier Commmit
@@ -1141,7 +1141,7 @@ patching or the padding of \texttt{NOP} to the remaining area could be considere constructions. For this reason, the application of modifications to ACPI tables is extremely - risky. The best approach is to make as few as possible changes to ACPI tables + risky. The best approach is to make as few...
xpath BUGFIX casting empty set to string
@@ -502,6 +502,14 @@ cast_string_elem(struct lyd_node *node, ly_bool fake_cont, enum lyxp_node_type r static LY_ERR cast_node_set_to_string(struct lyxp_set *set, char **str) { + if (!set->used) { + *str = strdup(""); + if (!*str) { + LOGMEM_RET(set->ctx); + } + return LY_SUCCESS; + } + switch (set->val.nodes[0].type) {...
[chainmaker][#436]add param_add_check parameters number
@@ -91,7 +91,7 @@ static BOAT_RESULT param_init_check(BoatHlchainmakerTx* tx_ptr) } -static BOAT_RESULT param_add_check(BoatHlchainmakerTx* tx_ptr) +static BOAT_RESULT param_add_check(BoatHlchainmakerTx* tx_ptr, int num) { BOAT_RESULT result = BOAT_SUCCESS; @@ -112,6 +112,11 @@ static BOAT_RESULT param_add_check(BoatHl...
don't use apr_table_addn on variables that go out of scope
@@ -1641,7 +1641,7 @@ static apr_byte_t oidc_proto_endpoint_auth_none(request_rec *r, const char *client_id, apr_table_t *params) { oidc_debug(r, "no client secret is configured; calling the token endpoint without client authentication; only public clients are supported"); - apr_table_addn(params, OIDC_PROTO_CLIENT_ID,...
Use size_t instead of int to avoid product overflow
@@ -18,7 +18,7 @@ public: { } - TMatrix(int m, int n) + TMatrix(size_t m, size_t n) : Buf(new T[m * n]) , Arr(Buf) , M(m) @@ -27,7 +27,7 @@ public: { } - TMatrix(int m, int n, T* buf) + TMatrix(size_t m, size_t n, T* buf) : Buf(nullptr) , Arr(buf) , M(m) @@ -46,7 +46,7 @@ public: M = N = 0; } - void ReDim(int m, int n)...
fix: decrement remaining buckets instead of relying solely on response header should get rid of any race condition
@@ -36,6 +36,7 @@ try_cooldown(dati *bucket) if (bucket->busy > bucket->remaining) pthread_cond_wait(&bucket->cond, &bucket->lock); if (bucket->remaining) { + --bucket->remaining; pthread_mutex_unlock(&bucket->lock); return; /* EARLY RETURN */ }
Update SSL_extension_supported() Numerous changes have been made to the supported built-in extensions and SSL_extension_supported() has not kept up.
@@ -237,8 +237,11 @@ int SSL_extension_supported(unsigned int ext_type) switch (ext_type) { /* Internally supported extensions. */ case TLSEXT_TYPE_application_layer_protocol_negotiation: +#ifndef OPENSSL_NO_EC case TLSEXT_TYPE_ec_point_formats: case TLSEXT_TYPE_supported_groups: + case TLSEXT_TYPE_key_share: +#endif #...
copy logo to artifact
@@ -198,6 +198,10 @@ build-windows-64: test -e results/VERSION && rm results/VERSION cp VERSION results ls -la results + + test -e results/logogs && rm -rf results/logos + mkdir results/logos + cp logos/logo.ico logos #cp bin/*installer.exe results set +x
CLEANUP: Use MAX_MAP_SIZE instead of ARCUS_COLL_SIZE_MAX.
@@ -12055,7 +12055,7 @@ static void process_mop_command(conn *c, token_t *tokens, const size_t ntokens) out_string(c, "CLIENT_ERROR bad value"); return; } - if (numfields > ARCUS_COLL_SIZE_MAX || + if (numfields > MAX_MAP_SIZE || numfields > ((lenfields/2) + 1) || lenfields > ((numfields*MAX_FIELD_LENG) + numfields-1))...
doc: some clarifications in COMPILE
# Compile +## Dependencies + +For the base system you only need cmake and build-essential (make, gcc, +some Unix tools): + + sudo apt-get install cmake build-essential + +Or on RPM based systems (CentOS): + + sudo yum install -y cmake3 gcc-c++ + +Or on macOS Sierra, most of the build tools can be obtained by installing...
SOVERSION bump to version 7.10.0
@@ -71,8 +71,8 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # Major version is changed with every backward non-compatible API/ABI change, minor version changes # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJ...
Uncommented some of the explode operators tests.
@@ -377,10 +377,10 @@ def multi_tire(): def Main(): unstructured_explosions() - #curvilinear_explosions() - #rectilinear_explosions() - #multi_rectilinear_explosions() - #multi_tire() + curvilinear_explosions() + rectilinear_explosions() + multi_rectilinear_explosions() + multi_tire() Main()
fixed formating issues in psa_crypto_code_gen_1_1.txt
@@ -2,5 +2,6 @@ Features * Brought in PSA code geneneration JSON driver list. Added auto generated templating support for key management. Added Support for transparent and opaque keys (import/export/copy). - Included some general JSON validation, and more specifically for the - given entry points. Addresses version 1.1...
Rewrite align_down with bitwise operations mi_align_down_ptr was implemented with multiplication and division, which can be converted to equivalent and deterministic bit operations.
@@ -65,7 +65,11 @@ static void* mi_align_up_ptr(void* p, size_t alignment) { return (void*)_mi_align_up((uintptr_t)p, alignment); } -static uintptr_t _mi_align_down(uintptr_t sz, size_t alignment) { +static inline uintptr_t _mi_align_down(uintptr_t sz, size_t alignment) { + mi_assert_internal(alignment != 0); + uintptr...
Remove the unnecessary NULL fields in global instance definition of file_operations
@@ -68,12 +68,6 @@ static const struct file_operations chardev_fops = NULL, /* close */ chardev_read, /* read */ chardev_write, /* write */ - NULL, /* seek */ - NULL, /* ioctl */ - NULL /* poll */ -#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS - , NULL /* unlink */ -#endif }; /*********************************************...
nat: fix incorrect using about sw_if_index in nat44-ed static mapping v2 api. Type: fix
@@ -590,7 +590,7 @@ static void } sw_if_index = clib_net_to_host_u32 (mp->external_sw_if_index); - if (sw_if_index) + if (sw_if_index != ~0) { flags |= NAT_SM_FLAG_SWITCH_ADDRESS; }
use better error code in comms
@@ -724,7 +724,7 @@ NTSTATUS KphpFltSendMessage( // // return an error status instead // - status = STATUS_REQUEST_ABORTED; + status = STATUS_IO_TIMEOUT; } FltObjectDereference(KphFltFilter);
Add -march option for AVX512
@@ -96,3 +96,10 @@ if (${CMAKE_C_COMPILER_ID} STREQUAL "SUN") endif () endif () +if (${CORE} STREQUAL "SKYLAKEX") + if (NOT DYNAMIC_ARCH) + if (NOT NO_AVX512) + set (CCOMMON_OPT = "${CCOMMON_OPT} -march=skylake-avx512") + endif () + endif () +endif ()
GBT revert for POS coins
@@ -707,18 +707,8 @@ namespace MiningCore.Blockchain.Bitcoin } else - { poolAddressDestination = new PubKey(validateAddressResponse.PubKey); - getBlockTemplateParams = new object[] - { - new - { - mode = "template" - } - }; - } - // chain detection if (!hasLegacyDaemon) {
Initialize MMU if we are executing from DDR
@@ -111,37 +111,38 @@ reset: ldmia r0!, {r2-r8, r10} stmia r1!, {r2-r8, r10} - /* Initial system clock, ddr add uart */ + /* Initial system clock, ddr and uart */ bl sys_clock_init - bl sys_dram_init bl sys_uart_init - /* Boot speed up, leave slower sram */ + /* Check if we are already running from dram */ adr r0, _sta...
Updated description of OS Tick API
@@ -559,7 +559,7 @@ and 8-bit Java bytecodes in Jazelle state. <apis> <!-- CMSIS Device API --> <api Cclass="Device" Cgroup="OS Tick" Capiversion="1.0.0" exclusive="1"> - <description>CMSIS OS Tick API</description> + <description>RTOS Kernel system tick timer interface</description> <files> <file category="header" nam...
Add more controls listings
@@ -1470,12 +1470,10 @@ void push_controls_msg() { }; static struct Ctrl_item items[] = { {"Ctrl+Q", "Quit"}, - {"Arrow keys", "Move Cursor"}, + {"Arrow Keys", "Move Cursor"}, {"Ctrl+D or F1", "Open Main Menu"}, - {NULL, NULL}, {"0-9, A-Z, a-z,", "Insert Character"}, {"!, :, #, and *", NULL}, - {NULL, NULL}, {"Spacebar...
Makefile.defs - removed Warning AOMP is set
@@ -15,8 +15,6 @@ ifeq ("$(wildcard $(AOMP))","") endif endif # --- End Standard Makefile check for AOMP installation --- -else - $(info WARNING! AOMP environment variable is set, using $(AOMP)) endif ifneq ($(TIMEOUT),)
hdat/i2c: Fix array version check We should be checking the array version, not the HDIF header version.
@@ -190,7 +190,7 @@ int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index, version = 1; prerror("I2C: HDAT device array has no version! Assuming v1\n"); } else { - version = be32_to_cpu(hdr->version); + version = be32_to_cpu(ahdr->version); } if (version != 1) {
Add base for monkey patch in nodejs port.
'use strict'; const Path = require('path'); +const Module = require('module'); +/* Load MetaCall addon */ const addon = (() => { const LIBRARY_PATH = process.env.LOADER_LIBRARY_PATH || ''; @@ -41,8 +43,57 @@ const addon = (() => { return addon; })(); -/* TODO: Override require and monkey patch the functions */ +/* Monk...
Fix script/bench-rust-deflate typo
// // Wuffs' C code doesn't depend on Rust per se, but this program gives some // performance data for specific Rust Deflate implementations. The equivalent -// Wuffs benchmarks (on the same test images) are run via: +// Wuffs benchmarks (on the same test files) are run via: // // wuffs bench std/deflate //
collections: key VirtualScroller correctly Fixes an unfiled bug where navigating to two different grids consecutively would crash the render
@@ -88,7 +88,7 @@ export function LinkResource(props: LinkResourceProps) { mb={3} /> ) : ( - <LinkBlocks graph={graph} association={resource} /> + <LinkBlocks key={rid} graph={graph} association={resource} /> )} </Col> );
Fix the check for updating an SCTP-AUTH key. This bug could result in a use-after-free situation. Thanks to \xe9\x82\xb5\xe5\xa4\xa7\xe6\x88\x90 for reporting the issue.
#ifdef __FreeBSD__ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: head/sys/netinet/sctp_auth.c 339042 2018-10-01 14:05:31Z tuexen $"); +__FBSDID("$FreeBSD: head/sys/netinet/sctp_auth.c 352438 2019-09-17 09:46:42Z tuexen $"); + #endif #include <netinet/sctp_os.h> @@ -525,7 +526,7 @@ sctp_insert_sharedkey(struct sctp_keyhea...
openthread: fix wrong OpenThread uart read return value handling
@@ -119,7 +119,7 @@ esp_err_t esp_openthread_uart_process() if (rval > 0) { otPlatUartReceived(s_uart_buffer, (uint16_t)rval); - } else if (rval > 0) { + } else if (rval < 0) { if (errno != EAGAIN) { otLogWarnPlat("read uart failed: %d", errno); return ESP_FAIL;
ovn-e2e.at: Another missing `--wait`. Another situation where we want to make sure changes to NB propagate all the way to the dataplane before sending packets.
@@ -8042,7 +8042,7 @@ ovn-nbctl lsp-add alice alice1 \ -- lsp-set-addresses alice1 "f0:00:00:01:02:05 172.16.1.3" # Create logical port bob1 in bob -ovn-nbctl lsp-add bob bob1 \ +ovn-nbctl --wait=hv lsp-add bob bob1 \ -- lsp-set-addresses bob1 "f0:00:00:01:02:06 172.16.1.4" # Pre-populate the hypervisors' ARP tables so...
Fixup init of struct lpc_client Gcc 4.8 would warn: hw/lpc-uart.c: In function 'uart_setup_os_passthrough': hw/lpc-uart.c:428:2: error: missing initializer for field 'reset' of 'struct lpc_client' [-Werror=missing-field-initializers] Fixes:
@@ -425,6 +425,9 @@ static void uart_setup_os_passthrough(void) char *path; static struct lpc_client uart_lpc_os_client = { + .reset = NULL, + .interrupt = NULL, + .interrupts = 0 }; dt_add_property_strings(uart_node, "status", "ok");
Gonzalo Diethelm added to AUTHORS file
@@ -3,6 +3,7 @@ Full list of copyright holders: Alex Cornejo <acornejo@gmail.com> Bent Cardan <bent@nothingsatisfies.com> Constantine Tarasenkov <constantine@protonmail.com> +Gonzalo Diethelm <gonzalo.diethelm@diethelm.org>* Jim Jagielski <jimjag@gmail.com> Jim Schimpf <jim.schimpf@gmail.com> Luca Barbato <luca.barbato...
Keep editor's selected font when initCode is called (fixes
@@ -2193,6 +2193,7 @@ static void onStudioEvent(Code* code, StudioEvent event) void initCode(Code* code, tic_mem* tic, tic_code* src) { + bool firstLoad = code->state == NULL; if(code->state != NULL) free(code->state); @@ -2230,7 +2231,7 @@ void initCode(Code* code, tic_mem* tic, tic_code* src) .index = 0, }, .matchedD...
netkvm: fix compilation problem without WPP Use FIELD_OFFSET instead of offsetof
@@ -565,12 +565,12 @@ InitializeLinkPropertiesConfig(PPARANDIS_ADAPTER pContext) { virtio_get_config( &pContext->IODevice, - offsetof(virtio_net_config, speed), + FIELD_OFFSET(virtio_net_config, speed), &speed, sizeof(__u32)); virtio_get_config( &pContext->IODevice, - offsetof(virtio_net_config, duplex), + FIELD_OFFSET...
netkvm: update WMI test script
@@ -5,6 +5,8 @@ if /i "%1"=="debug" goto debug if /i "%1"=="stat" goto stat if /i "%1"=="reset" goto reset if /i "%1"=="rss" goto rss_set +if /i "%1"=="qfo" goto failover_query +if /i "%1"=="efo" goto failover_end goto help :debug call :dowmic netkvm_logging set level=%2 @@ -27,6 +29,15 @@ if "%2"=="" goto rss call :do...
Fix wrong UDP connection init
@@ -1730,7 +1730,7 @@ espi_initiate_cmd(esp_msg_t* msg) { } else if (msg->msg.conn_start.type == ESP_CONN_TYPE_TCP) { send_string("TCP", 0, 1, 1); } else if (msg->msg.conn_start.type == ESP_CONN_TYPE_UDP) { - send_string("UPD", 0, 1, 1); + send_string("UDP", 0, 1, 1); } send_string(msg->msg.conn_start.host, 0, 1, 1); s...
framework/st_things : Resolves issues that are not handled after a NULL check WID:5147823 After having been compared to NULL value, pointer 'json_str' is dereferenced by calling function 'strlen'.
@@ -830,12 +830,7 @@ int parse_things_cloud_json(const char *filename) if (strlen(json_str) > 0) { cJSON *root = cJSON_Parse((const char *)json_str); - if (root == NULL) { - THINGS_LOG_V(TAG, "cloud file context has a error about json-format."); - things_free(json_str); - json_str = NULL; - return 0; - } + if (root != ...
BugID:16952646 :[alcs]add coap request receive flowcontrol with fixed trigger threshould
@@ -686,6 +686,9 @@ static int CoAPRespMessage_handle(CoAPContext *context, NetworkAddr *remote, CoA return COAP_ERROR_NOT_FOUND; } +#define PACKET_INTERVAL_THRE_MS 800 +#define PACKET_TRIGGER_NUM 100 + static int CoAPRequestMessage_handle(CoAPContext *context, NetworkAddr *remote, CoAPMessage *message) { int index = 0...
sys/shell: Increase dflt max compat cmds (10->20) This increases RAM usage by 120 bytes (10 * 12).
@@ -45,7 +45,7 @@ syscfg.defs: value: 1 SHELL_MAX_COMPAT_COMMANDS: description: 'Max number of compatibility commands' - value: 10 + value: 20 SHELL_COMPLETION: description: 'Include completion functionality' value: 1
grid: removing nav bg
@@ -20,7 +20,7 @@ export const Grid: FunctionComponent<GridProps> = ({ match, history }) => { return ( <div className="flex flex-col"> - <header className="fixed sm:sticky bottom-0 sm:bottom-auto sm:top-0 left-0 z-30 flex justify-center w-full px-4 bg-white"> + <header className="fixed sm:sticky bottom-0 sm:bottom-auto...