message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
xive: Improve/fix EOI of LSIs
Don't try to play games with PQ bits with LSIs, use the normal EOI loads
instead as otherwise things won't work on P9 DD1 with PHB4 due to
erratas on all non-EOI ESB operations. | @@ -2383,22 +2383,29 @@ static void xive_source_eoi(struct irq_source *is, uint32_t isn)
* a clear of both P and Q and returns the old Q.
*
* This allows us to then do a re-trigger if Q was set
- rather than synthetizing an interrupt in software
+ * rather than synthetizing an interrupt in software
*/
if (s->flags & XI... |
fix cache_memlimit bug for > 4G values
The argument to *_adjust was size_t, but the input value being multiplied from
was a uint, so this does the appropriate cast. | @@ -3809,7 +3809,7 @@ static void process_memlimit_command(conn *c, token_t *tokens, const size_t ntok
if (memlimit < 8) {
out_string(c, "MEMLIMIT_TOO_SMALL cannot set maxbytes to less than 8m");
} else {
- if (slabs_adjust_mem_limit(memlimit * 1024 * 1024)) {
+ if (slabs_adjust_mem_limit((size_t) memlimit * 1024 * 102... |
Force removal of existing RConfigBattery | @@ -3924,6 +3924,11 @@ static int sqliteLoadAllSensorsCallback(void *user, int ncols, char **colval , c
item = sensor.addItem(DataTypeUInt16, RConfigPending);
item->setValue(item->toNumber() | R_PENDING_MODE);
}
+
+ if (sensor.modelId() == QLatin1String("lumi.switch.n0agl1"))
+ {
+ sensor.removeItem(RConfigBattery);
+ ... |
fix(shield): BFO9000 uses USB on right | if SHIELD_BFO9000_LEFT
-config ZMK_SPLIT_BLE_ROLE_CENTRAL
- default y
-
config ZMK_KEYBOARD_NAME
default "BFO9000 Left"
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+
endif
if SHIELD_BFO9000_RIGHT
@@ -16,6 +16,9 @@ if SHIELD_BFO9000_RIGHT
config ZMK_KEYBOARD_NAME
default "BFO9000 Right"
+config USB
+ default y
+
endi... |
honggfuzz.h: description for defer{} | @@ -330,7 +330,23 @@ typedef struct {
} linux;
} run_t;
-/* Go-style defer implementation */
+/*
+ * Go-style defer scoped implementation
+ * Example of use:
+ *
+ * {
+ * int fd = open(fname, O_RDONLY);
+ * if (fd == -1) {
+ * error(....);
+ * return;
+ * }
+ * defer { close(fd; };
+ * ssize_t sz = read(fd, buf, sizeo... |
Indent comments to 12*4 spaces | @@ -301,11 +301,10 @@ mem_free(void* ptr) {
if ((block->size & mem_alloc_bit) && block->next == NULL) {
/*
* Clear allocated bit before entering back to free list
- * List will automatically take care for fragmentation and mix segments back
+ * List will automatically take care for fragmentation
*/
block->size &= ~mem_... |
fix segfault on raspberry pi | @@ -114,7 +114,8 @@ get_interface_index(int sock)
for (interface = ifs; interface != NULL; interface = interface->ifa_next) {
if (!(interface->ifa_flags & IFF_UP) || interface->ifa_flags & IFF_LOOPBACK)
continue;
- if (addr.ss_family == interface->ifa_addr->sa_family) {
+ if (interface->ifa_addr &&
+ addr.ss_family == ... |
tests/thread/stress_schedule.py: Assign globals before running test.
When threading is enabled without the GIL then there can be races between
the threads accessing the globals dict. Avoid this issue by making sure
all globals variables are allocated before starting the threads. | @@ -14,7 +14,11 @@ except AttributeError:
gc.disable()
+_NUM_TASKS = 10000
+_TIMEOUT_MS = 10000
+
n = 0 # How many times the task successfully ran.
+t = None # Start time of test, assigned here to preallocate entry in globals dict.
def task(x):
@@ -34,9 +38,6 @@ def thread():
for i in range(8):
_thread.start_new_thread... |
sysdeps/managarm: convert sys_epoll_pwait to helix_ng | @@ -1178,8 +1178,6 @@ int sys_epoll_pwait(int epfd, struct epoll_event *ev, int n,
__ensure(timeout >= 0 || timeout == -1); // TODO: Report errors correctly.
SignalGuard sguard;
- HelAction actions[4];
- globalQueue.trim();
managarm::posix::CntRequest<MemoryAllocator> req(getSysdepsAllocator());
req.set_request_type(ma... |
groups: only prompt to delete on ownership
Fixes | @@ -34,10 +34,12 @@ function DeleteGroup(props: {
const history = useHistory();
const onDelete = async () => {
const name = props.association['group-path'].split('/').pop();
- if (prompt(`To confirm deleting this group, type ${name}`) === name) {
+ if (props.owner) {
+ const shouldDelete = (prompt(`To confirm deleting ... |
refactors _http_req_respond to use the h2o memory pool and defer cleanup
possibly fixing a use after free | @@ -272,6 +272,24 @@ _http_req_dispatch(u3_hreq* req_u, u3_noun req)
req));
}
+typedef struct _u3_hgen {
+ h2o_generator_t neg_u;
+ h2o_iovec_t bod_u;
+ u3_hreq* req_u;
+ u3_hhed* hed_u;
+} u3_hgen;
+
+/* _http_hgen_dispose(): dispose response generator and buffers
+*/
+static void
+_http_hgen_dispose(void* ptr_v)
+{
+... |
GRIB: Add new MARS class 'gw' - Global Wildfire | 36 cr Copernicus Atmosphere Monitoring Service (CAMS) Research
37 rr Copernicus Regional ReAnalysis (CARRA/CERRA)
38 ul Project ULYSSES
+39 gw Global Wildfire Information System
99 te Test
100 at Austria
101 be Belgium
|
Rollback: r4238276
Result revision: None
[][] [diff-resolver:danlark]
Sandbox task:
Task author: danlark@
Description: rollback
Note: mandatory check (NEED_CHECK) was skipped | #include <catboost/libs/helpers/exception.h>
#include <util/string/split.h>
-#include <util/string/iterator.h>
ui32 TPoolColumnsMetaInfo::CountColumns(const EColumn columnType) const {
return CountIf(
@@ -93,7 +92,7 @@ TVector<TString> TPoolColumnsMetaInfo::GenerateFeatureIds(const TMaybe<TString>&
}
} else if (header.... |
SAFETY: disallowing controls on brake switch as this is the main cancellation bit considered by cruise in pcm | @@ -27,8 +27,8 @@ static void honda_rx_hook(CAN_FIFOMailBox_TypeDef *to_push) {
// exit controls on brake press
if ((to_push->RIR>>21) == 0x17C) {
- // bit 50
- if (to_push->RDHR & 0x200000) {
+ // bit 32 or 53
+ if (to_push->RDHR & 0x200001) {
controls_allowed = 0;
}
}
|
Tweak README and mention Android | @@ -3,7 +3,9 @@ TrustKit
[](https://circleci.com/gh/datatheorem/TrustKit) [](https://github.com/Carthage/Carthage) [
{
Type *x, *y;
+ int atid, btid;
size_t i;
int ret;
@@ -786,9 +787,13 @@ tyeq_rec(Type *a, Type *b, Bitset *avisited, Bitset *bvisited, int search)
if (bshas(avisited, a->tid) && bshas(bvisited, b->tid))
return 1;
+ if (b... |
Fixes RP2040 buffer reallocation overrun problem
Fix running out of memory on a device that repeatedly closes and opens an endpoint. This is a workaround at the moment. A better solution would be to implement reclaiming usb buffer memory when closing an endpoint (i.e. implement dcd_edpt_close). | @@ -164,9 +164,13 @@ static void _hw_endpoint_init(struct hw_endpoint *ep, uint8_t ep_addr, uint wMax
ep->endpoint_control = &usb_dpram->ep_ctrl[num-1].out;
}
- // Now alloc a buffer and fill in endpoint control register
+ // Now if it hasn't already been done
+ //alloc a buffer and fill in endpoint control register
+ ... |
fix type convert missing "Oid" system attribute | @@ -89,6 +89,8 @@ static Datum convert_range_recv(PG_FUNCTION_ARGS);
static RangeConvert *get_convert_range_io_data(RangeConvert *ac, Oid rngtypid, MemoryContext context, bool is_send);
static void free_range_convert(RangeConvert *ac);
+static TupleTableSlot* convert_copy_tuple_oid(TupleTableSlot *dest, TupleTableSlot ... |
BugID:23251508: fixed bug setsockopt() set TCP_NODELAY TCP_KEEPALIVE ... with a listen state TCP will crash
commit
Author: goldsimon
Date: Mon Nov 28 15:50:59 2016 +0100 | @@ -2578,6 +2578,10 @@ lwip_getsockopt_impl(int s, int level, int optname, void *optval, socklen_t *opt
case IPPROTO_TCP:
/* Special case: all IPPROTO_TCP option take an int */
LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, *optlen, int, NETCONN_TCP);
+ if (sock->conn->pcb.tcp->state == LISTEN) {
+ done_socket(sock);
+ ... |
Ensure tests expected to fail actually fail | @@ -524,16 +524,18 @@ static int aead_multipart_internal_func( int key_type_arg, data_t *key_data,
( input_data->x + data_true_size ),
tag_length );
- if( status != PSA_SUCCESS )
+ if( expect_valid_signature )
+ PSA_ASSERT( status );
+ else
{
- if( !expect_valid_signature )
+ TEST_ASSERT( status != PSA_SUCCESS );
+
+ i... |
Remove comment and use correct tables | @@ -283,11 +283,6 @@ static bool invokeFromClass(VM *vm, ObjClass *klass, ObjString *name,
static bool invoke(VM *vm, ObjString *name, int argCount) {
Value receiver = peek(vm, argCount);
-// if (!IS_OBJ(receiver)) {
-// runtimeError(vm, "Can only invoke on objects.");
-// return false;
-// }
-
if (!IS_OBJ(receiver)) {... |
py/emitnative: Optimise for iteration asm code for non-debug build.
In non-debug mode MP_OBJ_STOP_ITERATION is zero and comparing something to
zero can be done more efficiently in assembler than comparing to a non-zero
value. | @@ -1737,8 +1737,13 @@ STATIC void emit_native_for_iter(emit_t *emit, mp_uint_t label) {
emit_get_stack_pointer_to_reg_for_pop(emit, REG_ARG_1, MP_OBJ_ITER_BUF_NSLOTS);
adjust_stack(emit, MP_OBJ_ITER_BUF_NSLOTS);
emit_call(emit, MP_F_NATIVE_ITERNEXT);
+ #ifdef NDEBUG
+ MP_STATIC_ASSERT(MP_OBJ_STOP_ITERATION == 0);
+ AS... |
zephyr: zmake: drop zephyr-chrome from DTS_ROOT
Needed to clear file conflicts.
BRANCH=none
TEST=zmake testall | @@ -91,12 +91,7 @@ class Zmake:
base_config = zmake.build_config.BuildConfig(
environ_defs={'ZEPHYR_BASE': str(zephyr_base),
'PATH': '/usr/bin'},
- cmake_defs={'DTS_ROOT': '{};{}'.format(
- # TODO(b/177003034): remove zephyr-chrome from here
- # once all dts files have migrated to platform/ec.
- module_paths['zephyr-ch... |
Hall newdm action: ship names are sorted by alphabetical order. | =/ nom/name
%^ rsh 3 1
%+ roll
- %+ sort (weld ~(tap in sis) [our.bol ~])
- |= [a=ship b=ship]
- ^- ?
- (lth a b)
- |= {p/ship nam/name}
+ %+ sort %+ turn (weld ~(tap in sis) [our.bol ~])
+ |= p/ship
+ ^- cord
+ (scot %p p)
+ aor
+ |= {p/cord nam/name}
^- @tas
- (crip "{(trip `@t`nam)}.{(slag 1 (trip (scot %p p)))}")
+... |
fix: make features on plugin_descriptor_t const | @@ -27,7 +27,7 @@ typedef struct clap_plugin_descriptor {
// They can be matched by the host indexer and used to classify the plugin.
// The array of pointers must be null terminated.
// For some standard features see plugin-features.h
- const char **features;
+ const char *const *features;
} clap_plugin_descriptor_t;
... |
Fix dex test case. | @@ -99,7 +99,7 @@ int main(int argc, char** argv)
assert_true_rule_blob(
"import \"dex\" rule test { condition: \
- dex.map_list.map_item[1].type == dex.TYPE_HEADER_ITEM \
+ dex.map_list.map_item[0].type == dex.TYPE_HEADER_ITEM \
}",
DEX_FILE);
|
board/twinkie/simpletrace.c: Format with clang-format
BRANCH=none
TEST=none | @@ -55,14 +55,10 @@ static const char * const data_msg_name[] = {
};
static const char *const svdm_cmd_name[] = {
- [CMD_DISCOVER_IDENT] = "DISCID",
- [CMD_DISCOVER_SVID] = "DISCSVID",
- [CMD_DISCOVER_MODES] = "DISCMODE",
- [CMD_ENTER_MODE] = "ENTER",
- [CMD_EXIT_MODE] = "EXIT",
- [CMD_ATTENTION] = "ATTN",
- [CMD_DP_ST... |
Remove unavailable modules | @@ -25,7 +25,7 @@ These add-on modules are available from other developers; follow the links for m
## Build System Modules
-* [CMake](https://github.com/Geequlim/premake-modules/tree/master/cmake) : CMakeLists exporter for premake
+* [CMake](https://github.com/Jarod42/premake-cmake) : CMakeLists exporter for premake
* ... |
Prettier pointer variable declarations in C
We now do not leave a space after the `*` when declaring a pointer variable.
Before: `TString * x1;`
After: `TString *x1;` | @@ -47,7 +47,12 @@ end
-- @returns A syntactically valid function argument or variable declaration
-- without the comma or semicolon
local function c_declaration(typ, name)
- return string.format("%s %s", ctype(typ), name)
+ local typstr = ctype(typ)
+ if typstr:sub(-1) == "*" then
+ return typstr..name -- Pointers loo... |
[core] fix crash at shutdown w/ certain config
If server.systemd-socket-activation = "enable" and one or more of the
sockets is not listed in lighttpd.conf, then when the server is shutting
down, a buffer from the config file is free()d twice. | @@ -686,6 +686,8 @@ int network_init(server *srv, int stdin_fd) {
force_assert(NULL != srv_socket);
memcpy(srv_socket, srv->srv_sockets_inherited.ptr[i],
sizeof(server_socket));
+ srv_socket->srv_token =
+ buffer_init_buffer(srv_socket->srv_token);
network_srv_sockets_append(srv, srv_socket);
}
}
|
pybricks/nxtdevices/ColorSensor: drop all()
This was a hidden, undocumented debug function that we can remove. | @@ -60,21 +60,6 @@ static mp_obj_t color_obj(pbio_color_t color) {
}
}
-// pybricks.nxtdevices.ColorSensor.all
-STATIC mp_obj_t nxtdevices_ColorSensor_all(mp_obj_t self_in) {
- nxtdevices_ColorSensor_obj_t *self = MP_OBJ_TO_PTR(self_in);
- int32_t all[5];
- pb_device_get_values(self->pbdev, PBIO_IODEV_MODE_NXT_COLOR_SE... |
Fix versioninfo regression on server 2016 | @@ -7888,7 +7888,7 @@ NTSTATUS PhLoadLibraryAsImageResource(
NULL,
&imageBaseSize,
ViewShare,
- WindowsVersion < WINDOWS_10 ? 0 : MEM_MAPPED,
+ WindowsVersion < WINDOWS_10_RS2 ? 0 : MEM_MAPPED,
PAGE_READONLY
);
|
Update IoTjs documentation. | IoT.js is an open source software platform
for Internet of Things with JavaScript.
-More mode detailed information, please check:
+For more mode detailed information, please check:
http://www.iotjs.net
Or shipped [README](..//external/iotjs/README.md) in sources.
@@ -37,7 +37,7 @@ Using menuconfig an example can be use... |
chat-view: send invites when creating chat and group already exists | :~ (create-chat app-path.act security.act allow-history.act)
%- create-group
:* group-path.act
+ app-path.act
security.act
members.act
title.act
==
::
++ create-group
- |= [=path security=rw-security ships=(set ship) title=@t desc=@t]
+ |= [=path app-path=path sec=rw-security ships=(set ship) title=@t desc=@t]
^- (list... |
vere: directly implements utf-32 to utf-8 conversion | @@ -485,11 +485,39 @@ _term_it_set_line(u3_utty* uty_u,
c3_w sap_w)
{
u3_utat* tat_u = &uty_u->tat_u;
- u3_noun txt = u3do("tuft", u3i_words(wor_w, lin_w));
- c3_w byt_w = u3r_met(3, txt);
c3_y* hun_y = (c3_y*)lin_w;
+ c3_w byt_w = 0;
- u3r_bytes(0, byt_w, hun_y, txt);
+ // convert lin_w in-place from utf-32 to utf-8
+... |
[ivshmem] Added support for different struct passed from 32 bit | #pragma alloc_text (PAGE, IVSHMEMEvtDeviceFileCleanup)
#endif
+#ifdef _WIN64
+// 32bit struct for when a 32bit application sends IOCTL codes
+typedef struct IVSHMEM_MMAP32
+{
+ IVSHMEM_PEERID peerID; // our peer id
+ IVSHMEM_SIZE size; // the size of the memory region
+ UINT32 ptr; // pointer to the memory region
+ UIN... |
workaround fault with ssq=inf,scale=0 | @@ -404,6 +404,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
#else
nrm2_compute(n, x, inc_x, &ssq, &scale);
#endif
+ if (fabs(scale) <1.e-300) return 0.;
ssq = sqrt(ssq) * scale;
return ssq;
|
build: rename tmp file for capturing derivation path | @@ -112,12 +112,11 @@ jobs:
run: |
nix-build -A urbit \
--arg enableStatic true \
- --argstr verePace ${{ env.VERE_PACE }} > ./result
- cat ./result
+ --argstr verePace ${{ env.VERE_PACE }} > ./urbit-derivation
+ cat ./urbit-derivation
echo -n "urbit_static=" >> $GITHUB_ENV
- cat ./result >> $GITHUB_ENV
- cat ./result
... |
file copying now uses a 2KB buffer | @@ -711,9 +711,19 @@ long int findLogFileSize()
}
void copyToFile(FILE **fp1, FILE **fp2){
- char ch;
- while((ch = getc(*fp1)) != EOF)
- putc(ch, *fp2);
+ int buffer_size = 2048;
+ char *buf = (char*) malloc(sizeof(char)*buffer_size);
+ if(!buf){
+ fprintf(stderr,"Error creating buffer for debug logging\n");
+ return;... |
Set maskHash when creating parameters. | @@ -567,6 +567,8 @@ RSA_PSS_PARAMS *rsa_pss_params_create(const EVP_MD *sigmd,
mgf1md = sigmd;
if (!rsa_md_to_mgf1(&pss->maskGenAlgorithm, mgf1md))
goto err;
+ if (!rsa_md_to_algor(&pss->maskHash, mgf1md))
+ goto err;
return pss;
err:
RSA_PSS_PARAMS_free(pss);
|
Use event helper functions for connection handle | @@ -451,16 +451,18 @@ esp_conn_set_ssl_buffersize(size_t size, uint32_t blocking) {
*/
esp_conn_p
esp_conn_get_from_evt(esp_cb_t* evt) {
- if (evt->type == ESP_CB_CONN_ACTIVE || evt->type == ESP_CB_CONN_CLOSED) {
- return evt->cb.conn_active_closed.conn;
+ if (evt->type == ESP_CB_CONN_ACTIVE) {
+ return esp_evt_conn_ac... |
Warn on ignored touch event
In theory, this was expected to only happen when a touch event is sent
just before the device is rotated, but some devices do not respect the
encoding size, causing an unexpected mismatch.
Refs <https://github.com/Genymobile/scrcpy/issues/1518> | @@ -166,7 +166,7 @@ public class Controller {
Point point = device.getPhysicalPoint(position);
if (point == null) {
- // ignore event
+ Ln.w("Ignore touch event, it was generated for a different device size");
return false;
}
|
Fix QString::arg indexing to remove warnings.
Resolves | @@ -490,6 +490,9 @@ QvisEngineWindow::UpdateInformation(int index)
// Cyrus Harrison, Tue Jun 24 11:15:28 PDT 2008
// Initial Qt4 Port.
//
+// Kathleen Biagas, Tue Mar 2 15:49:07 PST 2021
+// Fix QString arg indexing.
+//
// ****************************************************************************
void
@@ -528,7 +53... |
Fix `lightlastseeninterval` not displayed via REST API
Using the parameter works, but display via GET on `config` resource doesn't display it. | @@ -1057,6 +1057,7 @@ void DeRestPluginPrivate::configToMap(const ApiRequest &req, QVariantMap &map)
map["networkopenduration"] = gwNetworkOpenDuration;
map["timeformat"] = gwTimeFormat;
map["whitelist"] = whitelist;
+ map["lightlastseeninterval"] = gwLightLastSeenInterval;
map["linkbutton"] = gwLinkButton;
map["portal... |
fix sliderfollow circle fadeout animation | @@ -90,17 +90,21 @@ class Check:
followappear = False
hitvalue = combostatus = 0
- if self.sliders_memory[osu_d["time"]]["done"]:
- return False, None, None, None, None, None, hitvalue, combostatus
-
+ prev_state = self.sliders_memory[osu_d["time"]]["follow state"]
if osu_d["end time"] > osr[3] > osu_d["time"]:
followa... |
fix: should actually return true if string is NULL | @@ -245,7 +245,7 @@ orka_str_to_ntl(
int
orka_str_below_threshold(const char *str, const size_t threshold)
{
- if (NULL == str) return 0;
+ if (NULL == str) return 1;
size_t i=0;
for ( ; i < threshold; ++i) {
|
nxwm: Fix warning about on_exit() dependency | * exit.
*/
-#ifndef CONFIG_SCHED_ONEXIT
-# warning "on_exit() support may be needed (CONFIG_SCHED_ONEXIT)"
+#if CONFIG_LIBC_MAX_EXITFUNS == 0
+# warning "on_exit() support may be needed (CONFIG_LIBC_MAX_EXITFUNS)"
#endif
/**
|
include/uart.h: Format with clang-format
BRANCH=none
TEST=none | @@ -72,8 +72,8 @@ int uart_put_raw(const char *out, int len);
*
* @return EC_SUCCESS, or non-zero if output was truncated.
*/
-__attribute__((__format__(__printf__, 1, 2)))
-int uart_printf(const char *format, ...);
+__attribute__((__format__(__printf__, 1, 2))) int
+uart_printf(const char *format, ...);
/**
* Print fo... |
Demo: remove commented code, and unused macros | @@ -79,15 +79,6 @@ to exclude the API function. */
#define configUSE_RECURSIVE_MUTEXES 1
#define configUSE_TIMERS 1
#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE * 2 )
-/*
-#define INCLUDE_vTaskPrioritySet 1
-#define INCLUDE_uxTaskPriorityGet 1
-#define INCLUDE_vTaskDelete 1
-#define INCLUDE_vTaskClea... |
android: fixing rhoapi.js with wrong regexp | @@ -1122,7 +1122,7 @@ if (typeof(qt) == "undefined"){
// the order is important
var bridgeMapping = [
[/RhoSimulator/ , bridges[rhoPlatform.id.RHOSIMULATOR]],
- [/^(Windows\s+Phone).*Android/ , bridges[rhoPlatform.id.ANDROID] ],
+ [/(?<!Windows\s+Phone.*)Android(?!.*Windows\s+Phone)/, bridges[rhoPlatform.id.ANDROID]],
... |
Allow sizes to be divided | @@ -14,6 +14,7 @@ namespace blit {
constexpr Size(int32_t w, int32_t h) : w(w), h(h) {}
inline Size& operator*= (const float a) { w = static_cast<int32_t>(w * a); h = static_cast<int32_t>(h * a); return *this; }
+ inline Size operator / (const int a) { return Size(w / a, h / a);}
bool empty() { return w <= 0 || h <= 0;... |
board/driblee/board.h: Format with clang-format
BRANCH=none
TEST=none | @@ -117,11 +117,7 @@ enum adc_channel {
ADC_CH_COUNT
};
-enum temp_sensor_id {
- TEMP_SENSOR_1,
- TEMP_SENSOR_2,
- TEMP_SENSOR_COUNT
-};
+enum temp_sensor_id { TEMP_SENSOR_1, TEMP_SENSOR_2, TEMP_SENSOR_COUNT };
/* List of possible batteries */
enum battery_type {
|
feat[#1112]:Delete useless debug information | @@ -288,7 +288,6 @@ static BOAT_RESULT Boat_private_ecdsa_sign(mbedtls_ecdsa_context *ctx,
//t: temporary random number to counter side-channel attacks
int boat_ecdsPrefix;
- BoatLog(BOAT_LOG_CRITICAL, "===> enter Boat_private_ecdsa_sign");
/* Fail cleanly on curves such as Curve25519 that can't be used for ECDSA */
//... |
Enable Linux for qword | @@ -70,7 +70,6 @@ elif host_machine.system() == 'managarm'
internal_conf.set('MLIBC_MAP_FILE_WINDOWS', true)
subdir('sysdeps/managarm')
elif host_machine.system() == 'qword'
- disable_linux_option = true
rtdl_include_dirs += include_directories('sysdeps/qword/include')
libc_include_dirs += include_directories('sysdeps/... |
Add -latomic only for architectures where needed | @@ -677,7 +677,7 @@ my %targets = (
####
# *-generic* is endian-neutral target, but ./config is free to
# throw in -D[BL]_ENDIAN, whichever appropriate...
- "linux-generic" => {
+ "linux-generic32" => {
inherit_from => [ "BASE_unix" ],
CC => "gcc",
CXX => "g++",
@@ -699,18 +699,17 @@ my %targets = (
shared_ldflag => su... |
update requirements to cover go 1.19 | @@ -36,12 +36,11 @@ The distros that AppScope supports all require the use of `/tmp`, `/dev/shm`, an
**Only** these runtimes are supported:
-- Open JVM 7 and later, Oracle JVM 7 and later, go1.8 through go1.18.
+- Open JVM 7 and later, Oracle JVM 7 and later, go1.9 through go1.19.
AppScope cannot:
- Unload the libscope... |
initialize thread_delayed_free field atomically | @@ -122,7 +122,7 @@ mi_heap_t _mi_heap_main = {
&tld_main,
MI_SMALL_PAGES_EMPTY,
MI_PAGE_QUEUES_EMPTY,
- NULL,
+ ATOMIC_VAR_INIT(NULL),
0, // thread id
MI_INIT_COOKIE, // initial cookie
{ MI_INIT_COOKIE, MI_INIT_COOKIE }, // the key of the main heap can be fixed (unlike page keys that need to be secure!)
|
Disable receive from dnstest.c:dnsReply(). | @@ -192,7 +192,7 @@ dnsReply(void** state)
assert_int_not_equal(-1, fd);
assert_int_equal(0, CreateQuery(&pkt));
assert_int_not_equal(-1, sendToNS(fd, (char *)&pkt,
- sizeof(pkt) + sizeof(question), &sa, 1));
+ sizeof(pkt) + sizeof(question), &sa, 0));
truncFile();
close(fd);
}
|
sim: Add a readable header to test images
Rather than just make the test images entirely pseudorandom data, add a
small textual header to the front that describes some key information
about each image. This can be helpful when debugging, to determine what
exactly is in each image slot. | @@ -4,6 +4,7 @@ use rand::{
Rng, SeedableRng, XorShiftRng,
};
use std::{
+ io::{Cursor, Write},
mem,
slice,
};
@@ -1097,6 +1098,15 @@ fn install_image(flash: &mut SimMultiFlash, slot: &SlotInfo, len: usize,
let mut b_img = vec![0; len];
splat(&mut b_img, offset);
+ // Add some information at the start of the payload to... |
Fix compilation error in spinbody.c, declare int outside for loop. | @@ -262,6 +262,7 @@ void ReadOptionsSpiNBody(BODY *body,CONTROL *control,FILES *files,OPTIONS *optio
//============================ End Read Inputs =================================
void InitializeBodySpiNBody(BODY *body,CONTROL *control,UPDATE *update,int iBody,int iModule) {
+ int iTmpBody = 0;
if (body[iBody].bSpiNB... |
minor: remove obsolete comment
[ci skip] | //
//
-// Simulates SPI mode SD card. Currently read-only. When the simulator is
-// initialized, it opens the file specified by the argument +block=<filename>
+// Simulates SPI mode SD card. When the simulator is initialized, it opens the
+// file specified by the argument +block=<filename>
// http://elm-chan.org/docs... |
Workaround for silly warning | @@ -172,7 +172,7 @@ for table in hlir.tables:
#{ void show_params_by_action_id(char* out, int table_id, int action_id, const void* entry) {
for table in hlir.tables:
if 'key' not in table or table.key_length_bits == 0:
- #[ if (table_id == TABLE_${table.name}) { sprintf(out, ""); return; }
+ #[ if (table_id == TABLE_${... |
Cascading: Fix tutorial examples | @@ -21,6 +21,8 @@ Configuration in the **system** namespace is readable for all users and the same
In the default Elektra installation only an administrator can update configuration here:
```sh
+# Backup-and-Restore:/sw/tutorial
+
kdb get /sw/tutorial/cascading/#0/current/test
# RET: 1
# STDERR:Did not find key
@@ -58,... |
fix direction of sliderb | @@ -130,7 +130,7 @@ class SliderManager:
sum_y = (1 - t) * slider.bezier_info[1][0].y + t * slider.arrow_pos.y
cur_pos = Position(sum_x, sum_y)
- vector_x1, vector_y1 = slider.prev_pos.x - cur_pos.x, slider.prev_pos.y - cur_pos.y
+ vector_x1, vector_y1 = -(slider.prev_pos.x - cur_pos.x), -(slider.prev_pos.y - cur_pos.y... |
fix rt_memcpy buf in RT_USING_TINY_SIZE enable | @@ -220,9 +220,18 @@ void *rt_memcpy(void *dst, const void *src, rt_ubase_t count)
{
#ifdef RT_USING_TINY_SIZE
char *tmp = (char *)dst, *s = (char *)src;
+ rt_ubase_t len;
+ if(tmp <= s || tmp > (s + count))
+ {
while (count--)
*tmp ++ = *s ++;
+ }
+ else
+ {
+ for(len = count; len > 0; len --)
+ tmp[len -1] = s[len - ... |
Fix export of provided EC keys
The exporter freed a buffer too soon, and there were attempts to use
its data later, which was overwritten by something else at that
point. | @@ -352,13 +352,10 @@ int ec_export(void *keydata, int selection, OSSL_CALLBACK *param_cb,
if ((selection & OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS) != 0)
ok = ok && otherparams_to_params(ec, tmpl, NULL);
- if (!ok
- || (params = OSSL_PARAM_BLD_to_param(tmpl)) == NULL)
- goto err;
-
+ if (ok && (params = OSSL_PARAM_BLD_to... |
Update sedem image
r6151855 sedem release: add info option with table rendering, move old info to list
r6152706 SEDEM - Add Duty ABC group to owners
Note: mandatory check (NEED_CHECK) was skipped | },
"sedem": {
"formula": {
- "sandbox_id": 571985643,
+ "sandbox_id": 576334852,
"match": "SEDEM archive"
},
"executable": {
|
DOCS: update location of gpfdist transform example. | <title>XML Transformation Examples</title>
<body>
<p>The following examples demonstrate the complete process for different types of XML data and
- STX transformations. Files and detailed instructions associated with these examples are in
- <codeph>demo/gpfdist_transform.tar.gz.</codeph> Read the README file in the <i>B... |
hdlc_input: simplify code using existing functions | @@ -139,8 +139,8 @@ hdlc_input (vlib_main_t * vm,
b0 = vlib_get_buffer (vm, bi0);
b1 = vlib_get_buffer (vm, bi1);
- h0 = (void *) (b0->data + b0->current_data);
- h1 = (void *) (b1->data + b1->current_data);
+ h0 = vlib_buffer_get_current (b0);
+ h1 = vlib_buffer_get_current (b1);
protocol0 = h0->protocol;
protocol1 = ... |
unfied: check for fades in byte 0, check for protocol id in byte 1 | @@ -315,7 +315,7 @@ void rx_serial_find_protocol() {
if (frame_status == FRAME_RX) { // We got something! What is it?
switch (protocol_to_check) {
case RX_SERIAL_PROTOCOL_DSM:
- if (rx_buffer[0] == 0x00 && rx_buffer[1] <= 0x04 && rx_buffer[2] != 0x00) {
+ if (rx_buffer[0] < 4 && (rx_buffer[1] == 0x12 || rx_buffer[1] ==... |
Moving generating CGO header file to the make stage. | @@ -56,21 +56,14 @@ $echo "configuring Go package ..." >> $NXT_AUTOCONF_ERR
$echo -n "checking for Go ..."
$echo "checking for Go ..." >> $NXT_AUTOCONF_ERR
-nxt_go_test="GOPATH=`pwd` CGO_CPPFLAGS='-DNXT_CONFIGURE -I`pwd`/src'\
- \"${NXT_GO}\" build -o build/nxt_go_gen.a --buildmode=c-archive nginext"
-
-if /bin/sh -c "... |
Fix range limit exceeding actual data size in last step | @@ -288,6 +288,7 @@ int CNAME(BLASLONG n, BLASLONG k, FLOAT *a, BLASLONG lda, FLOAT *x, BLASLONG inc
range_m[MAX_CPU_NUMBER - num_cpu - 1] = range_m[MAX_CPU_NUMBER - num_cpu] - width;
range_n[num_cpu] = num_cpu * (((n + 15) & ~15) + 16);
+ if (range_n[num_cpu] > n) range_n[num_cpu] = n;
queue[num_cpu].mode = mode;
queu... |
more correct ui64 -> int seed conversion | @@ -263,7 +263,7 @@ namespace NKernel
FillBuffer(weightDst, 0.0f, size, stream);
FillBuffer(qidCursor, 0, 1, stream);
- int cudaSeed = seed;
+ int cudaSeed = seed + (seed >> 32);
YetiRankGradientImpl<blockSize><<<maxBlocksPerSm * smCount, blockSize, 0, stream>>>(cudaSeed,
bootstrapIter, queryOffsets,
|
trace: update trace call for filters when dropping records. | @@ -140,7 +140,7 @@ void flb_filter_do(struct flb_input_chunk *ic,
/* all records removed, no data to continue processing */
if (out_size == 0) {
/* reset data content length */
- flb_input_chunk_write_at(ic, write_at, "", 0);
+ flb_trace_filter(ic->tracer, (void *)f_ins);
#ifdef FLB_TRACE
// flb_trace_filter_write(f_i... |
Typo in Cmakepresets.json | "NF_FEATURE_RTC": "ON",
"NF_FEATURE_HAS_SDCARD": "ON",
"ESP32_ETHERNET_SUPPORT": "ON",
- "DETH_PHY_RST_GPIO": "12",
+ "ETH_PHY_RST_GPIO": "12",
"ETH_RMII_CLK_OUT_GPIO": "17",
"API_System.IO.FileSystem": "ON",
"API_nanoFramework.Device.OneWire": "ON"
|
refactor: replace strcasestr with strstr | -#define _GNU_SOURCE /* strcasestr */
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
@@ -20,9 +19,9 @@ void on_message(struct slack *client, char payload[], size_t len)
json_extract(payload, len, "(text):?s,(channel):?s,(bot_id):T", &text, &channel, &check_bot);
if (check_bot.start) return; // means message... |
Don't run a CT specifc test if CT is disabled | @@ -160,7 +160,7 @@ sub inject_unsolicited_extension
}
SKIP: {
- skip "TLS <= 1.2 disabled", 2 if alldisabled(("tls1", "tls1_1", "tls1_2"));
+ skip "TLS <= 1.2 disabled", 1 if alldisabled(("tls1", "tls1_1", "tls1_2"));
#Test 4: Inject an unsolicited extension (<= TLSv1.2)
$proxy->clear();
$proxy->filter(\&inject_unsoli... |
BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL) | @@ -65,6 +65,7 @@ BUF_MEM *bptr;
b64 = BIO_new(BIO_f_base64());
bmem = BIO_new(BIO_s_mem());
b64 = BIO_push(b64, bmem);
+BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
BIO_write(b64, input, len);
BIO_flush(b64);
BIO_get_mem_ptr(b64, &bptr);
|
Use deblock and SAO in tiles tests
Reveals a bug in SAO when using tiles. | set -eu
. "${0%/*}/util.sh"
-common_args='-p4 --rd=0 --no-rdoq --no-deblock --no-sao --no-signhide --subme=0 --pu-depth-inter=1-3 --pu-depth-intra=2-3'
+common_args='-p4 --rd=0 --no-rdoq --no-signhide --subme=0 --deblock --sao --pu-depth-inter=1-3 --pu-depth-intra=2-3'
valgrind_test 264x130 10 $common_args -r1 --owf=1 ... |
hark: simplify hook
Fixes urbit/landscape#265 | @@ -363,10 +363,18 @@ export function useShowNickname(contact: Contact | null, hide?: boolean): boolea
return !!(contact && contact.nickname && !hideNicknames);
}
-export const useHovering = (props: {withParent?: boolean} = {}): Record<string, unknown> => {
+interface useHoveringInterface {
+ hovering: boolean;
+ bind:... |
Exclude end address from osGetPageProt
With following memory mappings:
---p 00:00 0
rw-p 00:00 0
specific memory address range is described by:
<start address, end_address) - including start
address but excluding end address
on example above address "0x7f4bc9a3a000"
got rw permissions | @@ -643,7 +643,7 @@ osGetPageProt(uint64_t addr)
scopeLog(CFG_LOG_TRACE, "addr 0x%lux addr1 0x%lux addr2 0x%lux\n", addr, addr1, addr2);
- if ((addr >= addr1) && (addr <= addr2)) {
+ if ((addr >= addr1) && (addr < addr2)) {
char *perms = end + 1;
scopeLog(CFG_LOG_DEBUG, "matched 0x%lx to 0x%lx-0x%lx\n\t%c%c%c", addr, a... |
fix a bug about OP_LOADI32 when enable MRBC_INT64 compiler flags. | @@ -527,7 +527,7 @@ static inline void op_loadi32( mrbc_vm *vm, mrbc_value *regs EXT )
FETCH_BSS();
mrbc_decref(®s[a]);
- mrbc_set_integer(®s[a], (((int32_t)b<<16)+c));
+ mrbc_set_integer(®s[a], (((int32_t)b<<16)+(int32_t)c));
}
|
esp_wifi: STA set extra IEs for open AP | @@ -88,6 +88,8 @@ int wpa_config_profile(uint8_t *bssid)
wpa_set_profile(WPA_PROTO_RSN, esp_wifi_sta_get_prof_authmode_internal());
} else if (esp_wifi_sta_prof_is_wapi_internal()) {
wpa_set_profile(WPA_PROTO_WAPI, esp_wifi_sta_get_prof_authmode_internal());
+ } else if (esp_wifi_sta_get_prof_authmode_internal() == NON... |
py/objarray: make_new: Support separate __new__ vs __init__ phases. | @@ -159,6 +159,8 @@ STATIC mp_obj_t array_construct(char typecode, mp_obj_t initializer) {
#if MICROPY_PY_ARRAY
STATIC mp_obj_t array_make_new(const mp_obj_type_t *type_in, size_t n_args, size_t n_kw, const mp_obj_t *args) {
+ MP_MAKE_NEW_GET_ONLY_FLAGS();
+ (void)only_new;
(void)type_in;
mp_arg_check_num(n_args, n_kw,... |
Stricter tests on incoming VN | @@ -881,16 +881,19 @@ int picoquic_incoming_version_negotiation(
cnx->client_mode, length, nb_vn);
ret = PICOQUIC_ERROR_DETECTED;
break;
- } else if (vn == cnx->proposed_version) {
+ } else if (vn == cnx->proposed_version || vn == 0) {
DBG_PRINTF("VN packet (%d), proposed_version[%d] = 0x%08x.\n", cnx->client_mode, nb_... |
marked format hccap and hccapx as old | @@ -592,8 +592,8 @@ if(eapolaplesscount > 0) printf("EAPOL ROGUE pairs........................: %ld
if(eapolwrittencount > 0) printf("EAPOL pairs written to combi hash file...: %ld (RC checked)\n", eapolwrittencount);
if(eapolncwrittencount > 0) printf("EAPOL pairs written to combi hash file...: %ld (RC not checked)\n"... |
Minor bug solved from previous commit. | import os
import sys
+import json
if sys.platform == 'win32':
from metacall.module_win32 import metacall_module_load
@@ -34,13 +35,6 @@ else:
# Load metacall extension depending on the platform
module = metacall_module_load()
-print('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@')
-print('@@@@@@@@@@@... |
vere: refactors %ames packet failure callback | @@ -392,13 +392,12 @@ _ames_cap_queue(u3_ames* sam_u)
static void
_ames_punt_goof(u3_noun lud)
{
- u3_noun dul = lud;
-
- if ( 2 == u3qb_lent(dul) ) {
- u3_pier_punt_goof("hear", u3k(u3h(dul)));
- u3_pier_punt_goof("crud", u3k(u3h(u3t(dul))));
+ if ( 2 == u3qb_lent(lud) ) {
+ u3_pier_punt_goof("hear", u3k(u3h(lud)));
+... |
re-enable CLEANUP | @@ -80,7 +80,7 @@ if (! -d $tmp_path) {
File::Path::make_path($tmp_path) || die("Unable to create $tmp_path\n");
}
-my $tmp_dir = File::Temp::tempdir(CLEANUP => 0, DIR=> $tmp_path) || MYERROR("Unable to create temporary directory");
+my $tmp_dir = File::Temp::tempdir(CLEANUP => 1, DIR=> $tmp_path) || MYERROR("Unable to... |
fix mousestate "couldn't unbind"
closes | @@ -227,9 +227,11 @@ static void mousestate_poll(t_mousestate *x)
static void mousestate_nopoll(t_mousestate *x)
{
+ if(x->x_ispolling){
hammergui_stoppolling((t_pd *)x);
x->x_ispolling = 0;
}
+}
static void mousestate_zero(t_mousestate *x)
{
|
component/bt: Fix mem leak of esp_ble_gap_set_security_param | @@ -939,6 +939,13 @@ void btc_gap_ble_arg_deep_free(btc_msg_t *msg)
}
break;
}
+ case BTC_GAP_BLE_SET_SECURITY_PARAM_EVT: {
+ uint8_t *value = ((btc_ble_gap_args_t *)msg->arg)->set_security_param.value;
+ if (value) {
+ osi_free(value);
+ }
+ break;
+ }
default:
BTC_TRACE_DEBUG("Unhandled deep free %d\n", msg->act);
br... |
odyssey: update documentation/configuration.md | @@ -355,6 +355,7 @@ Set route athentication method. Supported:
"block" - block this user
"clear_text" - PostgreSQL clear text authentication
"md5" - PostgreSQL MD5 authentication
+"cert" - Compare client certificate CommonName with username
```
`authentication "none"`
|
cmake: switch back to dump by default | @@ -125,7 +125,7 @@ set (KDB_DB_INIT "elektra.ecf" CACHE STRING
"This configuration file will be used for bootstrapping."
)
-set (KDB_DEFAULT_STORAGE "dini" CACHE STRING
+set (KDB_DEFAULT_STORAGE "dump" CACHE STRING
"This storage plugin will be used initially (as default and for bootstrapping).")
if (KDB_DEFAULT_STORAG... |
kscan: matrix: Remove verbose logging in read. | @@ -128,7 +128,6 @@ static int kscan_gpio_config_interrupts(struct device **devices,
bool submit_follow_up_read = false; \
struct kscan_gpio_data_##n *data = dev->driver_data; \
static bool read_state[INST_MATRIX_ROWS(n)][INST_MATRIX_COLS(n)]; \
- LOG_DBG("Scanning the matrix for updated state"); \
/* Disable our inter... |
Test parsing a PI with a failing allocator | @@ -3752,6 +3752,44 @@ alloc_teardown(void)
basic_teardown();
}
+
+/* Test the effects of allocation failures on a straightforward parse */
+START_TEST(test_alloc_parse)
+{
+ const char *text =
+ "<?xml version='1.0' encoding='utf-8'?>\n"
+ "<?pi unknown?>\n"
+ "<doc>Hello, world</doc>";
+ int i;
+ int repeat = 0;
+#de... |
timing_load_creds: Fix typos in the timersub macro | do { \
(res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
if ((a)->tv_usec < (b)->tv_usec) { \
- (res)->tv_usec = (a)->tv_usec + 1000000 - (b)->tv_usec); \
+ (res)->tv_usec = (a)->tv_usec + 1000000 - (b)->tv_usec; \
--(res)->tv_sec; \
} else { \
- (res)->tv_usec = (a)->tv_usec - (b)->tv_usec); \
+ (res)->tv_usec = (a)->tv_us... |
client session BUGFIX double free
Fixes | @@ -1299,7 +1299,11 @@ parse_reply(struct ly_ctx *ctx, struct lyxml_elem *xml, struct nc_rpc *rpc, int
rpc_gen = (struct nc_rpc_act_generic *)rpc;
if (rpc_gen->has_data) {
- rpc_act = rpc_gen->content.data;
+ rpc_act = lyd_dup(rpc_gen->content.data, 1);
+ if (!rpc_act) {
+ ERR("Failed to duplicate a generic RPC/action.... |
Disable duplicate icon cache flush | @@ -3154,32 +3154,32 @@ VOID PhImageListFlushCache(
VOID
)
{
- PH_HASHTABLE_ENUM_CONTEXT enumContext;
- PPH_IMAGELIST_ITEM* entry;
-
- if (!PhImageListCacheHashtable)
- return;
-
- PhAcquireQueuedLockExclusive(&PhImageListCacheHashtableLock);
-
- PhBeginEnumHashtable(PhImageListCacheHashtable, &enumContext);
-
- while ... |
fix test with snapshot interval | @@ -6,6 +6,7 @@ import filecmp
import csv
import numpy as np
import time
+import timeit
import json
import catboost
@@ -4163,7 +4164,7 @@ def test_snapshot_without_random_seed():
def test_snapshot_with_interval():
def run_with_timeout(cmd, timeout):
try:
- yatest.common.execute(cmd + additional_params, timeout=timeout)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.