message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
ble-hal-cc26xx: fix format specifiers | @@ -697,7 +697,7 @@ advertising_rx(ble_adv_param_t *param)
LOG_INFO("connection created: conn_int: %4u, latency: %3u, channel_map: %8llX\n",
c_param->interval, c_param->latency, c_param->channel_map);
- LOG_DBG("access address: 0x%08lX\n", c_param->access_address);
+ LOG_DBG("access address: 0x%08" PRIX32 "\n", c_param... |
[doc] Fix README.md for build | @@ -96,21 +96,9 @@ We are developing the most practical and powerful platform for blockchain busine
### Build
-#### Unix, Mac
-
-```
-$ go get -d github.com/aergoio/aergo/account
-$ cd ${GOPATH}/src/github.com/aergoio/aergo
-$ cmake .
-$ make
-```
-
-#### Windows
-
```
$ go get -d github.com/aergoio/aergo/account
$ cd ... |
gdb-server: set target configuration after client connects | @@ -242,16 +242,12 @@ int main(int argc, char** argv) {
DLOG("Chip ID is %#010x, Core ID is %#08x.\n", sl->chip_id, sl->core_id);
- state.current_memory_map = make_memory_map(sl);
-
#if defined(_WIN32)
WSADATA wsadata;
if (WSAStartup(MAKEWORD(2, 2), &wsadata) != 0) { goto winsock_error; }
#endif
- init_cache(sl);
-
do ... |
Switch to what should be the official signing profile | @@ -34,6 +34,6 @@ jobs:
target: linux_build_container2
inputs:
command: 'sign'
- signing_profile: 'CP-459159-pgpdetached'
+ signing_profile: 'CP-450779-Pgp'
files_to_sign: '**/*.rpm;**/*.deb'
search_root: '$(ob_outputDirectory)'
|
app/utils/netcmd_netmon: Add wifi command to extract wifi info
Add wifi command to extract status and conneciton info | #include <netutils/netlib.h>
+#ifdef CONFIG_WIFI_MANAGER
+#include <wifi_manager/wifi_manager.h>
+#endif
+
/****************************************************************************
* Preprocessor Definitions
****************************************************************************/
@@ -201,8 +205,53 @@ int cmd_n... |
Fix http_status_text in http1.1 http-resp events without Reason-Phrase. | @@ -708,7 +708,9 @@ doHttp1Header(protocol_info *proto)
// point past the status code
char st[strlen(stext)];
strncpy(st, stext, strlen(stext));
- char *status_str = strtok_r(st, "\r", &savea);
+ char *status_str = strtok_r(st, "\r\n", &savea);
+ // if no Reason-Phrase is provided, st will not be equal to status_str
+ ... |
crypto: fix init dependency | @@ -163,12 +163,13 @@ crypto_openssl_init (vlib_main_t * vm)
time_t t;
pid_t pid;
- u32 eidx = vnet_crypto_register_engine (vm, "openssl", 50, "OpenSSL");
clib_error_t *error;
if ((error = vlib_call_init_function (vm, vnet_crypto_init)))
return error;
+ u32 eidx = vnet_crypto_register_engine (vm, "openssl", 50, "OpenSS... |
More %kthx adaptation. | ['+' (rune lus %ktls expb)]
['&' (rune pad %ktpd expa)]
['~' (rune sig %ktsg expa)]
- ['=' (rune tis %ktts expg)]
+ ['=' (rune tis %kthx expj)]
['#' (rune hax %kthx expj)]
['?' (rune wut %ktwt expa)]
['%' (rune cen %ktcn expa)]
++ hank (most muck loaf) :: gapped hoons
++ hunk (most muck loan) :: gapped specs
++ lore %+... |
move MatchStats to only SummaryAssemblyReportWriter | @@ -72,8 +72,6 @@ namespace ebi
{
}
-
- MatchStats match_stats;
};
class SummaryAssemblyReportWriter : public AssemblyReportWriter
@@ -105,6 +103,8 @@ namespace ebi
match_stats.add_match_result(false);
}
+ private:
+ MatchStats match_stats;
};
class ValidAssemblyReportWriter : public AssemblyReportWriter
|
Add AgentWeeklyPuzzle
Also known as Faux Hollows | @@ -4177,6 +4177,10 @@ classes:
vtbls:
- ea: 0x141937CF0
base: Client::UI::Agent::AgentInterface
+ Client::UI::Agent::AgentWeeklyPuzzle:
+ vtbls:
+ - ea: 0x141937D80
+ base: Client::UI::Agent::AgentInterface
Client::UI::Agent::AgentDeepDungeonMenu:
vtbls:
- ea: 0x141935D70
|
Knock down retries. | @@ -91,8 +91,8 @@ class HTTPException(Exception):
DEFAULT_CONNECT_TIMEOUT = 30
DEFAULT_READ_TIMEOUT = 120
DEFAULT_TIMEOUT = (DEFAULT_CONNECT_TIMEOUT, DEFAULT_READ_TIMEOUT)
-MAX_CONNECT_RETRIES = 10
-MAX_READ_RETRIES = 10
+MAX_CONNECT_RETRIES = 5
+MAX_READ_RETRIES = 3
DEFAULT_RETRIES = (MAX_CONNECT_RETRIES, MAX_READ_RET... |
coverity fix NULL dereference | @@ -327,10 +327,11 @@ static int test_X509_cmp_timeframe(void)
ASN1_TIME *asn1_before = ASN1_TIME_adj(NULL, now, -1, 0);
ASN1_TIME *asn1_after = ASN1_TIME_adj(NULL, now, 1, 0);
X509_VERIFY_PARAM *vpm = X509_VERIFY_PARAM_new();
- int res;
+ int res = 0;
- res = vpm != NULL
- && test_X509_cmp_timeframe_vpm(NULL, asn1_bef... |
Rework build: Windows dependency building fix
One variable misssing
Fixes | @@ -613,6 +613,7 @@ $res: $deps
EOF
}
my $obj = platform->obj($args{obj});
+ my $dep = platform->dep($args{obj});
if ($srcs[0] =~ /\.asm$/) {
return <<"EOF";
$obj: $deps
|
Fix sign comparison warnings in uiplib.c
Push the variables around and align types
so we compare variables of the same signedness. | @@ -165,18 +165,14 @@ uiplib_ipaddr_print(const uip_ipaddr_t *addr)
int
uiplib_ipaddr_snprint(char *buf, size_t size, const uip_ipaddr_t *addr)
{
- uint16_t a;
- unsigned int i;
- int f;
- int n = 0;
+ unsigned int n = 0;
if(size == 0) {
return 0;
}
if(addr == NULL) {
- n = snprintf(buf, size, "(NULL IP addr)");
- retu... |
Allow blacklist for unix too | @@ -36,6 +36,7 @@ vklayer_files = files(
'config.cpp',
'gpu.cpp',
'vulkan.cpp',
+ 'blacklist.cpp',
)
opengl_files = []
if ['windows', 'mingw'].contains(host_machine.system())
@@ -43,7 +44,6 @@ if ['windows', 'mingw'].contains(host_machine.system())
'file_utils_win32.cpp',
'cpu_win32.cpp',
'nvapi.cpp',
- 'blacklist.cpp'... |
quic: support the crypto_handshake probe | @@ -118,6 +118,7 @@ struct quic_event_t {
u64 limit;
u64 off;
u32 is_unidirectional;
+ u32 ret;
};
BPF_PERF_OUTPUT(events);
@@ -230,6 +231,22 @@ int trace_crypto_decrypt(struct pt_regs *ctx) {
return 0;
}
+int trace_crypto_handshake(struct pt_regs *ctx) {
+ void *pos = NULL;
+ struct quic_event_t event = {};
+ struct s... |
nimble/ll: Fix adv macros
Use parentheses around macro parameters to avoid issue when expanding
macro. Also some macros uses "advsm" instead of "_advsm" parameter. | @@ -193,19 +193,23 @@ struct ble_ll_adv_sm
#define BLE_LL_ADV_SM_FLAG_CONN_RSP_TXD_ERR 0x8000
#define ADV_DATA_LEN(_advsm) \
- ((_advsm->adv_data) ? OS_MBUF_PKTLEN(advsm->adv_data) : 0)
+ (((_advsm)->adv_data) ? OS_MBUF_PKTLEN((_advsm)->adv_data) : 0)
#define SCAN_RSP_DATA_LEN(_advsm) \
- ((_advsm->scan_rsp_data) ? OS_... |
patch-check: shfmt
shfmt is expected to be installed along with go.
GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@latest | @@ -36,6 +36,7 @@ details on the presubmit API built into depot_tools.
import subprocess2
USE_PYTHON3 = True
+_BASH_INDENTATION = "2"
_INCLUDE_BASH_FILES_ONLY = [r".*\.sh$"]
_INCLUDE_MAN_FILES_ONLY = [r"man/.+\.1$"]
_LIBWEBP_MAX_LINE_LENGTH = 80
@@ -75,7 +76,24 @@ def _RunShellCheckCmd(input_api, output_api, bash_file)... |
attempts at fixing build errors on foreign targets | /* this removes the name "unquote" */
#endif
-#ifndef WITH_C_LOADER
- #if WITH_GCC && (!__MINGW32__) && (!__CYGWIN__)
- #define WITH_C_LOADER 1
- /* (load file.so [e]) looks for (e 'init_func) and if found, calls it as the shared object init function.
- * If WITH_SYSTEM_EXTRAS is 0, the caller needs to supply system an... |
Add Windows compiler Arch detection and copy dll accordingly. | @@ -291,13 +291,25 @@ $(wildcard documentation/extra_files/*.*) \
LICENSE.txt \
README.pdf \
-# pthreadGC-3.dll is required for Windows installation. It can be found in
-# the MinGW directory (usually C:\MinGW\bin) directory and should be
+# "libwinpthread-1.dll" is required for Windows installation when compiling with... |
SDL player sound fix | @@ -66,13 +66,13 @@ s32 runCart(void* cart, s32 size)
.userdata = NULL,
};
- audioDevice = SDL_OpenAudioDevice(NULL, 0, &want, &audioSpec, SDL_AUDIO_ALLOW_ANY_CHANGE);
+ audioDevice = SDL_OpenAudioDevice(NULL, 0, &want, &audioSpec, SDL_AUDIO_ALLOW_FREQUENCY_CHANGE | SDL_AUDIO_ALLOW_FORMAT_CHANGE | SDL_AUDIO_ALLOW_SAMPL... |
Update windows drivers, add LCUI_Exit() and LCUI_Paint event | @@ -136,6 +136,7 @@ static void WinSurface_ExecDestroy( LCUI_Surface surface )
ReleaseDC( surface->hwnd, surface->hdc_client );
}
}
+ DestroyWindow( surface->hwnd );
surface->hwnd = NULL;
surface->fb_bmp = NULL;
surface->hdc_fb = NULL;
|
Fix download links on website | @@ -36,7 +36,7 @@ const DownloadLink = ({ arch }) => {
return (
<li>
<i className={`inline-image fa ${icon}`}></i>
- <Link to={`https://github.com/premake/premake-core/releases/download/v${LATEST_VERSION}/premake-${LATEST_VERSION}-${filename}`}>
+ <Link to={`https://github.com/premake/premake-core/releases/download/v${... |
x509_vfy.c: Improve a couple of internally documenting comments | @@ -356,8 +356,8 @@ static int check_issued(ossl_unused X509_STORE_CTX *ctx, X509 *x, X509 *issuer)
return 0;
}
-/*
- * Alternative lookup method: look from a STACK stored in other_ctx.
+/*-
+ * Alternative get_issuer method: look up from a STACK_OF(X509) in other_ctx.
* Returns -1 on internal error.
*/
static int get_... |
libhfuzz: remove inline to export symbols | #include "instrument.h"
-inline int hfuzz_strcmp(const char *s1, const char *s2, void *addr)
+int hfuzz_strcmp(const char *s1, const char *s2, void *addr)
{
unsigned int v = 0;
@@ -18,7 +18,7 @@ inline int hfuzz_strcmp(const char *s1, const char *s2, void *addr)
return (s1[i] - s2[i]);
}
-inline int hfuzz_strcasecmp(co... |
extmod/modbuiltins/Control: add pid get/set | @@ -64,9 +64,44 @@ STATIC mp_obj_t builtins_Control_limits(size_t n_args, const mp_obj_t *pos_args,
}
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(builtins_Control_limits_obj, 0, builtins_Control_limits);
+// pybricks.builtins.Control.pid
+STATIC mp_obj_t builtins_Control_pid(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_... |
glob: add service-worker to glob | (cat 3 js-name '.js')
=+ .^(js=@t %cx :(weld home /app/landscape/js/bundle /[js-name]/js))
=+ .^(map=@t %cx :(weld home /app/landscape/js/bundle /[map-name]/map))
+ =+ .^(sw=@t %cx :(weld home /app/landscape/js/bundle /serviceworker/js))
=+ !<(=js=mime (js-tube !>(js)))
+ =+ !<(=sw=mime (js-tube !>(sw)))
=+ !<(=map=mim... |
common/mock/fp_sensor_mock.c: Format with clang-format
BRANCH=none
TEST=none | @@ -59,9 +59,8 @@ int fp_sensor_acquire_image_with_mode(uint8_t *image_data, int mode)
return mock_ctrl_fp_sensor.fp_sensor_acquire_image_with_mode_return;
}
-int fp_finger_match(void *templ, uint32_t templ_count,
- uint8_t *image, int32_t *match_index,
- uint32_t *update_bitmap)
+int fp_finger_match(void *templ, uint3... |
doc: fix GSG version number typo
Update to NUC GSG had a version number typ0 | @@ -43,7 +43,7 @@ complete this setup.
number of Clear Linux you are using.
#. Download the compressed Clear installer image from
- https://download.clearlinux.org/releases/261200/clear/clear-26120-installer.img.xz
+ https://download.clearlinux.org/releases/26120/clear/clear-26120-installer.img.xz
and follow the `Clear... |
Review Correction: Minor Version >= 0, not 1 | @@ -47,7 +47,7 @@ clap_version_is_compatible(const clap_version_t v) {
#if defined(__cplusplus) && __cplusplus >= 201703L
// Static assert some version constraints
static_assert(CLAP_VERSION_MAJOR_DIGITS < 256 && CLAP_VERSION_MAJOR_DIGITS >= 1);
-static_assert(CLAP_VERSION_MINOR_DIGITS < 256 && CLAP_VERSION_REVISION >=... |
add console output for debugging | @@ -346,11 +346,13 @@ func Start(filename string) error {
// If the `scope start` command is run inside a container, we should call `ldscope --starthost`
// which will instead run `scope start` on the host
if util.InContainer() {
+ fmt.Println("before extract")
if err := extract(filename); err != nil {
return err
}
- l... |
Log vendor options, too. | @@ -390,6 +390,9 @@ papplJobCreatePrintOptions(
papplLogJob(job, PAPPL_LOGLEVEL_DEBUG, "print-speed=%d", options->print_speed);
papplLogJob(job, PAPPL_LOGLEVEL_DEBUG, "printer-resolution=%dx%ddpi", options->printer_resolution[0], options->printer_resolution[1]);
+ for (i = 0; i < options->num_vendor; i ++)
+ papplLogJo... |
Changed default values for dynamic adaptation and Q-Mode objects | #define LWM2M_QUEUE_MODE_CONF_INCLUDE_DYNAMIC_ADAPTATION 1
#define LWM2M_QUEUE_MODE_CONF_DEFAULT_CLIENT_AWAKE_TIME 2000
#define LWM2M_QUEUE_MODE_CONF_DEFAULT_CLIENT_SLEEP_TIME 10000
- #define LWM2M_QUEUE_MODE_CONF_DEFAULT_DYNAMIC_ADAPTATION_FLAG 1
- #define LWM2M_QUEUE_MODE_OBJECT_CONF_ENABLED 0 */
+ #define LWM2M_QUEU... |
Use master branch of mobile-libs-carto | [submodule "libs-carto"]
path = libs-carto
url = https://github.com/cartodb/mobile-carto-libs
- branch = develop
+ branch = master
[submodule "libs-external"]
path = libs-external
url = https://github.com/cartodb/mobile-external-libs
|
Make a larger file, to avoid having the whole file posted before the
connection to the origin is established, effecitively disabling streaming | @@ -36,12 +36,14 @@ hosts:
EOT
+my $huge_file_size = 50 * 1024 * 1024;
+my $huge_file = create_data_file($huge_file_size);
# test that we'll proxy content-length as content-length if possible
-open(CURL, "curl -s -d \@@{[DOC_ROOT]}/halfdome.jpg --http1.1 'http://127.0.0.1:$server->{port}' 2> /dev/null | ");
+open(CURL,... |
hv: lapic: fix MISRA-C violation of potential numeric overflow
This patch fixes the MISRA-C violations in arch/x86/lapic.c, change local variable from
uint32_t to uint64_t to avoid potential numeric overflow.
Acked-by: Eddie Dong | @@ -154,15 +154,15 @@ static void restore_lapic(const struct lapic_regs *regs)
void suspend_lapic(void)
{
- uint32_t val;
+ uint64_t val;
saved_lapic_base_msr.value = msr_read(MSR_IA32_APIC_BASE);
save_lapic(&saved_lapic_regs);
/* disable APIC with software flag */
- val = (uint32_t) msr_read(MSR_IA32_EXT_APIC_SIVR);
-... |
Add KEM dupctx test | @@ -525,7 +525,7 @@ static int kem_rsa_gen_recover(void)
int ret = 0;
EVP_PKEY *pub = NULL;
EVP_PKEY *priv = NULL;
- EVP_PKEY_CTX *sctx = NULL, *rctx = NULL;
+ EVP_PKEY_CTX *sctx = NULL, *rctx = NULL, *dctx = NULL;
unsigned char secret[256] = { 0, };
unsigned char ct[256] = { 0, };
unsigned char unwrap[256] = { 0, };
@... |
Add comment to explain how to get file size from S3 | @@ -570,6 +570,10 @@ cleanup:
return httpsStatus;
}
+ /* Ideally we could use a HEAD request to get the file size. However, performing a HEAD request
+ * with S3 requires generating a Sigv4 signature in an authorization header field. So here we use
+ * a GET request with range set to 0, then extract the file size from ... |
Removing unused local variable. | @@ -3382,7 +3382,6 @@ static void
nxt_router_response_ready_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg,
void *data)
{
- size_t dump_size;
nxt_int_t ret;
nxt_buf_t *b;
nxt_unit_field_t *f;
@@ -3394,12 +3393,6 @@ nxt_router_response_ready_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg,
b = msg->buf;
rc = data... |
drop stray include from math_support.c | #include "isl/val.h"
#include "isl/val_gmp.h"
-#include "isl/deprecated/int.h"
/*
* Allocated; not initialized
@@ -825,9 +824,6 @@ long long isl_val_get_num_ll(__isl_keep isl_val *v)
long long result;
mpz_init(tmp);
- // isl_val_get_num_gmp(v, tmp);
- // gmp_printf("isl_int: %Zd\n", tmp );
- // gmp_printf("isl_int hex:... |
fix jael after merge | +$ message :: message to her jael
$% [%nuke whos=(set ship)] :: cancel trackers
[%public-keys whos=(set ship)] :: view ethereum events
- [%public-keys-result =public-keys-result] :: tmp workaround
== ::
++$ message-result
+ $% [%public-keys-result =public-keys-result] :: public keys boon
+ ==
+$ card :: i/o action
(win... |
Update location of current file in run-context | (var where default-where)
+ (unless (= where "<anonymous>") (put env :current-file where))
+
# Evaluate 1 source form in a protected manner
(def lints @[])
(defn eval1 [source &opt l c]
[:source new-where]
(if (string? new-where)
+ (do
(set where new-where)
- (set where default-where))
+ (put env :current-file new-wher... |
do not build cuda for aomp14 / amd-stg-open | @@ -61,6 +61,8 @@ elif [ "$AOMP_MAJOR_VERSION" == "14" ] ; then
AOMP_VERSION_STRING="14.0-0"
AOMP_INSTALL_DIR=${AOMP}_${AOMP_VERSION_STRING}
AOMP_PATCH_CONTROL_FILE="${AOMP_REPOS}/aomp/bin/patches/patch-control-file_14.0.txt"
+ # The openmp cuda build is broken in amd-stg-open so turn it off for now
+ AOMP_BUILD_CUDA=0... |
[core] array-specialized buffer_caseless_compare()
specialize buffer_caseless_compare() for array.c | @@ -99,8 +99,26 @@ data_unset *array_pop(array *a) {
return du;
}
+__attribute_pure__
+static int array_caseless_compare(const char * const a, const char * const b, const size_t len) {
+ for (size_t i = 0; i < len; ++i) {
+ unsigned int ca = ((unsigned char *)a)[i];
+ unsigned int cb = ((unsigned char *)b)[i];
+ if (ca... |
Fix typos in ev/go ev/select | @@ -943,7 +943,7 @@ JANET_CORE_FN(cfun_channel_pop,
JANET_CORE_FN(cfun_channel_choice,
"(ev/select & clauses)",
"Block until the first of several channel operations occur. Returns a tuple of the form [:give chan], [:take chan x], or [:close chan], where "
- "a :give tuple is the result of a write and :take tuple is the... |
Disable gpu_timing for now
Issue | @@ -323,6 +323,9 @@ parse_overlay_config(struct overlay_params *params,
if (env && read_cfg)
parse_overlay_env(params, env);
+ // Command buffer gets reused and timestamps cause hangs for some reason, force off for now
+ params->enabled[OVERLAY_PARAM_ENABLED_gpu_timing] = false;
+
// if font_size is used and height has... |
fix noisy warnings on cmake
use QUIET option so CMake doesn't complain if we don't find SDL2
through the system means. | @@ -13,7 +13,7 @@ if(WIN32)
# then try to find SDL2 using normal means (eg. the user may have installed SDL2 using pacman on msys2)
# note we don't use REQUIRED here, because it can fail -- in which case we fall back to looking for the
# library "directly" using local files.
- find_package(SDL2)
+ find_package(SDL2 QUI... |
Fix nc_email to check ASN1 strings with NULL byte in the middle | @@ -714,6 +714,9 @@ static int nc_email(ASN1_IA5STRING *eml, ASN1_IA5STRING *base)
if (baseat != baseptr) {
if ((baseat - baseptr) != (emlat - emlptr))
return X509_V_ERR_PERMITTED_VIOLATION;
+ if (memchr(baseptr, 0, baseat - baseptr) ||
+ memchr(emlptr, 0, emlat - emlptr))
+ return X509_V_ERR_UNSUPPORTED_NAME_SYNTAX;
/... |
Fortran example: problem compiling grib_read_from_file.f90 | ! Get message lengths using two different interfaces
! See GRIB-292
!
-program grib_read_from_file
+program grib_read_from_file_example
use eccodes
implicit none
character(len=32) :: input_grib_file
|
Add wcsreplace() fucntion | @@ -83,6 +83,29 @@ int strtrim( char *outstr, const char *instr, const char *charlist )
return op - outstr;
}
+int wcsreplace( wchar_t *str, size_t max_len,
+ const wchar_t *substr, const wchar_t *newstr )
+{
+ size_t len, buf_len;
+ wchar_t *buf, *p, *q;
+ len = wcslen( newstr );
+ p = wcsstr( str, substr );
+ if( !p ... |
herm: stop sending %hail on-connect
Client will probably want to send a %blew first anyway. By not doing any
screen refreshed in herm, we avoid doing unnecessary redraws on-connect. | ~| path
?> ?=([%session @ %view ~] path)
=* ses i.t.path
- :~ :: subscribe to the requested session
+ :: subscribe to the requested session
::
::NOTE multiple views do not result in multiple subscriptions
:: because they go over the same wire/duct
::
- (pass-session ses %view ~)
- :: tell session to refresh, so new cli... |
fcrypt: Use fences for code blocks | @@ -41,6 +41,7 @@ Thus we recommend to either mount `/tmp` to a RAM disk or specify another path a
If you encounter the following error at `kdb mount`:
+```
The command kdb mount terminated unsuccessfully with the info:
Too many plugins!
The plugin sync can't be positioned at position precommit anymore.
@@ -48,11 +49,1... |
When --watch flag is passed, reload all the code upon resume.
This allows you to reload without wiping all game state!
But maybe this should be a different flag? | @@ -2156,6 +2156,11 @@ static void onConsoleResumeCommand(Console* console, const char* param)
{
commandDone(console);
+ const tic_script_config* script_config = console->tic->api.get_script_config(console->tic);
+ if (script_config->eval && console->codeLiveReload.active)
+ {
+ script_config->eval(console->tic, consol... |
notification-redirects: fixing group dms | @@ -7,7 +7,9 @@ function getGroupResourceRedirect(key: string) {
if(!association || !('graph' in metadata.config)) {
return '';
}
- return `/~landscape${association.group}/resource/${metadata.config.graph}${association.resource}`;
+
+ const section = association.group === association.resource ? '/messages' : associatio... |
Add version to diagnostics window | * about dialog
*
* Copyright (C) 2010-2016 wj32
- * Copyright (C) 2017-2018 dmex
+ * Copyright (C) 2017-2020 dmex
*
* This file is part of Process Hacker.
*
@@ -179,6 +179,23 @@ FORCEINLINE ULONG PhpGetObjectTypeObjectCount(
return info.NumberOfObjects;
}
+PPH_STRING PhpGetBuildTimeDiagnostics(
+ VOID
+ )
+{
+ LARGE_IN... |
Fix unbounded calculation length bug. | @@ -190,7 +190,7 @@ static void compute_residuals(ScsResiduals *r, scs_int m, scs_int n) {
r->res_unbdd_p = NAN;
r->res_infeas = NAN;
if (r->ctx_tau < 0) {
- r->res_unbdd_a = SAFEDIV_POS(NORM(r->ax_s, n), -r->ctx_tau);
+ r->res_unbdd_a = SAFEDIV_POS(NORM(r->ax_s, m), -r->ctx_tau);
r->res_unbdd_p = SAFEDIV_POS(NORM(r->p... |
isotp_send fix bus and add slow mode | import binascii
+import time
DEBUG = False
@@ -61,7 +62,7 @@ def isotp_recv_subaddr(panda, addr, bus, sendaddr, subaddr):
# **** import below this line ****
-def isotp_send(panda, x, addr, bus=0, recvaddr=None, subaddr=None):
+def isotp_send(panda, x, addr, bus=0, recvaddr=None, subaddr=None, rate=None):
if recvaddr is... |
Fix Variable
Inputs on the right side of the operator are not marked with PARAM
(which denotes a haste input). This fixes the display of the variable
operator so that the text on the right is displayed white and not cyan;
which matches Orca. | @@ -671,7 +671,7 @@ END_OPERATOR
BEGIN_OPERATOR(variable)
LOWERCASE_REQUIRES_BANG;
PORT(0, -1, IN | PARAM);
- PORT(0, 1, IN | PARAM);
+ PORT(0, 1, IN);
Glyph left = PEEK(0, -1);
Glyph right = PEEK(0, 1);
if (left != '.') {
|
docs - fix incorrect R version reference | @@ -329,7 +329,7 @@ LANGUAGE 'plr';</codeblock><p>This
format="html" scope="external">MADlib</xref> directly from R.</p>
<p>R documentation is installed with the Greenplum R package:</p>
<p>
- <codeph>$GPHOME/ext/R-3.3.1/doc</codeph>
+ <codeph>$GPHOME/ext/R-3.3.3/doc</codeph>
</p>
</body>
<topic id="topic16" xml:lang="... |
Added note about java requierement | @@ -3,7 +3,10 @@ Copyright 2019 Stephane Dallongeville
https://stephane-d.github.io/SGDK/
SGDK is an open and free development kit for the Sega Megadrive.
-It contains a development library (sources included) to make software for the Sega Megadrive / Genesis system and it uses the GCC compiler plus some custom tools to... |
graceful fallback for huge page allocation on Linux | @@ -369,6 +369,13 @@ static void* mi_unix_mmap(void* addr, size_t size, size_t try_alignment, int pro
if (large_only || lflags != flags) {
// try large OS page allocation
p = mi_unix_mmapx(addr, size, try_alignment, protect_flags, lflags, lfd);
+ #ifdef MAP_HUGE_1GB
+ if (p == NULL && (lflags & MAP_HUGE_1GB) != 0) {
+ ... |
[ctr/lua] apply change to testcode | @@ -114,8 +114,8 @@ func TestContractHello(t *testing.T) {
func TestContractSystem(t *testing.T) {
callInfo := "{\"Name\":\"testState\", \"Args\":[]}"
contractState := getContractState(t, systemCode)
- bcCtx := NewContext(sdb, nil, contractState, "HNM6akcic1ou1fX", "c2b36750", 100, 1234,
- "node", 1, accountId, 0)
+ bc... |
travis CHANGE use cmcoka tarball instead of its git
Use more stable code of cmocka, current master has some issue avoiding
cmocka usage. | @@ -29,8 +29,9 @@ branches:
before_install:
- eval "${MATRIX_EVAL}"
- - git clone git://git.cryptomilk.org/projects/cmocka.git
- - cd cmocka && mkdir build && cd build
+ - wget https://cmocka.org/files/1.1/cmocka-1.1.2.tar.xz
+ - tar -xf cmocka-1.1.2.tar.xz
+ - cd cmocka-1.1.2; mkdir build; cd build
- cmake .. && make ... |
util/comm-dev.c: Format with clang-format
BRANCH=none
TEST=none | @@ -60,9 +60,8 @@ static const char *strresult(int i)
/* Old ioctl format, used by Chrome OS 3.18 and older */
-static int ec_command_dev(int command, int version,
- const void *outdata, int outsize,
- void *indata, int insize)
+static int ec_command_dev(int command, int version, const void *outdata,
+ int outsize, voi... |
CoreValidation: Fixed RAM size in GNU linker script. | @@ -42,7 +42,7 @@ __ROM_SIZE = 0x00200000;
; </h>
-----------------------------------------------------------------------------*/
__RAM_BASE = 0x20200000;
-__RAM_SIZE = 0x20200000;
+__RAM_SIZE = 0x00200000;
/*--------------------- Stack / Heap Configuration ---------------------------
; <h> Stack / Heap Configuration
|
porting/examples/linux_blemesh: Allow specifying custom HCI | #include <stdbool.h>
#include <stdint.h>
+#include <stdlib.h>
#include <pthread.h>
#include "nimble/nimble_npl.h"
@@ -67,10 +68,15 @@ void mesh_initialized(void)
TASK_DEFAULT_STACK, TASK_DEFAULT_STACK_SIZE);
}
-int main(void)
+int main(int argc, char *argv[])
{
int ret = 0;
+ /* allow to specify custom hci */
+ if (arg... |
[numerics] respect itermax iparam[0] in mclp_enum.c | @@ -207,6 +207,7 @@ void mlcp_enum(MixedLinearComplementarityProblem* problem, double *z, double *w,
sU = z;
sV = z + problem->n;
tol = options->dparam[0];
+ int itermax = options->iparam[0];
sMref = problem->M->matrix0;
/* LWORK = 2*npm; LWORK >= max( 1, MN + max( MN, NRHS ) ) where MN = min(M,N)*/
@@ -236,7 +237,7 @@... |
Run the mimic checksum benchmarks for longer. | @@ -808,23 +808,23 @@ void bench_puffs_zlib_decode_100k() {
void bench_mimic_adler32_10k() {
CHECK_FOCUS(__func__);
do_bench_buf1_buf1(mimic_bench_adler32, tc_src, &checksum_midsummer_gt, 0, 0,
- 30000);
+ 150000);
}
void bench_mimic_adler32_100k() {
CHECK_FOCUS(__func__);
- do_bench_buf1_buf1(mimic_bench_adler32, tc_s... |
session server BUGFIX uninitialized var
False positive. | @@ -1711,7 +1711,7 @@ nc_ps_poll_session_io(struct nc_session *session, int io_timeout, time_t now_mon
API int
nc_ps_poll(struct nc_pollsession *ps, int timeout, struct nc_session **session)
{
- int ret, r;
+ int ret = NC_PSPOLL_ERROR, r;
uint8_t q_id;
uint16_t i, j;
char msg[256];
|
compile with /Zc:__cplusplus in vs2022 | @@ -107,7 +107,7 @@ mi_decl_nodiscard extern inline mi_decl_restrict void* mi_malloc_small(size_t si
}
// The main allocation function
-mi_decl_nodiscard extern inline void* _mi_heap_malloc_zero(mi_heap_t* heap, size_t size, bool zero) mi_attr_noexcept {
+extern inline void* _mi_heap_malloc_zero(mi_heap_t* heap, size_t... |
doc: rework boolean | @@ -6,46 +6,47 @@ Inconsistent use of bool in various parts of Elektra.
## Constraints
+- needs to be string
+
## Assumptions
-- needs to be string
-- convenience plugins can convert anything to 0 or 1
- type checker plugins can reject everything not 0 or 1
## Considered Alternatives
-- strictly only allow 0 and 1 (wou... |
board/fizz/usb_pd_pdo.c: Format with clang-format
BRANCH=none
TEST=none | #include "usb_pd.h"
#include "usb_pd_pdo.h"
-#define PDO_FIXED_FLAGS (PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP |\
- PDO_FIXED_COMM_CAP)
+#define PDO_FIXED_FLAGS \
+ (PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP | PDO_FIXED_COMM_CAP)
const uint32_t pd_src_pdo[] = {
PDO_FIXED(5000, 3000, PDO_FIXED_FLAGS),
|
Update: fix, inheritances were reversed | @@ -51,9 +51,9 @@ R1( ({A} <-> {B}), |-, (A <-> B), Truth_StructuralDeduction )
R1( ([A] <-> [B]), |-, (A <-> B), Truth_StructuralDeduction )
//NAL3 rules
R1( ((S | P) --> M), |-, (S --> M), Truth_StructuralDeduction )
-R1( (M --> (S & P)), |-, (S --> M), Truth_StructuralDeduction )
+R1( (M --> (S & P)), |-, (M --> S),... |
BugID:18989472: Fix an issue in work queue. | @@ -11,10 +11,11 @@ struct k_work_q g_work_queue;
static void k_work_submit_to_queue(struct k_work_q *work_q, struct k_work *work)
{
struct k_work *delayed_work = NULL;
+ uint32_t now = k_uptime_get_32();
if (!atomic_test_and_set_bit(work->flags, K_WORK_STATE_PENDING)) {
SYS_SLIST_FOR_EACH_NODE(&g_work_queue.queue.data... |
Fix potential NULL pointer dereference
In EC key generation, if allocation of struct ec_gen_ctx fails, values
provided by parameters are copied into the context at represented by a NULL
pointer. To fix this, prevent copy if allocation fails. | @@ -1006,11 +1006,11 @@ static void *ec_gen_init(void *provctx, int selection,
gctx->libctx = libctx;
gctx->selection = selection;
gctx->ecdh_mode = 0;
- }
if (!ec_gen_set_params(gctx, params)) {
OPENSSL_free(gctx);
gctx = NULL;
}
+ }
return gctx;
}
|
Add the feature that switch random address to origin mac addr in the ADV
report data. | @@ -2065,14 +2065,41 @@ static void btu_ble_phy_update_complete_evt(UINT8 *p)
btm_ble_update_phy_evt(&update_phy);
}
+#if BLE_PRIVACY_SPT == TRUE
+/*******************************************************************************
+**
+** Function btm_ble_resolve_random_addr_adv_ext
+**
+** Description resolve random addr... |
Fix socket type in linux to avoid false "OTHER" protocols. | @@ -112,6 +112,11 @@ addSock(int fd, int type)
memset(&g_netinfo[fd], 0, sizeof(struct net_info_t));
g_netinfo[fd].fd = fd;
g_netinfo[fd].type = type;
+#ifdef __LINUX__
+ // Clear these bits so comparisons of type will work
+ g_netinfo[fd].type &= ~SOCK_CLOEXEC;
+ g_netinfo[fd].type &= ~SOCK_NONBLOCK;
+#endif // __LINU... |
Fix invalid NtSystemRoot | @@ -520,9 +520,12 @@ NTSTATUS PhpUpdateMemoryRegionTypes(
PS_SYSTEM_DLL_INIT_BLOCK ldrInitBlock = { 0 };
PVOID ldrInitBlockBaseAddress = NULL;
PPH_MEMORY_ITEM cfgBitmapMemoryItem;
+ PH_STRINGREF systemRootString;
PPH_STRING ntdllFileName;
- ntdllFileName = PhConcatStrings2(USER_SHARED_DATA->NtSystemRoot, L"\\System32\\... |
app_update: Make gen_empty_partition.py Python 2 & 3 compatible
Closes | # See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import print_function, division
+from __future__ import unicode_literals
import argparse
import os
import re
@@ -42,9 +43,7 @@ def critical(msg):
sys.stderr.write('\n')
def generate_blanked_file(size, ... |
exclude fuzz-initial test from build | @@ -35,7 +35,7 @@ test_script:
- ps: cd "$Env:Configuration"
- ps: vstest.console /logger:Appveyor UnitTest1.dll
# Alternative to UnitTest1 (apparently running the same tests):
- - ps: .\picoquic_t -n -r
+ - ps: .\picoquic_t -n -r -x fuzz_initial
deploy: off
|
enable PPP, USB_NET_QMI_WWAN and USB_SERIAL_OPTION | @@ -9,7 +9,7 @@ diff -rupN old/linux-xlnx-xilinx-v2016.4/arch/arm/configs/xilinx_zynq_defconfig
CONFIG_MDIO_BITBANG=y
CONFIG_INPUT_SPARSEKMAP=y
CONFIG_INPUT_EVDEV=y
-@@ -239,3 +240,128 @@ CONFIG_RCU_CPU_STALL_TIMEOUT=60
+@@ -239,3 +240,135 @@ CONFIG_RCU_CPU_STALL_TIMEOUT=60
CONFIG_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_... |
Fix random SEGV
After arr.toHex() returns the pointer in *str is no longer guaranteed
to be valid. | @@ -4544,8 +4544,7 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event)
else if (ia->id() == 0xff01) // Xiaomi magic
{
QByteArray arr = ia->toString().toLatin1();
- const char *str = qPrintable(arr.toHex());
- DBG_Printf(DBG_INFO_L2, ">>>>> 0x%016llX: Xiaomi magic: %s\n", event.node()->address(... |
CI: Make the maintainers to be the owners of the copyright header ignore list | @@ -204,7 +204,7 @@ requirements.txt @esp-idf-codeowners/tools
# sort-order-reset
# ignore lists
-/tools/ci/check_copyright_ignore.txt @esp-idf-codeowners/tools
+/tools/ci/check_copyright_ignore.txt @esp-idf-codeowners/all-maintainers
/tools/ci/check_copyright_permanent_ignore.txt @esp-idf-codeowners/all-maintainers
/t... |
80-test_cmp_http.t: fix adaption of plan on 'certstatus' aspect of Mock server | @@ -171,7 +171,7 @@ sub test_cmp_http_aspect {
indir data_dir() => sub {
plan tests => 1 + @server_configurations * @all_aspects
- + (grep(/^Mock$/, @server_configurations)
+ - (grep(/^Mock$/, @server_configurations)
&& grep(/^certstatus$/, @all_aspects));
foreach my $server_name (@server_configurations) {
|
fix warning of posix_signal | #include <rthw.h>
#include <rtthread.h>
-#include <time.h>
+#include <sys/time.h>
+#include <sys/errno.h>
#include "posix_signal.h"
#define sig_valid(sig_no) (sig_no >= 0 && sig_no < RT_SIG_MAX)
|
notifications: clear state before processing initial update | @@ -8,6 +8,7 @@ import {
import { makePatDa } from "~/logic/lib/util";
import _ from "lodash";
import {StoreState} from "../store/type";
+import { BigIntOrderedMap } from '../lib/BigIntOrderedMap';
type HarkState = Pick<StoreState, "notifications" | "notificationsGraphConfig" | "notificationsGroupConfig" | "unreads" | ... |
eqlms: decim_execute() using push_block() | @@ -302,16 +302,12 @@ int EQLMS(_decim_execute)(EQLMS() _q,
if (_k == 0)
return liquid_error(LIQUID_EICONFIG,"eqlms_%s_decim_execute(), down-sampling rate 'k' must be greater than 0", EXTENSION_FULL);
- unsigned int i;
- for (i=0; i<_k; i++) {
- // push input sample
- EQLMS(_push)(_q, _x[i]);
-
- // compute output samp... |
Prevent integer underflow in item size calculation | @@ -302,14 +302,21 @@ oe_result_t oe_parse_sgx_endorsements(
uint8_t* item_ptr = data_ptr_start + offsets[i];
uint32_t item_size;
- if (offsets[i] >= endorsements->buffer_size)
+ if (offsets[i] >= data_size)
OE_RAISE_MSG(
OE_INVALID_PARAMETER,
"Offset value when creating SGX endorsement is incorrect.",
NULL);
if (i < O... |
out_opensearch: support dynamic index with types | @@ -490,11 +490,21 @@ static int opensearch_format(struct flb_config *config,
index = ra_index;
}
+ if (ctx->suppress_type_name) {
index_len = flb_sds_snprintf(&j_index,
flb_sds_alloc(j_index),
OS_BULK_INDEX_FMT_NO_TYPE,
ctx->action,
index);
+ }
+ else {
+ index_len = flb_sds_snprintf(&j_index,
+ flb_sds_alloc(j_index)... |
man: bump version | @@ -99,7 +99,7 @@ default = https://master\.libelektra\.org/doc/api_blueprints/snippet\-sharing\.a
[current/backend/api/description/html]
check/type = string
description = A link to the compiled blueprint describing the API\.
-default = https://doc\.libelektra\.org/restapi/0\.9\.0/snippet\-sharing\.html
+default = http... |
ksFindHierarchy now only copies the name if the root or a key copied from root is within ks | @@ -1325,10 +1325,18 @@ elektraCursor ksFindHierarchy (const KeySet * ks, const Key * root, elektraCurso
if (end != NULL)
{
- struct _KeyName * copy = keyNameCopy (root->keyName);
- struct _KeyName * old = root->keyName;
+ struct _KeyName * oldName = NULL;
+ struct _KeyName * copy = NULL;
+
+ if (search >= 0)
+ {
+ // ... |
Add comment explaining why zspills work only on the oldest kvsets in root | @@ -170,8 +170,11 @@ sp3_work_wtype_root(
znode = cn_kvset_can_zspill(le->le_kvset, rmap);
- /* Don't start a zspill if there the older busy kvsets. This avoids
- * tying up a spill thread that will just end up waiting on an rspill.
+ /* Don't start a zspill if there are older busy kvsets. This ensures that when a zspi... |
fixup: remove ',' | @@ -325,7 +325,7 @@ def generateFullBuildStages() {
CMAKE_FLAGS_CLANG,
[TEST.ALL, TEST.MEM, TEST.INSTALL]
)
- tasks << buildAndTestMingwW64(),
+ tasks << buildAndTestMingwW64()
tasks << buildAndTest(
"ubuntu-xenial",
DOCKER_IMAGES.xenial,
|
refactor(demo): ethereum demo update
modify demo recipient address of ethereum | @@ -50,7 +50,7 @@ const BCHAR * demoUrl = "http://192.168.132.200:7545";
/**
* transfer recipient address
*/
-const BCHAR * demoRecipirntAddress = "0x4BeC3cDD520B7985067219F6f596EF7a55Ee5963";
+const BCHAR * demoRecipirntAddress = "0xDED9ea325f8D657614f0F96444ca9DF1d7E2f27c";
BoatEthWallet *g_ethereum_wallet_ptr;
|
avoid wrongly restart discovery | @@ -213,7 +213,9 @@ static void bt_app_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *pa
switch (event) {
/* when device discovered a result, this event comes */
case ESP_BT_GAP_DISC_RES_EVT: {
+ if (s_a2d_state == APP_AV_STATE_DISCOVERING) {
filter_inquiry_scan_result(param);
+ }
break;
}
/* when discovery... |
Add test for no reset after DigestFinal_ex and DigestFinalXOF | @@ -686,6 +686,51 @@ static int test_EVP_DigestVerifyInit(void)
return ret;
}
+/*
+ * Test corner cases of EVP_DigestInit/Update/Final API call behavior.
+ */
+static int test_EVP_Digest(void)
+{
+ int ret = 0;
+ EVP_MD_CTX *md_ctx = NULL;
+ unsigned char md[EVP_MAX_MD_SIZE];
+
+ if (!TEST_ptr(md_ctx = EVP_MD_CTX_new()... |
Addition of an option to choose the solution of the reduced symmetric system with Qp2 or QpH inside the matrix.
SICONOS_FRICTION_3D_IPM_IPARAM_REDUCED_SYSTEM_METHOD | @@ -545,7 +545,9 @@ enum SICONOS_FRICTION_3D_IPM_IPARAM_ENUM
/** index in iparam to update the vector w for solving nonconvex problem */
SICONOS_FRICTION_3D_IPM_IPARAM_UPDATE_S = 17,
/** index in iparam to use Qp or F formula for computing Nesterov-Todd scaling **/
- SICONOS_FRICTION_3D_IPM_IPARAM_NESTEROV_TODD_SCALING... |
[ci] Enable running CI on Fedora 36
Fedora 34 is EOL since 2022-06-07:
This diff adds support for F36 (current release). | @@ -113,7 +113,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
- os: [{distro: "fedora", version: "34", nick: "f34"}]
+ os: [{distro: "fedora", version: "34", nick: "f34"}, {distro: "fedora", version: "36", nick: "f36"}]
env:
- TYPE: Debug
PYTHON_TEST_LOGFILE: critical.log
|
Added missing return in metadata_probe_cores | @@ -385,8 +385,11 @@ void ocf_metadata_probe_cores(ocf_ctx_t ctx, ocf_volume_t volume,
const struct ocf_metadata_iface *iface;
context = env_vzalloc(sizeof(*context));
- if (!context)
+ if (!context) {
cmpl(priv, -OCF_ERR_NO_MEM, 0);
+ return;
+ }
+
context->cmpl = cmpl;
context->priv = priv;
|
Replace OpenSSL's ERR_PACK with ERR_GET_REASON | @@ -1209,23 +1209,22 @@ squelch_err_ssl_handshake(unsigned long err)
{
if(verbosity >= VERB_QUERY)
return 0; /* only squelch on low verbosity */
- /* this is very specific, we could filter on ERR_GET_REASON()
- * (the third element in ERR_PACK) */
- if(err == ERR_PACK(ERR_LIB_SSL, SSL_F_SSL3_GET_RECORD, SSL_R_HTTPS_PRO... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.