message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
libtool: update %files | @@ -94,10 +94,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
-%dir %{OHPC_UTILS}
-%dir %{OHPC_MODULES}
-%{OHPC_UTILS}
-%{OHPC_MODULES}/autotools
+%{OHPC_PUB}
%doc AUTHORS
%doc ChangeLog
%doc COPYING
|
Turns out that EOF indicates a connection has been closed. Handle both EOF and POLLHUP. | @@ -36,7 +36,7 @@ int main(int argc, char **argv) {
char *hostaddrp; /* dotted decimal host addr string */
int optval; /* flag value for setsockopt */
int rc, i, j, fd;
- int numfds, lerr;
+ int numfds;
#if 0
fd_set workfds, masterfds, exceptfds;
struct timeval tv;
@@ -227,16 +227,27 @@ int main(int argc, char **argv) ... |
[core] fix (startup) mem leaks in configparser.y
(thx stbuehler) | @@ -323,7 +323,10 @@ value(A) ::= key(B). {
value(A) ::= STRING(B). {
A = (data_unset *)data_string_init();
- buffer_copy_buffer(&((data_string *)A)->value, B);
+ /* assumes data_string_init() result does not require swap and buffer_free()*/
+ memcpy(&((data_string *)A)->value, B, sizeof(*B));
+ free(B);
+ B = NULL;
}
... |
[io] compile with and wihout bullet | #include <Bullet5DR.hpp>
#include <Bullet2dR.hpp>
#else
-#include <NewtonEulerDS.hpp>
#include <NewtonEuler3DR.hpp>
#include <NewtonEuler5DR.hpp>
-#include <RigidBody2dDS.hpp>
#include <SpaceFilter.hpp>
-DUMMY(RigidBody2dDS, LagrangianDS)
DUMMY(BulletR, NewtonEuler3DR);
DUMMY(Bullet5DR, NewtonEuler5DR);
-toot
+#include... |
sysdeps/managarm: Handle EINVAL in sigaction | #include <stddef.h>
#include <stdint.h>
#include <string.h>
+#include <errno.h>
#include <hel.h>
#include <hel-syscalls.h>
@@ -78,6 +79,8 @@ int sys_sigaction(int number, const struct sigaction *__restrict action,
managarm::posix::SvrResponse<MemoryAllocator> resp(getSysdepsAllocator());
resp.ParseFromArray(recv_resp->... |
brya: Set BC12 interrupt trigger to FALLING
The EC GPIO review recommends setting the BC12 interrupts to trigger on
the FALLING edge instead of BOTH.
BRANCH=none
TEST=boots on board ID 1 | @@ -20,15 +20,15 @@ GPIO_INT(SLP_S3_L, PIN(A, 5), GPIO_INT_BOTH, power_signal_
GPIO_INT(SLP_SUS_L, PIN(F, 1), GPIO_INT_BOTH, power_signal_interrupt)
GPIO_INT(SYS_SLP_S0IX_L, PIN(D, 5), GPIO_INT_BOTH, power_signal_interrupt)
GPIO_INT(TABLET_MODE_L, PIN(9, 5), GPIO_INT_BOTH, gmr_tablet_switch_isr)
-GPIO_INT(USB_C0_BC12_I... |
Document why we don't use a calibrated colorspace... | @@ -2184,9 +2184,9 @@ xform_document(
{
fz_set_cmm_engine(context, &fz_cmm_engine_lcms);
-# if 0
+# if 0 /* MuPDF crashes - known bug */
/*
- * Create a calibrated colorspace using the AdobeRGB values.
+ * Create a calibrated colorspace using the AdobeRGB (1998) values.
*/
static float wp_val[] = { 0.9505f, 1.0f, 1.089... |
Add a generic way to request a plugin restart to the host | @@ -110,6 +110,11 @@ typedef struct clap_host {
// Query an extension.
// [thread-safe]
const void *(*extension)(const struct clap_host *host, const char *extension_id);
+
+ // Ask the host to deactivate and then reactivate the plugin.
+ // The operation may be delayed by the host.
+ // [thread-safe]
+ void (*restart_p... |
List regular files with ls(.. LS_FILES)
Currently it can give you a regular file, block/char device, fifo or a
socket. | @@ -89,7 +89,7 @@ std::vector<std::string> ls(const char* root, const char* prefix, LS_FLAGS flags
continue;
if (((flags & LS_DIRS) && S_ISDIR(s.st_mode))
- || ((flags & LS_FILES) && !S_ISDIR(s.st_mode))) {
+ || ((flags & LS_FILES) && S_ISREG(s.st_mode))) {
list.push_back(dp->d_name);
}
} else if (((flags & LS_DIRS) &&... |
Restores 'md' variable name in hmac_handler | @@ -1542,7 +1542,7 @@ static ACVP_RESULT app_sha_handler(ACVP_TEST_CASE *test_case)
static ACVP_RESULT app_hmac_handler(ACVP_TEST_CASE *test_case)
{
ACVP_HMAC_TC *tc;
- const EVP_MD *mac;
+ const EVP_MD *md;
HMAC_CTX hmac_ctx;
int msg_len;
@@ -1554,19 +1554,19 @@ static ACVP_RESULT app_hmac_handler(ACVP_TEST_CASE *test... |
parse orig_img to img instead of copying, faster this way | @@ -170,7 +170,9 @@ def create_frame(filename, beatmap, skin, skin_path, replay_event, resultinfo, s
timer2 = 0
while osr_index < end_index: # len(replay_event) - 3:
if osr_index >= start_index:
+ if img.size[0] == 1:
img = orig_img.copy() # reset background
+ img.paste(orig_img, (0, 0))
k1, k2, m1, m2 = keys(cursor_ev... |
extmod/machine_signal: Change VLA to use new scoped allocation API. | @@ -58,7 +58,7 @@ STATIC mp_obj_t signal_make_new(const mp_obj_type_t *type, size_t n_args, size_t
// If first argument isn't a Pin-like object, we filter out "invert"
// from keyword arguments and pass them all to the exported Pin
// constructor to create one.
- mp_obj_t pin_args[n_args + n_kw * 2];
+ mp_obj_t *pin_ar... |
Added undocumeted kernel debug flag set | @@ -5203,6 +5203,8 @@ modules:
nid: 0x88758561
functions:
printf: 0x391B74B7
+ ksceDebugDisableInfoDump: 0xF857CDD6
+ ksceDebugSetHandlers: 0x10067B7B
SceSblSsMgr:
nid: 0xFDDD93FA
libraries:
|
dm: fix memory leakage issue in acrn_parse_cpu_affinity
fix memory leakage issue in function 'acrn_parse_cpu_affinity()',
memory pointed by 'cp' is not released before function return. | @@ -99,11 +99,11 @@ static void add_one_pcpu(int pcpu_id)
*/
int acrn_parse_cpu_affinity(char *opt)
{
- char *str, *cp;
+ char *str, *cp, *cp_opt;
int pcpu_id;
int pcpu_start, pcpu_end;
- cp = strdup(opt);
+ cp_opt = cp = strdup(opt);
if (!cp) {
pr_err("%s: strdup returns NULL\n", __func__);
return -1;
@@ -126,7 +126,7... |
Add fsync=off for all gpdemo deployments. | @@ -386,6 +386,10 @@ if [ "${BLDWRAP_POSTGRES_CONF_ADDONS}" != "__none__" ] && \
[ -f ${CLUSTER_CONFIG_POSTGRES_ADDONS} ] && chmod a+w ${CLUSTER_CONFIG_POSTGRES_ADDONS}
echo ${BLDWRAP_POSTGRES_CONF_ADDONS} | sed -e 's/\[//g' -e 's/\]//g' | tr "," "\n" | sed -e 's/^\"//g' -e 's/\"$//g' >> ${CLUSTER_CONFIG_POSTGRES_ADDON... |
Modify audio utc of negative case
change file premission of utc_aduio_main | @@ -88,7 +88,7 @@ static void utc_audio_pcm_open_tc_p(void)
static void utc_audio_pcm_open_tc_n(void)
{
struct pcm *pcm;
- pcm = pcm_open(-1, -1, PCM_IN, NULL);
+ pcm = pcm_open(999, 999, PCM_IN, NULL);
TC_ASSERT_LEQ("pcm_open", pcm_get_file_descriptor(pcm), 0)
pcm_close(pcm);
TC_SUCCESS_RESULT();
@@ -218,7 +218,7 @@ s... |
netutils: Check lo by CONFIG_NET_LOOPBACK not CONFIG_NET_LOCAL
CONFIG_NET_LOCAL is used to enable Unix Domain Socket | #elif defined(CONFIG_NET_TUN)
# define NET_DEVNAME "tun0"
# define NETINIT_HAVE_NETDEV
-#elif defined(CONFIG_NET_LOCAL)
+#elif defined(CONFIG_NET_LOOPBACK)
# define NET_DEVNAME "lo"
# define NETINIT_HAVE_NETDEV
#elif defined(CONFIG_NET_CAN)
|
fix http_code_print() now properly addressed server erros (5xx) | @@ -27,6 +27,9 @@ http_code_print(enum http_code code)
CASE_RETURN_STR(HTTP_TOO_MANY_REQUESTS);
CASE_RETURN_STR(HTTP_GATEWAY_UNAVAILABLE);
default:
+ if (code >= 500) {
+ return "5xx SERVER ERROR";
+ }
ERROR("Invalid HTTP response code (code: %d)", code);
}
}
|
Updated button_maps.json | "Tuya3gangMap": {
"vendor": "Tuya",
"doc": "3-gang remote",
- "modelids": ["_TZ3000_bi6lpsew", "_TZ3400_keyjhapk", "_TYZB02_key8kk7r", "_TZ3400_keyjqthh", "_TZ3400_key8kk7r", "_TZ3000_vp6clf9d", "_TYZB02_keyjqthh", "_TZ3000_peszejy7", "_TZ3000_qzjcsmar", "_TZ3000_owgcnkrh", "_TZ3000_adkvzooy", "_TZ3000_arfwfgoa", "_TZ3... |
hoon: updates +fil to bloq-truncate the repeated atom | ++ fil :: fill bloqstream
~/ %fil
|= [a=bloq b=step c=@]
- =+ n=0
- =+ d=c
+ =| n=@ud
+ =. c (end a c)
+ =/ d c
|- ^- @
?: =(n b)
(rsh a d)
|
fix OS_ID test in root Makefile
fixup for
redhat, centos -> rpm
debian, ubuntu -> deb | @@ -30,9 +30,9 @@ OS_ID = $(shell grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"
OS_VERSION_ID= $(shell grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
endif
-ifeq ($(OS_ID),ubuntu)
+ifeq ($(filter ubuntu debian,$(OS_ID)),$(OS_ID))
PKG=deb
-else ifeq ($(OS_ID),centos)
+else ifeq ($(fil... |
WindowExplorer: Hide window tab for system processes | * main program
*
* Copyright (C) 2011 wj32
+ * Copyright (C) 2017 dmex
*
* This file is part of Process Hacker.
*
@@ -168,11 +169,11 @@ VOID NTAPI ProcessPropertiesInitializingCallback(
)
{
PPH_PLUGIN_PROCESS_PROPCONTEXT propContext = Parameter;
- BOOLEAN isGuiProcess = TRUE;
- // enum threads, IsGuiThread, isGuiProces... |
graph-store: subscribers always keep minimal logs
Transposes the change in so
that subscribers always keep the minimum possible logs. | %tags ~|('cannot send %tags as poke' !!)
%tag-queries ~|('cannot send %tag-queries as poke' !!)
==
+ ++ put-update-log
+ |= [=resource:store =update-log:store =time =logged-update:store]
+ ^- update-log:store
+ ?: =(our.bowl entity.resource)
+ (put:orm-log update-log time logged-update)
+ %+ gas:orm-log *update-log:sto... |
Fix memory leak in pluto_mark_vector | @@ -177,6 +177,9 @@ void pluto_mark_vector(struct clast_stmt *root, const PlutoProg *prog,
* trans matrix */
printf("[pluto] pluto_mark_vector: WARNING: vectorizable poly loop not "
"found in AST\n");
+ free(stmtids);
+ free(loops);
+ free(stmts);
continue;
}
for (j = 0; j < nloops; j++) {
|
board: arcada: Fix magnetometer axis rotation
Fix the rotation of the magnetometer measurements.
BRANCH=None
TEST=Compare raw magnetometer data with pixel 3 | @@ -136,7 +136,7 @@ struct motion_sensor_t motion_sensors[] = {
.port = I2C_PORT_SENSOR,
.addr = LIS2MDL_ADDR,
.default_range = 1 << 11, /* 16LSB / uT, fixed */
- .rot_standard_ref = NULL, /* TODO rotate correctly */
+ .rot_standard_ref = &lid_rot_ref,
.min_frequency = LIS2MDL_ODR_MIN_VAL,
.max_frequency = LIS2MDL_ODR_... |
stm32/boards/NUCLEO_L073RZ: Fix typo in MCU name. | */
#define MICROPY_HW_BOARD_NAME "NUCLEO-L073RZ"
-#define MICROPY_HW_MCU_NAME "STM32F073RZT6"
+#define MICROPY_HW_MCU_NAME "STM32L073RZT6"
#define MICROPY_EMIT_THUMB (0)
#define MICROPY_EMIT_INLINE_THUMB (0)
|
sdl/system_android: Add SDL_IsAndroidTV() for SDL2 2.0.8 | package sdl
-// #include "sdl_wrapper.h"
+/*
+#include "sdl_wrapper.h"
+
+#if !(SDL_VERSION_ATLEAST(2,0,8))
+#pragma message("SDL_IsAndroidTV is not supported before SDL 2.0.8")
+static int SDL_IsAndroidTV(void)
+{
+ return -1;
+}
+#endif
+*/
import "C"
import "unsafe"
@@ -42,3 +52,9 @@ func AndroidGetJNIEnv() unsafe.P... |
cirrus: fix non-default library path on Fedora | @@ -236,6 +236,7 @@ task:
tests_script:
- export PATH=$PATH:"$CIRRUS_WORKING_DIR/install/bin"
- export LUA_CPATH="${CIRRUS_WORKING_DIR}/install/lib/lua/5.2/?.so;"
+ - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$CIRRUS_WORKING_DIR/install/lib"
- *run_tests
task:
|
SOVERSION bump to version 2.23.0 | @@ -65,8 +65,8 @@ set(LIBYANG_MICRO_VERSION 234)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
-set(LIBYANG_MINOR_SOVERSION 22)
-set(LIBYANG_MICRO_SOVERSION 7)
+set(LIBYANG_MINOR_SOVERSION 23)
+set(LIBYANG_MICR... |
dpdk: display rx/tx burst function name in "show hardware detail" | #include <vlib/unix/cj.h>
#include <assert.h>
+#define __USE_GNU
+#include <dlfcn.h>
+
#include <vnet/ethernet/ethernet.h>
#include <dpdk/device/dpdk.h>
@@ -478,6 +481,17 @@ format_dpdk_device_errors (u8 * s, va_list * args)
return s;
}
+static const char *
+ptr2sname (void *p)
+{
+ Dl_info info = { 0 };
+
+ if (dladdr... |
session client tls UPDATE use directly provided peername | @@ -620,17 +620,9 @@ cleanup:
}
static int
-nc_client_tls_connect_check(int connect_ret, SSL *tls)
+nc_client_tls_connect_check(int connect_ret, SSL *tls, const char *peername)
{
int verify;
- const char *peername = "<unknown>";
-
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L // >= 1.1.0
- /* get peer name (hostname of th... |
kubect-gadget: Update seccomp to use the new profile name approach | @@ -52,7 +52,7 @@ var seccompAdvisorListCmd = &cobra.Command{
var (
outputMode string
- seccompProfileName string
+ profilePrefix string
)
func init() {
@@ -65,9 +65,9 @@ func init() {
"output-mode", "m",
"terminal",
"The trace output mode, possibles values are terminal and seccomp-profile.")
- seccompAdvisorStartCmd.P... |
Un-backtick 'The scope Executable' heading | @@ -119,7 +119,7 @@ export LD_PRELOAD=./libscope.so
This will set the `LD_PRELOAD` environment variable for all commands that execute in the current shell. The result is that all commands executed from the shell will cause `libscope.so` to be loaded and details of those applications emitted.
-# The `scope` Executable
+... |
[Y_FORCE_INLINE] Don't force inling for coverage build | @@ -385,7 +385,7 @@ module BASE_UNIT {
}
when ($CLANG_COVERAGE && $CLANG_COVERAGE != "no") {
- CFLAGS+=-fprofile-instr-generate -fcoverage-mapping
+ CFLAGS+=-fprofile-instr-generate -fcoverage-mapping -DCLANG_COVERAGE
LDFLAGS+=-fprofile-instr-generate -fcoverage-mapping
}
|
DPDK: disabling DPAA since broken for 18.02 | @@ -209,6 +209,12 @@ $(B)/custom-config: $(B)/.patch.ok Makefile
$(call set,RTE_LIBRTE_FLOW_CLASSIFY,n)
$(call set,RTE_KNI_KMOD,n)
$(call set,RTE_EAL_IGB_UIO,n)
+ @# currently broken in 18.02
+ $(call set,RTE_LIBRTE_DPAA_BUS,n)
+ $(call set,RTE_LIBRTE_DPAA_MEMPOOL,n)
+ $(call set,RTE_LIBRTE_DPAA_PMD,n)
+ $(call set,RTE... |
board/coffeecake/usb_pd_policy.c: Format with clang-format
BRANCH=none
TEST=none
Tricium: disable | @@ -192,7 +192,8 @@ static int dp_status(int port, uint32_t *payload)
0, /* request exit DP */
0, /* request exit USB */
0, /* MF pref */
- gpio_get_level(GPIO_PD_SBU_ENABLE), 0, /* power
+ gpio_get_level(GPIO_PD_SBU_ENABLE),
+ 0, /* power
low
*/
0x2);
|
BugID:18679699: fix exp8266 flash write bug | @@ -74,7 +74,7 @@ static void flash_write_data(UINT8 *buffer, unsigned int address, unsigned int l
memset(buf, 0xff, size);
memcpy(buf + left_off, buffer, len);
vPortETSIntrLock();
- ret = spi_flash_write(start_addr - left_off, (unsigned int *)buf, len);
+ ret = spi_flash_write(start_addr - left_off, (unsigned int *)bu... |
lldp: protection code to check a valid interface index
When lldp interface is set, it's better to check valid interface index. | @@ -49,9 +49,16 @@ lldp_cfg_intf_set (u32 hw_if_index, u8 ** port_desc, u8 ** mgmt_ip4,
lldp_main_t *lm = &lldp_main;
vnet_main_t *vnm = lm->vnet_main;
ethernet_main_t *em = ðernet_main;
- const vnet_hw_interface_t *hi = vnet_get_hw_interface (vnm, hw_if_index);
- const ethernet_interface_t *eif = ethernet_get_inter... |
HLS memcopy : corrected Action_Config init values | #include "ap_int.h"
#include "action_memcopy_hls.h"
-#define MEMCOPY_ACTION_TYPE 0x0004
+#define MEMCOPY_ACTION_TYPE 0x14101000
-#define RELEASE_VERSION 0xFEEDA00400000020
+#define RELEASE_VERSION 0x00000020
// ----------------------------------------------------------------------------
// Known Limitations => Issue #3... |
cr50: prepare to release 0.4.9
BRANCH=cr50, cr50-mp
TEST=none | "timestamp": 0,
"epoch": 0, // FWR diversification contributor, 32 bits.
"major": 4, // FW2_HIK_CHAIN counter.
- "minor": 8, // Mostly harmless version field.
+ "minor": 9, // Mostly harmless version field.
"applysec": -1, // Mask to and with fuse BROM_APPLYSEC.
"config1": 13, // Which BROM_CONFIG1 actions to take befo... |
Add build instructions for ESP32-C3 | ## Build for ESP-IDF
-Download and install ESP-IDF v4.0
+Download and install ESP-IDF v4.3-beta1
```sh
export IDF_PATH=/opt/esp32/esp-idf
@@ -13,7 +13,9 @@ source $IDF_PATH/export.sh
idf.py menuconfig
# Select target:
-idf.py set-target esp32s2beta # or esp32
+idf.py set-target esp32
+#idf.py set-target esp32s2
+#idf.p... |
perfmon: fix order in cmakelists.txt
Fix ordering in CMakeLists.txt
Type: refactor | @@ -23,21 +23,21 @@ add_vpp_plugin(perfmon
perfmon.c
intel/core.c
intel/uncore.c
- intel/bundle/backend_bound_mem.c
intel/bundle/backend_bound_core.c
+ intel/bundle/backend_bound_mem.c
+ intel/bundle/branch_mispred.c
+ intel/bundle/cache_hit_miss.c
+ intel/bundle/frontend_bound_bw_src.c
+ intel/bundle/frontend_bound_bw... |
nimble/ll: Ignore SCAN_RSP not addresses to us
We shoould not send reports for SCAN_RSP that has AdvA which is not
ours.
This fixes LL/DDI/SCN/BI-03. | @@ -3180,33 +3180,16 @@ ble_ll_scan_rx_pkt_in(uint8_t ptype, struct os_mbuf *om, struct ble_mbuf_hdr *hd
goto scan_continue;
}
- /*
- * XXX: The BLE spec is a bit unclear here. What if we get a scan
- * response from an advertiser that we did not send a request to?
- * Do we send an advertising report? Do we add it to ... |
base: improve the robustness of CPU topology scanning | @@ -27,8 +27,9 @@ static int cpu_scan_topology(void)
{
char path[PATH_MAX];
DEFINE_BITMAP(numa_mask, NNUMA);
- int i;
+ DEFINE_BITMAP(cpu_mask, NCPU);
uint64_t tmp;
+ int i;
/* How many NUMA nodes? */
if (sysfs_parse_bitlist("/sys/devices/system/node/online",
@@ -42,10 +43,29 @@ static int cpu_scan_topology(void)
}
}
+... |
process: cleanup after the test | @@ -197,6 +197,7 @@ kdb set user:/tests/process/key not_allowed
# STDERR:.*Validation Semantic: .*'not_allowed' does not adhere to whitelist.*
# cleanup
+kdb rm -r user:/tests/process
sudo kdb umount user:/tests/process
```
|
Fix bug with invalid data types for netconn | @@ -49,8 +49,8 @@ typedef struct esp_netconn_t {
size_t rcv_packets; /*!< Number of received packets so far on this connection */
esp_conn_p conn; /*!< Pointer to actual connection */
- esp_sys_sem_t mbox_accept; /*!< List of active connections waiting to be processed */
- esp_sys_sem_t mbox_receive; /*!< Message queue... |
Add button map for Linkind 1 key remote control | @@ -908,6 +908,16 @@ static const Sensor::ButtonMap sonoffOnOffMap[] = {
{ Sensor::ModeNone, 0x00, 0x0000, 0x00, 0, 0, nullptr }
};
+static const Sensor::ButtonMap linkind1keyMap[] = {
+// mode ep cluster cmd param button name
+ { Sensor::ModeScenes, 0x01, 0x0006, 0x01, 0, S_BUTTON_1 + S_BUTTON_ACTION_SHORT_RELEASED, "... |
examples: encorder_ctrl: GUI update | @@ -68,22 +68,21 @@ void encoder_ctrl_init(void)
style_mbox_bg.opa = OPA_50;
lv_obj_t * title = lv_label_create(scr, NULL);
- lv_label_set_text(title, "adasds");
+ lv_label_set_text(title, "Encoder control");
lv_obj_set_protect(title, LV_PROTECT_FOLLOW); /*Make a line break in the layout*/
/*Create a holder, a subtitle... |
gppkg: Add concourse job | @@ -648,6 +648,26 @@ jobs:
BLDWRAP_POSTGRES_CONF_ADDONS: ""
GPCHECK_SETUP: true
+- name: MM_gppkg
+ plan:
+ - aggregate:
+ - get: gpdb_src
+ params:
+ submodules:
+ - gpMgmt/bin/pythonSrc/ext
+ passed: [compile_gpdb_centos6]
+ - get: bin_gpdb
+ resource: bin_gpdb_centos6
+ passed: [compile_gpdb_centos6]
+ trigger: true... |
VERSION bump to version 1.3.32 | @@ -30,7 +30,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 1)
set(SYSREPO_MINOR_VERSION 3)
-set(SYSREPO_MICRO_VERSION 31)
+set(SYSREPO_MICRO_VERSION 32)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
fuzz: missing semi-colon after defer | @@ -438,7 +438,7 @@ static bool fuzz_runVerifier(run_t* run) {
PLOG_E("Couldn't create '%s'", verFile);
return true;
}
- defer { close(fd); }
+ defer { close(fd); };
if (!files_writeToFd(fd, run->dynamicFile, run->dynamicFileSz)) {
LOG_E("Couldn't save verified file as '%s'", verFile);
unlink(verFile);
|
sem: Modify default sem flag value in SEM_INITIALIZER
When semaphore is initialized, sem flag should be set FLAGS_INITIALIZED | @@ -136,9 +136,9 @@ typedef struct sem_s sem_t;
*/
#ifdef CONFIG_PRIORITY_INHERITANCE
#if CONFIG_SEM_PREALLOCHOLDERS > 0
-#define SEM_INITIALIZER(c) {(c), 0, NULL} /* semcount, flags, hhead */
+#define SEM_INITIALIZER(c) {(c), FLAGS_INITIALIZED, NULL} /* semcount, flags, hhead */
#else
-#define SEM_INITIALIZER(c) {(c),... |
Tools: dump: do not print metadata if the `-t` option is provided
Filesystem metadata are now dumped only when the user does not set
the `-t` command line option (which is used to dump filesystem
contents in tree format), in order to avoid polluting the dump
output with redundant information. | @@ -140,6 +140,7 @@ closure_function(3, 2, void, fsc,
exit(EXIT_FAILURE);
}
+ unsigned int options = bound(options);
u8 uuid[UUID_LEN];
filesystem_get_uuid(fs, uuid);
tuple root = filesystem_getroot(fs);
@@ -147,8 +148,10 @@ closure_function(3, 2, void, fsc,
bprintf(rb, "Label: %s\n", filesystem_get_label(fs));
bprintf... |
Updated make clean target to do a deeper clean | @@ -117,7 +117,7 @@ calibrate_tcc : $(LIBSURVIVE_C)
tcc -DRUNTIME_SYMNUM $(CFLAGS) -o $@ $^ $(LDFLAGS) calibrate.c redist/os_generic.c $(DRAWFUNCTIONS) redist/symbol_enumerator.c
clean :
- rm -rf *.o src/*.o *~ src/*~ test simple_pose_test data_recorder calibrate testCocoa lib/libsurvive.so test_minimal_cv test_epnp te... |
apps/speed.c: skip binary curves when compiling with OPENSSL_NO_EC2M
openssl speed doesn't take into account that the library could be
compiled without the support for the binary curves and happily uses
them, which results in EC_GROUP_new_by_curve_name() errors. | @@ -524,6 +524,7 @@ static OPT_PAIR ecdsa_choices[] = {
{"ecdsap256", R_EC_P256},
{"ecdsap384", R_EC_P384},
{"ecdsap521", R_EC_P521},
+#ifndef OPENSSL_NO_EC2M
{"ecdsak163", R_EC_K163},
{"ecdsak233", R_EC_K233},
{"ecdsak283", R_EC_K283},
@@ -534,6 +535,7 @@ static OPT_PAIR ecdsa_choices[] = {
{"ecdsab283", R_EC_B283},
{... |
Corrected reference to clap_plugin_audio_ports members to use the correct names. | @@ -45,8 +45,8 @@ typedef struct clap_process {
const clap_event_transport_t *transport;
// Audio buffers, they must have the same count as specified
- // by clap_plugin_audio_ports->get_count().
- // The index maps to clap_plugin_audio_ports->get_info().
+ // by clap_plugin_audio_ports->count().
+ // The index maps to... |
OcAppleKernelLib: Fix uninitialised data access caused by improper vtable construction | @@ -469,9 +469,7 @@ InternalInitializeVtableByEntriesAndRelocations64 (
if (OcSymbol != NULL) {
VtableEntries[Index].Name = OcSymbol->Name;
VtableEntries[Index].Address = OcSymbol->Value;
- } else {
- VtableEntries[Index].Name = NULL;
- VtableEntries[Index].Address = 0;
+ continue;
}
} else {
if (SolveSymbolIndex >= Nu... |
fix loop limits in mcpha-server.c | @@ -514,7 +514,7 @@ int main(int argc, char *argv[])
*rst[3] |= 128;
/* start pulser */
total = 0;
- for(i = 0; i < 4095; ++i)
+ for(i = 0; i < 4096; ++i)
{
total += spectrum[i];
}
@@ -522,7 +522,7 @@ int main(int argc, char *argv[])
if(total < 2) continue;
value = 0;
- for(i = 0; i < 4095; ++i)
+ for(i = 0; i < 4096; ... |
sdl: haptic.go: Fix HapticOpened() returning error on success | @@ -225,7 +225,10 @@ func HapticOpen(index int) (*Haptic, error) {
// (https://wiki.libsdl.org/SDL_HapticOpened)
func HapticOpened(index int) (bool, error) {
ret := int(C.SDL_HapticOpened(C.int(index)))
- return ret == C.SDL_TRUE, errorFromInt(ret)
+ if ret == 0 {
+ return false, GetError()
+ }
+ return ret == 1, nil
}... |
Added error message in dynlink_impl_interface_load_win32 when unable to load library | #include <dynlink/dynlink_impl.h>
+#include <log/log.h>
+
#include <string.h>
#define WIN32_LEAN_AND_MEAN
@@ -44,6 +46,8 @@ dynlink_impl dynlink_impl_interface_load_win32(dynlink handle)
return (dynlink_impl)impl;
}
+ log_write("metacall", LOG_LEVEL_ERROR, "Failed to load: %s with error code: %d", dynlink_get_name_impl... |
HARD_CODED option wor wasienv | @@ -35,9 +35,12 @@ if(WASIENV)
set(CMAKE_C_COMPILER "wasicc")
set(CMAKE_CXX_COMPILER "wasic++")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -flto -Wl,--lto-O3 -Wl,-z,stack-size=8388608")
+
+ if(HARD_CODED) # Bundle a wasm binary and run a hard-coded func
set(APP_DIR "platforms/emscripten")
- #set(CMAKE_C_FL... |
OcAppleKernelLib: Try to match more values against xcpm_msr_applicable_cpus
0x33DC is just one of them... | @@ -278,7 +278,7 @@ PatchAppleXcpmExtraMsrs (
Status = PatcherGetSymbolAddress (Patcher, "_xcpm_pkg_scope_msrs", (UINT8 **) &Record);
if (!RETURN_ERROR (Status)) {
while (Record < Last) {
- if (Record->xcpm_msr_applicable_cpus == 0x33DC) {
+ if ((Record->xcpm_msr_applicable_cpus & 0xFF0000FDU) == 0xDC) {
DEBUG ((
DEBUG... |
clay: delete /app/publish from subscription state on migration | ++ migrate-dist
~> %slog.0^'clay: migrating for third-party software distribution'
|^ ^+ ..park
+ =. ..park purge
:: first make sure gall has molted and has :hood running
::
=. ..park (emit hen %pass /dist/hood %g %jolt %home %hood)
=. ..park (install-from-tmp %base)
..park(dist-upgraded.ruf &)
::
+ ++ purge
+ ^+ ..par... |
codegen: remove broken line wrapping | @@ -189,70 +189,6 @@ static std::string camelCaseToMacroCase (const std::string & s)
return ss.str ();
}
-static void printWrapped (std::ostream & out, std::string line, size_t maxChars)
-{
- // find indent
- std::stringstream indent;
- for (auto cur = line.begin (); cur != line.end () && isspace (*cur); ++cur)
- {
- i... |
pbio/motor_process: restart timer instead of reset
This ensures we (re)start counting from this point. This ensures a slightly more constant (if slower) loop time on ev3dev, which takes a long time to run the control update.
While technically less acurate on stm32, the difference is negligible. | @@ -76,7 +76,7 @@ PROCESS_THREAD(pbio_motor_process, ev, data) {
}
// Reset timer to wait for next update
- etimer_reset(&timer);
+ etimer_restart(&timer);
}
PROCESS_END();
|
sim: fix signal crash in SMP mode
reproduce:
sim:smp
ostest
reason:
shouldn't do sim_sigdeliver() in irq handler | @@ -89,10 +89,6 @@ void *up_doirq(int irq, void *context)
CURRENT_REGS = NULL;
#ifdef CONFIG_SMP
- /* Handle signal */
-
- sim_sigdeliver();
-
/* Then switch contexts */
longjmp(regs, 1);
|
tests: add rms check for slurm to confirm x11 support included | @@ -17,3 +17,8 @@ fi
run ls /usr/lib64/slurm/job_submit_lua.so
assert_success
}
+
+@test "[slurm] check for --x11 option" {
+ run srun --x11 --pty /bin/bash
+ assert_output "srun: error: No DISPLAY variable set, cannot setup x11 forwarding."
+}
|
Format jpm with spork. | @@ -560,7 +560,6 @@ int main(int argc, const char **argv) {
(meta :static-entry)
"(JanetTable *);\n"))
-
# Build image
(def image (marshal main mdict))
# Make image byte buffer
|
[build] Enable DCE for bare-metal platforms
ISSUE: | @@ -38,7 +38,7 @@ _LD_DCE_FLAG_PRINT_SECTIONS=
when ($OS_DARWIN == "yes") {
_LD_DCE_FLAG_GC_SECTIONS=-Wl,-dead_strip
}
-elsewhen ($OS_LINUX == "yes" || $OS_ANDROID == "yes") {
+elsewhen ($OS_LINUX == "yes" || $OS_ANDROID == "yes" || $OS_NONE == "yes") {
_LD_DCE_FLAG_GC_SECTIONS=-Wl,--gc-sections
when ($LINKER_DCE_PRINT... |
improve reading of samples in scanner.c | @@ -14,7 +14,7 @@ int main()
{
int fd, sock_server, sock_client;
struct sockaddr_in addr;
- int i, j, counter, position, size, yes = 1;
+ int i, j, n, counter, position, size, yes = 1;
uint32_t command, code, data, period, pulses, shdelay, shtime;
uint32_t *coordinates;
uint64_t buffer[1024], tmp;
@@ -191,22 +191,24 @@... |
Fixed payment processing | @@ -64,12 +64,14 @@ namespace MiningForce.Blockchain.Bitcoin
var pageCount = (int) Math.Ceiling(blocks.Length / (double) pageSize);
var result = new List<Block>();
+ var immatureCount = 0;
+
for (int i = 0; i < pageCount; i++)
{
// get a page full of blocks
var page = blocks
.Skip(i * pageSize)
- .Take(pageCount)
+ .Ta... |
chat-cli: Update ;help link
The link used here resolves with a 301 to the proper page for messaging usage, but not actually the 'messaging' section of that page. This commit provides a more direct link to the exact instructions. | ++ help
^- (quip move _this)
=- [[- ~] this]
- (print:sh-out "see https://urbit.org/docs/using/messaging/")
+ (print:sh-out "see https://urbit.org/using/operations/using-your-ship/#messaging")
--
--
::
|
workflows: fix ordering issue | @@ -337,7 +337,9 @@ jobs:
id-token: write
runs-on: [ ubuntu-latest ]
environment: ${{ inputs.environment }}
- needs: call-build-images-push-manifests
+ needs:
+ - call-build-images-push-manifests
+ - call-build-images-multiarch
steps:
- name: Install cosign
uses: sigstore/cosign-installer@main
|
Fix no gop functionality | @@ -471,7 +471,7 @@ static double search_cu(encoder_state_t * const state, int x, int y, int depth,
return 0;
}
- int gop_layer = ctrl->cfg.gop_len != 1 ? ctrl->cfg.gop[state->frame->gop_offset].layer - 1 : 0;
+ int gop_layer = ctrl->cfg.gop_len != 0 ? ctrl->cfg.gop[state->frame->gop_offset].layer - 1 : 0;
// Assign co... |
client session MAINTENANCE remove useless cast | @@ -1558,7 +1558,7 @@ _nc_connect_libssh(ssh_session ssh_session, struct ly_ctx *ctx, struct nc_keepal
session->ti.libssh.session = ssh_session;
/* was port set? */
- ssh_options_get_port(ssh_session, (unsigned int *)&port);
+ ssh_options_get_port(ssh_session, &port);
if (ssh_options_get(ssh_session, SSH_OPTIONS_HOST, ... |
drm.c: Initialize surface to NULL | @@ -580,7 +580,7 @@ update_outputs(struct chck_pool *outputs)
if (drm.use_egldevice && !set_crtc_default_mode(info))
continue;
- struct gbm_surface *surface;
+ struct gbm_surface *surface = NULL;
if (!drm.use_egldevice && !(surface = gbm_surface_create(drm.device, info->width, info->height, GBM_BO_FORMAT_XRGB8888, GBM_... |
options/ansi: Add localeconv() for C locale | +#include <limits.h>
#include <locale.h>
#include <string.h>
#include <mlibc/debug.hpp>
#include <frg/optional.hpp>
+namespace {
+ // Values of the C locale are defined by the C standard.
+ lconv c_locale_lconv = {
+ const_cast<char *>("."), // decimal_point
+ const_cast<char *>(""), // thousands_sep
+ const_cast<char ... |
GetNanMode should work with any feature
for ctrs it just forbidden always | @@ -52,14 +52,15 @@ namespace NCatboostCuda {
}
ENanMode GetNanMode(const ui32 featureId) const {
+ ENanMode nanMode = ENanMode::Forbidden;
+ if (FeatureManagerIdToDataProviderId.has(featureId)) {
CB_ENSURE(IsFloat(featureId));
const ui32 dataProviderId = FeatureManagerIdToDataProviderId[featureId];
if (NanModes.has(da... |
[software] Do not strip debug symbols from Halide | @@ -30,7 +30,6 @@ $(BINARIES): $(BIN_DIR)/$(APP_PREFIX)%: %/$(PIPELINE) %/main.c.o $(RUNTIME) $(L
mkdir -p $(dir $@)
$(RISCV_CC) -I$(HALIDE_INCLUDE) $(RISCV_LDFLAGS) -o $@ $(filter-out $(LINKER_SCRIPT),$^) -T$(RUNTIME_DIR)/link.ld
$(RISCV_OBJDUMP) $(RISCV_OBJDUMP_FLAGS) -D $@ > $@.dump
- $(RISCV_STRIP) $@ -S --strip-un... |
Formatter: Fixed padding of immediate values | @@ -517,19 +517,20 @@ static ZydisStatus ZydisPrintImmIntel(const ZydisFormatter* formatter, ZydisStri
{
case 8:
return ZydisStringAppendHexS(string, (ZydisI8)operand->imm.value.s,
- formatter->formatImm, formatter->hexUppercase, formatter->hexPrefix,
+ formatter->hexPaddingImm, formatter->hexUppercase, formatter->hexP... |
Handle AFU JSON that describes multiple VFs | @@ -118,9 +118,12 @@ def flatten_json(subargs):
entries['afu_image_' + tag] = v
# Some special names, taken from other levels
- accel = image['accelerator-clusters'][0]
- entries['afu_accel_name'] = '"' + accel['name'] + '"'
- entries['afu_accel_uuid'] = accel['accelerator-type-uuid']
+ entries['afu_accel_name'] = []
+... |
scripts: cp instead of mv
see | @@ -16,7 +16,7 @@ ctest --output-on-failure -LE external
# rotate backup of previous website
rm -rf /usr/local/share/elektra/tool_data_backup
-mv /usr/local/share/elektra/tool_data /usr/local/share/elektra/tool_data_backup || /bin/true
+cp -ra /usr/local/share/elektra/tool_data /usr/local/share/elektra/tool_data_backup... |
Add backlight to hardware-test | using namespace blit;
void init() {
- set_screen_mode(screen_mode::hires);
+ set_screen_mode(screen_mode::lores);
}
void render(uint32_t time) {
@@ -80,9 +80,9 @@ void render(uint32_t time) {
fb.text(buf_joystick_x, &minimal_font[0][0], point(5, 80+7));
fb.text(buf_joystick_y, &minimal_font[0][0], point(5, 80+14));
- c... |
apps: Fix bug by calling getrandom | #include <unistd.h>
#include <string.h>
+#include <sys/random.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
@@ -128,12 +129,12 @@ static const uint8_t g_partition_type_swap[16] =
static void get_uuid(FAR uint8_t *uuid)
{
- int fd;
- fd = open("/dev/urandom", O_RDONLY);
- if (fd > 0)
+ /* call getrandom to read /dev/u... |
GFIR: assume max filter length when coef count > auto length | @@ -835,6 +835,12 @@ int LMS7_Device::SetGFIRCoef(bool tx, unsigned chan, lms_gfir_t filt, const doub
else
L = div;
+ if ((filt==LMS_GFIR3 ? 15 : 5)*L < count)
+ {
+ lime::warning("GFIR: disabling auto coef ordering (auto length < coef count)");
+ L = 8;
+ }
+
double max=0;
for (unsigned i=0; i< count; i++)
if (fabs(co... |
tests/python_bart: remove superfluous test
this is already tested in tests/pythoncfl.mk | @@ -4,15 +4,6 @@ tests/test-python-bart: $(TOOLDIR)/python/bart.py bart
PYTHONPATH=$(TOOLDIR)/python python3 -c "import bart; bart.bart(0,'version -V')"
touch $@
-tests/test-python-cfl: $(TOOLDIR)/python/bart.py $(TESTS_OUT)/shepplogan.ra nrmse
- set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
- PYTHONPATH=$(TOOLDIR)/p... |
Rdoc Markup link format and add links where helpful. | @@ -21,8 +21,8 @@ function properly. libxml2, in turn, depends on:
If you are running Linux or Unix you'll need a C compiler so the
extension can be compiled when it is installed. If you are running
Windows, then install the x64-mingw32 gem or build it yourself using
-Devkit (http://rubyinstaller.org/add-ons/devkit/) o... |
Fix build if only python3 is available | @@ -117,14 +117,14 @@ add_custom_command(
OUTPUT create_zero_base_enclave.conf
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/make-oesign-config.py
COMMAND
- python ${CMAKE_CURRENT_SOURCE_DIR}/make-oesign-config.py --config_file
+ ${PYTHON} ${CMAKE_CURRENT_SOURCE_DIR}/make-oesign-config.py --config_file
create_zero_base_enclave.c... |
options/posix: Change realpath to use strrchr instead of strchr when
removing .. segments from paths | @@ -267,7 +267,7 @@ char *realpath(const char *path, char *out) {
}else if(s_view == "..") {
// Remove a single segment from resolv.
if(resolv.size() > 1) {
- auto slash = strchr(resolv.data(), '/');
+ auto slash = strrchr(resolv.data(), '/');
__ensure(slash); // We never remove the leading sla.
resolv.resize((slash - ... |
decision: apply reformat | @@ -123,7 +123,6 @@ We remove the parent key of `kdbGet` and `kdbSet` and always return the keyset o
> However, in an application that used `system:/foo` as the parent, the `meta:/override` would work with your proposal.
> To me that seems like very confusing behavior, because both the application and the plugin seemin... |
add format string | @@ -208,10 +208,10 @@ static void cmd_exec(FILE *fp, const char request[], int allow_debug)
}
} else {
// Print usage
- fprintf(fp, g_server_usage);
+ fprintf(fp, "%s", g_server_usage);
if (allow_debug) {
- fprintf(fp, g_server_usage_debug);
+ fprintf(fp, "%s", g_server_usage_debug);
}
}
}
|
Use memcpy for load operations | @@ -700,6 +700,9 @@ d_m3SetRegisterSetSlot (f64, _fp0)
#endif
+// memcpy here is to support non-aligned access on some platforms.
+// TODO: check if this is optimized-out on x86/x64, and performance impact
+
#define d_m3Load(REG,DEST_TYPE,SRC_TYPE) \
d_m3Op(DEST_TYPE##_Load_##SRC_TYPE##_r) \
{ \
@@ -711,7 +714,9 @@ d_m... |
HV: trusty: refine version checking when initializing trusty
Replace if--else logic with switch--case when checking interface
version.
Acked-by: Zhu Bing | @@ -417,28 +417,30 @@ bool initialize_trusty(struct vcpu *vcpu, uint64_t param)
return false;
}
- if (boot_param.version > TRUSTY_VERSION_2) {
- dev_dbg(ACRN_DBG_TRUSTY, "%s: Version(%u) not supported!\n",
- __func__, boot_param.version);
- return false;
- }
-
- trusty_entry_gpa = (uint64_t)boot_param.entry_point;
- tr... |
Fix Init Crash | #include "smessage.h"
#include "ringsig.h"
-#ifdef USE_IPFS
-#include <ipfs/client.h>
-#include <ipfs/http/transport.h>
-#endif
-
#ifdef USE_NATIVETOR
#include "tor/anonymize.h" //Tor native optional integration (Flag -nativetor=1)
#endif
@@ -1381,29 +1376,6 @@ bool AppInit2()
pblockAddrIndex->nHeight, GetTimeMillis() ... |
Removed duplicate jobs | @@ -514,25 +514,6 @@ jobs:
BLDWRAP_POSTGRES_CONF_ADDONS: ""
TEST_OS: "centos"
-- name: QP_runaway-query
- plan:
- - aggregate:
- - get: gpdb_src
- passed: [compile_gpdb_centos6]
- trigger: true
- - get: bin_gpdb
- passed: [compile_gpdb_centos6]
- resource: bin_gpdb_centos6
- - get: centos-gpdb-dev-6
- - task: runaway-q... |
gpcloud: fix broken gps3ext symbolic link | @@ -46,7 +46,7 @@ mkgphdfs:
mkgpcloud:
PATH=$(INSTLOC)/bin:$(PATH) $(MAKE) -C gpcloud USE_PGXS=1 install
PATH=$(INSTLOC)/bin:$(PATH) $(MAKE) -C gpcloud/bin/gpcheckcloud USE_PGXS=1 install
- ln -sf $(pkglibdir)/gpcloud.so $(pkglibdir)/gps3ext.so
+ ln -sf gpcloud.so $(pkglibdir)/gps3ext.so
# Only include include these fi... |
benchmarks: fix plugingetset | @@ -25,11 +25,10 @@ int main (int argc, char ** argv)
typedef enum
{
BOTH,
- GET,
- Default = BOTH
+ GET
} Direction;
- Direction direction;
+ Direction direction = BOTH;
if (argc == 5) direction = GET;
const char * path = argv[1];
|
hw/drivers/lps33thw: Restore read error stats | @@ -375,6 +375,12 @@ lps33thw_i2c_get_regs(struct sensor_itf *itf, uint8_t reg, uint8_t size,
rc = i2cn_master_write_read_transact(itf->si_num, &wdata, &rdata,
MYNEWT_VAL(LPS33THW_I2C_TIMEOUT_TICKS) * (size + 1),
1, MYNEWT_VAL(LPS33THW_I2C_RETRIES));
+ if (rc) {
+ LPS33THW_LOG(ERROR, "I2C access failed at address 0x%02... |
run_babelstream.sh - add additional error checking. | @@ -41,8 +41,13 @@ omp_src="main.cpp OMPStream.cpp"
hip_src="main.cpp HIPStream.cpp"
std="-std=c++11"
+if [ -d $AOMP_REPOS_TEST/BabelStream ]; then
cd $AOMP_REPOS_TEST/BabelStream
rm -f results.txt
+else
+ echo "ERROR: BabelStream not found in $AOMP_REPOS_TEST."
+ exit 1
+fi
echo RUN_OPTIONS: $RUN_OPTIONS
for option in... |
Add status text for unknown sids | @@ -485,6 +485,10 @@ static NTSTATUS NTAPI PhpTokenGroupResolveWorker(
PhSetListViewSubItem(context->ListViewHandle, lvItemIndex, PH_PROCESS_TOKEN_INDEX_NAME, PhGetString(fullUserName));
PhDereferenceObject(fullUserName);
}
+ else
+ {
+ PhSetListViewSubItem(context->ListViewHandle, lvItemIndex, PH_PROCESS_TOKEN_INDEX_N... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.