message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Dump contents in Lua only if handle is not nil | @@ -366,7 +366,7 @@ void Scripting::Initialize()
m_lua["Dump"] = [this](Type* apType)
{
- return apType->Dump();
+ return apType != nullptr ? apType->Dump() : Type::Descriptor{};
};
m_lua["DumpType"] = [this](const std::string& acName)
|
Return None from build_alignment_sequence if no MD tag | @@ -689,6 +689,10 @@ cdef inline bytes build_alignment_sequence(bam1_t * src):
if src == NULL:
return None
+ cdef uint8_t * md_tag_ptr = bam_aux_get(src, "MD")
+ if md_tag_ptr == NULL:
+ return None
+
cdef uint32_t start = getQueryStart(src)
cdef uint32_t end = getQueryEnd(src)
# get read sequence, taking into account ... |
Fixes a memory leak in the pubsub_utils | @@ -68,6 +68,7 @@ celix_status_t pubsub_getPubSubInfoFromFilter(const char* filterstr, const char
}
}
}
+ filter_destroy(filter);
if (topic != NULL && objectClass != NULL && strncmp(objectClass, PUBSUB_PUBLISHER_SERVICE_NAME, 128) == 0) {
*topicOut = topic;
|
Delete Travis Cache during Travis cron jobs | #!/bin/bash
+# Clear the Travis Cache Weekly to ensure that any upstream breakages in test dependencies are caught
+if [[ "$TRAVIS_EVENT_TYPE" == "cron" ]]; then
+ sudo rm -rf ./test-deps
+fi
+
# Install missing test dependencies. If the install directory already exists, cached artifacts will be used
# for that depende... |
Update: allow full argument compound to be utilized by NAR.py to support multiple args | @@ -36,7 +36,7 @@ def parseReason(sraw):
def parseExecution(e):
if "args " not in e:
return {"operator" : e.split(" ")[0], "arguments" : []}
- return {"operator" : e.split(" ")[0], "arguments" : e.split("args ")[1][1:-1].split(" * ")[1]}
+ return {"operator" : e.split(" ")[0], "arguments" : e.split("args ")[1].split("{... |
hv: vmcall: fix "goto detected" violations
Remove the goto by split the function into two,
dispatch_hypercall and vmcall_vmexit_handler.
Acked-by: Eddie Dong | @@ -11,14 +11,9 @@ static spinlock_t vmm_hypercall_lock = {
.head = 0U,
.tail = 0U,
};
-/*
- * Pass return value to SOS by register rax.
- * This function should always return 0 since we shouldn't
- * deal with hypercall error in hypervisor.
- */
-int32_t vmcall_vmexit_handler(struct acrn_vcpu *vcpu)
+
+static int32_t ... |
JANITORIAL: (shaderconv.c) Correct spelling mistakes in comments
occurence -> occurrence | @@ -929,7 +929,7 @@ char* ConvertShader(const char* pEntry, int isVertex, shaderconv_need_t *need)
while((p=strstr(p, "gl_LightSource["))) {
char *p2 = strchr(p, ']');
if (p2 && !strncmp(p2, "].halfVector", strlen("].halfVector"))) {
- // found an occurence, lets change
+ // found an occurrence, lets change
char p3[500... |
Fixed description of examples/EarthInterior. | -EarthInterior
+Thermal and Magnetic Evolution of Earth's Interior
==========
Overview
--------
-Evolution of Earth's interior.
-
=================== ============
**Date** 10/03/18
**Author** Peter Driscoll
|
drivers/testcase : Fix typo for tg_pgid
There is a typo, change tg_gpid to tg_pgid | @@ -657,7 +657,7 @@ static int kernel_test_drv_ioctl(FAR struct file *filep, int cmd, unsigned long
}
#ifdef HAVE_GROUP_MEMBERS
- after_parent_id = child_tcb->group->tg_gpid;
+ after_parent_id = child_tcb->group->tg_pgid;
#else
after_parent_id = child_tcb->group->tg_ppid;
#endif
|
tests/run-tests: Capture any output from a crashed uPy execution.
Instead of putting just 'CRASH' in the .py.out file, this patch makes it so
any output from uPy that led to the crash is stored in the .py.out file, as
well as the 'CRASH' message at the end. | @@ -54,6 +54,7 @@ def run_micropython(pyb, args, test_file, is_special=False):
'micropython/meminfo.py', 'basics/bytes_compare3.py',
'basics/builtin_help.py', 'thread/thread_exc2.py',
)
+ had_crash = False
if pyb is None:
# run on PC
if test_file.startswith(('cmdline/', 'feature_check/')) or test_file in special_tests:... |
Doc: News: Preparation Next Release: update | @@ -71,7 +71,7 @@ We added even more functionality, which could not make it to the highlights:
has been added.
It can be used to integrate the notification feature with applications based
on glib.
-
+- The Order Preserving Minimal Perfect Hash Map (OPMPHM), used to speed up the lookups, got optimized.
## Documentation
|
Add dbus info to readme | @@ -66,6 +66,7 @@ Install dependencies:
* cairo
* gdk-pixbuf2 *
* pam **
+* dbus >= 1.10 ***
* imagemagick (required for image capture with swaygrab)
* ffmpeg (required for video capture with swaygrab)
@@ -73,6 +74,8 @@ _\*Only required for swaybar, swaybg, and swaylock_
_\*\*Only required for swaylock_
+_\*\*\*Only re... |
Add examples and build test info to Readme | # Open CAS Framework
-Open CAS Framwework (OCF) is high performance block storage caching meta-library
+Open CAS Framework (OCF) is high performance block storage caching meta-library
written in C. It's entirely platform and system independent, accessing system API
through user provided environment wrappers layer. OCF ... |
Add an option to strip leading zeros from histograms | @@ -54,7 +54,7 @@ def _stars(val, val_max, width):
return text
-def _print_log2_hist(vals, val_type):
+def _print_log2_hist(vals, val_type, strip_leading_zero):
global stars_max
log2_dist_max = 64
idx_max = -1
@@ -74,13 +74,21 @@ def _print_log2_hist(vals, val_type):
stars = int(stars_max / 2)
if idx_max > 0:
- print(h... |
Fix relcache reference leak introduced by
Author: Sawada Masahiko
Discussion: | @@ -353,6 +353,7 @@ GetSubscriptionRelState(Oid subid, Oid relid, XLogRecPtr *sublsn)
if (!HeapTupleIsValid(tup))
{
+ table_close(rel, AccessShareLock);
*sublsn = InvalidXLogRecPtr;
return SUBREL_STATE_UNKNOWN;
}
|
Add additional gpus to GFXLIST.
gfx90c, gfx940, gfx1032, gfx1033
gfx1034, gfx1035, gfx1036. | @@ -200,7 +200,7 @@ fi
# Set list of default amdgcn subarchitectures to build
# Developers may override GFXLIST to shorten build time.
-GFXLIST=${GFXLIST:-"gfx700 gfx701 gfx801 gfx803 gfx900 gfx902 gfx906 gfx908 gfx90a gfx1030 gfx1031"}
+GFXLIST=${GFXLIST:-"gfx700 gfx701 gfx801 gfx803 gfx900 gfx902 gfx906 gfx908 gfx90a... |
BUGFIX memory leak caused by missing free in nc_rpc_free | @@ -560,6 +560,7 @@ nc_rpc_free(struct nc_rpc *rpc)
rpc_copy = (struct nc_rpc_copy *)rpc;
if (rpc_copy->free) {
free(rpc_copy->url_config_src);
+ free(rpc_copy->url_trg);
}
break;
case NC_RPC_DELETE:
|
Set default for keep alive timeout for mod_wsgi-express to 2 seconds. | @@ -2314,11 +2314,12 @@ option_list = (
help='The IP address or subnet corresponding to any trusted '
'proxy.'),
- optparse.make_option('--keep-alive-timeout', type='int', default=0,
+ optparse.make_option('--keep-alive-timeout', type='int', default=2,
metavar='SECONDS', help='The number of seconds which a client '
'co... |
feat(devcontainer): supersede zephyr-west-action-arm with zmk-dev-arm
PR: | -FROM zmkfirmware/zephyr-west-action-arm
-
-ENV LC_ALL=C
-
-RUN apt-get -y update && \
- apt-get -y upgrade && \
- apt-get install --no-install-recommends -y \
- ssh \
- nano \
- locales \
- gpg && \
- rm -rf /var/lib/apt/lists/*
+FROM zmkfirmware/zmk-dev-arm:2.3
COPY .bashrc tmp
RUN mv /tmp/.bashrc ~/.bashrc
|
lv_btnm.h add missing semi colon | @@ -112,7 +112,7 @@ void lv_btnm_set_tgl(lv_obj_t * btnm, bool en, uint16_t id);
* @param ina pointer to a style for inactive state
*/
void lv_btnm_set_styles_btn(lv_obj_t * btnm, lv_style_t * rel, lv_style_t * pr,
- lv_style_t * trel, lv_style_t * tpr, lv_style_t * ina)
+ lv_style_t * trel, lv_style_t * tpr, lv_style_... |
Packages: fixed dependency tracking for Go and Java modules on RHEL7. | # distribution specific definitions
%define bdir %{_builddir}/%{name}-%{version}
-%%MODULE_DEFINITIONS%%
-
%if (0%{?rhel} == 7 && 0%{?amzn} == 0)
%define dist .el7
%endif
+%%MODULE_DEFINITIONS%%
+
%if 0%{?rhel}%{?fedora}
BuildRequires: gcc
%if 0%{?amzn2}
|
Fix when depth test is disabled but depth write is enabled
GL_DEPTH_TEST controls both whether depth testing and depth writes are
enabled. So if depth testing is disabled and depth writes are enabled,
GL_DEPTH_TEST has to be enabled and the compare mode should be GL_ALWAYS. | @@ -974,26 +974,29 @@ static void lovrGpuBindPipeline(Pipeline* pipeline) {
}
}
- // Depth test
- if (state.depthTest != pipeline->depthTest) {
- state.depthTest = pipeline->depthTest;
- if (state.depthTest != COMPARE_NONE) {
- if (!state.depthEnabled) {
- state.depthEnabled = true;
+ // Depth test and depth write
+ bo... |
docs/library/builtins: Describe namespaced OSError's.
As recently introduced for usocket.getaddrinfo(), and expected to be
applied in other cases too. | @@ -233,9 +233,33 @@ Exceptions
.. exception:: OSError
- |see_cpython| `python:OSError`. Pycopy doesn't implement ``errno``
- attribute, instead use the standard way to access exception arguments:
- ``exc.args[0]``.
+ Represents system-level error, related to the operating system or hardware.
+ |see_cpython| `python:OS... |
Updater: Re-enable express setup for updates | @@ -66,7 +66,7 @@ HRESULT CALLBACK FinalTaskDialogCallbackProc(
break;
info.lpFile = PhGetStringOrEmpty(context->SetupFilePath);
- //info.lpParameters = L"-update";
+ info.lpParameters = L"-update";
info.lpVerb = PhGetOwnTokenAttributes().Elevated ? NULL : L"runas";
info.nShow = SW_SHOW;
info.hwnd = hwndDlg;
|
[numerics] default solver for one contact nonsmooth Newton is now ONECONTACT_NSN_GP_HYBRID | @@ -1072,7 +1072,7 @@ int fc3d_onecontact_nonsmooth_Newton_gp_setDefaultSolverOptions(SolverOptions* o
printf("Set the Default SolverOptions for the ONECONTACT_NSN Solver\n");
}
- options->solverId = SICONOS_FRICTION_3D_ONECONTACT_NSN_GP;
+ options->solverId = SICONOS_FRICTION_3D_ONECONTACT_NSN_GP_HYBRID;
options->numb... |
examples/mediaplayer: Add opus file test feature
Add TEST_OPUS for opus file playing with mediaplayer.
The opus file must be generated by mediarecorder. | @@ -99,6 +99,7 @@ void MediaPlayerTest::start(void)
*/
#define TEST_MP3
#undef TEST_AAC
+#undef TEST_OPUS
#if defined(TEST_MP3)
auto source = std::move(unique_ptr<FileInputDataSource>(new FileInputDataSource("/rom/over_16000.mp3")));
@@ -107,6 +108,8 @@ void MediaPlayerTest::start(void)
source->setPcmFormat(AUDIO_FORMA... |
Correct style_tick_line in Mono theme to only be created if the Spinner is Enabled | @@ -37,7 +37,6 @@ static lv_style_t style_btn;
static lv_style_t style_round;
static lv_style_t style_no_radius;
static lv_style_t style_fg_color;
-static lv_style_t style_tick_line;
static lv_style_t style_border_none;
static lv_style_t style_big_line_space; /*In roller or dropdownlist*/
static lv_style_t style_pad_no... |
Add valgrind to Dockerfile missed in | @@ -10,7 +10,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
libdbd-pg-perl libxml-checker-perl libyaml-perl \
devscripts build-essential lintian git cloc txt2man debhelper libssl-dev zlib1g-dev libperl-dev libxml2-dev liblz4-dev \
liblz4-tool libpq-dev lcov autoconf-archive zstd li... |
x86_64 clock: now_kvm(): add system time from PV clock structure
If we don't use the system_time field of the KVM PV clock
structure, we are not returning a monotonic time but just the time
offset from the last update of the KVM PV clock structure. | @@ -47,7 +47,8 @@ timestamp now_kvm()
}
// ok - a 64 bit number (?) multiplied by a 32 bit number yields
// a 96 bit result, chuck the bottom 32 bits
- u64 nsec = ((u128)delta * vclock->tsc_to_system_mul) >> 32;
+ u64 nsec = vclock->system_time +
+ (((u128)delta * vclock->tsc_to_system_mul) >> 32);
u64 sec = nsec / BIL... |
Fix some undefined behaviour in ossltest engine | @@ -593,16 +593,20 @@ int ossltest_aes128_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
int ret;
tmpbuf = OPENSSL_malloc(inl);
- if (tmpbuf == NULL)
+
+ /* OPENSSL_malloc will return NULL if inl == 0 */
+ if (tmpbuf == NULL && inl > 0)
return -1;
/* Remember what we were asked to encrypt */
+ if (tmpbuf != NULL)
... |
Refactor code duplication in Chat root | @@ -87,14 +87,7 @@ export class Root extends Component {
inviteConfig = configs[`~${window.ship}/i`];
}
- return (
- <BrowserRouter>
- <div>
- <Route exact path="/~chat"
- render={ (props) => {
- return (
- <Skeleton
- sidebar={
+ const renderChannelsSidebar = (props) => (
<Sidebar
circles={circles}
messagePreviews={me... |
stm32/rng: Use Yasmarang for rng_get() if MCU doesn't have HW RNG. | @@ -60,4 +60,30 @@ STATIC mp_obj_t pyb_rng_get(void) {
}
MP_DEFINE_CONST_FUN_OBJ_0(pyb_rng_get_obj, pyb_rng_get);
+#else // MICROPY_HW_ENABLE_RNG
+
+// For MCUs that don't have an RNG we still need to provide a rng_get() function,
+// eg for lwIP. A pseudo-RNG is not really ideal but we go with it for now. We
+// don't... |
unwrap comments | @@ -82,7 +82,7 @@ export function NotePreview(props: NotePreviewProps) {
<Box color={isRead ? "gray" : "green"} mr={3}>
{date}
</Box>
- <Box mr={3}><Text>{commentDesc}</Text></Box>
+ <Box mr={3}>{commentDesc}</Box>
<Box>{rev.valueOf() === 1 ? `1 Revision` : `${rev} Revisions`}</Box>
</Box>
</Col>
|
fpgadiag: Make option flag consistent across tests
The shorthand for "multi-cl" flag should be '-u', instead of '-U',
for mode 0 test, to be consistent with other tests. | @@ -65,7 +65,7 @@ nlb0::nlb0()
options_.add_option<std::string>("target", 't', option::with_argument, "one of { fpga, ase }", target_);
options_.add_option<uint32_t>("begin", 'b', option::with_argument, "where 1 <= <value> <= 65535", begin_);
options_.add_option<uint32_t>("end", 'e', option::with_argument, "where 1 <= ... |
external/iotivity: fix compilation warning
The iotivity_simpleserver example is built by Makefile, not sconsscript
so that calling sconscript from iotivity is not needed.
This commit resolves shown below:
scons: warning: Ignoring missing SConscript '/home/sunghan/Work/TinyAra/TizenRT_forked/apps/examples/iotivity_simpl... | @@ -69,9 +69,6 @@ SConscript(build_dir + 'cloud/SConscript')
if target_os not in ['tizenrt']:
SConscript(build_dir + 'plugins/SConscript')
-if target_os == 'tizenrt':
- SConscript('../../../apps/examples/iotivity_simpleserver' + '/SConscript')
-
# Append targets information to the help information, to see help info, ex... |
update top level Makefile | @@ -110,11 +110,10 @@ export BOAT_CFLAGS
export BOAT_LFLAGS
export LINK_LIBS
-#.PHONY: all boatlibs createdir boatwalletlib hwdeplib contractlib tests clean cleanboatwallet cleanhwdep cleancontract cleantests
-.PHONY: all boatlibs createdir boatwalletlib hwdeplib contractlib demo clean cleanboatwallet cleanhwdep cleanc... |
rtnlinv: coding style and less debug spam | @@ -189,8 +189,7 @@ int main_rtnlinv(int argc, char* argv[argc])
turns = pat_dims[TIME_DIM];
- } else
- if (NULL != trajectory) {
+ } else if (NULL != trajectory) {
conf.noncart = true;
@@ -200,7 +199,7 @@ int main_rtnlinv(int argc, char* argv[argc])
md_select_dims(DIMS, ~TIME_FLAG, trj1_dims, trj_dims);
- debug_print_... |
Supporting backwards compatibility with FREERTOS_CONFIG_FILE_DIRECTORY | @@ -13,6 +13,8 @@ cmake_minimum_required(VERSION 3.15)
# `freertos_config` target defines the path to FreeRTOSConfig.h and optionally other freertos based config files
if(NOT TARGET freertos_config )
+ if (NOT DEFINED FREERTOS_CONFIG_FILE_DIRECTORY )
+
message(FATAL_ERROR " freertos_config target not specified. Please ... |
gphdfs limit fix with altering process close/cleanup behavior | @@ -62,9 +62,11 @@ typedef struct URL_EXECUTE_FILE
static int popen_with_stderr(int *rwepipe, const char *exe, bool forwrite);
static int pclose_with_stderr(int pid, int *rwepipe, StringInfo sinfo);
+static void pclose_without_stderr(int *rwepipe);
static char *interpretError(int exitCode, char *buf, size_t buflen, cha... |
[bsp][imxrt1052-evk] change sdio default speed to 25M | @@ -56,7 +56,7 @@ static int enable_log = 1;
#define USDHC_ADMA_TABLE_WORDS (8U) /* define the ADMA descriptor table length */
#define USDHC_ADMA2_ADDR_ALIGN (4U) /* define the ADMA2 descriptor table addr align size */
-#define IMXRT_MAX_FREQ (50UL * 1000UL * 1000UL)
+#define IMXRT_MAX_FREQ (25UL * 1000UL * 1000UL)
#de... |
st-flash: add sanity check to option flash.
current opt parse code can make bad cmdline parameter attempt to flash bad
flash option.
ie: calling st-flash write --area=option a_file.bin
will make parser attempt to translate "a_file.bon" to an uint32 and will return 0.., | @@ -170,7 +170,11 @@ int main(int ac, char** av)
}
}
else if (o.area == FLASH_OPTION_BYTES){
- // XXX some sanity check should be done here to check o.val parsing.
+ if (o.val == 0) {
+ printf("attempting to set option byte to 0, abort.\n");
+ goto on_error;
+ }
+
err = stlink_write_option_bytes32(sl, o.val);
if (err =... |
Use libfuzzer7 with Clang 7. | @@ -1477,7 +1477,9 @@ class GnuCompiler(Compiler):
# fuzzing configuration
if self.tc.is_clang and self.tc.version_at_least(5, 0):
emit('FSANITIZE_FUZZER_SUPPORTED', 'yes')
- if self.tc.version_at_least(6, 0):
+ if self.tc.version_at_least(7):
+ emit('LIBFUZZER_PATH', 'contrib/libs/libfuzzer7')
+ elif self.tc.version_a... |
add log entry for HE caching | @@ -1900,6 +1900,7 @@ send_result_connection_attempt_to_pm(neat_ctx *ctx, neat_flow *flow, struct cib_
goto end;
}
+ neat_log(ctx, NEAT_LOG_INFO, "Sending HE result to PM for caching");
neat_json_send_once(ctx, flow, socket_path, result_array, NULL, on_pm_he_error);
end:
|
sysdeps/managarm: Convert sys_inotify_add_watch to bragi | @@ -1707,41 +1707,32 @@ int sys_inotify_create(int flags, int *fd) {
int sys_inotify_add_watch(int ifd, const char *path, uint32_t mask, int *wd) {
SignalGuard sguard;
- HelAction actions[3];
- globalQueue.trim();
- managarm::posix::CntRequest<MemoryAllocator> req(getSysdepsAllocator());
- req.set_request_type(managarm... |
ip: fix coverity warning
Type: fix
Ticket: | @@ -173,21 +173,17 @@ ip_address_set (ip_address_t * dst, const void *src, u8 version)
fib_protocol_t
ip_address_to_46 (const ip_address_t * addr, ip46_address_t * a)
{
- fib_protocol_t proto;
+ fib_protocol_t proto = FIB_PROTOCOL_IP4;
- proto = (AF_IP4 == ip_addr_version (addr) ?
- FIB_PROTOCOL_IP4 : FIB_PROTOCOL_IP6)... |
reusable function for decoding acode | #include <stdint.h>
#include <string.h>
+
+int32_t decode_acode(uint32_t length, int32_t main_divisor) {
+ //+50 adds a small offset and seems to help always get it right.
+ //Check the +50 in the future to see how well this works on a variety of hardware.
+
+ int32_t acode = (length+main_divisor+50)/(main_divisor*2);
... |
clean-up: removing blank spaces at ends of lines in global header | /*
- * Copyright (c) 2007 - 2019 Joseph Gaeddert
+ * Copyright (c) 2007 - 2020 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
|
Fix control event String parsing
At least 2 bytes must be available to read the length of the String. | @@ -93,7 +93,7 @@ public class ControlEventReader {
}
private ControlEvent parseTextControlEvent() {
- if (buffer.remaining() < 1) {
+ if (buffer.remaining() < 2) {
return null;
}
int len = toUnsigned(buffer.getShort());
|
esp32/network_ppp: Add ppp_set_usepeerdns(pcb, 1) when init'ing iface.
Without this you often don't get any DNS server from your network provider.
Additionally, setting your own DNS _does not work_ without this option set
(which could be a bug in the PPP stack). | @@ -130,6 +130,7 @@ STATIC mp_obj_t ppp_active(size_t n_args, const mp_obj_t *args) {
mp_raise_msg(&mp_type_RuntimeError, "init failed");
}
pppapi_set_default(self->pcb);
+ ppp_set_usepeerdns(self->pcb, 1);
pppapi_connect(self->pcb, 0);
xTaskCreate(pppos_client_task, "ppp", 2048, self, 1, (TaskHandle_t*)&self->client_t... |
VERSION bump to version 0.12.24 | @@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0")
# set version
set(LIBNETCONF2_MAJOR_VERSION 0)
set(LIBNETCONF2_MINOR_VERSION 12)
-set(LIBNETCONF2_MICRO_VERSION 23)
+set(LIBNETCONF2_MICRO_VERSION 24)
set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION})
set(L... |
BugID:17646749:[mqttapp]fix mm leak when no net init for multithread case | @@ -330,8 +330,7 @@ int mqtt_client(void *params)
/* Device AUTH */
if (0 != IOT_SetupConnInfo(PRODUCT_KEY, DEVICE_NAME, DEVICE_SECRET, (void **)&pconn_info)) {
EXAMPLE_TRACE("AUTH request failed!");
- rc = -1;
- goto do_exit;
+ return -1;
}
/* Initialize MQTT parameter */
@@ -358,8 +357,7 @@ int mqtt_client(void *para... |
rsu: fix location of available_images/image_load
Search in all possible locations to identify the correct paths. | @@ -503,6 +503,40 @@ class fpga_base(sysfs_device):
"""
return self.pci_node.pci_id in self.BOOT_PAGES
+ @property
+ def rsu_controls(self):
+ available_images = None
+ image_load = None
+
+ patterns = ['',
+ '*-sec*.*.auto',
+ '*-sec*.*.auto/*fpga_sec_mgr/*fpga_sec*',
+ '*-sec*.*.auto/fpga_image_load/fpga_image*']
+
+... |
py/profile: Resolve name collision with STATIC unset.
When building with STATIC undefined (e.g., -DSTATIC=), there are two
instances of mp_type_code that collide at link time: in profile.c and in
builtinevex.c. This patch resolves the collision by renaming one of them. | @@ -172,7 +172,7 @@ STATIC void code_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
}
}
-const mp_obj_type_t mp_type_code = {
+const mp_obj_type_t mp_type_settrace_codeobj = {
{ &mp_type_type },
.name = MP_QSTR_code,
.print = code_print,
@@ -185,7 +185,7 @@ mp_obj_t mp_obj_new_code(const mp_raw_code_t *rc) {
if (o... |
README: update CI badge URL | <p align="center">
<img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT">
- <a href="https://github.com/zyantific/zydis/actions"><img src="https://github.com/zyantific/zydis/workflows/GitHub%20Actions%20CI/badge.svg" alt="GitHub Actions"></a>
+ <a href="https://github.com/zyantific/zydis/actio... |
Add missing initialisation to setup test. | @@ -4181,6 +4181,8 @@ void aead_multipart_setup( int key_type_arg, data_t *key_data,
PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len,
&key ) );
+ operation = psa_aead_operation_init( );
+
mbedtls_test_set_step( 0 );
status = psa_aead_encrypt_setup( &operation, key, alg );
|
Clean up redundant argument decls in macros | @@ -125,6 +125,15 @@ Usz UCLAMP(Usz val, Usz min, Usz max) {
#define ORCA_DECLARE_OPERATORS(_solo_defs, _dual_defs) \
ORCA_DEFINE_OPER_CHARS(_solo_defs, _dual_defs)
+#define OPER_PHASE_COMMON_ARGS \
+ Gbuffer const gbuffer, Mbuffer const mbuffer, Usz const height, \
+ Usz const width, Usz const y, Usz const x
+#define ... |
Fixed building without openat2(). | @@ -39,7 +39,7 @@ nxt_http_static_handler(nxt_task_t *task, nxt_http_request_t *r,
nxt_str_t index, extension, *mtype, *chroot;
nxt_uint_t level;
nxt_bool_t need_body;
- nxt_file_t *f, af, file;
+ nxt_file_t *f, file;
nxt_file_info_t fi;
nxt_http_field_t *field;
nxt_http_status_t status;
@@ -124,6 +124,8 @@ nxt_http_st... |
Change circle size argument from diameter to radius; | @@ -948,8 +948,8 @@ void lovrGraphicsArc(DrawStyle style, ArcMode mode, Material* material, mat4 tra
float angleShift = (r2 - r1) / (float) segments;
for (int i = 0; i <= segments; i++) {
- float x = cosf(theta) * .5f;
- float y = sinf(theta) * .5f;
+ float x = cosf(theta);
+ float y = sinf(theta);
memcpy(vertices, ((f... |
Display bits per sec, not bytes per sec. | @@ -810,7 +810,7 @@ int quic_client(const char* ip_address_text, int server_port, const char * sni,
double duration_usec = (double)(current_time - picoquic_get_cnx_start_time(cnx_client));
if (duration_usec > 0) {
- double receive_rate_mbps = ((double)picoquic_get_data_received(cnx_client)) / duration_usec;
+ double re... |
esp_netif: fixed initialization order of items in a struct
Closes
Closes | @@ -29,8 +29,8 @@ extern "C" {
#define ESP_NETIF_DEFAULT_ETH() \
{ \
.base = ESP_NETIF_BASE_DEFAULT_ETH, \
- .stack = ESP_NETIF_NETSTACK_DEFAULT_ETH, \
.driver = NULL, \
+ .stack = ESP_NETIF_NETSTACK_DEFAULT_ETH, \
}
/**
@@ -39,8 +39,8 @@ extern "C" {
#define ESP_NETIF_DEFAULT_WIFI_AP() \
{ \
.base = ESP_NETIF_BASE_DEF... |
Renamed certain macros to match XNU style more. | @@ -160,25 +160,39 @@ enum {
#define CPU_MODEL_FIELDS 0x1E ///< Lynnfield, Clarksfield, Jasper Forest
#define CPU_MODEL_DALES 0x1F ///< Havendale, Auburndale
#define CPU_MODEL_DALES_32NM 0x25 ///< Clarkdale, Arrandale
-#define CPU_MODEL_SANDYBRIDGE 0x2A ///< Sandy Bridge
+#define CPU_MODEL_SANDY_BRIDGE 0x2A ///< Sandy ... |
serial-libs/gsl: bump to v2.6 | Summary: GNU Scientific Library (GSL)
Name: %{pname}-%{compiler_family}%{PROJ_DELIM}
-Version: 2.5
+Version: 2.6
Release: 1%{?dist}
License: GPL
Group: %{PROJ_NAME}/serial-libs
|
fix(bluetooth): Fix max pair settings for non-split. | @@ -107,9 +107,6 @@ config ZMK_SPLIT_BLE_ROLE_CENTRAL
if ZMK_SPLIT_BLE_ROLE_CENTRAL
-config BT_MAX_PAIRED
- default 2
-
config BT_MAX_CONN
default 2
@@ -153,6 +150,9 @@ if ZMK_BLE && !ZMK_SPLIT_BLE
config BT_ID_MAX
default 5
+config BT_MAX_PAIRED
+ default 5
+
# Used to update the name to include the identity used
conf... |
libnet: adding timeout function | #include <lwip/opt.h>
#include <lwip/netif.h>
+#include <lwip/timeouts.h>
#include "include/net/netif.h"
#include <netif/etharp.h>
@@ -54,7 +55,6 @@ static err_t net_if_linkoutput(struct netif *netif, struct pbuf *p)
}
-
static void net_if_status_cb(struct netif *netif)
{
debug_printf("netif status changed %s\n", ip4ad... |
and New mars types | 71 fx Flux forcing
72 fu Fill-up
73 sfo Simulations with forcing
+74 tpa Time processed analysis
+75 if Interim forecast
80 fcmean Forecast mean
81 fcmax Forecast maximum
82 fcmin Forecast minimum
|
Add device only after successful initialization | @@ -293,14 +293,14 @@ static int add_device(struct tcmulib_context *ctx,
dev->ctx = ctx;
- darray_append(ctx->devices, dev);
-
ret = dev->handler->added(dev);
if (ret < 0) {
tcmu_err("handler open failed for %s\n", dev->dev_name);
goto err_munmap;
}
+ darray_append(ctx->devices, dev);
+
return 0;
err_munmap:
|
improve test build rule | @@ -443,8 +443,8 @@ gitbook: $(BINDIR)/$(AGENT) $(BINDIR)/$(GEN) $(BINDIR)/$(ADD) $(BINDIR)/$(CLIENT
.PHONY: release
release: deb gitbook
-$(TESTBINDIR)/test: $(TESTSRCDIR)/main.c $(TEST_SOURCES)
- $(CC) $(TEST_CFLAGS) $< $(TEST_SOURCES) $(GENERAL_SOURCES:$(SRCDIR)/%.c=$(OBJDIR)/%.o) $(LIB_SOURCES:$(LIBDIR)/%.c=$(OBJDI... |
added packetcount and last pcap error message | @@ -25,28 +25,33 @@ int getpcapinfo(char *pcapinname)
{
//struct stat statinfo;
pcap_t *pcapin = NULL;
+struct pcap_pkthdr *pkh;
+
FILE *fhc;
int magicsize = 0;
int datalink = 0;
int majorversion = 0;
int minorversion = 0;
+int pcapstatus;
+long int packetcount = 0;
uint32_t magic = 0;
+const uint8_t *packet = NULL;
ch... |
disable creat trace in manifest | )
# filesystem path to elf for kernel to run
program:/creat
- trace:t
- debugsyscalls:t
- futex_trace:t
+# trace:t
+# debugsyscalls:t
+# futex_trace:t
fault:t
arguments:[webg poppy]
environment:(USER:bobby PWD:/)
|
Free FB memory if compress or compressed fail. | @@ -229,19 +229,23 @@ static mp_obj_t py_image_compress(uint n_args, const mp_obj_t *args, mp_map_t *k
{
image_t *arg_img = py_image_cobj(args[0]);
PY_ASSERT_FALSE_MSG(IM_IS_JPEG(arg_img), "Operation not supported on JPEG");
+
int arg_q = py_helper_lookup_int(kw_args, MP_OBJ_NEW_QSTR(MP_QSTR_quality), 50);
PY_ASSERT_TR... |
chat: fix sizing on mobile
fixes | @@ -2,8 +2,9 @@ import React, { Component } from 'react';
import { UnControlled as CodeEditor } from 'react-codemirror2';
import { MOBILE_BROWSER_REGEX } from "~/logic/lib/util";
import CodeMirror from 'codemirror';
+import styled from "styled-components";
-import { Row, BaseTextArea } from '@tlon/indigo-react';
+impor... |
lv_canvas: update function prototypes | @@ -164,6 +164,8 @@ void lv_canvas_draw_circle(lv_obj_t * canvas, lv_coord_t x0, lv_coord_t y0, lv_c
* @param point1 start point of the line
* @param point2 end point of the line
* @param color color of the line
+ *
+ * NOTE: The lv_canvas_draw_line function originates from https://github.com/jb55/bresenham-line.c.
*/
... |
Update index_board_Arduino_HandBit.html
add blocks | </shadow>
</value>
</block>
+ <block type="Vs2DetectedColorDetect"></block>
+ <block type="Vs2GetMessage"></block>
+ <block type="Vs2GetCardType"></block>
+ <block type="Vs2GetColorLabel"></block>
</category>
<category id="catFactory" name="Factory" colour="65">
<block type="factory_notes"></block>
|
user: comment out global vars (temp change) | @@ -127,8 +127,9 @@ int mk_user_set_uidgid(struct mk_server *server)
out:
/* Variables set for run checks on file permission */
- EUID = geteuid();
- EGID = getegid();
+ //FIXME
+ //EUID = geteuid();
+ //EGID = getegid();
return 0;
}
|
esp_https_ota: fix bug where `http_client_init_cb` is called after `esp_http_client_perform()` instead of before.
Closes | @@ -254,6 +254,14 @@ esp_err_t esp_https_ota_begin(const esp_https_ota_config_t *ota_config, esp_http
goto failure;
}
+ if (ota_config->http_client_init_cb) {
+ err = ota_config->http_client_init_cb(https_ota_handle->http_client);
+ if (err != ESP_OK) {
+ ESP_LOGE(TAG, "http_client_init_cb returned 0x%x", err);
+ goto ... |
add changes since v2.12 | +Version 2.13
+============
+
+Released xxxx-xx-xx
+
+* New Features:
+
+ - Add `jansson_version_str()` and `jansson_version_cmp()` for runtime
+ version checking (#465).
+
+ - Add `json_object_update_new()`, `json_object_update_existing_new()`
+ and `json_object_update_missing_new()` functions (#499).
+
+ - Add `json_... |
docs/index.md: Fix typos | @@ -42,13 +42,13 @@ You should give HsLua a try if you
HsLua exposes most of Lua's C API via Haskell functions. It offers
improved type-safety when compared to the raw C functions, while
also translating Lua errors to Haskell exceptions. Furthermore,
-HsLua provides an convenience functions which make interacting
-with... |
vfs/fs_truncate.c:Add socket judgment to return correct errno. | @@ -51,6 +51,7 @@ static int sock_file_ioctl(FAR struct file *filep, int cmd,
unsigned long arg);
static int sock_file_poll(FAR struct file *filep, struct pollfd *fds,
bool setup);
+static int sock_file_truncate(FAR struct file *filep, off_t length);
/********************************************************************... |
Better message for unsupported loss in ostr | @@ -90,7 +90,7 @@ static TEvaluateDerivativesFunc GetEvaluateDerivativesFunc(ELossFunction lossFun
case ELossFunction::Poisson:
return EvaluateDerivativesForError<TPoissonError>;
default:
- CB_ENSURE(false, "provided error function is not supported yet");
+ CB_ENSURE(false, "Error function " + ToString(lossFunction) + ... |
define max width for instance cards | @@ -22,6 +22,7 @@ const containerStyle = {
const cellStyle = {
flex: 1,
+ maxWidth: '700px',
}
const Home = ({ instances, status }) =>
|
Change CI scripts directory | @@ -60,21 +60,20 @@ install:
- export GOPATH=$HOME/gopath
- go version
-- git clone https://github.com/michal-narajowski/mynewt-travis-ci ci
-- chmod +x ci/*.sh
-- ci/${TRAVIS_OS_NAME}_travis_install.sh
+- git clone https://github.com/michal-narajowski/mynewt-travis-ci $HOME/ci
+- chmod +x $HOME/ci/*.sh
+- $HOME/ci/${T... |
integration/TestEbpftop: Check for any captured event | @@ -595,10 +595,11 @@ func TestEbpftop(t *testing.T) {
Cmd: "$KUBECTL_GADGET top ebpf -o json",
StartAndStop: true,
ExpectedOutputFn: func(output string) error {
- expectedEntry := &ebpftopTypes.Stats{
- Name: "ig_top_ebpf_it",
- Type: "Tracing",
- }
+ // Top gadgets truncate their output to 20 rows by default
+ // Eve... |
ble_mesh:change the location of print ready | @@ -67,7 +67,6 @@ void app_main(void)
#else
repl_config.prompt = "esp32>";
#endif
- printf("!!!ready!!!\n");
// init console REPL environment
ESP_ERROR_CHECK(esp_console_new_repl_uart(&uart_config, &repl_config, &repl));
@@ -84,7 +83,7 @@ void app_main(void)
#if (CONFIG_BLE_MESH_CFG_CLI)
ble_mesh_register_configuration... |
Fix 404 in our Readme.md
There were some broken links in the Basics of Luos, Nodes, Packages, Services and Messages sections. | @@ -25,8 +25,8 @@ Luos proposes organized and effective development practices, guaranteeing develo
This section details the features of Luos technology as an embedded development platform, following these subjects:
* Let's test through the [Luos get started](https://docs.luos.io/get-started/get-started/), to build, fla... |
SOVERSION bump to version 6.1.14 | @@ -68,7 +68,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 6)
set(SYSREPO_MINOR_SOVERSION 1)
-set(SYSREPO_MICRO_SOVERSION 13)
+set(SYSREPO_MICRO_S... |
Modify sizeof(instsize_t) to 1 byte
instsize_t uses 1 byte acturlly, while alloced 4 bytes before. | typedef struct dynablocklist_s dynablocklist_t;
typedef struct instsize_s {
- unsigned int x86:4;
- unsigned int nat:4;
+ unsigned char x86:4;
+ unsigned char nat:4;
} instsize_t;
typedef struct dynablock_s {
|
Enable pending push test
Actually just forgot about rawlen. | @@ -138,12 +138,11 @@ tests = testGroup "Push"
<* Lua.pop 1
assert $ retrievedList == list
- -- PENDING: enable once Lua.len becomes available
- -- , testProperty "table size equals list length" $ \list -> monadicIO $ do
- -- tableSize <- run $ Lua.run $ do
- -- pushList pushString list
- -- Lua.len Lua.stackTop
- -- a... |
using cached locations to speed up kicks | @@ -1728,8 +1728,19 @@ _n_hock(u3_noun cor, _n_site* sit_u)
static u3_weak
_n_kick(u3_noun cor, _n_site* sit_u)
{
- u3_weak loc, pro = u3_none;
+ u3_weak loc = u3_none,
+ pro = u3_none;
+ if ( u3_none != sit_u->loc ) {
+ if ( c3y == _n_fine(cor, sit_u->fin_u) ) {
+ loc = sit_u->loc;
+ if ( c3y == sit_u->jet_o ) {
+ pro... |
Fix cut/paste glitch | @@ -572,7 +572,7 @@ int blas_thread_init(void){
thread_status[i].status = THREAD_STATUS_WAKEUP;
pthread_mutex_init(&thread_status[i].lock, NULL);
- pthread_cond_init (&thread_status[i].wakeup, NULL)
+ pthread_cond_init (&thread_status[i].wakeup, NULL);
#ifdef NEED_STACKATTR
ret=pthread_create(&blas_threads[i], &attr,
|
improved help: inform user that some useful frames are filtered out, when running filtermode=2 | @@ -5735,7 +5735,7 @@ printf("%s %s (C) %s ZeroBeat\n"
" do not interact with ACCESS POINTs and CLIENTs from this list\n"
" 2: use filter list as target list\n"
" only interact with ACCESS POINTs and CLIENTs from this list\n"
- " not recommended, because important pre-authentication frames will be lost due to MAC rando... |
Add missing zeroing to identity algorithm in 16bit case | @@ -37,6 +37,7 @@ void hash__u16__u16__bufs__u32(uint16_t* result, enum_HashAlgorithm_t hash, uint
case enum_HashAlgorithm_identity:
{
+ *result = 0;
memcpy(result, data.buffer, data.buffer_size > 2 ? 2 : data.buffer_size);
}
break;
|
rand: fix coverity data race condition | @@ -158,7 +158,8 @@ int RAND_poll(void)
}
# ifndef OPENSSL_NO_DEPRECATED_3_0
-int RAND_set_rand_method(const RAND_METHOD *meth)
+static int rand_set_rand_method_internal(const RAND_METHOD *meth,
+ ossl_unused ENGINE *e)
{
if (!RUN_ONCE(&rand_init, do_rand_init))
return 0;
@@ -167,13 +168,18 @@ int RAND_set_rand_method(... |
sysdeps/managarm: Stub sys_umask | @@ -2832,6 +2832,13 @@ int sys_fchownat(int dirfd, const char *pathname, uid_t owner, gid_t group, int
return 0;
}
+int sys_umask(mode_t mode, mode_t *old) {
+ (void)mode;
+ mlibc::infoLogger() << "mlibc: sys_umask is a stub, hardcoding 022!" << frg::endlog;
+ *old = 022;
+ return 0;
+}
+
int sys_utimensat(int dirfd, c... |
add SRCFLAGS support 4 yasm command | @@ -2560,7 +2560,7 @@ class Yasm(object):
output = '${{output;noext;suf={}:SRC}}'.format('${OBJ_SUF}.o' if self.fmt != 'win' else '${OBJ_SUF}.obj')
print '''\
macro _SRC_yasm_impl(SRC, PREINCLUDES[], SRCFLAGS...) {{
- .CMD={} -f {}$HARDWARE_ARCH {} -D ${{pre=_;suf=_:HARDWARE_TYPE}} -D_YASM_ $ASM_PREFIX_VALUE {} ${{YASM... |
hdata: MS AREA endian fix
[oliver: fix up drift] | @@ -512,14 +512,14 @@ static void add_memory_buffer_mmio(const struct HDIF_common_hdr *msarea)
const struct HDIF_array_hdr *array;
unsigned int i, count, ranges = 0;
struct dt_node *membuf;
- uint64_t *reg, *flags;
+ beint64_t *reg, *flags;
if (PVR_TYPE(mfspr(SPR_PVR)) != PVR_TYPE_P9P)
return;
- if (be32_to_cpu(msarea-... |
new version message fix | @@ -3348,10 +3348,11 @@ static void onHttpVesrsionGet(const net_get_data* data)
(version.major == TIC_VERSION_MAJOR && version.minor == TIC_VERSION_MINOR && version.patch > TIC_VERSION_REVISION))
{
char msg[TICNAME_MAX];
- sprintf(msg, " new version %i.%i.%i available\n", version.major, version.minor, version.patch);
+... |
desktop: fix wasPressed/wasReleased | @@ -24,6 +24,8 @@ static struct {
double prevCursorX;
double prevCursorY;
+ bool mouseDown;
+ bool prevMouseDown;
float offset;
float clipNear;
@@ -149,9 +151,8 @@ static bool desktop_isDown(Device device, DeviceButton button, bool* down, bool*
if (device != DEVICE_HAND_LEFT || button != BUTTON_TRIGGER) {
return false;... |
doc: also mention to install git
+ say package name of ccmake | ## Dependencies
-For the base system you only need cmake and build-essential (make, gcc,
-some Unix tools):
+For the base system you only need cmake, git, and build-essential
+(make, gcc, and some standard Unix tools; alternatively ninja and
+clang are also supported but not described here):
- sudo apt-get install cmak... |
doc: write more about ENABLE_DEBUG
see | @@ -442,14 +442,20 @@ It is not recommended to use these options.
Build documentation with doxygen (API) and ronn (man pages).
+
#### Developer Options
-As developer you should enable `ENABLE_DEBUG` and `ENABLE_LOGGER`.
-By default no logging will take place, see [CODING](/doc/CODING.md)
-for information about logging.... |
py/parsenum: Adjust braces so they are balanced. | @@ -319,11 +319,13 @@ mp_obj_t mp_parse_num_decimal(const char *str, size_t len, bool allow_imag, bool
return mp_obj_new_complex(0, dec_val);
} else if (force_complex) {
return mp_obj_new_complex(dec_val, 0);
+ }
#else
if (imag || force_complex) {
raise_exc(mp_obj_new_exception_msg(&mp_type_ValueError, "complex values ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.