message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
fix(shields): Proper arrow comments in reference keymap
swapped the up and down arrows to reflect the bindings | // ------------------------------------------------------------------------------------------------------------
// | | | | | | | | | | | | | |
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | |
-// | F1 | F2 | F3 | F4 | F5 | F6 | | | <- | ^ | v | -> | |
+// | F1 | F2 | F3 | F4 | F5 | F6 | | | <- | v | ^ | -> | |
// |... |
tests CHANGE test YANG identity parsing | #include "libyang.h"
#include "../../src/parser_yang.c"
+#include "../../src/tree_schema.c"
#define BUFSIZE 1024
char logbuf[BUFSIZE] = {0};
@@ -849,6 +850,43 @@ test_module(void **state)
ly_ctx_destroy(ctx.ctx, NULL);
}
+static void
+test_identity(void **state)
+{
+ (void) state; /* unused */
+
+ struct ly_parser_ctx ... |
s5j/pwm: fix 32bit integer overflow when arithmetic operation | @@ -171,7 +171,7 @@ static int s5j_pwm_start(FAR struct pwm_lowerhalf_s *dev,
FAR struct s5j_pwmtimer_s *priv = (FAR struct s5j_pwmtimer_s *)dev;
tcntb = pwm_clk_freq(priv) / info->frequency - 1;
- tcmpb = (((tcntb + 1) * info->duty) / 65536) - 1;
+ tcmpb = (((uint64_t)(tcntb + 1) * info->duty) / 65536) - 1;
pwm_putreg... |
ftp.c: remove "broken server" messages (and comments) | @@ -219,9 +219,8 @@ static int ftp_read_response (gftp_request * request, int disconnect_on_42x)
code[3] = '\0';
ftpdat->last_response_code = atoi (code);
code[3] = ' ';
- } else if (last_line) { // hack. another response
+ } else if (last_line) { // another response
// some functions may need to check this value, to f... |
Run test on dev branch as well | @@ -2,9 +2,9 @@ name: Build Micropython with LVGL submodule
on:
push:
- branches: [ master ]
+ branches: [ master, dev ]
pull_request:
- branches: [ master ]
+ branches: [ master, dev ]
jobs:
build:
|
This wasn't updated in a while... | @@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places.
# The default value is: My Project.
-PROJECT_NAME = "Server Writing Tools in C"
+PROJECT_NAME = "Facil.io - the C mini web framework"
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# ... |
opae.admin: change iteritems to items
Python 3.6 does not support iteritems | @@ -567,7 +567,7 @@ class class_node(sysfs_node):
def func(obj):
for f in filt:
- for k, v in f.iteritems():
+ for k, v in f.items():
cur_obj = obj
attrs = k.split('.')
while len(attrs) > 1:
|
Added EmeraldSDHC.kext | @@ -73,6 +73,7 @@ KEXT_INFO mKextInfo[] = {
{ "CPUFriendDataProvider.kext", "", "Contents/Info.plist" },
{ "CryptexFixup.kext", "Contents/MacOS/CryptexFixup", "Contents/Info.plist" },
{ "DebugEnhancer.kext", "Contents/MacOS/DebugEnhancer", "Contents/Info.plist" },
+ { "EmeraldSDHC.kext", "Contents/MacOS/EmeraldSDHC", "... |
sfn5122f: fixing compilation after merge | @@ -1543,13 +1543,6 @@ static void export_devif_cb(void *st, errval_t err, iref_t iref)
}
-static errval_t connect_devif_cb(void *st, struct sfn5122f_devif_binding *b)
-{
- DEBUG("New connection on devif management interface\n");
- b->rx_vtbl = rx_vtbl_devif;
- return SYS_ERR_OK;
-}
-
/*********************************... |
viorng: Fix issues found by CodeQL | @@ -44,7 +44,7 @@ static NTSTATUS VirtQueueAddBuffer(IN PDEVICE_CONTEXT Context,
TraceEvents(TRACE_LEVEL_VERBOSE, DBG_READ, "--> %!FUNC!");
- entry = (PREAD_BUFFER_ENTRY)ExAllocatePoolWithTag(NonPagedPool,
+ entry = (PREAD_BUFFER_ENTRY)ExAllocatePoolUninitialized(NonPagedPool,
sizeof(READ_BUFFER_ENTRY), VIRT_RNG_MEMORY... |
build: remove from-scratch ropsten pill builds on ci | @@ -109,9 +109,6 @@ in localLib.dimension "system" systems (systemName: system:
ivory = pushPill "ivory" dynamicPackages.ivory;
brass = pushPill "brass" dynamicPackages.brass;
solid = pushPill "solid" dynamicPackages.solid;
-
- ivory-ropsten = pushPill "ivory-ropsten" dynamicPackages.ivory-ropsten;
- brass-ropsten = pu... |
CMSIS-DSP: Prevent off-by-one access past end of y-data buffer in f32 linear interpolation | @@ -5555,7 +5555,7 @@ __STATIC_FORCEINLINE void arm_inv_park_q31(
/* Iniatilize output for below specified range as least output value of table */
y = pYData[0];
}
- else if ((uint32_t)i >= S->nValues)
+ else if ((uint32_t)i >= (S->nValues - 1))
{
/* Iniatilize output for above specified range as last output value of t... |
OpenCoreAudio: Localise letters for different voices | @@ -106,9 +106,6 @@ OcAudioAcquireFile (
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"[File - OcVoiceOverAudioFileIndexBase]
);
BasePath = IndexPath;
- if (File >= OcVoiceOverAudioFileIndexAlphabetical) {
- Localised = FALSE;
- }
} else {
switch (File) {
case OcVoiceOverAudioFileAbortTimeout:
|
ci: add passing secrets to called workflow (mailing fix)
JIRA: | @@ -15,3 +15,6 @@ on:
jobs:
call-ci:
uses: phoenix-rtos/phoenix-rtos-project/.github/workflows/ci-submodule.yml@master
+ secrets:
+ CI_BOT_EMAIL_USERNAME: ${{ secrets.CI_BOT_EMAIL_USERNAME }}
+ CI_BOT_EMAIL_PASSWORD: ${{ secrets.CI_BOT_EMAIL_PASSWORD }}
|
Fix retrieve Error Log Count | @@ -5367,7 +5367,7 @@ FwCmdGetErrorCount(
FIS_1_2 = pDimm->FwVer.FwApiMajor == 1 && pDimm->FwVer.FwApiMinor <= 2;
- InputPayload.LogParameters.Separated.LogType = 1;
+ InputPayload.LogParameters.Separated.LogInfo = 1;
if (pMediaLogCount != NULL) {
InputPayload.LogParameters.Separated.LogType = ErrorLogTypeMedia;
|
link-checker: increase timeout and tries | @@ -44,6 +44,8 @@ WHITELIST=$(mktemp)
grep -v '^#' "$SCRIPT_DIR/../tests/linkchecker.whitelist" > "$WHITELIST"
NUMTHREADS=10
+TIMEOUT=20
+TRIES=5
check() {
link=$(echo "$1" | grep -oE "(https|http|ftp):[^|]*")
@@ -58,9 +60,9 @@ check() {
echo "check the link format of $1"
return
fi
- wget --spider --quiet --timeout=5 -... |
Fix compilation warning.
GPU/Linux | @@ -13364,8 +13364,8 @@ bool VmaDefragmentationContext_T::IncrementCounters(VkDeviceSize bytes)
// Early return when max found
if (++m_PassStats.allocationsMoved >= m_MaxPassAllocations || m_PassStats.bytesMoved >= m_MaxPassBytes)
{
- VMA_ASSERT(m_PassStats.allocationsMoved == m_MaxPassAllocations ||
- m_PassStats.byte... |
remove useless line in dpdk cryptodev | @@ -470,8 +470,6 @@ dpdk_esp_encrypt_inline (vlib_main_t * vm,
}
}
- vnet_buffer (b0)->sw_if_index[VLIB_RX] =
- vnet_buffer (b0)->sw_if_index[VLIB_RX];
b0->flags |= VLIB_BUFFER_TOTAL_LENGTH_VALID;
/* mbuf packet starts at ESP header */
|
Remove signoff step from contributing guide. | @@ -75,24 +75,22 @@ copyright and the reference to the MIT License.
new warning (but it may be possible to remove some warning checks if it makes
the code much easier).
-5. Sign off your commits: ``git commit -s``
-
-6. Follow the Linux kernel coding style, which can be found in the file
+5. Follow the Linux kernel cod... |
BugID:17712238:move realtime test to test directory | #include <stm32l496xx.h>
#include "stm32l4xx_hal.h"
#include "stm32l4xx_hal_tim.h"
-#include "real_time_test.h"
#include "stm32l4xx_hal_rcc.h"
+#include "test_realtime.h"
float soc_cpu_clock_freq_mhz(void)
{
|
disable tneat test for localmode | @@ -20,7 +20,7 @@ tests_general.append([0, 0, workdir + 'client_http_get -u /cgi-bin/he -v 2 2a02:
tests_general.append([1, 0, workdir + 'client_http_get -u /cgi-bin/he -v 2 not.resolvable.neat'])
tests_general.append([1, 0, workdir + 'client_http_get -u /cgi-bin/he -v 2 buildbot.nplab.de'])
tests_general.append([0, 0,... |
save our private and others' public keys in %ames state | |%
++ am :: am
|_ [now=@da fox=fort] :: protocol engine
+ ++ vein :: vein:am
+ |= [our=ship =life vein=(map life ring)] :: new private keys
+ ^- fort
+ ::
+ ~| [%vein-mismatch +<]
+ ?> (~(has by vein) life)
+ ?> =(life (roll ~(tap in ~(key by vein)) max))
+ ::
+ ~| %vein-stub
+ ?< (~(has by urb.ton.fox) our)
+ ::
+ =/ ... |
kiln: tell gall to fade apps on uninstall | ^+ ..vats
=. ..abet (abed lac)
~> %slog.0^leaf/"kiln: uninstalling {here}"
- :: TODO: ask gall to doze
+ =. ..abet
+ %- emil
+ %+ turn (get-apps lac)
+ |= =dude:gall
+ [%pass /kiln/vats/uninstall %arvo %g %fade dude %idle]
+ ::
..vats(ark (~(del by ark) lac))
::
++ install
~> %slog.0^leaf/"merge into {here} succeeded"
... |
Removed outdated assertion | @@ -111,7 +111,6 @@ ZydisStatus ZydisPrintDec32U(char** buffer, size_t bufferLen, uint32_t value, ui
#else
ZYDIS_ASSERT(buffer);
ZYDIS_ASSERT(bufferLen > 0);
- ZYDIS_ASSERT(paddingLength <= sizeof(ZYDIS_PADDING_STRING) / sizeof(ZYDIS_PADDING_STRING[0]));
char temp[ZYDIS_MAXCHARS_DEC_32 + 1];
char *p = &temp[ZYDIS_MAXCH... |
Add SceKernelPreloadInhibit warning | @@ -42,6 +42,9 @@ typedef enum SceKernelModuleState {
* </code>
*
* And these are only valid for modules in the process image, preload is not inhibited even if specified for modules to be loaded later.
+ *
+ * WARNING
+ * If SceLibNet etc. is loaded without SceShellSvc etc. loaded, an unintended system crash will occur... |
Possible fix for crash on jenkins... | @@ -388,7 +388,7 @@ doJavaProtocol(JNIEnv *jni, jobject session, jbyteArray buf, jint offset, jint l
jbyte *byteBuf = (*jni)->GetPrimitiveArrayCritical(jni, buf, 0);
doProtocol((uint64_t)hash, fd, &byteBuf[offset], (size_t)(len - offset), src, BUF);
//scopeLogHexError(&byteBuf[offset], (len - offset), "doJavaProtocol")... |
add voice module block | </shadow>
</value>
</block>
+<block type="voice_module">
+ <value name="PIN">
+ <shadow type="pins_digital"/>
+ </value>
+ <value name="WAIT">
+ <shadow type="math_number">
+ <field name="NUM">1000</field>
+ </shadow>
+ </value>
+</block>
</category>
<category id="catMonitor" colour="180">
<category id="cat4Digitdispla... |
fix(boatoptions.h): fix bug, it will compile error if PROTOCOL_USE_HLFABRIC == 0. | @@ -106,8 +106,10 @@ boatoptions.h defines options for compiling.
#define HTTP2_SEND_BUF_MAX_LEN 4096 //!< The maximum length of HTTP2 send buffer
-#define BOAT_STRING_MAX_LEN 4096 //!< The maximum allowed string length
+
#endif /* end of PROTOCOL_USE_HLFABRIC */
+#define BOAT_STRING_MAX_LEN 4096 //!< The maximum allow... |
output how long ago a search was started | @@ -221,6 +221,7 @@ void searches_debug(FILE *fp)
fprintf(fp, " id: %s\n", str_id(search->id));
fprintf(fp, " done: %s\n", search->done ? "true" : "false");
fprintf(fp, " auth: %s\n", str_callback(search->callback));
+ fprintf(fp, " started: %ldm ago\n", (time_now_sec() - search->start_time) / 60);
result_counter = 0;
... |
Change name of some params | @@ -67,15 +67,17 @@ STRUCT_CONFIG_SECTION(SurviveKalmanTracker)
STRUCT_CONFIG_ITEM("process-weight-rot", "Rotation variance per second", 0, t->params.process_weight_rotation)
STRUCT_CONFIG_ITEM("process-weight-acc-bias", "Acc bias variance per second", 0, t->params.process_weight_acc_bias)
STRUCT_CONFIG_ITEM("process-w... |
mod shm BUGFIX notif subs need alignment | @@ -904,9 +904,11 @@ sr_shmmod_notif_subscription_add(sr_shm_t *shm_ext, sr_mod_t *shm_mod, uint32_t
sr_mod_notif_sub_t *shm_sub;
size_t new_ext_size;
+ /* we may not even need to resize ext SHM because of the alignment */
+ if (SR_SHM_SIZE((shm_mod->notif_sub_count + 1) * sizeof *shm_sub) > SR_SHM_SIZE(shm_mod->notif_... |
Test public parameter entity with failing allocator | @@ -5506,6 +5506,71 @@ START_TEST(test_alloc_realloc_many_attributes)
}
END_TEST
+/* Test handling of a public entity with failing allocator */
+static int XMLCALL
+external_entity_public(XML_Parser parser,
+ const XML_Char *context,
+ const XML_Char *UNUSED_P(base),
+ const XML_Char *systemId,
+ const XML_Char *public... |
add vmx msr ops protection from guest OS
1.it doesn't support VMX for guest OS
2.for MSR out of control, inject GP to guest OS.
Acked-by: Eddie Dong | @@ -152,6 +152,11 @@ void init_msr_emulation(struct vcpu *vcpu)
i <= MSR_IA32_MTRR_FIX4K_F8000; i++) {
enable_msr_interception(msr_bitmap, i);
}
+
+ for (i = MSR_IA32_VMX_BASIC;
+ i <= MSR_IA32_VMX_TRUE_ENTRY_CTLS; i++) {
+ enable_msr_interception(msr_bitmap, i);
+ }
}
/* Set up MSR bitmap - pg 2904 24.6.9 */
@@ -192,6... |
Add Sinope thermostat TH1300ZB, | @@ -209,6 +209,7 @@ static const SupportedDevice supportedDevices[] = {
{ VENDOR_JENNIC, "SPZB0001", jennicMacPrefix }, // Eurotronic thermostat
{ VENDOR_NONE, "RES001", tiMacPrefix }, // Hubitat environment sensor, see #1308
{ VENDOR_119C, "WL4200S", sinopeMacPrefix}, // Sinope water sensor
+ { VENDOR_119C, "TH1300ZB"... |
[LWIP] fixed closesocket issues: socket has been closed, delete it from file system fd. | @@ -327,6 +327,13 @@ RTM_EXPORT(socket);
int closesocket(int s)
{
int sock = dfs_net_getsocket(s);
+ struct dfs_fd *d;
+
+ d = fd_get(s);
+
+ /* socket has been closed, delete it from file system fd */
+ fd_put(d);
+ fd_put(d);
return lwip_close(sock);
}
|
Update README.md
Minor typo correction | @@ -154,7 +154,7 @@ Parameters that are enabled by default have to be explicitly disabled. These (cu
| `toggle_hud=`<br>`toggle_logging=` | Modifiable toggle hotkeys. Default are `Shift_R+F12` and `Shift_L+F2`, respectively. |
| `reload_cfg=` | Change keybind for reloading the config. Default = `Shift_L+F4` |
| `time`<... |
Fix comment typo
Replace "at network level" by "at the network level". | @@ -95,10 +95,10 @@ SDL_bool server_start(struct server *server, const char *serial, Uint16 local_po
}
// At the application level, the device part is "the server" because it
- // serves video stream and control. However, at network level, the client
- // listens and the server connects to the client. That way, the cli... |
BugID:21247578:Fix NULL pointer in observe.c | @@ -507,6 +507,8 @@ void observe_step(lwm2m_context_t * contextP,
if (LWM2M_URI_IS_SET_RESOURCE(&targetP->uri))
{
if (COAP_205_CONTENT != object_readData(contextP, &targetP->uri, &size, &dataP)) continue;
+ if (dataP != NULL)
+ {
switch (dataP->type)
{
case LWM2M_TYPE_INTEGER:
@@ -529,6 +531,7 @@ void observe_step(lwm2... |
[tools/building.py]fixed SrcRemove /\ convert issue. | @@ -803,6 +803,13 @@ def SrcRemove(src, remove):
if not src:
return
+ src_bak = src
+
+ if type(remove) == type('str'):
+ if os.path.isabs(remove):
+ remove = os.path.relpath(remove, GetCurrentDir())
+ remove = os.path.normpath(remove)
+
for item in src:
if type(item) == type('str'):
item_str = item
@@ -811,14 +818,30 ... |
CI: Install wget on windows lane
Some changes have been made to Windows
and wget is no longer available by default. | @@ -133,9 +133,9 @@ jobs:
$imagemagick_version_without_patch = $imagemagick_version.split("-")[0]
$installer_name = "ImageMagick-$($imagemagick_version)-Q16-x64-dll.exe"
$url = "https://ftp.icm.edu.pl/pub/graphics/ImageMagick/binaries/$($installer_name)"
+ choco install wget ghostscript
wget $url --progress=dot
cmd.exe... |
Add distcheck to Gitlab CI | @@ -10,6 +10,7 @@ test-kvazaar: &test-template
- ./configure --enable-werror || (cat config.log && false)
- make --jobs=8
- make check --jobs=8 VERBOSE=1
+ - make distcheck
artifacts:
paths:
- src/kvazaar
|
New Seed Nodes | @@ -1318,11 +1318,12 @@ void MapPort()
// The second name should resolve to a list of seed addresses.
static const char *strDNSSeed[][2] = {
- {"172.93.53.210", "172.93.53.210"},
- {"104.233.106.135", "104.233.106.135"},
- {"104.238.169.5", "104.238.169.5"},
- {"147.135.191.162", "147.135.191.162"},
- {"dnsseed.denariu... |
examples/jpeg: indent | @@ -43,8 +43,10 @@ int LLVMFuzzerTestOneInput(const uint8_t* buf, size_t len) {
return 0;
}
+ if (((uint64_t)width * (uint64_t)height) <= (1024ULL * 1024ULL)) {
decompressToRGB(tjh, (unsigned char*)buf, len, width, height, jpegSubsamp);
decompressToYUV(tjh, (unsigned char*)buf, len, width, height, jpegSubsamp);
+ }
tjD... |
Switch the types for strsrch back to int. | @@ -676,11 +676,13 @@ preComp(unsigned char *needle, int nlen, int bmBc[]) {
bmBc[needle[i]] = nlen - i - 1;
}
-static ssize_t
-strsrch(char *needle, int nlen, char *haystack, ssize_t hlen, int *bmBc) {
- ssize_t j;
+static int
+strsrch(char *needle, int nlen, char *haystack, int hlen, int *bmBc) {
+ int j;
unsigned ch... |
pbio/motor_process: Run battery update.
Initialize the battery and update it synchronously with the motors. This way, all motors read the same battery voltage during an update step. | // SPDX-License-Identifier: MIT
// Copyright (c) 2018-2020 The Pybricks Authors
+#include <pbio/battery.h>
#include <pbio/control.h>
#include <pbio/drivebase.h>
#include <pbio/motor_process.h>
@@ -33,6 +34,9 @@ pbio_error_t pbio_motor_process_get_servo(pbio_port_id_t port, pbio_servo_t **sr
void pbio_motor_process_rese... |
fixed bug with constant propagation not visiting srcs | @@ -151,29 +151,43 @@ function constant_propagation.run(module)
-- 4) Propagate the constants local variables and upvalues.
+ -- Returns a new `ir.Value` representing `src_val` after constant propagation.
+ -- @param f_data FuncData of the function whose IR contains `src_val`.
+ -- @param func corresponding ir.Function... |
better handling of NIC on carry | @@ -2091,7 +2091,7 @@ static char pskstring[PSKSTRING_LEN_MAX] = {};
oui = macaddr &0xffffff000000L;
nic = (macaddr -0x0f) &0xffffffL;
-for(c = 0; c < 0x10; c++) writebssid(fhout, oui +nic +c);
+for(c = 0; c < 0x10; c++) writebssid(fhout, oui +((nic +c) &0xffffffL));
swap = (nic >> 8) & 0xffff;
{
swap = (swap & 0xf000)... |
fix install 2 | @@ -1219,6 +1219,8 @@ else()
if(NOT NP2kai_temp)
install(TARGETS xnp21kai_HAXM CONFIGURATIONS RelWithDebInfo COMPONENT RelWithDebInfo)
install(TARGETS xnp21kai_HAXM CONFIGURATIONS Release COMPONENT Release)
+ install(FILES ${NP2kai_SOURCE_DIR}/x/resources/xnp21kai_HAXM.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/... |
soto: add 'capslock' to ignored keys | @@ -21,7 +21,7 @@ export class Input extends Component {
"F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8",
"F9", "F10", "F11", "F12", "Backspace", "Unidentified",
"Delete", "Insert", "Home", "PageUp", "PageDown", "End",
- "Dead"
+ "Dead", "CapsLock"
];
// submit on enter
|
Update gen_includes.py for Python 3.8.
It has to generate Include/cpython/initconfig.h and other cpython/ proxies. | @@ -2,7 +2,8 @@ import sys
import os
import errno
from os import listdir
-from os.path import isfile, join
+from os.path import dirname, relpath, join
+
def ensure_dir_exists(path):
try:
@@ -13,13 +14,24 @@ def ensure_dir_exists(path):
else:
raise
+
def make_dir(directory):
if not os.path.exists(directory):
os.makedirs... |
sds: new api to check if a sds variable is empty (len == 0) | #define FLB_SDS_H
#include <fluent-bit/flb_info.h>
-
+#include <fluent-bit/flb_macros.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
@@ -51,6 +51,15 @@ static inline size_t flb_sds_len(flb_sds_t s)
return (size_t) FLB_SDS_HEADER(s)->len;
}
+static inline int flb_sds_is_empty(flb_sds_t s)
+{
+ if (flb_... |
Mark grade as stable so we can release as beta on the store. | @@ -7,7 +7,7 @@ description: |
Server, and other tools. It is based on the CUPS source code and is maintained
by the PWG IPP workgroup.
-grade: devel # must be 'stable' to release into candidate/stable channels
+grade: stable
confinement: strict
icon: server/printer.png
|
Add printf stubs to UVC. | @@ -41,6 +41,15 @@ NORETURN void fb_alloc_fail()
__fatal_error();
}
+int puts(const char *s) {
+ return 0;
+}
+
+int printf(const char *fmt, ...)
+{
+ return 0;
+}
+
static uint8_t frame_index = 0;
static uint8_t format_index = 0;
|
disable code coverage test temporarily | @@ -520,7 +520,8 @@ try{
"ACC1804 clang-7 Release LVI FULL Tests": { ACCTest(AGENTS_LABELS["acc-ubuntu-18.04"], 'clang-7', 'Release', ['-DLVI_MITIGATION=ControlFlow', '-DLVI_MITIGATION_SKIP_TESTS=OFF']) },
"ACC1804 gcc Debug LVI": { ACCTest(AGENTS_LABELS["acc-ubuntu-18.04"], 'gcc', 'Debug', ['-DLVI_MITIGATION=ControlFl... |
Parameter: Tune for LH up | @@ -106,10 +106,10 @@ STRUCT_CONFIG_ITEM("mpfit-object-up-variance",
"How much to weight having the accel direction on tracked objects pointing up", -1,
t->obj_up_variance)
STRUCT_CONFIG_ITEM("mpfit-stationary-object-up-variance",
- "How much to weight having the accel direction on tracked objects pointing up", 1e-1,
+... |
netutils/webclient: Fixed socket descriptor leak. | @@ -822,6 +822,7 @@ int webclient_perform(FAR struct webclient_context *ctx)
if (ret == -1)
{
ret = -errno;
+ close(conn.sockfd);
}
}
|
fix EN_INITSETTING | @@ -3631,7 +3631,8 @@ int DLLEXPORT EN_getlinkvalue(EN_Project p, int index, int property, double *val
{
return EN_getlinkvalue(p, index, EN_ROUGHNESS, value);
}
- v = Link[index].Kc;
+ if (Link[index].Kc == MISSING) v = 0.0;
+ else v = Link[index].Kc;
switch (Link[index].Type)
{
case PRV:
|
fix gpfdist external table rename issue | @@ -3814,7 +3814,39 @@ renamerel(Oid myrelid, const char *newrelname, RenameStmt *stmt)
}
}
}
- renameHdfsPath(myrelid, pNode, oldrelname, newrelname);
+ // Filter out table which fmtopts == "formatter 'orc' category 'internal'".
+ // Example:
+ // create table test (int a) format 'orc';
+ cqContext *exPcqCtx = caql_be... |
sysdeps/vinix: fix timeout passed from sys_poll to sys_ppoll | @@ -92,7 +92,7 @@ int sys_poll(struct pollfd *fds, nfds_t count, int timeout, int *num_events) {
struct timespec ts;
ts.tv_sec = timeout / 1000;
ts.tv_nsec = (timeout % 1000) * 1000000;
- return sys_ppoll(fds, count, &ts, NULL, num_events);
+ return sys_ppoll(fds, count, timeout < 0 ? NULL : &ts, NULL, num_events);
}
i... |
add err msg for kvdb_close_testcase | @@ -97,8 +97,11 @@ MTF_DEFINE_UTEST(kvdb_api_test, kvdb_close_testcase)
hse_err_t rc;
rc = hse_kvdb_open(MPOOL_NAME, NULL, &KVDB_HANDLE);
- if (hse_err_to_errno(rc))
- exit(1);
+ if (hse_err_to_errno(rc)) {
+ char buf[128];
+ hse_err_to_string(rc, buf, sizeof(buf), NULL);
+ fprintf(stderr, "kvdb_close_testcase: %s", bu... |
prevent crash when `layout auto` is missing args | @@ -85,6 +85,10 @@ static struct cmd_results *cmd_layout_auto(swayc_t *container, int argc, char **
enum swayc_layouts old_layout = container->layout;
enum swayc_layouts layout = old_layout;
+ if ((error = checkarg(argc, "layout auto", EXPECTED_MORE_THAN, 1))) {
+ return error;
+ }
+
if (strcasecmp(argv[1], "left") == ... |
Bazel repo only supports linux amd64 | @@ -39,7 +39,7 @@ before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$CC" = "gcc" -a "$TRAVIS_ARCH" = "amd64" ]; then pip install --user codecov; export CFLAGS="-coverage"; fi
# https://docs.bazel.build/versions/main/install-ubuntu.html
- >
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
+ if [ "$TRAVIS_OS_NAME" = "linu... |
options/ansi: implement mbtowc | @@ -33,6 +33,7 @@ namespace {
// mblen(), mbtowc() and wctomb() have an internal state.
// The string functions mbstowcs() and wcstombs() do *not* have this state.
thread_local __mlibc_mbstate mblen_state = __MLIBC_MBSTATE_INITIALIZER;
+ thread_local __mlibc_mbstate mbtowc_state = __MLIBC_MBSTATE_INITIALIZER;
}
double ... |
fix memory leak when undoing the write of a SFPID frame | @@ -50,6 +50,8 @@ protoop_arg_t schedule_frames_on_path(picoquic_cnx_t *cnx)
if (symbol_length <= 1 + sizeof(uint64_t) + 1 + sizeof(source_fpid_frame_t)) {
// this symbol does not need to be protected: undo
my_memset(state->written_sfpid_frame, 0, 1 + sizeof(source_fpid_frame_t));
+ my_free(cnx, state->current_sfpid_fr... |
Fix output file encoding with Python3 | @@ -42,10 +42,8 @@ CHUNK = 16 * 1024 * 1024 # chunk size in bytes
try:
str(b"\x23\x20", "ascii")
ascii = lambda x: str(x, "ascii") # Python 3
- encode = lambda x: x.encode()
except:
ascii = lambda x: str(x) # Python 2
- encode = lambda x: x
def get_outfile_name(base, count):
@@ -93,7 +91,7 @@ for directory in dirs:
FIL... |
Instantiate Allocate for wchar32.
Needed for TUtf32String. | @@ -51,6 +51,7 @@ namespace NDetail {
template char* Allocate<char>(size_t oldLen, size_t newLen, TStringData* oldData);
template wchar16* Allocate<wchar16>(size_t oldLen, size_t newLen, TStringData* oldData);
+ template wchar32* Allocate<wchar32>(size_t oldLen, size_t newLen, TStringData* oldData);
void Deallocate(voi... |
Save minidump files if mongodb crashes during test | @@ -302,6 +302,43 @@ functions:
permissions: public-read
content_type: ${content_type|text/plain}
display_name: "orchestration.log"
+ # Gather and archive mongo coredumps.
+ - command: shell.exec
+ params:
+ working_dir: "mongoc"
+ script: |
+ # Find all core files from mongodb in orchestration and move to mongoc
+ DIR... |
Add hackish way to use xoroshiro random number generator with thread local state | #include <3rdparty/xxhash.h>
#include <3rdparty/cJSON.h>
+#include <3rdparty/xoroshiro.h>
#include "kvdb_rest.h"
#include "kvdb_params.h"
@@ -694,6 +695,53 @@ out:
return err;
}
+static __thread int xrand_initialized;
+static __thread uint64_t xrand_state[2];
+
+static void
+xrand_init(uint64_t seed)
+{
+ xrand_initial... |
Change 'a!=a' to std::isnan() to fix Sonar "bug", added infinity checks | @@ -145,7 +145,7 @@ fillPixels4 (Array2D<unsigned int> &pi,
{
ph[y][x].setBits (rand.nexti());
}
- while (ph[y][x].isNan());
+ while (ph[y][x].isNan() || ph[y][x].isInfinity());
union {int i; float f;} u;
@@ -154,7 +154,7 @@ fillPixels4 (Array2D<unsigned int> &pi,
u.i = rand.nexti();
pf[y][x] = u.f;
}
- while (pf[y][x]... |
schema compile BUGFIX compiling derived decimal types with range
fraction-digits value was not correctly passed into the derived types,
which was causing segmentation faults. | @@ -2560,7 +2560,9 @@ lys_compile_type_(struct lysc_ctx *ctx, struct lysp_node *context_node_p, uint16
}
return LY_EVALID;
}
- } else if (type_p->fraction_digits) {
+ dec->fraction_digits = type_p->fraction_digits;
+ } else {
+ if (type_p->fraction_digits) {
/* fraction digits is prohibited in types not directly derive... |
Updated Java installation instruction | @@ -214,11 +214,11 @@ The CMSIS-Zone utility is part of the <a href="https://github.com/ARM-software/c
The following steps explain the setup of an Eclipse enviornment with CMSIS-Zone:
-\todo the setup of the Java Runtime Environment is unclear as the term JRE 1.8 is not used on the Oracle web pages
-
- 1. Get and insta... |
fix incompatibilities with upstream/master changes in marsh.c | @@ -291,19 +291,18 @@ void janet_marshal_janet(JanetMarshalContext *ctx, Janet x) {
janet_table_put(&st->seen, x, janet_wrap_integer(st->nextid++))
-static int marshal_one_abstract(MarshalState *st, Janet x, int flags) {
+static void marshal_one_abstract(MarshalState *st, Janet x, int flags) {
const JanetAbstractType *... |
update var patch for 2.1.2 | -diff -Naur ndoutils-2.0.0.old/config/ndo2db.cfg-sample.in ndoutils-2.0.0/config/ndo2db.cfg-sample.in
---- ndoutils-2.0.0.old/config/ndo2db.cfg-sample.in 2014-04-16 11:30:01.808975064 +0200
-+++ ndoutils-2.0.0/config/ndo2db.cfg-sample.in 2014-04-16 12:01:34.520376575 +0200
+--- ndoutils-2.1.2/config/ndo2db.cfg-sample.i... |
Simplify submissions | @@ -57,31 +57,22 @@ namespace Miningcore.Blockchain.Ergo
return step;
}
- protected bool RegisterSubmit(string extraNonce1, string extraNonce2, string nTime, string nonce)
+ protected bool RegisterSubmit(string nTime, string nonce)
{
- var key = nonce;
-
- //var key = new StringBuilder()
- // .Append(extraNonce1)
- // ... |
Fix issue with default value for await input event | @@ -47,6 +47,12 @@ const eventHandlers = {
if (!handler.id) {
throw new Error(`Event handler ${path} is missing id`);
}
+ if (handler.fields) {
+ // Convert fields to plain javascript object rather than proxy
+ // fixes an issue where creating a new AWAIT_INPUT event
+ // would set default value as an object rather tha... |
Use origin/dev config.yml | @@ -12,7 +12,7 @@ parameters:
executors:
main-env:
docker:
- - image: ucbbar/chipyard-image:1.0.1
+ - image: ucbbar/chipyard-ci-image:9c650dea
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
@@ -112,7 +112,7 @@ commands:
default: "run-tests.sh"
timeout:
type: string
- default: "20m"
+ default: "... |
[mod_wolfssl] compile fix for OpenWRT | #include <wolfssl/options.h>
#include <wolfssl/ssl.h>
+#ifdef HAVE_OCSP
+#include <wolfssl/ocsp.h>
+#endif
static char global_err_buf[WOLFSSL_MAX_ERROR_SZ];
#undef ERR_error_string
@@ -617,7 +620,7 @@ mod_wolfssl_cert_is_active (const buffer *b)
if (NULL == crt) return 0;
const WOLFSSL_ASN1_TIME *notBefore = wolfSSL_X5... |
tests: fix kdbEnsure test | @@ -113,7 +113,7 @@ TEST_F (Ensure, GlobalRemount)
KeySet ks;
kdb.get (ks, newRoot);
- EXPECT_EQ (newRoot.getMeta<std::string> ("error/number"), "142") << "spec plugin should have produced error";
+ EXPECT_EQ (newRoot.getMeta<std::string> ("error/number"), "C03200") << "spec plugin should have produced error";
}
}
|
sync upstream CMAKE file | @@ -236,6 +236,10 @@ IF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
MESSAGE("LIBMNL found: " ${MNL_LIB})
ENDIF()
FIND_LIBRARY(SCTP_LIB sctp)
+ IF(EXISTS "/proc/sys/net/mptcp/mptcp_enabled")
+ MESSAGE(STATUS "MPTCP found")
+ ADD_DEFINITIONS(-DMPTCP_SUPPORT)
+ ENDIF()
ENDIF()
CHECK_INCLUDE_FILE(jansson.h HAVE_JANSSON_H)
|
test(ethereum): Add 001CreateWallet_0009CreateWalletWithInternalGeneration | @@ -254,6 +254,24 @@ START_TEST(test_001CreateWallet_0008CreateOneTimeWalletFailureProtocolUnknown)
}
END_TEST
+START_TEST(test_001CreateWallet_0009CreateWalletWithInternalGeneration)
+{
+ BSINT32 rtnVal;
+ BoatEthWalletConfig wallet = get_ethereum_wallet_settings();
+ extern BoatIotSdkContext g_boat_iot_sdk_context;
+... |
ECDSA_SIG_set0: r and s parameters cannot be NULL
Fixes | @@ -1347,8 +1347,8 @@ const BIGNUM *ECDSA_SIG_get0_s(const ECDSA_SIG *sig);
/** Setter for r and s fields of ECDSA_SIG
* \param sig pointer to ECDSA_SIG structure
- * \param r pointer to BIGNUM for r (may be NULL)
- * \param s pointer to BIGNUM for s (may be NULL)
+ * \param r pointer to BIGNUM for r
+ * \param s point... |
[persistence] removed the useless settings.use_persistence. | @@ -231,9 +231,6 @@ struct settings {
bool allow_detailed; /* detailed stats commands are allowed */
int reqs_per_event; /* Maximum number of io to process on each io-event. */
bool use_cas;
-#ifdef ENABLE_PERSISTENCE
- bool use_persistence;
-#endif
enum protocol binding_protocol;
int backlog;
size_t item_size_max; /* ... |
guest: quick fix for copy_from/to_vm
h_ptr need update from second page walk | @@ -148,6 +148,7 @@ int copy_from_vm(struct vm *vm, void *h_ptr, uint64_t gpa, uint32_t size)
g_ptr = HPA2HVA(hpa);
memcpy_s(h_ptr, len, g_ptr, len);
gpa += len;
+ h_ptr += len;
size -= len;
} while (size > 0);
@@ -176,6 +177,7 @@ int copy_to_vm(struct vm *vm, void *h_ptr, uint64_t gpa, uint32_t size)
g_ptr = HPA2HVA(h... |
npm-api: making iswriter more defensive | @@ -192,7 +192,7 @@ export function makeResource(ship: string, name: string) {
}
export const isWriter = (group: Group, resource: string, ship: string) => {
- const graph = group.tags?.graph;
+ const graph = group?.tags?.graph;
const writers: string[] | undefined = graph && (graph[resource] as any)?.writers;
const admi... |
OcDeviceMiscLib: Fix NULL pointer freeing | @@ -184,9 +184,11 @@ ReloadPciRom (
}
}
+ if (DecompressedImageBuffer != NULL) {
FreePool (DecompressedImageBuffer);
}
}
+ }
RomBarOffset = RomBarOffset + ImageSize;
ImageIndex++;
|
BugID:19174429: fix the build error in asr6501 | @@ -7,7 +7,7 @@ $(NAME)_VERSION := 1.0.0
$(NAME)_SUMMARY := driver & sdk for platform/mcu cy8c4147
$(NAME)_COMPONENTS += arch_armv6m
-$(NAME)_COMPONENTS += newlib_stub rhino
+$(NAME)_COMPONENTS += rhino
GLOBAL_INCLUDES += ../../arch/arm/armv6m/gcc/m0
@@ -24,8 +24,7 @@ else
GLOBAL_CFLAGS += -mcpu=cortex-m0plus \
-mlittl... |
tests/rtdl: don't hardcode paths to libraries | #define LIBBAR "libnative-bar.so"
#else
#define LDSO_PATTERN "ld.so"
-// Temporarily hardcode the paths to work around issue #584.
-#define LIBFOO "tests/rtdl/dl_iterate_phdr/libfoo.so"
-#define LIBBAR "tests/rtdl/dl_iterate_phdr/libbar.so"
+#define LIBFOO "libfoo.so"
+#define LIBBAR "libbar.so"
#endif
struct result {
|
stm32/dma: Initialise all members of DMA structs for H7 MCUs. | @@ -85,7 +85,7 @@ struct _dma_descr_t {
static const DMA_InitTypeDef dma_init_struct_spi_i2c = {
#if defined(STM32F4) || defined(STM32F7)
.Channel = 0,
- #elif defined(STM32L4)
+ #elif defined(STM32H7) || defined(STM32L4)
.Request = 0,
#endif
.Direction = 0,
@@ -95,7 +95,7 @@ static const DMA_InitTypeDef dma_init_struc... |
Update version string to prepare for 4.9.1 release. | #define MOD_WSGI_MAJORVERSION_NUMBER 4
#define MOD_WSGI_MINORVERSION_NUMBER 9
#define MOD_WSGI_MICROVERSION_NUMBER 1
-#define MOD_WSGI_VERSION_STRING "4.9.1.dev1"
+#define MOD_WSGI_VERSION_STRING "4.9.1"
/* ------------------------------------------------------------------------- */
|
moba: use ! for bool instead of == 0 | @@ -377,7 +377,7 @@ int main_moba(int argc, char* argv[argc])
unmap_cfl(DIMS, ksp_dims, kspace_data);
- if (0 == md_check_compat(DIMS, COIL_FLAG, ksp_dims, pat_dims))
+ if (!md_check_compat(DIMS, COIL_FLAG, ksp_dims, pat_dims))
error("pattern not compatible with kspace dimensions\n");
if (-1 == restrict_fov)
|
BUFR decode memory leak: associatedFieldSignificanceAccessor | @@ -1777,7 +1777,8 @@ static int adding_extra_key_attributes(grib_handle* h)
return (!skip);
}
-static grib_accessor* create_accessor_from_descriptor(grib_accessor* a,grib_accessor* attribute,grib_section* section,long ide,long subset,int dump,int count,int add_extra_attributes)
+static grib_accessor* create_accessor_f... |
fix multiple leaks in mountpoint parsing | @@ -525,9 +525,14 @@ static bool parseAndAddMountpoint (KeySet * mountpoints, KeySet * modules, KeySe
"The mountpoint '%s' (defined at '%s') is not allowed. Everything below '" KDB_SYSTEM_ELEKTRA
"' is reserved for use by Elektra.",
keyBaseName (root), keyName (root));
+
+ keyDel (elektraRoot);
return false;
}
+ keyDel... |
test_unit_repair.py: Move mock for RepairMissingExtraneous
Since only one test method was using this mock, move it to that test method. | @@ -24,17 +24,6 @@ class RepairTestCase(GpTestCase):
self.subject = Repair(self.context, "issuetype", "some desc")
self.repair_sql_contents = ["some sql1", "some sql2"]
- extra_missing_repair_obj = Mock(spec=['get_segment_to_oid_mapping', 'get_delete_sql'])
- extra_missing_repair_obj.get_segment_to_oid_mapping.return_v... |
multihop,flounder: reverting a change | @@ -455,8 +455,8 @@ finished_recv drvn ifn typedefs mtype mn msgargs
C.Ex $ C.CallInd handler (bindvar:args)]
[C.Ex $ C.Assignment (C.FieldOf message_chanstate "token") binding_incoming_token,
C.Ex $ C.Call "flounder_support_trigger_chan" [C.AddressOf message_chanstate],
- C.Ex $ C.Assignment (C.Variable "no_register")... |
int_ctx_new(): Revert extra OPENSSL_init_crypto() call | #include <openssl/dh.h>
#include <openssl/rsa.h>
#include <openssl/kdf.h>
-#include "crypto/cryptlib.h"
+#include "internal/cryptlib.h"
#ifndef FIPS_MODULE
# include "crypto/asn1.h"
#endif
@@ -199,7 +199,6 @@ static EVP_PKEY_CTX *int_ctx_new(OSSL_LIB_CTX *libctx,
}
#ifndef FIPS_MODULE
if (keytype != NULL) {
- OPENSSL_i... |
hal: put rodata into dram for hal functions | @@ -10,17 +10,17 @@ entries:
rtc_sleep (noflash_text)
rtc_time (noflash_text)
rtc_wdt (noflash_text)
- spi_hal_iram (noflash_text)
- spi_slave_hal_iram (noflash_text)
+ spi_hal_iram (noflash)
+ spi_slave_hal_iram (noflash)
if UART_ISR_IN_IRAM = y:
- uart_hal_iram (noflash_text)
+ uart_hal_iram (noflash)
else:
uart_hal_... |
Try fixes on initial fuzzer. | @@ -1066,8 +1066,8 @@ static int stress_or_fuzz_test(picoquic_fuzz_fn fuzz_fn, void * fuzz_ctx, uint64
ret = -1;
}
else {
- DBG_PRINTF("Stress complete after simulating %3f s. in %3f s., returns %d\n",
- run_time_seconds, wall_time_seconds, ret);
+ DBG_PRINTF("Stress complete after simulating %3f s. in %3f s., returns ... |
RTOS2/RTX5: Fixed "unused parameter" warnings in Cortex-A default exception handler implementation. | void CDAbtHandler(uint32_t DFSR, uint32_t DFAR, uint32_t LR) {
uint32_t FS = (DFSR & (1 << 10)) >> 6 | (DFSR & 0x0f); //Store Fault Status
+ (void)DFAR;
+ (void)LR;
switch(FS) {
//Synchronous parity errors - retry
@@ -87,6 +89,8 @@ void CDAbtHandler(uint32_t DFSR, uint32_t DFAR, uint32_t LR) {
void CPAbtHandler(uint32_... |
BugID:25059354: Fix hal wifi compile issue | @@ -186,6 +186,7 @@ static void tcpip_cli_init(void)
aos_cli_register_commands(&tcpip_cli_cmd[0],sizeof(tcpip_cli_cmd) / sizeof(struct cli_command));
}
+#if AOS_NET_WITH_WIFI
static void wifi_debug_cmd(char *buf, int len, int argc, char **argv)
{
hal_wifi_start_debug_mode(NULL);
@@ -224,8 +225,8 @@ static void hal_wifi... |
Fix -Wunused-variable warnings. | @@ -525,7 +525,6 @@ void celix_arrayList_removeSize(celix_array_list_t *list, size_t val) {
}
void celix_arrayList_clear(celix_array_list_t *list) {
- unsigned int i;
list->modCount++;
if(list->size > 0) {
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.