message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Define sub-TLV number for source-specific routing. | @@ -40,6 +40,7 @@ THE SOFTWARE.
#define SUBTLV_PADN 1
#define SUBTLV_DIVERSITY 2 /* Also known as babelz. */
#define SUBTLV_TIMESTAMP 3 /* Used to compute RTT. */
+#define SUBTLV_SOURCE_PREFIX 128 /* Source-specific routing. */
extern unsigned short myseqno;
extern struct timeval seqno_time;
|
Remove unneded form data and verbose output. | @@ -66,20 +66,17 @@ static const char buf[] = "Expect:";
printf("uploading %s to %s\n", sendcapname, wpasecurl);
curl_global_init(CURL_GLOBAL_ALL);
curl_formadd(&formpost, &lastptr, CURLFORM_COPYNAME, "file", CURLFORM_FILE, sendcapname, CURLFORM_END);
-curl_formadd(&formpost, &lastptr, CURLFORM_COPYNAME, "webfile", CUR... |
Remove redundant _bt_killitems() buffer check.
_bt_getbuf() cannot return an invalid buffer.
Oversight in commit | @@ -1756,10 +1756,6 @@ _bt_killitems(IndexScanDesc scan)
/* Attempt to re-read the buffer, getting pin and lock. */
buf = _bt_getbuf(scan->indexRelation, so->currPos.currPage, BT_READ);
- /* It might not exist anymore; in which case we can't hint it. */
- if (!BufferIsValid(buf))
- return;
-
page = BufferGetPage(buf);
... |
Add cell term attrs for non-locking input cells | @@ -161,8 +161,13 @@ static attr_t term_attrs_of_cell(Glyph g, Mark m) {
if (gclass != Glyph_class_comment) {
if ((m & (Mark_flag_lock | Mark_flag_input)) ==
(Mark_flag_lock | Mark_flag_input)) {
+ // Standard locking input
+ attr = A_normal | Cdef_normal;
+ } else if ((m & Mark_flag_input) == Mark_flag_input) {
+ // N... |
papi: remove unused name from __all__
missed in
Type: fix | @@ -47,7 +47,7 @@ except ModuleNotFoundError:
logger = logging.getLogger('vpp_papi')
logger.addHandler(logging.NullHandler())
-__all__ = ('FuncWrapper', 'VPP', 'VppApiDynamicMethodHolder',
+__all__ = ('FuncWrapper', 'VppApiDynamicMethodHolder',
'VppEnum', 'VppEnumType', 'VppEnumFlag',
'VPPIOError', 'VPPRuntimeError', '... |
finish documentation for api review | ### Tests
- [ ] Function code is fully covered by tests
- - [ ] check if we can remove uncovered code
- TODO
+ - [x] check if we can remove uncovered code
- [x] Line 542
- [ ] All possible error states are covered by tests
- [x] add test case for read-only key
|
[hardware] Add parameter passing of outstanding loads to tcdm_shim | @@ -585,6 +585,7 @@ module mempool_tile
tcdm_shim #(
.AddrWidth (AddrWidth ),
.DataWidth (DataWidth ),
+ .MaxOutStandingReads (snitch_pkg::NumIntOutstandingLoads),
.NrTCDM (2 ),
.NrSoC (1 ),
.NumRules (3 )
|
output_thread: rework event loop exit and cleanup | @@ -129,6 +129,20 @@ static int upstream_thread_create(struct flb_out_thread_instance *th_ins,
return 0;
}
+int count_upstream_busy_connections(struct flb_out_thread_instance *th_ins)
+{
+ int c = 0;
+ struct mk_list *head;
+ struct flb_upstream *u;
+
+ mk_list_foreach(head, &th_ins->upstreams) {
+ u = mk_list_entry(he... |
crypto/evp/pkey_kdf.c: further special treatment of "seed" and "info"
pkey_kdf_ctrl_str() has to do the same kind of special treatment as
pkey_kdf_ctrl() does. | @@ -71,6 +71,24 @@ static void pkey_kdf_cleanup(EVP_PKEY_CTX *ctx)
OPENSSL_free(pkctx);
}
+static int collect(BUF_MEM **collector, void *data, size_t datalen)
+{
+ size_t i;
+
+ if (*collector == NULL)
+ *collector = BUF_MEM_new();
+ if (*collector == NULL) {
+ ERR_raise(ERR_LIB_EVP, ERR_R_MALLOC_FAILURE);
+ return 0;
... |
Fix spurious datagram callback | @@ -2801,10 +2801,10 @@ void picoquic_process_possible_ack_of_ack_frame(picoquic_cnx_t* cnx, picoquic_pa
if (cnx->callback_fn != NULL) {
uint8_t frame_id;
uint64_t content_length;
- uint8_t* content_bytes = &p->bytes[byte_index];
+ uint8_t* content_bytes;
/* Parse and skip type and length */
- content_bytes = picoquic_... |
fix uac2_headset example: type of bRequest should be uint8_t, not enumerate | @@ -149,7 +149,7 @@ typedef struct TU_ATTR_PACKED
uint8_t bmRequestType;
};
- audio_cs_req_t bRequest;
+ uint8_t bRequest; ///< Request type audio_cs_req_t
uint8_t bChannelNumber;
uint8_t bControlSelector;
union
|
Add Time to Framework | @@ -17,6 +17,9 @@ namespace FFXIVClientStructs.FFXIV.Client.System.Framework
{
[FieldOffset(0x10)] public SystemConfig SystemConfig;
+ [FieldOffset(0x1680)] public long ServerTime;
+ [FieldOffset(0x1770)] public long EorzeaTime;
+
[FieldOffset(0x2B30)] public ExcelModuleInterface* ExcelModuleInterface;
[FieldOffset(0x2... |
gen_pipeline: Validate pipeline_target
Check that the target passed in is valid by comparing it against secrets filenames. | @@ -27,6 +27,7 @@ Python module requirements:
import argparse
import datetime
+import glob
import os
import re
import subprocess
@@ -48,6 +49,8 @@ TEMPLATE_ENVIRONMENT = Environment(
BASE_BRANCH = "master" # when branching gpdb update to 7X_STABLE, 6X_STABLE, etc.
+SECRETS_PATH = os.path.expanduser('~/workspace/gp-cont... |
Fix SEGV in handleThermostatClusterIndication()
If a thermostat cluster command is received but no sensor for that device exists,
the sensor resource pointer wasn't checked and a null pointer deref ended up in SEGV.
Issue:
Fix based on core dump core-deCONZ-sig11-user1000-group1000-pid28984-time1596024251 | @@ -102,6 +102,12 @@ void DeRestPluginPrivate::handleThermostatClusterIndication(const deCONZ::ApsDat
{
Sensor *sensor = getSensorNodeForAddressAndEndpoint(ind.srcAddress(), ind.srcEndpoint());
+ if (!sensor)
+ {
+ DBG_Printf(DBG_INFO, "No thermostat sensor found for 0x%016llX, endpoint: 0x%08X\n", ind.srcAddress().ext... |
Tests: post-merge review comments for | @@ -758,9 +758,10 @@ class VppTestCase(unittest.TestCase):
Convert packet payload to _PacketInfo object
:param payload: packet payload
- :type: <class 'scapy.packet.Raw'>
- :param: payload_field: packet fieldname of payload "load" for
+ :type payload: <class 'scapy.packet.Raw'>
+ :param payload_field: packet fieldname ... |
frsky: improve bind tuning | @@ -192,13 +192,14 @@ static void init_tune_rx(void) {
cc2500_strobe(CC2500_SRX);
}
-static uint8_t tune_rx() {
+static uint8_t tune_rx(uint8_t iteration) {
if (frsky_bind.offset >= 126) {
frsky_bind.offset = -126;
}
if ((debug_timer_millis() - time_tuned_ms) > 50) {
time_tuned_ms = debug_timer_millis();
- frsky_bind.o... |
Ignore failures of macos-11.0 runners.
This OS isn't well supported yet. I want to continue testing with it
but don't want to be told about its intermittent failures to run. | @@ -6,16 +6,20 @@ jobs:
build:
runs-on: ${{ matrix.os }}
+ continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
scons-options: ['ARCH=x86_64']
+ experimental: [false]
include:
- os: 'macos-11.0'
scons-options: 'ARCH=universal2'
+ experimental: true
- os: 'macos-10.15'
scon... |
vere: free pier on graceful shutdown | @@ -1395,12 +1395,29 @@ _pier_work_close(u3_work* wok_u)
wok_u->pep_u.data = wok_u;
}
+/* _pier_done(): dispose pier.
+*/
+static void
+_pier_free(u3_pier* pir_u)
+{
+ c3_free(pir_u->pax_c);
+
+ // XX remove
+ //
+ c3_free(pir_u->sav_u);
+
+ c3_free(pir_u);
+}
+
+/* _pier_done(): graceful shutdown complete, notify king... |
Work around maybe-uninitialized in bar.c
Fixes | @@ -162,9 +162,11 @@ static void wl_pointer_axis(void *data, struct wl_pointer *wl_pointer,
return;
}
+ // last doesn't actually need initialization,
+ // but gcc (7.3.1) is too dumb to figure it out
struct swaybar_workspace *first = NULL;
struct swaybar_workspace *active = NULL;
- struct swaybar_workspace *last;
+ str... |
Give endcache a better name. | @@ -194,7 +194,7 @@ const bigalloc = {sz
const bigfree = {p, sz
var minsz, minp, minidx
- var endp, endcache
+ var endp, endblk
minp = p
minidx = -1
@@ -202,13 +202,13 @@ const bigfree = {p, sz
endp = ((p : intptr) + (sz : intptr) : byte#)
lock(memlck)
for var i = 0; i < cache.len; i++
- endcache = ((cache[i].p : intpt... |
Bind client clusters of end devices only when they are awake | @@ -973,13 +973,21 @@ void DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
/*! Creates binding for group control (switches, motion sensor, ...). */
void DeRestPluginPrivate::checkSensorBindingsForClientClusters(Sensor *sensor)
{
- if (!apsCtrl || !sensor || !sensor->address().hasExt() || !se... |
Clean-up UWP-UTC sample to showcase how to send critical coredata events | @@ -30,7 +30,11 @@ void TelemetryInitialize()
configuration[CFG_INT_SDK_MODE] = SdkModeTypes_UTCCommonSchema;
ILogger *logger = LogManager::Initialize(TOKEN);
LogManager::GetSemanticContext()->SetAppId("SampleCppUWP");
- logger->LogSession(Session_Started, EventProperties("Microsoft.SampleCppUWP.AppSession"));
+ // Exa... |
Update package list before installing valgrind. | @@ -20,7 +20,9 @@ jobs:
- name: Install System Tools
if: runner.os == 'Linux'
shell: bash
- run: sudo apt install -y valgrind
+ run: |
+ sudo apt update -y
+ sudo apt install -y valgrind
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
|
Tweak Volt's brake pedal stickiness | @@ -59,7 +59,7 @@ static void gm_rx_hook(CAN_FIFOMailBox_TypeDef *to_push) {
int brake = (to_push->RDLR & 0xFF00) >> 8;
// Brake pedal's potentiometer returns near-zero reading
// even when pedal is not pressed
- if (brake <= 5) {
+ if (brake < 10) {
brake = 0;
}
if (brake && (!gm_brake_prev || gm_speed)) {
@@ -71,7 +7... |
doc: PG 12 relnotes, correct pg_stat_database.datoid to be datid
Previous column name was incorrect.
Reported-by: Justin Pryzby
Backpatch-through: 12 | @@ -1227,7 +1227,7 @@ Author: Magnus Hagander <magnus@hagander.net>
<para>
Global objects have a <link
- linkend="pg-stat-database-view"><structname>pg_stat_database</structname></link>.<structfield>datoid</structfield>
+ linkend="pg-stat-database-view"><structname>pg_stat_database</structname></link>.<structfield>dati... |
removed libusb1.0 | @@ -5,7 +5,7 @@ CC:=gcc
CFLAGS:=-Iinclude/libsurvive -I. -fPIC -g -O3 -Iredist -flto -DUSE_DOUBLE -std=gnu99 -rdynamic
#LDFLAGS:=-L/usr/local/lib -lpthread -lusb-1.0 -lz -lm -flto -g
-LDFLAGS:=-L/usr/local/lib -lpthread -lusb-1.0 -lz -lm -flto -g
+LDFLAGS:=-L/usr/local/lib -lpthread -lz -lm -flto -g
#----------
# Platf... |
Fix function prototypes in dependency.h.
Commit accidentally deleted a couple of
redundant-but-conventional "extern" keywords on function prototypes.
Put them back.
Reported-by: Alvaro Herrera | @@ -223,9 +223,9 @@ extern long changeDependencyFor(Oid classId, Oid objectId,
Oid refClassId, Oid oldRefObjectId,
Oid newRefObjectId);
-long changeDependenciesOf(Oid classId, Oid oldObjectId,
+extern long changeDependenciesOf(Oid classId, Oid oldObjectId,
Oid newObjectId);
-long changeDependenciesOn(Oid refClassId, Oi... |
Fix bug in wrappers for regexec and pcre2_match. | @@ -191,7 +191,7 @@ pcre2_match_wrapper(pcre2_code *re, PCRE2_SPTR data, PCRE2_SIZE size,
return pcre2_match(re, data, size, startoffset, options, match_data, mcontext);
}
- if ((pcre_stack = malloc(PCRE_STACK_SIZE))) {
+ if ((pcre_stack = malloc(PCRE_STACK_SIZE)) == NULL) {
scopeLog("ERROR; pcre2_match_wrapper: malloc... |
Changelog entry for EDNS client tag functionality | +5 August 2020: Ralph
+ - Merge PR #272: Add EDNS client tag functionality.
+
4 August 2020: George
- Improve error log message when inserting rpz RR.
- Merge PR #280, Make tvOS & watchOS checks verify truthiness as well as
|
Add config/parse tests for partial options.
Add coverage for partial options, i.e. an option that is partially specified but only prefix matches with a single valid option. | @@ -601,6 +601,15 @@ testRun(void)
configParse(storageTest, strLstSize(argList), strLstPtr(argList), false), CommandInvalidError,
"invalid command 'BOGUS:BOGUS'");
+ // -------------------------------------------------------------------------------------------------------------------------
+ TEST_TITLE("error on ambigu... |
[Rust] Check in missing trait definitions | @@ -41,9 +41,12 @@ pub struct AwmCreateWindowResponse {
pub framebuffer_ptr: *mut libc::c_void,
}
+impl ExpectsEventField for AwmCreateWindowResponse {
+ const EXPECTED_EVENT: u32 = AwmCreateWindow::EXPECTED_EVENT;
}
// TODO(PT): Add derive
+impl ContainsEventField for AwmCreateWindowResponse {
fn event(&self) -> u32 {... |
exrcheck: assume lots of memory required whenever MultiPart ctor throws | @@ -901,30 +901,39 @@ runChecks(T& source,bool reduceMemory,bool reduceTime)
//
string firstPartType;
- bool firstPartWide = false;
+
+
+ //
+ // scanline images with very wide parts take excessive memory to read
+ // assume the first part is wide until the header of the first part is checked
+ // so the single part sc... |
OD_time manage ns time values conversion. | @@ -55,6 +55,17 @@ static inline time_luos_t TimeOD_TimeFrom_us(double us)
return us / 1000000.0f;
}
+// ns
+static inline double TimeOD_TimeTo_ns(time_luos_t self)
+{
+ return self * 1000000000.0f;
+}
+
+static inline time_luos_t TimeOD_TimeFrom_ns(double ns)
+{
+ return ns / 1000000000.0f;
+}
+
// min
static inline d... |
Fix binlog crash on bad stream frame | @@ -82,18 +82,21 @@ static const uint8_t* picoquic_log_stream_frame(FILE* f, const uint8_t* bytes, c
bytes = picoquic_log_varint_skip(bytes, bytes_max); /* offset */
}
+ if (bytes != NULL) {
if ((ftype & 2) != 0) {
bytes = picoquic_log_length(bytes, bytes_max, &length); /* length */
has_length = 1;
- } else {
+ }
+ els... |
Fix quat indexing in vanilla Lua; | @@ -1366,7 +1366,8 @@ static int l_lovrQuat__newindex(lua_State* L) {
const char* key = lua_tolstring(L, 2, &length);
float x = luax_checkfloat(L, 3);
if (length == 1 && key[0] >= 'w' && key[0] <= 'z') {
- q[(key[0] - 'x') % 4] = x;
+ int index = key[0] == 'w' ? 3 : key[0] - 'x';
+ q[index] = x;
return 0;
}
}
@@ -1400,... |
stm32/boards/NUCLEO_H743ZI: Add config options to support mboot. | +USE_MBOOT ?= 0
+
+# MCU settings
MCU_SERIES = h7
CMSIS_MCU = STM32H743xx
MICROPY_FLOAT_IMPL = double
AF_FILE = boards/stm32h743_af.csv
+
+ifeq ($(USE_MBOOT),1)
+# When using Mboot all the text goes together after the filesystem
+LD_FILES = boards/stm32h743.ld boards/common_blifs.ld
+TEXT0_ADDR = 0x08040000
+else
+# Wh... |
doc: Update the bluetooth low energy part in migration-guides | @@ -43,3 +43,14 @@ Nimble
- Remove ``esp_err_t esp_nimble_hci_and_controller_deinit(void)``
- Controller deinitialization, disable and HCI deinitialization calls have been moved to `nimble_port_deinit`. This function can be deleted directly.
+
+ESP-BLE-MESH
+------------
+
+ The following ESP-BLE-MESH macro has been re... |
Fix potentiol domain error in sqrt | @@ -526,7 +526,7 @@ int CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa, FLO
BLASLONG width, i, j, k;
BLASLONG n, n_from, n_to;
int mode, mask;
- double dnum;
+ double dnum, di, dinum;
if ((nthreads == 1) || (args -> n < nthreads * SWITCH_RATIO)) {
SYRK_LOCAL(args, range_m, range_n, sa, sb, 0);
... |
can: Fix critical section ESP_LOG functions
This commit removes any function calls within
the CAN driver that result in a call to ESP_LOG
whilst inside a critical section.
These function calls are either moved outside
critical sections (e.g., intr_alloc and gpio
functions), or substituted (e.g., assert()).
Closes | @@ -724,13 +724,14 @@ esp_err_t can_driver_install(const can_general_config_t *g_config, const can_tim
can_config_error(DRIVER_DEFAULT_EWL, DRIVER_DEFAULT_REC, DRIVER_DEFAULT_TEC);
can_config_acceptance_filter(f_config->acceptance_code, f_config->acceptance_mask, f_config->single_filter);
can_config_clk_out(g_config->c... |
gh-actions: add -ffast-math builds for GCC and clang | @@ -242,6 +242,9 @@ jobs:
- version: 10
distro: ubuntu-20.04
arch_flags: -march=native
+ - version: 10
+ distro: ubuntu-20.04
+ arch_flags: -ffast-math
runs-on: ${{ matrix.distro }}
env:
CC: gcc-${{ matrix.version }}
@@ -300,6 +303,12 @@ jobs:
- version: "10"
distro: ubuntu-20.04
arch_flags: -march=native
+ - version: ... |
MetadataIcon: 1, not -1 inset | @@ -15,7 +15,7 @@ export function MetadataIcon(props: MetadataIconProps) {
const bgColor = metadata.picture ? {} : { bg: `#${uxToHex(metadata.color)}` };
return (
- <Box {...bgColor} {...rest} borderRadius={2} boxShadow="inset 0 0 0 -1px" color="lightGray" overflow="hidden">
+ <Box {...bgColor} {...rest} borderRadius={... |
Ensure the correct value is being compared for OP_BREAK | @@ -1681,6 +1681,99 @@ static void expressionStatement(Compiler *compiler) {
}
}
+static int getArgCount(uint8_t code, const ValueArray constants, int ip) {
+ switch (code) {
+ case OP_NIL:
+ case OP_TRUE:
+ case OP_FALSE:
+ case OP_NEW_LIST:
+ case OP_ADD_LIST:
+ case OP_NEW_DICT:
+ case OP_ADD_DICT:
+ case OP_SUBSCRI... |
Sockeye: Make bars start at 0 | @@ -192,10 +192,10 @@ add_pci_internal(S, Addr, Enum, Module, ModuleIOMMU, NewS) :-
param(Id), param(PCIBUS_ID),
fromto(S4, SIn, SOut, S5) do
BarId = [BarNum, "BAR" | Id],
- BarEnd is BarStart + BarSize,
- state_add_accept(SIn, region(BarId, block(BarStart,BarEnd)), SIn1),
+ BarEnd is BarSize - 1,
+ state_add_accept(SI... |
[core] slightly simpler flag append to string | @@ -182,7 +182,7 @@ static handler_t stat_cache_handle_fdevent(server *srv, void *_fce, int revent)
for (j = 0; j < 2; j++) {
buffer_copy_string(scf->hash_key, fe.filename);
- buffer_append_int(scf->hash_key, j);
+ buffer_append_string_len(scf->hash_key, (0 == j ? "0" : "1"), 1);
ndx = hashme(scf->hash_key);
@@ -293,7 ... |
README: Remove text about selecting different ports in the docs. | @@ -41,8 +41,7 @@ Major components in this repository:
to port MicroPython to another microcontroller.
- tests/ -- test framework and test scripts.
- docs/ -- user documentation in Sphinx reStructuredText format. Rendered
- HTML documentation is available at http://docs.micropython.org (be sure
- to select needed board... |
YAMBi: Use upper case name for macro | @@ -23,7 +23,7 @@ typedef parser::token token;
// -- Macros -------------------------------------------------------------------
-#define switchToken(TOK) \
+#define ELEKTRA_SWITCH_TOKEN(TOK) \
case token::TOKEN_##TOK: \
return parser::make_##TOK (text, placement)
@@ -66,18 +66,18 @@ public:
{
switch (tokenType)
{
- swi... |
doc: mention nokdb test removal | @@ -287,6 +287,9 @@ Thanks to Michael Zronek and Vanessa Kos.
- Port `elektra-gcc-configure-xdg`to new build system. *(Lukas Winkler)*
- Port `elektra-gcc-i386` to new build system. *(Lukas Winkler)*
- Docker Registry is cleaned up by our daily buildserver task. *(Lukas Winkler)*
+- Remove dedicated nokdb test. Instead... |
king: wtf use getExecutablePath | @@ -25,6 +25,8 @@ import Urbit.King.App
import Urbit.Vere.Pier.Types
import Control.Monad.STM (retry)
+import System.Environment (getExecutablePath)
+import System.FilePath (splitFileName, (</>))
import System.Posix.Files (ownerModes, setFileMode)
import Urbit.EventLog.LMDB (EventLog)
import Urbit.King.API (TermConn)
@... |
We don't need early breaks. | @@ -248,14 +248,11 @@ acceptall(Dtree *t, Dtree *accept)
if (t->accept || t->any == accept)
return 0;
- ret = 0;
- if (t->any) {
- if (acceptall(t->any, accept))
ret = 1;
- } else {
+ if (t->any)
+ ret = acceptall(t->any, accept);
+ else
t->any = accept;
- ret = 1;
- }
for (i = 0; i < t->nnext; i++)
if (acceptall(t->ne... |
fix module load openblas | @@ -210,7 +210,7 @@ if [ expr [ module-info mode load ] || [module-info mode display ] ] {
if { ![is-loaded superlu] } {
module load superlu
}
- if { [is-loaded gnu] } {
+ if { [is-loaded gnu7] } {
if { ![is-loaded openblas] } {
module load openblas
}
|
Android: tune auto tests run script for Travis | @@ -2680,29 +2680,47 @@ def run_as_spec(device_flag, uninstall_app)
Jake.before_run_spec
start = Time.now
+ puts "CurTime is "+Time.now.to_s
puts "Waiting for application ..."
- for i in 0..600
+
+ tc_start_time = Time.now
+ tc_overtime = false
+ tc_timeout_in_seconds = 10*60
+
+ while !tc_overtime do
app_is_running = ... |
reduce golang dependency to 1.16 | @@ -31,7 +31,7 @@ BuildRequires: help2man >= 1.41
BuildRequires: libsecret-devel >= 0.18.4
BuildRequires: desktop-file-utils
BuildRequires: qrencode-devel >= 3
-BuildRequires: golang >= 1.17
+BuildRequires: golang >= 1.16
BuildRequires: gtk3-devel
%if 0%{?suse_version} > 0
%if 0%{?sle_version} < 150400
|
PALLENE_NBITS should be unsigned
While luaV_shift is doing a signed comparision, in pallene_shiftL and
pallene_shiftR we are doing an unsigned comparison. So we should not be
casting it to a signed integer.
Additionally, I am also moving the definition of PALLENE_LUAINTEGER_NBITS closer
to where it is used. | #define PALLENE_LIKELY(x) __builtin_expect(!!(x), 1)
#define PALLENE_UNLIKELY(x) __builtin_expect(!!(x), 0)
-#define PALLENE_LUAINTEGER_NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT)
-
-
const char *pallene_tag_name(int raw_tag);
void pallene_runtime_tag_check_error(
@@ -171,13 +168,16 @@ lua_Integer pallene_int_modi(
... |
Exit widget after disappearing | @@ -220,6 +220,12 @@ fileprivate var isPythonSetup = false
}
}
+ override func viewDidDisappear(_ animated: Bool) {
+ super.viewDidDisappear(animated)
+
+ exit(0)
+ }
+
// MARK: - Widget providing
func widgetActiveDisplayModeDidChange(_ activeDisplayMode: NCWidgetDisplayMode, withMaximumSize maxSize: CGSize) {
@@ -369,... |
mgmt/imgmgr: Add few parentheses to improve readability
...and also make Eclipse CDT stop complaining :) | @@ -122,8 +122,8 @@ imgmgr_state_flags(int query_slot)
static int
imgmgr_state_any_pending(void)
{
- return imgmgr_state_flags(0) & IMGMGR_STATE_F_PENDING ||
- imgmgr_state_flags(1) & IMGMGR_STATE_F_PENDING;
+ return (imgmgr_state_flags(0) & IMGMGR_STATE_F_PENDING) ||
+ (imgmgr_state_flags(1) & IMGMGR_STATE_F_PENDING);... |
Include yara/integers.h instead of inttypes.h | @@ -30,7 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef YR_GLOBALS_H
#define YR_GLOBALS_H
-#include <inttypes.h>
+#include <yara/integers.h>
#include <yara/threading.h>
// Pre-computed tables for quickly converting a character to lowercase or to
|
Fix ui_write in apps/apps.c
It used the default UI reader as fallback instead of the UI writer.
Fixes
Fixes | @@ -240,7 +240,7 @@ static int ui_write(UI *ui, UI_STRING *uis)
}
}
- writer = UI_method_get_reader(ui_fallback_method);
+ writer = UI_method_get_writer(ui_fallback_method);
if (writer)
return writer(ui, uis);
return 1;
|
Reload changed quantiles too | @@ -426,6 +426,15 @@ od_rules_rule_compare(od_rule_t *a, od_rule_t *b)
return 0;
}
+ /* quantiles changed */
+ if (a->quantiles_count == b->quantiles_count) {
+ if (a->quantiles_count != 0 &&
+ memcmp(a->quantiles, b->quantiles, sizeof(double) * a->quantiles_count) != 0)
+ return 0;
+ } else {
+ return 0;
+ }
+
/* auth... |
doc: Document more platforms
These platforms are supported in the tree but didn't make it to the docs
folder yet. | @@ -43,9 +43,12 @@ Platform Sub platform Host CPU(s) Manufacturer compatible
======== ============ =========== ================== ========================== ============================= =======
astbmc p9sdu Power9 Supermicro "supermicro,p9dsu" Boston, LC921/LC922 [#]_
astbmc romulus Power9 "ibm,romulus" Romulus
-astbm... |
Missing units | @@ -21,7 +21,7 @@ Available options:
-www Public folder for static file serving. Default: nil (none).
-v Log responses. Default: never log responses.
-warmup Warmup invokes autoloading (lazy loading) during server startup.
- -tout HTTP inactivity connection timeout. Default: 5.
+ -tout HTTP inactivity connection timeou... |
Fix TCP Perf Server Bug | @@ -567,6 +567,9 @@ bool TcpConnection::InitializeTls()
Config.ServerName = "localhost";
Config.LocalTPBuffer = LocalTP;
Config.LocalTPLength = CxPlatTlsTPHeaderSize + LocalTPLength;
+ if (IsServer) {
+ TlsState.NegotiatedAlpn = FixedAlpnBuffer;
+ }
if (QUIC_FAILED(
CxPlatTlsInitialize(&Config, &TlsState, &Tls))) {
|
GraphContent: allow titled links in textrenderer
Fixes urbit/landscape#752 | @@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
import ReactMarkdown from 'react-markdown';
import RemarkDisableTokenizers from 'remark-disable-tokenizers';
import urbitOb from 'urbit-ob';
-import { Text } from '@tlon/indigo-react';
+import { Text, Anchor } from '@tlon/indigo-react';
import { GroupLink } from ... |
tls13: add key exchange modes in handshake params | @@ -509,6 +509,9 @@ struct mbedtls_ssl_handshake_params
/*
* Handshake specific crypto variables
*/
+#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
+ int tls1_3_kex_modes; /*!< key exchange modes for TLS 1.3 */
+#endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */
#if defined(MBEDTLS_SSL_PROTO_TLS1_2) && \
defined(MB... |
api/show_mnemonic: instruct user to confirm each word
Jumping straight to the confirmation workflow can be confusing. | @@ -18,6 +18,7 @@ use alloc::vec::Vec;
use super::Error;
use crate::pb;
+use crate::workflow::confirm;
use pb::response::Response;
@@ -80,6 +81,18 @@ pub async fn process() -> Result<Response, Error> {
// Part 1) Scroll through words
mnemonic::show_mnemonic(&words).await?;
+ let params = confirm::Params {
+ title: "",
... |
added pp counter to the result screen | @@ -176,7 +176,8 @@ class Drawer:
self.component.modicons.add_to_frame(self.pbuffer)
self.component.rankingreplay.add_to_frame(self.pbuffer)
self.component.rankinggraph.add_to_frame(self.pbuffer)
-
+ self.component.ppcounter.add_to_frame(self.pbuffer)
+ self.component.hitresultcounter.add_to_frame(self.pbuffer)
def dra... |
[ya] Decrease default cpu requirements | @@ -102,12 +102,12 @@ class TestSize(Enum):
# TestRequirements.Ram: 2,
},
Medium: {
- TestRequirements.Cpu: 2,
+ TestRequirements.Cpu: 1,
TestRequirements.Ram: 48,
# TestRequirements.Ram: 4,
},
Large: {
- TestRequirements.Cpu: 2,
+ TestRequirements.Cpu: 1,
TestRequirements.Ram: 48,
# TestRequirements.Ram: 8,
},
|
dec_neon,DC8_NEON: use vaddlv instead of movl+vaddv
one fewer instruction | @@ -1429,8 +1429,7 @@ static WEBP_INLINE void DC8_NEON(uint8_t* dst, int do_top, int do_left) {
if (do_top) {
const uint8x8_t A = vld1_u8(dst - BPS); // top row
#if defined(__aarch64__)
- const uint16x8_t B = vmovl_u8(A);
- const uint16_t p2 = vaddvq_u16(B);
+ const uint16_t p2 = vaddlv_u8(A);
sum_top = vdupq_n_u16(p2)... |
Fix missing PAMLIBS in makefiles. | @@ -81,7 +81,7 @@ test:
ippserver: $(OBJS) ../cups/libcups.a
echo Linking $@...
- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(PAMLIBS) $(LIBS)
#
|
fake arch for src repo | @@ -256,6 +256,7 @@ foreach my $distro (@distros) {
add_repo_file("$tmp_dir/OpenHPC.local.repo",$micro,$base_release,$release,$distro,$isSrcRepo);
# add README file
+ my $arch = "src";
add_readme_file($arch, $distro, $micro, $release, "OpenHPC.local.repo");
$tar_args .= "--exclude $distro/iso \\\n";
|
nimble/ll: Fix race on create connection
If AUX_CONNECT_RSP is invalid we should immediately remove connection
from scheduler, then we can do other stuff. In other case, we may be
a bit too late and scheduler will fire already scheduled connection
event for a connection that is not created. | @@ -1567,8 +1567,9 @@ ble_ll_scan_aux_rx_pkt_in_for_initiator(struct os_mbuf *rxpdu,
aux = rxinfo->user_data;
if (rxinfo->flags & BLE_MBUF_HDR_F_IGNORED) {
+ ble_ll_scan_aux_free(aux);
ble_ll_scan_chk_resume();
- goto done;
+ return;
}
if (!(rxinfo->flags & BLE_MBUF_HDR_F_CONNECT_RSP_RXD)) {
@@ -1582,19 +1583,14 @@ ble... |
Add lz4 dictionary example to RAC related work | @@ -113,6 +113,17 @@ KiB of history, per seek point. For coarse grained seek points (e.g. once every
1 MiB), that overhead can be acceptable, but for fine grained seek points (e.g.
once every 16 KiB), that overhead is prohibitive.
+The
+[`examples/dictionaryRandomAccess.c`](https://github.com/lz4/lz4/blob/master/exampl... |
xfconf-plugin: Describe how xfconf locks work | This is a storage plugin to mount the xfconf configuration settings.
+## Xfconf Terminology
+
+### Locks
+
+Xfconf uses so-called locks to prevent users or applications to set properties to a new value.
+They can be referred as a type of constant.
+As of now, locks cannot be set or unset in xfconf which makes locked pr... |
vere: fix use-after-free when sending http response | @@ -428,29 +428,32 @@ _http_hgen_send(u3_hgen* gen_u)
c3_w len_w;
h2o_iovec_t* vec_u = _cttp_bods_to_vec(gen_u->bod_u, &len_w);
+ // not ready again until _proceed
+ //
+ gen_u->red = c3n;
+
+ // stash [bod_u] to free later
+ //
+ gen_u->nud_u = gen_u->bod_u;
+ gen_u->bod_u = 0;
+
if ( c3n == gen_u->dun ) {
h2o_send(re... |
[core] reduce stack use in main()
mark noinline for setup and other cold funcs | @@ -272,6 +272,7 @@ server_epoch_secs (server * const srv)
}
__attribute_cold__
+__attribute_noinline__
static server *server_init(void) {
server *srv = calloc(1, sizeof(*srv));
force_assert(srv);
@@ -322,6 +323,7 @@ static server *server_init(void) {
}
__attribute_cold__
+__attribute_noinline__
static void server_free... |
Updated README.md Windows section. | @@ -178,7 +178,8 @@ alternative option below.
#### Windows ####
GoAccess can be used in Windows through Cygwin.
-See Cygwin's <a href="https://goaccess.io/faq#installation">packages</a>.
+See Cygwin's <a href="https://goaccess.io/faq#installation">packages</a>. Or
+through the Linux Subsystem on Windows 10.
#### Distri... |
Improve JS object native pointer unit test
After setting a second native pointer, check that both the pointer that
was first set and the second pointer that was set are there.
JerryScript-DCO-1.0-Signed-off-by: Gabriel Schulhof | @@ -160,19 +160,31 @@ handler_construct (const jerry_value_t func_obj_val, /**< function object */
jerry_release_value (res);
jerry_release_value (field_name);
+ /* Set a native pointer. */
jerry_set_object_native_pointer (this_val,
(void *) 0x0000000000000000ull,
&JERRY_NATIVE_HANDLE_INFO_FOR_CTYPE (bind1));
+ /* Chec... |
Ramp up version to 1.0.5 | BrotliEncoderVersion methods. */
/* Semantic version, calculated as (MAJOR << 24) | (MINOR << 12) | PATCH */
-#define BROTLI_VERSION 0x1000004
+#define BROTLI_VERSION 0x1000005
/* This macro is used by build system to produce Libtool-friendly soname. See
https://www.gnu.org/software/libtool/manual/html_node/Libtool-ver... |
[Components][SDIO]block 'err' declared without an initial value | @@ -252,7 +252,7 @@ static rt_size_t rt_mmcsd_read(rt_device_t dev,
void *buffer,
rt_size_t size)
{
- rt_err_t err;
+ rt_err_t err = 0;
rt_size_t offset = 0;
rt_size_t req_size = 0;
rt_size_t remain_size = size;
@@ -293,7 +293,7 @@ static rt_size_t rt_mmcsd_write(rt_device_t dev,
const void *buffer,
rt_size_t size)
{
-... |
Fix DLL_INIT_BLOCK version check | @@ -494,7 +494,7 @@ NTSTATUS PhpUpdateMemoryRegionTypes(
PVOID cfgBitmapAddress = NULL;
PVOID cfgBitmapWow64Address = NULL;
- if (ldrInitBlock.Size == sizeof(PS_SYSTEM_DLL_INIT_BLOCK))
+ if (ldrInitBlock.Size >= (ULONG)FIELD_OFFSET(PS_SYSTEM_DLL_INIT_BLOCK, Wow64CfgBitMap))
{
cfgBitmapAddress = (PVOID)ldrInitBlock.CfgB... |
provisioning/warewulf-provision: fix patch for ohpc build | diff --git a/provision/etc/filesystem/examples/efi_example.cmds b/provision/etc/filesystem/examples/efi_example.cmds
index 658658e..8508f60 100644
---- a/provision/etc/filesystem/examples/efi_example.cmds
-+++ b/provision/etc/filesystem/examples/efi_example.cmds
+--- a/etc/filesystem/examples/efi_example.cmds
++++ b/et... |
Better sanitizer check | @@ -547,7 +547,7 @@ module BASE_UNIT {
LDFLAGS+=-fprofile-instr-generate -fcoverage-mapping
}
- when ($SANITIZER_TYPE) {
+ when ($SANITIZER_TYPE && $SANITIZER_TYPE != "no") {
CFLAGS+=-fno-omit-frame-pointer
when ($SANITIZER_TYPE == "pg") {
|
idf_py: fix the ESPPORT environ variable type issue
Python 2 expect the environ variables are all of type 'str', but
sometimes wrong 'unicode' type is given.
Here we force all variables that are not str to become str. | @@ -77,6 +77,13 @@ def run_tool(tool_name, args, cwd, env=dict()):
env_copy = dict(os.environ)
env_copy.update(env)
+ if sys.version_info[0] < 3:
+ # The subprocess lib cannot accept environment variables as "unicode". Convert to str.
+ # This encoding step is required only in Python 2.
+ for (key, val) in env_copy.ite... |
SOVERSION bump to version 1.2.4 | @@ -51,7 +51,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION
# with backward compatible change and micro version is connected with any internal change of the library.
set(LIBNETCONF2_MAJOR_SOVERSION 1)
set(LIBNETCONF2_MINOR_SOVERSION 2)
-set(LIBNETCONF2_MICRO_SOVERSION 3)
+set(LIBN... |
finalize mysql replication source | @@ -379,6 +379,8 @@ ALLOW .* -> vendor/github.com/fclairamb/ftpserver
# CONTRIB-1647 golang binlog replication implementation
ALLOW .* -> vendor/github.com/siddontang/go-mysql/replication
+ALLOW .* -> vendor/github.com/siddontang/go-mysql/canal
+ALLOW .* -> vendor/github.com/siddontang/go-mysql/mysql
#
# Temporary exce... |
out_es: add support for milliseconds | #include <fluent-bit/flb_network.h>
#include <fluent-bit/flb_http_client.h>
#include <fluent-bit/flb_pack.h>
+#include <fluent-bit/flb_time.h>
#include <msgpack.h>
#include <time.h>
@@ -131,12 +132,13 @@ static char *elasticsearch_format(void *data, size_t bytes, int *out_size,
msgpack_unpacked result;
msgpack_object r... |
MSR: Remove read `Backup-and-Restore` directive | @@ -50,6 +50,7 @@ translate() {
MOUNTPOINT=$(printf '%s' "$BUF" | head -n 1)
if printf '%s' "$MOUNTPOINT" | grep -Eq 'Backup-and-Restore:'; then
printf 'Mountpoint: %s\n' "$(printf '%s' "$MOUNTPOINT" | cut -d ':' -f2 | sed 's/^[[:space:]]*//')" >> "$TMPFILE"
+ BUF=$(printf '%s\n' "$BUF" | sed '1d')
else
printf 'Mountpo... |
interface: indigo-react statusbar icons | @@ -31,10 +31,8 @@ export function StatusBarItem({
<Icon
size="22px"
icon="Bullet"
- fill="blue"
- position="absolute"
- top={"-10px"}
- right={"-12px"}
+ color="blue"
+ style={{ position: 'absolute', top: '-10', right: '-11' }}
/>
)}
</Row>
|
fix pluto_dep_remove_satisfied_iterations
fix error in pluto_dep_remove_satisfied_iterations introduced by commit
- due to leftover call to
pluto_constraints_subtract (should have been removed) | @@ -811,7 +811,7 @@ bool dep_satisfaction_test(Dep *dep, PlutoProg *prog, int level)
/*
- * Remove dependence instances that have been satisified at level
+ * Remove dependence instances from 'dep' that have been satisified at 'level'
*
* A dependence instance is satisfied if \phi(t) - \phi(s) >= 1; hence, those
* <s,t... |
docs: add cr50 ccd prerequisites
Add some prerequisites that tell you what you need to emerge.
BRANCH=none
TEST=read doc prerequisites. Make sure information and formatting looks
ok. | @@ -65,6 +65,43 @@ Cr50 CCD needs to be opened to access all CCD functionality or to modify
capability settings so the device doesn't need to be open to access CCD
functionality.
+### Prerequisites
+Cr50 needs to be newer than 0.3.9 or 0.4.9 to setup ccd. The 3 in the major
+version means it's a MP image and 0.4.X is a... |
CBLK: Use sem_timedwait instead of sem_wait to implement a timeout on failure | @@ -883,12 +883,26 @@ static struct cblk_req *get_read_req(struct cblk_dev *c,
struct cblk_req *req;
while (c->status == CBLK_READY) {
- sem_wait(&c->r_busy_sem);
+ int rc;
+ struct timespec ts;
+
+ clock_gettime(CLOCK_REALTIME, &ts);
+ ts.tv_sec += CONFIG_REQ_TIMEOUT_SEC;
+ retry:
+ rc = sem_timedwait(&c->r_busy_sem, ... |
adds %# (3-fixed %cnsg alias) to parser | ['-' (rune hep %cnhp expk)]
[':' (rune col %cnhp expi)]
['~' (rune sig %cnsg expu)]
+ ['#' (rune hax %cnsg expn)]
['*' (rune tar %cntr expm)]
['=' (rune tis %cnts exph)]
==
++ expk |.(;~(gunk loaf ;~(plug loaf (easy ~)))) :: list of two hoons
++ expl |.(;~(gunk (stag ~ sym) loaf loaf)) :: term, two hoons
++ expm |.((bu... |
SOVERSION bump to version 2.22.7 | @@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 22)
-set(LIBYANG_MICRO_SOVERSION 6)
+set(LIBYANG_MICRO_SOVERSION 7)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M... |
Better fix for the timing-related crash | @@ -208,6 +208,8 @@ namespace carto {
if (!std::dynamic_pointer_cast<EPSG3857>(dataSource->getProjection())) {
throw InvalidArgumentException("Expecting EPSG3857 projection in datasource");
}
+
+ resetTileTransformer();
}
void TileLayer::setComponents(const std::shared_ptr<CancelableThreadPool>& envelopeThreadPool,
@@ ... |
Add PH_FILEDIALOG_NOPATHVALIDATE flags, Fix PhpConvertProcessInformation warnings | @@ -2527,12 +2527,12 @@ FORCEINLINE VOID PhpConvertProcessInformation(
if (ProcessHandle)
*ProcessHandle = ProcessInfo->hProcess;
- else
+ else if (ProcessInfo->hProcess)
NtClose(ProcessInfo->hProcess);
if (ThreadHandle)
*ThreadHandle = ProcessInfo->hThread;
- else
+ else if (ProcessInfo->hThread)
NtClose(ProcessInfo->... |
docs: add Huawei BCS official website | + [FISCO BCOS Github](https://github.com/FISCO-BCOS)
+ [Hyperledger Fabric](https://www.hyperledger.org/use/fabric)
+ [Hyperledger Fabric Docs](https://hyperledger-fabric.readthedocs.io/)
++ [Huawei BCS](https://www.huaweicloud.com/product/bcs)
+ [ChainMaker](https://chainmaker.org.cn/)
+ [ChainMaker Docs](https://docs... |
Fix filename escaping in c_rehash
CLA: trivial | @@ -161,7 +161,7 @@ sub check_file {
sub link_hash_cert {
my $fname = $_[0];
- $fname =~ s/'/'\\''/g;
+ $fname =~ s/\"/\\\"/g;
my ($hash, $fprint) = `"$openssl" x509 $x509hash -fingerprint -noout -in "$fname"`;
chomp $hash;
chomp $fprint;
|
Update MuPDF source location. | @@ -8,7 +8,7 @@ description: |
by the PWG IPP workgroup.
grade: devel # must be 'stable' to release into candidate/stable channels
-confinement: devmode # use 'strict' once you have the right plugs and slots
+confinement: strict
icon: server/printer.png
apps:
@@ -36,7 +36,7 @@ parts:
plugin: make
make-install-var: pref... |
skip raw detection of raw handshakes if no raw option is selected | bool hexmodeflag;
bool verboseflag;
bool fcsflag;
+bool wantrawflag;
unsigned long long int maxtvdiff;
unsigned long long int maxrcdiff;
@@ -143,6 +144,7 @@ pmkoutname = NULL;
identityoutname = NULL;
verboseflag = false;
hexmodeflag = false;
+wantrawflag = false;
maxtvdiff = MAX_TV_DIFF;
maxrcdiff = MAX_RC_DIFF;
@@ -12... |
Fix tests broken since move to GBDK 2020 | @@ -106,11 +106,11 @@ test("Should construct C data from input", async () => {
banked.push([0]);
banked.push([1, 2]);
expect(banked.exportCData()).toEqual([
- `#pragma bank=${MIN_DATA_BANK}\n\n${cIntArray(
+ `#pragma bank ${MIN_DATA_BANK}\n\n${cIntArray(
`bank_${MIN_DATA_BANK}_data`,
[0]
)}\n`,
- `#pragma bank=${MIN_DA... |
Update draft 0.4.0 changelog | ## 0.4.0
-- Fix some stack corruption with multiple wrenInterpret calls
-- WREN_MAX_TEMP_ROOTS default is 8 (instead of 5)
-- Add `Num.log2` and `Num.exp`
-- Fixed crash when GC collects module during import 2ce421ea
-- Fixed bug with `import` (28ad8aa9)
-- Map API support:
+### Language
+- Add `continue` keyword
+- Ad... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.