message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
host/mesh: Update seqnum when re-encrypting for friend
Sets the sequence number when re-encrypting messages from the friend to
the lpn.
This is port of | @@ -431,6 +431,9 @@ static int unseg_app_sdu_prepare(struct bt_mesh_friend *frnd,
return 0;
}
+ BT_DBG("Re-encrypting friend pdu (SeqNum %06x -> %06x)",
+ meta.crypto.seq_num, bt_mesh.seq);
+
err = unseg_app_sdu_unpack(frnd, buf, &meta);
if (err) {
return err;
@@ -446,6 +449,8 @@ static int unseg_app_sdu_prepare(struct... |
Fix issue where drag mode can get stuck if space/alt released after world loses focus | @@ -170,13 +170,7 @@ class World extends Component {
};
onKeyUp = (e) => {
- if (e.target.nodeName !== "BODY") {
- return;
- }
- if (e.ctrlKey || e.shiftKey || e.metaKey) {
- return;
- }
- if (e.code === "Space" || e.key === "Alt") {
+ if (this.state.dragMode && (e.code === "Space" || e.key === "Alt")) {
this.setState(... |
link: remove trailing whitespace | @@ -200,7 +200,7 @@ export class LinkDetail extends Component {
<Comments
path={props.path}
key={props.path + props.commentPage}
- comments={props.data.comments}
+ comments={props.comments}
commentPage={props.commentPage}
members={props.members}
popout={props.popout}
@@ -216,4 +216,3 @@ export class LinkDetail extends ... |
Add a note regarding verifying checkpoint against replay position. | @@ -999,6 +999,10 @@ sub replayWait
$self->executeSql('checkpoint', undef, false);
# On PostgreSQL >= 9.6 the checkpoint location can be verified
+ #
+ # ??? We have seen one instance where this check failed. Is there any chance that the replayed position could be ahead of the
+ # checkpoint recorded in pg_control? It ... |
update ya tool perf 4.14.69 -> 4.19.91 | },
"perf": {
"formula": {
- "sandbox_id": 306170090,
- "match": "PERF"
+ "sandbox_id": 592122048,
+ "match": "infra/kernel/tools/perf/build/perf-static.tar.gz"
},
"executable": {
"perf": [
|
[CI] Disable building OS so cache is successfully saved | @@ -35,8 +35,8 @@ jobs:
uses: actions/cache@v2
with:
path: |
- ./x86_64-toolchain
- ./axle-sysroot
+ x86_64-toolchain
+ axle-sysroot
key: libc-and-toolchain
- name: Build libc and toolchain
@@ -47,8 +47,8 @@ jobs:
python3 scripts/build_os_toolchain.py
echo "Toolchain built successfully"
- - name: Build OS image
- shell... |
Remove duplicate deploy to Bintray | - path: '**\*.zip'
name: nanoImage
- deploy:
- - provider: BinTray
- username: nfbot
- api_key:
- secure: Wz0wwFOzMkDwwzzax1HPzKZB3r/aTprlleqFYX5arxpH9pP3D9glINxEuY+P/BaN
- subject: nfbot
- repo: nanoframework-images-dev
- package: $(BOARD_NAME)
- version: $(GitVersion_SemVer)
- publish: true
- override: true
- explode... |
Check if all required ops are provided by adapter. | @@ -111,6 +111,28 @@ int ocf_ctx_volume_create(ocf_ctx_t ctx, ocf_volume_t *volume,
return ocf_volume_create(volume, ctx->volume_type[type_id], uuid);
}
+static void check_ops_provided(const struct ocf_ctx_ops *ops)
+{
+ ENV_BUG_ON(!ops->data.alloc);
+ ENV_BUG_ON(!ops->data.free);
+ ENV_BUG_ON(!ops->data.mlock);
+ ENV_... |
Prevent segmentation fault on ID, when handling malformed records. | @@ -3134,6 +3134,8 @@ cdef class VariantRecord(object):
raise ValueError('Error unpacking VariantRecord')
# causes a memory leak https://github.com/pysam-developers/pysam/issues/773
# return bcf_str_cache_get_charptr(r.d.id) if r.d.id != b'.' else None
+ if (r.d.m_id == 0):
+ raise ValueError('Error extracing ID')
retu... |
Addition of a new option to select the way to solve the linear system.
3x3 no scaling
3x3 with scaling and Qp2 inside the matrix
3x3 with scaling and QpH inside the matrix
2x2 with scaling and Qp2 inside the matrix
2x2 with scaling and QpH inside the matrix | @@ -547,7 +547,9 @@ enum SICONOS_FRICTION_3D_IPM_IPARAM_ENUM
/** index in iparam to use Qp or F formula for computing Nesterov-Todd scaling **/
SICONOS_FRICTION_3D_IPM_IPARAM_NESTEROV_TODD_SCALING_METHOD = 18,
/** index in iparam to use a reduced symmetric system with Qp2 or QpH inside the matrix **/
- SICONOS_FRICTION... |
add support for wget to setup.sh | @@ -9,15 +9,25 @@ set -e
check_exists() {
command_to_run=$1
error_message=$2
+ local __resultvar=$3
if ! eval "$command_to_run" &> /dev/null; then
+ if [[ "$__resultvar" != "" ]]; then
+ eval $__resultvar="'false'"
+ else
printf "%s\n" "$error_message"
exit 1
fi
+ else
+ if [[ "$__resultvar" != "" ]]; then
+ eval $__re... |
Don't send unexpected_message if we receive CCS while stateless
Probably this is the CCS between the first and second ClientHellos. It
should be ignored. | @@ -1120,6 +1120,17 @@ int tls_get_message_header(SSL *s, int *mt)
SSL_R_BAD_CHANGE_CIPHER_SPEC);
return 0;
}
+ if (s->statem.hand_state == TLS_ST_BEFORE
+ && (s->s3->flags & TLS1_FLAGS_STATELESS) != 0) {
+ /*
+ * We are stateless and we received a CCS. Probably this is
+ * from a client between the first and second Cl... |
change ~ mrc=='rc' will now also trigger check_vstudio | @@ -130,7 +130,8 @@ function main(platform, name)
-- check vstudio
local cc = path.basename(config.get("cc") or "cl"):lower()
local cxx = path.basename(config.get("cxx") or "cl"):lower()
- if cc == "cl" or cxx == "cl" then
+ local mrc = path.basename(config.get("mrc") or "rc"):lower()
+ if cc == "cl" or cxx == "cl" or ... |
oc_clock: Fix overflow | @@ -33,7 +33,8 @@ oc_clock_encode_time_rfc3339(oc_clock_time_t time, char *out_buf,
timestamp_t now_t = { 0 };
now_t.sec = (int64_t)(time / OC_CLOCK_SECOND);
- now_t.nsec = (int32_t)((time % OC_CLOCK_SECOND) * (OC_NSEC_PER_SEC / OC_CLOCK_SECOND));
+ now_t.nsec =
+ (int32_t)((time % OC_CLOCK_SECOND) * (OC_NSEC_PER_SEC /... |
options/posix: Implement alphasort like musl | #include <mlibc/posix-sysdeps.hpp>
#include <mlibc/debug.hpp>
-int alphasort(const struct dirent **, const struct dirent **) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
+// Code taken from musl
+int alphasort(const struct dirent **a, const struct dirent **b) {
+ return strcoll((*a)->d_name, (*b)->d_nam... |
minors changes to compression numbers | @@ -15,18 +15,18 @@ Note that LZ4W support using previous data buffer to improve compression if avai
Decompression speed (running a 7.67 Mhz 68000 using optimized assembly code)
-------------------
LZ4 min=270KB/s max=390KB/s
-LZ4W min=550KB/s max=900KB/s
+LZ4W min=550KB/s max=950KB/s
As you can see the speed differenc... |
only show qrcode dialog on main receiving tab | @@ -85,6 +85,7 @@ AddressBookPage::AddressBookPage(Mode mode, Tabs tab, QWidget *parent) :
{
contextMenu->addAction(signMessageAction);
// Show QR Code on double click when in receiving tab
+ if (mode == ForEditing)
connect(ui->tableView, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(onRowDoubleClicked(const QM... |
add qt private header for window and linux | @@ -167,6 +167,17 @@ function main(target, opt)
-- translate qt frameworks
if framework:startswith("Qt") then
+ if (framework:lower():endswith("private")) then
+ -- add private includedirs
+ print("private")
+ if is_plat("macosx") then
+ print("macosx")
+ else
+ local private_dir = framework:sub(1, -string.len("private... |
Add aliases for armv6, armv7
FreeBSD uses those names for 32-bit ARM variants. | @@ -25,6 +25,10 @@ else ifeq ($(ARCH), powerpc)
override ARCH=power
else ifeq ($(ARCH), i386)
override ARCH=x86
+else ifeq ($(ARCH), armv6)
+override ARCH=arm
+else ifeq ($(ARCH), armv7)
+override ARCH=arm
else ifeq ($(ARCH), aarch64)
override ARCH=arm64
else ifeq ($(ARCH), zarch)
|
zephyr: Add tests for `st_get_resolution()` and `st_get_data_rate()`
Add unit tests for `st_get_resolution()` and `st_get_data_rate()`.
BRANCH=None
TEST=zmake configure --test zephyr/test/drivers | @@ -172,6 +172,44 @@ static void test_st_write_data_with_mask(void)
"mock_write_fn was not called.");
}
+static void test_st_get_resolution(void)
+{
+ int expected_resolution = 123;
+ int rv;
+
+ struct stprivate_data driver_data = {
+ .resol = expected_resolution,
+ };
+
+ const struct motion_sensor_t sensor = {
+ .dr... |
Fixed bug related to the BUTTON_STATE_PRESSED
The rationale is that if you use special control key combinations, underlying window will actually get key release event, which is wrong | @@ -182,26 +182,34 @@ keyboard_key(wlc_handle view, uint32_t time, const struct wlc_modifiers *modifie
(void)time, (void)key;
const uint32_t sym = wlc_keyboard_get_keysym_for_key(key, NULL);
- if (state == WLC_KEY_STATE_PRESSED) {
if (view) {
if (modifiers->mods & WLC_BIT_MOD_CTRL && sym == XKB_KEY_q) {
+ if (state == ... |
fix REP MOVSB doc comment typo | @@ -175,8 +175,8 @@ bool _mi_page_is_valid(mi_page_t* page);
#endif
// ------------------------------------------------------
-// Fast `memcpy()` on x86(_64) platforms unavailable,
-// use REP MOVSB
+// Fast `memcpy()` on x86(_64) platforms unavailable
+// on Windows, use REP MOVSB if necessary
// ---------------------... |
BugID:18273399:[hal] remove unused hal | @@ -127,25 +127,6 @@ uint64_t HAL_UptimeMs(void)
return time_ms;
}
-
-char *HAL_GetTimeStr(_IN_ char *buf, _IN_ int len)
-{
- struct timeval tv;
- struct tm tm;
- int str_len = 0;
-
- if (buf == NULL || len < 28) {
- return NULL;
- }
- gettimeofday(&tv, NULL);
- localtime_r(&tv.tv_sec, &tm);
- strftime(buf, 28, "%m-%d ... |
Make jael2jael %hail more correct. | == ::
:: ::
++ message :: p2p message
- $% {$hail p/safe} :: reset rights
+ $% [%hail p=remote] :: reset rights
[%nuke ~] :: cancel trackers
[%vent ~] :: view ethereum state
[%vent-result p=update:constitution:ethe] :: tmp workaround
::
$hail
%+ cure our.tac
- abet:abet:(hail:(burb p.tac) our.tac q.tac)
+ abet:abet:(ha... |
frame: refactor the ack-frame decoder
As suggested by Kazuho, the code is easier to read if we draw a line
between the decode phase and data processing/slurping phase. The code
uses language that is closer to the specification which I think is a
nice consequence of this code change. | @@ -65,46 +65,38 @@ uint8_t *quicly_encode_ack_frame(uint8_t *dst, uint8_t *dst_end, quicly_ranges_t
int quicly_decode_ack_frame(const uint8_t **src, const uint8_t *end, quicly_ack_frame_t *frame, int is_ack_ecn)
{
- uint64_t i, tmp, curr_gap;
+ uint64_t i, num_gaps, gap, ack_range;
if ((frame->largest_acknowledged = q... |
VERSION bump to version 1.3.34 | @@ -30,7 +30,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 3)
-set(SYSREPO_MICRO_VERSION 33)
+set(SYSREPO_MICRO_VERSION 34)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
chat-hook: wip recover state | state-7
state-8
state-9
+ state-10
==
::
++$ state-10 [%10 state-base]
+$ state-9 [%9 state-base]
+$ state-8 [%8 state-base]
+$ state-7 [%7 state-base]
$% [%chat-update update:store]
==
--
-=| state-9
+=| state-10
=* state -
::
%- agent:dbug
=/ old !<(versioned-state old-vase)
=| cards=(list card)
|-
- ?: ?=(%9 -.old)
... |
Add ahrs_dev deployment circleci rule. | @@ -18,3 +18,6 @@ deployment:
branch: master
commands:
- yes | ssh -i ~/.ssh/id_updates.stratux.me stratux-updates@updates.stratux.me "touch queue/`git log -n 1 --pretty=%H`"
+ branch: ahrs_dev
+ commands:
+ - yes | ssh -i ~/.ssh/id_updates.stratux.me stratux-updates@updates.stratux.me "touch queue/`git log -n 1 --pret... |
h2olog: merge req_line_t and resp_line_t | @@ -14,35 +14,25 @@ bpf = """
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
/*
- * "req_line_t" represents an individual log line for a given request.
- * This structure is pushed into the BPF ring buffer for later collection
- * by the user-space script (Python part of this script).
+ * "trace_line_t" is a general struc... |
[examples] add a spinning disc | @@ -48,50 +48,67 @@ with Hdf5() as io:
inertia,volume=ch.inertia(ch.centroid())
# Copies of each object type, still and thrown horizontally.
+ x = -18
y = -40
vel = 20
+ spacing = 4
+
io.addObject('tetra1', [Contactor('Tetra', collision_group=1)],
- translation=[-16, y, 2],
+ translation=[x, y, 2],
velocity=[0, 0, 0, 0... |
Sockeye: "optimize" search order | @@ -246,6 +246,14 @@ translate_region_alloc(I, SIn, SrcId, VPN, PFN, SOut) :-
+optimize_search_order(VPN, PPN) :-
+ PPNFirst is 2^30 * 4 / (2^21), % Start the search at 4G
+ integer(PPNFirst, PPNFirstI),
+ PPNLast is 2^30 * 16 / (2^21), % End the search at 16G
+ integer(PPNLast, PPNLastI),
+ PPN #>= PPNFirstI,
+ PPNLas... |
Update boot.janet for typos. | (defn debugger-on-status
"Create a function that can be passed to `run-context`'s `:on-status`
argument that will drop into a debugger on errors. The debugger will
- only start on abmnormal signals if the env table has the `:debug` dyn
+ only start on abnormal signals if the env table has the `:debug` dyn
set to a trut... |
Scripts: Fix contact ID | @@ -80,7 +80,6 @@ my $dbh = 0;
my $centre_wmo = -3; # WMO centre ID
my $centre_ecmwf = 98; # ECMWF centre ID
my $edition = 2; # GRIB edition 2
-my $contactId; # JIRA issue ID
my $PARAMID_FILENAME = "paramId.def";
my $SHORTNAME_FILENAME = "shortName.def";
|
ci: enable enc-ec256 test | @@ -21,7 +21,7 @@ matrix:
- os: linux
env: SINGLE_FEATURES="none sig-rsa sig-rsa3072 overwrite-only validate-primary-slot swap-move" TEST=sim
- os: linux
- env: SINGLE_FEATURES="enc-rsa" TEST=sim
+ env: SINGLE_FEATURES="enc-rsa enc-ec256" TEST=sim
# Values defined in $MULTI_FEATURES consist of any number of features
# ... |
Use constant value 1 instead of SHUT_WR in do_server | @@ -231,13 +231,7 @@ int do_server(int *accept_sock, const char *host, const char *port,
* and then closing the socket sends TCP-FIN first followed by
* TCP-RST. This seems to allow the peer to read the alert data.
*/
-#ifdef _WIN32
-# ifdef SD_SEND
- shutdown(sock, SD_SEND);
-# endif
-#elif defined(SHUT_WR)
- shutdown... |
Fix detection of shared library. | @@ -121,7 +121,7 @@ jobs:
if [ "$RUNNER_OS" == "Windows" ]; then
cmake $GITHUB_WORKSPACE -A x64 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DTINYSPLINE_ENABLE_PYTHON=True -DPYTHON_INCLUDE_DIR="$(python -c "from sysconfig import get_paths; print(get_paths()['include'])")" -DPYTHON_LIBRARY="$(python -c "from sysconfig import get_pat... |
test-suite: remove gnu9 reference in gsl autotools config | @@ -55,7 +55,6 @@ fi
AM_CONDITIONAL(USE_GNU_COMPILER, test "$LMOD_FAMILY_COMPILER" = "gnu")
AM_CONDITIONAL(USE_GNU_COMPILER, test "$LMOD_FAMILY_COMPILER" = "gnu12")
-AM_CONDITIONAL(USE_GNU_COMPILER, test "$LMOD_FAMILY_COMPILER" = "gnu9")
AM_COND_IF(USE_GNU_COMPILER, LDFLAGS="${LDFLAGS} -lm")
# Set subdirectories
|
Try getting submodules working for Snapcraft builds. | @@ -48,6 +48,7 @@ apps:
parts:
main:
plugin: autotools
- source-type: git
+ source: .
+ source-submodules: [libcups, pdfio]
build-packages: [cura-engine, libavahi-client-dev, libjpeg-dev, libpam-dev, libpng-dev, libssl-dev, libusb-1.0-0-dev, zlib1g-dev]
stage-packages: [libavahi-client3, libjpeg-turbo8]
|
Prevent "GNU extension" warning | @@ -65,7 +65,7 @@ typedef union {
} fduuid_u;
#define FDUUID_FAIL(uuid) (uuid == -1)
-#define sock_uuid2fd(uuid) ((fduuid_u)(uuid)).data.fd
+#define sock_uuid2fd(uuid) ((fduuid_u *)(&uuid))->data.fd
#endif
/*****************************/ /** \file
|
Now also displays handles if there is no local nickname for a ship.
(Only if ;set nicks) | ::> get nick for ship, or shortname if no nick.
::> left-pads with spaces.
::
- |. ^- tape
- =+ nym=(~(get by nicks) hos.one)
- ?~ nym
- (cr-curt |)
- =+ raw=(scag 14 (trip u.nym))
+ |= aud/audience
+ ^- tape
+ =/ nic/(unit cord)
+ ?: (~(has by nicks) hos.one)
+ (~(get by nicks) hos.one)
+ %- ~(rep in aud)
+ |= {cir/ci... |
BugID:17646749:[build-rules] build faster when WITH_LCOV=1 exist in make command line | final-out: sub-mods
+ifneq (1,$(WITH_LCOV))
ifneq (,$(COMP_LIB_NAME))
$(TOP_Q) \
if [ ! -f $(SYSROOT_LIB)/lib$(COMP_LIB_NAME).a ] && \
@@ -47,3 +48,4 @@ endif
$(TOP_Q)$(foreach V,$(INFO_ENV_VARS),$(V)="$($(V))") \
CFLAGS=$(CFLAGS) SED=$(SED) \
bash $(RULE_DIR)/scripts/gen_rom_stats.sh
+endif
|
Fix handling of \r in cidl parser | @@ -21,6 +21,7 @@ import codecs
import os
import ply.lex
import ply.yacc
+import string
import sys
try:
@@ -28,6 +29,8 @@ try:
except NameError:
basestring = (str,bytes)
+printable = string.ascii_letters + string.digits + string.punctuation + ' '
+
class Value(object):
def __init__(self, type, data):
self._type = type
... |
io-libs/phdf5: bump version to v110.4 | Summary: A general purpose library and file format for storing scientific data
Name: p%{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 1.10.3
+Version: 1.10.4
Release: 1%{?dist}
License: Hierarchical Data Format (HDF) Software Library and Utilities License
Group: %{PROJ_NAME}/io-libs
|
travis: add GCC 7, remove GCC 4.6. | @@ -9,17 +9,28 @@ matrix:
###
## Linux builds using various versions of GCC.
###
- - env: C_COMPILER=gcc-6
+ - env: C_COMPILER=gcc-7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages:
- - gcc-6
- - g++-6
+ - gcc-7
+ - g++-7
- cmake
- cmake-data
+ # - env: C_COMPILER=gcc-6
+ # ... |
Update expression list and box in UpdateExpressionBox, which is only called when finishedEditing. | @@ -1270,31 +1270,19 @@ QvisExpressionsWindow::nameTextChanged(const QString &text)
this->name_changed = true;
this->newname = text.trimmed();
- int index = exprListBox->currentRow();
-
- if (index < 0)
- return;
-
- Expression &e = (*exprList)[indexMap[index]];
-
if (newname.isEmpty())
{
int newid = 1;
bool okay = fal... |
[io] remove default numerics verbose | @@ -3029,7 +3029,7 @@ class Hdf5():
fcOptions.iparam[0] = 100 # Local solver iterations
- osnspb.setNumericsVerboseMode(True)
+ osnspb.setNumericsVerboseMode(numerics_verbose)
# keep previous solution
osnspb.setKeepLambdaAndYState(True)
|
Deduplicate 4 identical TagSets in lib/parser.c | @@ -1516,6 +1516,10 @@ static const TagSet heading_tags = {
TAG(H1), TAG(H2), TAG(H3), TAG(H4), TAG(H5), TAG(H6)
};
+static const TagSet td_th_tags = {
+ TAG(TD), TAG(TH)
+};
+
// https://html.spec.whatwg.org/multipage/parsing.html#has-an-element-in-scope
static bool has_an_element_in_scope(GumboParser* parser, GumboTa... |
dm: hw: fix the license of cmos_io.c
Fix the license of cmos_io.c to BSD-3-Clause | -/*************************************************************************
- * INTEL CONFIDENTIAL
- * Copyright 2018 Intel Corporation
+/*
+ * Copyright (C) 2019 Intel Corporation. All rights reserved.
*
- * The source code contained or described herein and all documents related to
- * the source code ("Material") are... |
Don't use one shot API for SSLv3.
SSLv3 (specifically with client auth) cannot use one shot APIs: the digested
data and the master secret are handled in separate update operations. So
in the special case of SSLv3 use the streaming API. | @@ -264,16 +264,18 @@ int tls_construct_cert_verify(SSL *s, WPACKET *pkt)
SSLerr(SSL_F_TLS_CONSTRUCT_CERT_VERIFY, ERR_R_EVP_LIB);
goto err;
}
- } else if (s->version == SSL3_VERSION) {
- if (!EVP_MD_CTX_ctrl(mctx, EVP_CTRL_SSL3_MASTER_SECRET,
+ }
+ if (s->version == SSL3_VERSION) {
+ if (EVP_DigestSignUpdate(mctx, hdat... |
gparray only add standbyMaster's host if not same as master. | @@ -1475,7 +1475,8 @@ class GpArray:
"""
hostList = []
hostList.append(self.master.getSegmentHostName())
- if self.standbyMaster:
+ if (self.standbyMaster and
+ self.master.getSegmentHostName() != self.standbyMaster.getSegmentHostName()):
hostList.append(self.standbyMaster.getSegmentHostName())
dbList = self.getDbList(... |
jenkinsfile: add workaround for cloning repos into workspace without root permissions | @@ -90,11 +90,20 @@ def buildRelease() {
sh "git config --global user.name jenkins-release"
sh "git config --global user.email jenkins@libelektra.org"
- sh "cd .."
- sh "git clone https://github.com/ElektraInitiative/ftp.git"
- sh "git clone https://github.com/ElektraInitiative/doc.git"
+ dir('libelektra') {
+ deleteDi... |
Add more comments to netconn receive | @@ -580,8 +580,8 @@ esp_netconn_write(esp_netconn_p nc, const void* data, size_t btw) {
}
/**
- * \brief Flush buffered data on netconn `TCP/SSL` connection
- * \note This function may only be used on `TCP/SSL` connection
+ * \brief Flush buffered data on netconn \e TCP/SSL connection
+ * \note This function may only b... |
Fix range mapping for value setter assuming left to right indic | @@ -150,7 +150,7 @@ void lv_rotary_set_value(lv_obj_t * rotary, int16_t value, lv_anim_enable_t anim
ext->min_value,
ext->max_value,
ext->arc.arc_angle_start,
- ext->arc.bg_angle_end
+ 360 + ext->arc.bg_angle_end
)
);
}
|
test/evp_extra_test.c: Peek at the error instead of getting it.
If there is an error report, we want to get it printed too. | @@ -1294,7 +1294,7 @@ static int test_EVP_PKCS82PKEY_wrong_tag(void)
|| !TEST_int_gt(BIO_get_mem_data(membio, &membuf), 0)
|| !TEST_ptr(p8inf = d2i_PKCS8_PRIV_KEY_INFO_bio(membio, NULL))
|| !TEST_ptr(pkey2 = EVP_PKCS82PKEY(p8inf))
- || !TEST_int_eq(ERR_get_error(), 0)) {
+ || !TEST_int_eq(ERR_peek_last_error(), 0)) {
g... |
Tidy up main provider initialization | @@ -108,10 +108,6 @@ BOOLEAN PhMainWndInitialization(
if (PhGetIntegerSetting(L"FirstRun"))
PhSetIntegerSetting(L"FirstRun", FALSE);
- // Initialize the main providers.
-
- PhMwpInitializeProviders();
-
// Initialize the window.
if ((windowAtom = PhMwpInitializeWindowClass()) == INVALID_ATOM)
@@ -184,9 +180,8 @@ BOOLEA... |
examples/alarm: fix typo and coding style issues | /****************************************************************************
- * examples/alarm/alarm_main.c
+ * apps/examples/alarm/alarm_main.c
*
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -135,7 +135,7 @@ static int alarm_daemon(int argc, FAR char *argv[])
{
... |
SetupTool: Fix shortcut properties | @@ -977,19 +977,24 @@ VOID SetupCreateLink(
if (SUCCEEDED(IShellLinkW_QueryInterface(shellLinkPtr, &IID_IPropertyStore, &propertyStorePtr)))
{
- PROPVARIANT appIdPropVar;
+ PROPVARIANT propValue;
- PropVariantInit(&appIdPropVar);
+ PropVariantInit(&propValue);
+ propValue.vt = VT_LPWSTR;
+ propValue.pwszVal = AppId;
- ... |
FFTviewer: fix channel measurement for chB in MIMO mode | @@ -276,10 +276,11 @@ void fftviewer_frFFTviewer::OnUpdatePlots(wxThreadEvent& event)
float fn = (cFreq[c] + bw[c]/2) * 1e6;
float sum = 0;
int bins = 0;
+ const int lmsch = mFFTpanel->series[0]->visible ? 0 : 1;
for (int i = 0; i<fftSize; ++i)
if (f0 <= fftFreqAxis[i] && fftFreqAxis[i] <= fn)
{
- sum += streamData.fft... |
Remove CONFIG_NET_HAVE_REUSEADDR check from telnetd_daemon
since this option doesn't exist at all | @@ -127,9 +127,7 @@ static int telnetd_daemon(int argc, FAR char *argv[])
int listensd;
int acceptsd;
int drvrfd;
-#ifdef CONFIG_NET_HAVE_REUSEADDR
int optval;
-#endif
int ret;
int fd;
@@ -183,14 +181,12 @@ static int telnetd_daemon(int argc, FAR char *argv[])
/* Set socket to reuse address */
-#ifdef CONFIG_NET_HAVE_R... |
provisioning/warewulf-ipmi: bump to upstream 3.8.1 | %define dname ipmi
%define debug_package %{nil}
%define wwpkgdir /srv/warewulf
-%define dev_branch_sha 166bcf8938e8e460fc200b0dfe4b61304c7d010a
%if 0%{?PROJ_NAME:1}
%define rpmname %{pname}-%{PROJ_NAME}
Name: %{rpmname}
Summary: IPMI Module for Warewulf
-Version: 3.8pre
+Version: 3.8.1
Release: %{_rel}%{?dist}
License:... |
Set variable for FreeBSD on CMakeLists.txt | @@ -107,6 +107,10 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Dd_m3LogOutput=0")
if(UNIX AND NOT APPLE AND NOT EMSCRIPTEN AND NOT ANDROID AND NOT N3DS)
set(LINUX TRUE)
+
+ if(CMAKE_HOST_SYSTEM_NAME STREQUAL "FreeBSD")
+ set(FREEBSD TRUE)
+ endif()
endif()
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
@@ -436,... |
Allow Boost.Test in mds | @@ -115,7 +115,7 @@ def validate_test(unit, kw):
if valid_kw.get('SCRIPT-REL-PATH') == 'boost.test':
project_path = valid_kw.get('BUILD-FOLDER-PATH', "")
- if not project_path.startswith(("contrib", "mail", "maps", "metrika", "devtools")):
+ if not project_path.startswith(("contrib", "mail", "maps", "metrika", "devtool... |
Do not send void message when receiving a bootloader message | @@ -130,6 +130,7 @@ void DataManager_Format(service_t *service)
char *data_ptr = data;
msg_t *data_msg = 0;
uint8_t data_ok = false;
+ uint8_t sending = false;
search_result_t result;
RTFilter_Reset(&result);
@@ -157,6 +158,7 @@ void DataManager_Format(service_t *service)
// check if a node send a bootloader message
if... |
Simplify writeback pipeline muxing
I had been attempting to optimize the logic, but this is probably
unnecessary. | @@ -352,12 +352,11 @@ module writeback_stage(
// wb_rollback_en is derived combinatorially from the instruction
// that is about to retire, so this doesn't need to check
// wb_rollback_thread_idx like other places.
- unique case ({fx5_instruction_valid, ix_instruction_valid, dd_instruction_valid})
+ if (fx5_instruction... |
An "if" with no "else" does not terminate. | @@ -355,12 +355,13 @@ func terminates(body []*a.Node) bool {
if !terminates(n.BodyIfTrue()) {
return false
}
- if bif := n.BodyIfFalse(); len(bif) > 0 && !terminates(bif) {
+ bif := n.BodyIfFalse()
+ if len(bif) > 0 && !terminates(bif) {
return false
}
n = n.ElseIf()
if n == nil {
- return true
+ return len(bif) > 0
}
... |
Update netdb-white.txt
Add:
52.71.124.24:18888 Jason
Remove:
92.223.80.93:16775 Darkmoon
149.28.131.30:16775 Alex | 47.100.202.206:56600
47.104.147.94:13655
52.69.99.30:13655
+52.71.124.24:18888
52.80.150.210:13655
52.83.132.76:13655
52.83.192.224:13655
78.46.82.220:16775
88.198.100.226:13654
92.223.72.45:16775
-92.223.80.93:16775
95.216.36.234:16775
98.126.204.50:16775
104.40.243.113:31337
145.239.232.52:13655
148.251.139.197:16800... |
apps: avoid using POSIX IO macros and functions when built without them.
Fall back to stdio functions if not available.
Fixes a daily run-checker failure (no-posix-io) | @@ -2962,11 +2962,16 @@ BIO *bio_open_owner(const char *filename, int format, int private)
{
FILE *fp = NULL;
BIO *b = NULL;
- int fd = -1, bflags, mode, textmode;
+ int textmode, bflags;
+#ifndef OPENSSL_NO_POSIX_IO
+ int fd = -1, mode;
+#endif
if (!private || filename == NULL || strcmp(filename, "-") == 0)
return bio... |
Set the correct version for wlroots dependency | @@ -60,7 +60,7 @@ rt = cc.find_library('rt')
git = find_program('git', native: true, required: false)
# Try first to find wlroots as a subproject, then as a system dependency
-wlroots_version = '>=0.4.1'
+wlroots_version = '>=0.5'
wlroots_proj = subproject(
'wlroots',
default_options: ['rootston=false', 'examples=false... |
script: fix simhostroute.sh to remove nat rule correctly | @@ -68,7 +68,7 @@ else
ip route delete $IP_NUTTX/32
# delete nat rules to clean up
- iptables -t nat -A POSTROUTING -o $IF_HOST -j MASQUERADE
+ iptables -t nat -D POSTROUTING -o $IF_HOST -j MASQUERADE
iptables -D FORWARD -i $IF_HOST -o $IF_BRIDGE -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -D FORWARD -i $IF... |
OcAppleBootCompatLib: More proper resolution to RT restoration | @@ -290,13 +290,13 @@ RestoreProtectedRtMemoryTypes (
for (Index2 = 0; Index2 < RtReloc->NumEntries; ++Index2) {
//
- // I would expect PhysicalStart and PhysicalEnd to always match here, but
- // the region can be merged with a nearby one, thus we check for overlap
- // rather than full match. "Desc contains RtReloc" ... |
fix(application_commands.json): wrong field type, use json_char_t instead | [
{"name":"name", "type":{"base":"char", "dec":"*"}, "comment":"the name of the parameter"},
{"name":"type", "type":{"base":"int", "int_alias":"enum discord_application_command_option_types"}, "comment":"value of application command option type"},
- {"name":"value", "type":{"base":"int", "int_alias":"enum discord_appli... |
refactors event replay, removing unnecessary effect traversal | @@ -237,43 +237,43 @@ _sist_sing(u3_noun ovo)
{
u3_noun gon = u3m_soft(0, u3v_poke, u3k(ovo));
- if ( u3_blip != u3h(gon) ) {
+ {
+ u3_noun hed, tal;
+ u3x_cell(gon, &hed, &tal);
+
+ if ( u3_blip != hed ) {
_sist_suck(ovo, gon);
}
else {
- u3_noun vir = u3k(u3h(u3t(gon)));
- u3_noun cor = u3k(u3t(u3t(gon)));
- u3_noun ... |
gall: ensure we send %whiz after all the other moves | :: +molt should never notify its client about agent changes
::
=- :_ ->
- :_ (skip -< |=(move ?=([* %give %onto *] +<)))
- [^duct %pass /whiz/gall %$ %whiz ~]
+ %+ welp
+ (skip -< |=(move ?=([* %give %onto *] +<)))
+ [^duct %pass /whiz/gall %$ %whiz ~]~
=/ adult adult-core
=. state.adult
[%7 system-duct outstanding con... |
esptool: fix elf2image conversion with "--dont-append-digest"
Append elf2image args so that "--dont-append-digest" do not override earlier
flash settings.
This was observed in case of ESP32-C2 image build where image build was failing
with `CONFIG_ESPTOOLPY_FLASHSIZE_DETECT`.
Related from earlier commit: | @@ -66,7 +66,7 @@ if(CONFIG_ESPTOOLPY_FLASHSIZE_DETECT)
# Flash size detection updates the image header which would invalidate the appended
# SHA256 digest. Therefore, a digest is not appended in that case.
# This argument requires esptool>=4.1.
- set(esptool_elf2image_args --dont-append-digest)
+ list(APPEND esptool_e... |
win32: fixing log error | @@ -66,7 +66,7 @@ class LogSettings : public common::IRhoSettingsListener {
IMemoryInfoCollector* m_pCollector;
LogSettings& m_logSettings;
#ifdef mutexSmartPointer
- mutable mutexSmartPointer m_accessLock;
+ mutable mutexSmartPointer m_accessLock = mutexSmartPointer(new common::CMutex());
#else
mutable common::CMutex ... |
[snitch] :art: Remove commented-out RTL | @@ -104,7 +104,6 @@ module snitch #(
/* verilator lint_on WIDTH */
logic [31:0] opa, opb;
-//logic [31:0] opa, opb, opc;
logic [32:0] adder_result;
logic [31:0] alu_result;
@@ -222,7 +221,6 @@ module snitch #(
assign acc_qdata_op_o = inst_data_i;
assign acc_qdata_arga_o = {{32{gpr_rdata[0][31]}}, gpr_rdata[0]};
assign ... |
virtio: fix the bar starting index
Type: fix | @@ -729,7 +729,7 @@ virtio_pci_read_caps (vlib_main_t * vm, virtio_if_t * vif, void **bar)
"[%4x] cfg type: %u, bar: %u, offset: %04x, len: %u",
pos, cap.cfg_type, cap.bar, cap.offset, cap.length);
- if (cap.bar >= 1 && cap.bar <= 5)
+ if (cap.bar >= 0 && cap.bar <= 5)
{
vif->bar = bar[cap.bar];
vif->bar_id = cap.bar;
|
Optimisation: Evaluate isOctahedral only if Ni==missing | @@ -158,7 +158,7 @@ static int unpack_string(grib_accessor* a, char* v, size_t* len)
{
grib_accessor_gaussian_grid_name* self = (grib_accessor_gaussian_grid_name*)a;
- long N = 0, Ni = 0, isOctahedral = 0;
+ long N = 0, Ni = 0;
char tmp[MAX_GRIDNAME_LEN] = {0,};
size_t length = 0;
int ret = GRIB_SUCCESS;
@@ -167,20 +16... |
fixup: replace missed withDockerEnv | @@ -552,7 +552,7 @@ def generateArtifactStages() {
}
def buildPackageDebianStretch() {
- return withDockerEnv("package/stretch", DOCKER_IMAGES.stretch) {
+ return withDockerEnv(DOCKER_IMAGES.stretch) {
withCredentials([file(credentialsId: 'jenkins-key', variable: 'KEY'),
file(credentialsId: 'jenkins-secret-key', variab... |
http_client: better limit for condition | @@ -604,7 +604,7 @@ int flb_http_do(struct flb_http_client *c, size_t *bytes)
c->resp.data_len = 0;
while (1) {
available = ((sizeof(c->resp.data) - 1) - c->resp.data_len);
- if (available < 1) {
+ if (available <= 1) {
/*
* If there is no more space available on our buffer,
* just return zero and let the caller do it ... |
Remove debugging elog from pgstat_recv_resetslrucounter
Reported-by: Thomas Munro | @@ -6235,8 +6235,6 @@ pgstat_recv_resetslrucounter(PgStat_MsgResetslrucounter *msg, int len)
memset(&slruStats, 0, sizeof(slruStats));
- elog(LOG, "msg->m_index = %d", msg->m_index);
-
for (i = 0; i < SLRU_NUM_ELEMENTS; i++)
{
/* reset entry with the given index, or all entries (index is -1) */
|
1st attempt to past | @@ -61,11 +61,11 @@ static void past_float(t_past *x, t_float f)
static void past_list(t_past *x, t_symbol *s, int ac, t_atom *av)
{
- if (ac && ac <= x->x_nthresh)
+ if (ac && ac <= x->x_nthresh) // ignore lists that have more elements than args?
{
int result;
t_atom *vp = x->x_thresh;
- if (av->a_type == A_FLOAT
+ if... |
nat: use proper type for counters
Type: improvement | @@ -279,8 +279,8 @@ typedef struct
u32 fib_index;
/* *INDENT-OFF* */
#define _(N, i, n, s) \
- u16 busy_##n##_ports; \
- u16 * busy_##n##_ports_per_thread; \
+ u32 busy_##n##_ports; \
+ u32 * busy_##n##_ports_per_thread; \
u32 busy_##n##_port_refcounts[65535];
foreach_nat_protocol
#undef _
|
worker: sends new error-notification events | @@ -371,7 +371,7 @@ _worker_pack(void)
static void
_worker_fail(void* vod_p, const c3_c* wut_c)
{
- u3l_log("work: fail: %s\r\n", wut_c);
+ fprintf(stderr, "work: fail: %s\r\n", wut_c);
exit(1);
}
@@ -434,28 +434,17 @@ _worker_lame(u3_noun now, u3_noun ovo, u3_noun why, u3_noun tan)
u3x_trel(ovo, &wir, &tag, &cad);
- /... |
libhfuzz: update scaleMap for counters | @@ -574,8 +574,8 @@ HF_REQUIRE_SSE42_POPCNT void __sanitizer_cov_trace_pc_guard(uint32_t* guard) {
bool prev = ATOMIC_XCHG(covFeedback->pcGuardMap[*guard], true);
if (prev == false) {
ATOMIC_PRE_INC_RELAXED(covFeedback->pidFeedbackEdge[my_thread_no]);
- wmb();
}
+ wmb();
}
}
@@ -602,31 +602,32 @@ void instrument8BitCou... |
VERSION bump to version 0.12.21 | @@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0")
# set version
set(LIBNETCONF2_MAJOR_VERSION 0)
set(LIBNETCONF2_MINOR_VERSION 12)
-set(LIBNETCONF2_MICRO_VERSION 20)
+set(LIBNETCONF2_MICRO_VERSION 21)
set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION})
set(L... |
[net][at] Modify AT CLI configuration | @@ -3,10 +3,10 @@ from building import *
cwd = GetCurrentDir()
path = [cwd + '/include']
-src = Split('''
-src/at_cli.c
-src/at_utils.c
-''')
+src = Glob('src/at_utils.c')
+
+if GetDepend(['AT_USING_CLI']):
+ src += Glob('src/at_cli.c')
if GetDepend(['AT_USING_SERVER']):
src += Split('''
|
Completions: Sort function arguments | @@ -338,7 +338,7 @@ end
# =============
complete -c kdb -n 'not __fish_kdb_subcommand' -x -a '(__fish_kdb_print_subcommands -v)'
-set -l completion_function '__fish_kdb_needs_namespace complete ls editor export file fstab get getmeta import set 1'
+set -l completion_function '__fish_kdb_needs_namespace complete editor ... |
Don't free DBusError if it was never inited because dbus_error_free() is nullptr too | @@ -467,6 +467,7 @@ void dbus_manager::init()
dbus_manager::~dbus_manager()
{
+ if (m_inited) {
// unreference system bus connection instead of closing it
if (m_dbus_conn) {
disconnect_from_signals();
@@ -475,6 +476,7 @@ dbus_manager::~dbus_manager()
}
m_dbus_ldr.error_free(&m_error);
}
+}
void dbus_manager::connect_to... |
cr50: add board_forcing_wp to get force wp state
A lot of places check if cr50 is forcing the wp state. Add a function
for that.
BRANCH=cr50
TEST=none | @@ -30,6 +30,14 @@ int board_battery_is_present(void)
return !gpio_get_level(GPIO_BATT_PRES_L);
}
+/**
+ * Return non-zero if the wp state is being overridden.
+ */
+static int board_forcing_wp(void)
+{
+ return GREG32(PMU, LONG_LIFE_SCRATCH1) & BOARD_FORCING_WP;
+}
+
/**
* Set the current write protect state in RBOX a... |
Work CI-CD
Replace NuGet installer with template.
***NO_CI*** | @@ -480,10 +480,7 @@ jobs:
steps:
- template: azure-pipelines-templates/nb-gitversioning.yml
- - task: NuGetToolInstaller@0
- inputs:
- versionSpec: '5.8.0'
- displayName: 'Install specific version of NuGet'
+ - template: azure-pipelines-templates/install-nuget.yml@templates
- task: VSBuild@1
inputs:
|
Add ProcessSideChannelIsolationPolicy support (Fixes | @@ -119,7 +119,7 @@ NTSTATUS PhGetProcessMitigationPolicy(
COPY_PROCESS_MITIGATION_POLICY(SystemCallFilter, PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY); // REDSTONE3
COPY_PROCESS_MITIGATION_POLICY(PayloadRestriction, PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY);
COPY_PROCESS_MITIGATION_POLICY(ChildProcess, PROCESS_... |
brya: Remove debug output
BRANCH=none
TEST=debug message no longer present when using suzyQ | @@ -84,17 +84,14 @@ int board_is_vbus_too_low(int port, enum chg_ramp_vbus_state ramp_state)
if (charger_get_vbus_voltage(port, &voltage))
voltage = 0;
- CPRINTS("%s: charger reports VBUS %d on port %d", __func__,
- voltage, port);
-
if (voltage == 0) {
CPRINTS("%s: must be disconnected", __func__);
return 1;
}
if (vol... |
Move SSL_DEBUG md fprintf after assignment
To avoid crash (same as fixed in 44f23cd)
CLA: trivial | @@ -381,9 +381,6 @@ MSG_PROCESS_RETURN tls_process_cert_verify(SSL *s, PACKET *pkt)
/* SSLfatal() already called */
goto err;
}
-#ifdef SSL_DEBUG
- fprintf(stderr, "USING TLSv1.2 HASH %s\n", EVP_MD_name(md));
-#endif
} else if (!tls1_set_peer_legacy_sigalg(s, pkey)) {
SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_TLS_PROCES... |
[mod_mysql_vhost] deprecated; use mod_vhostdb_mysql
add warning at server startup when mod_mysql_vhost is loaded
mod_vhostdb_mysql subsumes mod_mysql_vhost. Individual mod_mysql_vhost
directives map one-to-one to keywords in vhostdb.mysql = (...) directive | @@ -198,6 +198,10 @@ SETDEFAULTS_FUNC(mod_mysql_vhost_set_defaults) {
T_CONFIG_SCOPE_UNSET }
};
+ log_error(srv->errh, __FILE__, __LINE__,
+ "mod_mysql_vhost is deprecated and will be removed in a future version; "
+ "please migrate to use mod_vhostdb_mysql");
+
plugin_data * const p = p_d;
if (!config_plugin_values_in... |
external/webserver: Change Error log to Debug log | @@ -229,7 +229,7 @@ static void parse_keep_alive_header(struct http_client_t *client, struct http_ke
char *header_field_value = NULL;
if (client->keep_alive_header_flag == 1) {
- HTTP_LOGE("keep alive header is already set: timeout[%d] max[%d] \n",
+ HTTP_LOGD("keep alive header is already set: timeout[%d] max[%d] \n",... |
Changed setup script url | @@ -82,7 +82,7 @@ bash -c "$(wget https://zmkfirmware.dev/setup.sh -O -)"
<TabItem value="PowerShell">
```
-iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/CrossR/zmk/CrossR/ShellScriptTidyUp/docs/static/setup.ps1'))"
+iex ((New-Object System.Net.WebClient).DownloadString('https... |
Ensure sprite positions never go out of image bounds | @@ -45,6 +45,8 @@ public class SpriteCutter
final Solution solution = spriteCutter.getSolution(grid, optimizationType);
// fast optimization
solution.fastOptimize();
+ // fix positions
+ solution.fixPos();
// add the solution
if (!solution.cells.isEmpty())
@@ -486,6 +488,16 @@ public class SpriteCutter
while ((newScore... |
[kernel] add assert to module object | @@ -1182,6 +1182,7 @@ rt_err_t rt_module_destroy(rt_module_t module)
/* check parameter */
RT_ASSERT(module != RT_NULL);
RT_ASSERT(module->nref == 0);
+ RT_ASSERT(rt_object_get_type(&module->parent) == RT_Object_Class_Module);
RT_DEBUG_LOG(RT_DEBUG_MODULE, ("rt_module_destroy: %8.*s\n",
RT_NAME_MAX, module->parent.name... |
vere: warn reader about endianness | @@ -853,6 +853,7 @@ _ames_forward(u3_panc* pac_u, u3_noun las)
c3_c* rec_c = u3r_string(rec);
c3_y* pip_y = (c3_y*)&pac_u->ore_u.pip_w;
+ //NOTE ip byte order assumes little-endian
u3l_log("ames: forwarding for %s to %s from %d.%d.%d.%d:%d\n",
sen_c, rec_c,
pip_y[3], pip_y[2], pip_y[1], pip_y[0],
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.