message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
u3: rewrites +find jet with necessary uint precision
and fixes end-of-haystack bug | */
#include "all.h"
+STATIC_ASSERT( (UINT32_MAX > u3a_cells),
+ "list index precision" );
-/* functions
-*/
u3_noun
u3qb_find(u3_noun nedl, u3_noun hstk)
{
- u3_atom i = 0;
-
- while ( 1 ) {
- if ( u3_nul == nedl) {
- return u3_nul;
- } else if ( u3_nul == hstk ) {
- return u3_nul;
+ if ( u3_nul != nedl ) {
+ c3_w i_w ... |
BugID:17401889: fix the white scan FORWARD_NULL problem | @@ -210,7 +210,7 @@ static bool linkedListAdd( MacCommandsList_t* list, MacCommand_t* element )
*/
static MacCommand_t* linkedListGetPrevious( MacCommandsList_t* list, MacCommand_t* element )
{
- if( ( list == 0 ) && ( element == 0 ) )
+ if( ( list == 0 ) || ( element == 0 ) )
{
return NULL;
}
|
fix compiling error for gcc 5.3.1.
error: format not a string literal and no format arguments [-Werror=format-security] | @@ -442,7 +442,7 @@ static bool zbc_parse_config(const char *cfgstring, struct zbc_dev_config *cfg,
err:
msg = "Invalid configuration string format";
failed:
- if (!msg || asprintf(reason, msg) == -1)
+ if (!msg || asprintf(reason, "%s", msg) == -1)
*reason = NULL;
return false;
}
|
Update record.c
remove startms/endms methods | @@ -544,10 +544,10 @@ CYCLONE_OBJ_API void record_tilde_setup(void)
class_addmethod(record_class, (t_method)record_dsp, gensym("dsp"), A_CANT, 0);
class_addlist(record_class, (t_method)record_list);
class_domainsignalin(record_class, -1);
- class_addmethod(record_class, (t_method)record_startms,
+/* class_addmethod(rec... |
bugID:18002625:Esp32 wifi potential memory issue. | @@ -229,15 +229,16 @@ static int wifi_set_mode(hal_wifi_module_t *m, hal_wifi_mode_t mode)
static int wifi_connect_prepare(hal_wifi_module_t *m, char *ssid, char *password)
{
int ret = -1;
- wifi_config_t config = {};
+ wifi_config_t config;
+ memset(&config, 0, sizeof(wifi_config_t));
/* Out of limit */
if (strlen(ssi... |
[lwIP] Fix the lwIP 2.0.2 IAR compile error when the `RT_LWIP_USING_RT_MEM` macro is not defined. | @@ -203,8 +203,7 @@ typedef uintptr_t mem_ptr_t;
* \#define LWIP_DECLARE_MEMORY_ALIGNED(variable_name, size) u32_t variable_name[(size + sizeof(u32_t) - 1) / sizeof(u32_t)]
*/
#ifndef LWIP_DECLARE_MEMORY_ALIGNED
-//#define LWIP_DECLARE_MEMORY_ALIGNED(variable_name, size) u8_t variable_name[LWIP_MEM_ALIGN_BUFFER(size)]
... |
fix installed agent dir windows | @@ -108,7 +108,7 @@ char* getOidcDir() {
oidc_error_t createOidcDir() {
#ifdef __MSYS__
- char* path = fillEnvVarsInPath(AGENTDIR_LOCATION_DOT);
+ char* path = fillEnvVarsInPath(AGENTDIR_LOCATION_CONFIG);
#else
list_t* possibleLocations = getPossibleOidcDirLocations();
if (possibleLocations == NULL) {
|
ssot: Conform release dates to handwritten table
Conform the GPU release dates in the ssot-derived table with the
handwritten table of the same information.
Output here: | @@ -1240,6 +1240,7 @@ class GpuGP107(GpuGP100):
id = 0x137
pciid = 0x1c80
hda_pciid = 0x0fb9
+ date = "10.25.2016"
bios_chip = 0x07
class GpuGP108(GpuGP100):
@@ -1258,6 +1259,7 @@ class GpuGV100(GpuGP100):
hda_pciid = 0x10f2
gpc_count = 6
tpc_count = 7
+ date = "12.07.2017"
bios_major = 0x88
bios_chip = 0x00
@@ -1273,6... |
Keep winding with flip | @@ -110,12 +110,11 @@ Texture* lovrFontGetTexture(Font* font) {
void lovrFontRender(Font* font, const char* str, size_t length, float wrap, HorizontalAlign halign, float* vertices, uint16_t* indices, uint16_t baseVertex) {
FontAtlas* atlas = &font->atlas;
- bool flip = font->flip;
int height = lovrRasterizerGetHeight(f... |
HAVE_MACRO_PREFIX_MAP is a var. | @@ -134,7 +134,7 @@ if (UPNP_BUILD_SHARED)
)
target_compile_options (upnp_shared
- PRIVATE $<$<BOOL:HAVE_MACRO_PREFIX_MAP>:-fmacro-prefix-map=${CMAKE_SOURCE_DIR}/=.>
+ PRIVATE $<$<BOOL:${HAVE_MACRO_PREFIX_MAP}>:-fmacro-prefix-map=${CMAKE_SOURCE_DIR}/=.>
)
target_include_directories (upnp_shared
@@ -193,7 +193,7 @@ if (... |
hv: refine handler to 'rdpmc' vmexit
PMC is hidden from guest and hypervisor should
inject UD to guest when 'rdpmc' vmexit.
Acked-by: Anthony Xu | @@ -65,7 +65,7 @@ static const struct vm_exit_dispatch dispatch_table[NR_VMX_EXIT_REASONS] = {
[VMX_EXIT_REASON_INVLPG] = {
.handler = unhandled_vmexit_handler,},
[VMX_EXIT_REASON_RDPMC] = {
- .handler = unhandled_vmexit_handler},
+ .handler = undefined_vmexit_handler},
[VMX_EXIT_REASON_RDTSC] = {
.handler = unhandled_... |
i3-dmenu-desktop test: Do not autostart i3
This actually fixes a hang that happens on my machine for some reason.
Regardless, starting i3 is not necessary for this test. | # and sends the command to i3 for execution.
# Ticket: #5152, #5156
# Bug still in: 4.21-17-g389d555d
-use i3test;
+use i3test i3_autostart => 0;
use i3test::Util qw(slurp);
use File::Temp qw(tempfile tempdir);
use POSIX qw(mkfifo);
|
OcAppleBootCompatLib: Log MAT support | @@ -870,6 +870,7 @@ SetGetVariableHookHandler (
if (!EFI_ERROR (Status)) {
if (FwRuntime->Revision == OC_FIRMWARE_RUNTIME_REVISION) {
DEBUG ((DEBUG_INFO, "OCABC: Got rendezvous with OpenRuntime r%u\n", OC_FIRMWARE_RUNTIME_REVISION));
+ DEBUG ((DEBUG_INFO, "OCABC: MAT support is %d\n", OcGetMemoryAttributes (NULL) != NU... |
ias: stale reference fix to ht controller | @@ -19,8 +19,8 @@ DEFINE_BITMAP(ias_ht_punished_cores, NCPU);
static void ias_ht_punish(struct ias_data *sd, unsigned int core)
{
+ struct ias_data *sib_sd;
unsigned int sib = sched_siblings[core];
- bool idle = cores[sib] == NULL;
/* check if the core is already punished */
if (sd != cores[core] || bitmap_test(ias_ht_... |
dpdk:fix tx count | @@ -522,13 +522,14 @@ CLIB_MULTIARCH_FN (dpdk_interface_tx) (vlib_main_t * vm,
}
/* transmit as many packets as possible */
- n_packets = mb - ptd->mbufs;
+ tx_pkts = n_packets = mb - ptd->mbufs;
n_left = tx_burst_vector_internal (vm, xd, ptd->mbufs, n_packets);
{
/* If there is no callback then drop any non-transmitte... |
Added lock in ifr ioctl calls. | @@ -641,6 +641,8 @@ static int netdev_ifr_ioctl(FAR struct socket *psock, int cmd,
ninfo("cmd: %d\n", cmd);
+ net_lock();
+
/* Execute the command */
switch (cmd)
@@ -1139,6 +1141,8 @@ static int netdev_ifr_ioctl(FAR struct socket *psock, int cmd,
break;
}
+ net_unlock();
+
return ret;
}
|
rpc: window update logic fixed.
with 20 <= us < 40, window will increase. Especially us=20 will
incur divide by zero error. | @@ -63,8 +63,8 @@ static void srpc_update_window(struct srpc_session *s)
if (us >= 20) {
if (us > 60)
us = 60;
- float scale = (us - 20) / 40;
- s->win = (float)s->win / (2.0 * scale);
+ float scale = 1.0 + (us - 20) / 40.0;
+ s->win = (float)s->win / scale;
} else {
s->win++;
}
|
OpenCoreUefi: Fix whitelist generation | @@ -436,7 +436,8 @@ OcLoadBooterUefiSupport (
NextIndex = 0;
for (Index = 0; Index < Config->Booter.Quirks.MmioWhitelist.Count; ++Index) {
if (Config->Booter.Quirks.MmioWhitelist.Values[Index]->Enabled) {
- AbcSettings.MmioWhitelist[++NextIndex] = Config->Booter.Quirks.MmioWhitelist.Values[Index]->Address;
+ AbcSetting... |
Ensure proper alignment with 'CacheBlockBytes' in charcount test | #include "rocc.h"
-char string[64] = "The quick brown fox jumped over the lazy dog";
+char string[64] __attribute__ ((aligned (64))) = "The quick brown fox jumped over the lazy dog";
static inline unsigned long count_chars(char *start, char needle)
{
|
Fixed warning when attempting to print out pthread_t. | @@ -320,11 +320,11 @@ stop_ws_server (GWSWriter * gwswriter, GWSReader * gwsreader) {
reader = gwsreader->thread;
if (pthread_join (reader, NULL) != 0)
- LOG (("Unable to join thread: %lu %s\n", reader, strerror (errno)));
+ LOG (("Unable to join thread gwsreader: %s\n", strerror (errno)));
writer = gwswriter->thread;
... |
Stack trace on panic() skips unprintable frames | #define _BACKTRACE_SIZE 12
-void _panic(const char* msg, const char* file, int line) {
- //enter infinite loop
- asm("cli");
- printf("Assertion failed: %s\n", msg);
- printf("%s:%d\n", file, line);
- if (true) {
+void print_stack_trace(int frame_count) {
printf("Stack trace:\n");
uint32_t stack_addrs[_BACKTRACE_SIZE] ... |
edit diff BUGFIX do not use a freed node
Fixes | @@ -253,7 +253,7 @@ sr_edit_find(const struct lyd_node *first_node, const struct lyd_node *edit_node
if (ret < 0) {
/* error */
- sr_errinfo_new_ly(&err_info, lyd_node_module(data_key)->ctx);
+ sr_errinfo_new_ly(&err_info, lyd_node_module(iter)->ctx);
return err_info;
} else if (!ret) {
/* values actually differ */
|
Add PhSetEnabledEMenuItem | @@ -230,6 +230,18 @@ VOID PhSetDisabledEMenuItem(
Item->Flags |= PH_EMENU_DISABLED;
}
+FORCEINLINE
+VOID PhSetEnabledEMenuItem(
+ _In_ PPH_EMENU_ITEM Item,
+ _In_ BOOLEAN Enable
+ )
+{
+ if (Enable)
+ Item->Flags &= ~PH_EMENU_DISABLED;
+ else
+ Item->Flags |= PH_EMENU_DISABLED;
+}
+
#ifdef __cplusplus
}
#endif
|
tls: enable async node on demand
Type: fix | @@ -117,8 +117,6 @@ evt_pool_init (vlib_main_t * vm)
}
om->polling = NULL;
- openssl_async_node_enable_disable (0);
-
return;
}
@@ -521,9 +519,9 @@ VLIB_REGISTER_NODE (tls_async_process_node,static) = {
.function = tls_async_process,
.type = VLIB_NODE_TYPE_INPUT,
.name = "tls-async-process",
+ .state = VLIB_NODE_STATE_... |
don't delay path response with the CWIN | @@ -203,22 +203,6 @@ protoop_arg_t schedule_frames(picoquic_cnx_t *cnx) {
}
}
- if (cwin > bytes_in_transit) {
- /* if present, send tls data */
- if (tls_ready) {
- ret = helper_prepare_crypto_hs_frame(cnx, 3, &bytes[length],
- send_buffer_min_max - checksum_overhead - length, &data_bytes);
-
- if (ret == 0) {
- lengt... |
io-libs/netcdf: bump vrsion to v4.6.1 | @@ -41,7 +41,7 @@ Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
Summary: C Libraries for the Unidata network Common Data Form
License: NetCDF
Group: %{PROJ_NAME}/io-libs
-Version: 4.5.0
+Version: 4.6.1
Release: 1%{?dist}
Url: http://www.unidata.ucar.edu/software/netcdf/
Source0: https://github.com/Unidat... |
Jenkins: Add `-Werror` to `debian-unstable-full` | @@ -498,7 +498,8 @@ def generateFullBuildStages() {
tasks << buildAndTest(
"debian-unstable-full",
DOCKER_IMAGES.sid,
- CMAKE_FLAGS_BUILD_ALL,
+ CMAKE_FLAGS_BUILD_ALL +
+ CMAKE_FLAGS_WERROR,
[TEST.ALL, TEST.MEM, TEST.INSTALL]
)
|
app: add library context and propq arguments to opt_md() and opt_cipher()
Also avoid calling EVP_get_XXXbyname() if legacy paths aren't allowed. | @@ -378,8 +378,10 @@ int opt_cipher_silent(const char *name, EVP_CIPHER **cipherp)
EVP_CIPHER *c;
ERR_set_mark();
- if ((c = EVP_CIPHER_fetch(NULL, name, NULL)) != NULL
- || (c = (EVP_CIPHER *)EVP_get_cipherbyname(name)) != NULL) {
+ if ((c = EVP_CIPHER_fetch(app_get0_libctx(), name,
+ app_get0_propq())) != NULL
+ || (... |
webp-lossless-bitstream-spec,cosmetics: normalize capitalization
in section headings | @@ -634,7 +634,7 @@ We use image data in five different roles:
[Color Indexing Transform](#color-indexing-transform). This is stored as an
image of width `color_table_size` and height `1`.
-### 4.2 Encoding of Image data
+### 4.2 Encoding of Image Data
The encoding of image data is independent of its role.
|
CMSIS_DAP: __USED attribute for Fixed Target strings (can be patched externally) | @@ -60,10 +60,10 @@ volatile uint8_t DAP_TransferAbort; // Transfer Abort Flag
static const char DAP_FW_Ver [] = DAP_FW_VER;
#if TARGET_FIXED
-const char TargetDeviceVendor [128] = TARGET_DEVICE_VENDOR;
-const char TargetDeviceName [128] = TARGET_DEVICE_NAME;
-const char TargetBoardVendor [128] = TARGET_BOARD_VENDOR;
-... |
wireless/bcm43xxx: skip bad channel bss | #define DL_BEGIN 0x0002
#define DL_END 0x0004
-#define WPA_OUI "\x00\x50\xF2" /* WPA OUI */
#define WPA_OUI_LEN 3 /* WPA OUI length */
-#define WPA_OUI_TYPE 1
-#define WPA_VERSION 1 /* WPA version */
#define WPA_VERSION_LEN 2 /* WPA version length */
#define WLAN_WPA_OUI 0xf25000
#define WLAN_WPA_OUI_TYPE 0x01
#define ... |
examples: text: Revert sdl.RenderUTF8_Solid() to sdl.RenderUTF8Solid() | @@ -37,7 +37,7 @@ func run() int {
}
defer font.Close()
- if solid, err = font.RenderUTF8_Solid("Hello, World!", sdl.Color{255, 0, 0, 255}); err != nil {
+ if solid, err = font.RenderUTF8Solid("Hello, World!", sdl.Color{255, 0, 0, 255}); err != nil {
fmt.Fprintf(os.Stderr, "Failed to render text: %s\n", err)
return 5
}... |
readme: update arvo test command | @@ -33,7 +33,7 @@ To boot a fake ship with a custom pill, use the `-B` flag:
urbit -F zod -A /path/to/arvo -B /path/to.pill -c fakezod
```
-To run all tests in `/tests`, run `+test` in dojo. `+test /some/path` would only run all tests in `/tests/some/path`.
+To run all tests in `/tests`, run `-test %/tests` in dojo. `-... |
Commented out the maven publishing code in project-level build.gradle since I do not have access to the various passwords and keys created by ytai. Will revert this commit after creating the necessary maven repo and associated keys to publish this fork. | @@ -35,49 +35,49 @@ subprojects {
}
// Common handling for uploading archives to Maven central.
- if (tasks.findByName('uploadArchives')?.repositories?.findByName('mavenDeployer')) {
- signing {
- sign configurations.archives
- }
-
- uploadArchives {
- repositories {
- mavenDeployer {
- beforeDeployment { MavenDeployme... |
yanglint CHANGE enable strict option in interactive yanglint mode | @@ -766,11 +766,10 @@ cmd_data(const char *arg)
}
}
break;
+#endif
case 's':
- options |= LYD_OPT_STRICT;
- options |= LYD_OPT_OBSOLETE;
+ options |= LYD_PARSE_STRICT;
break;
-#endif
case 't':
if (!strcmp(optarg, "auto")) {
/* no flags */
|
Add C to the supported languages in docs. | @@ -98,7 +98,7 @@ This section describes all programming languages that **METACALL** allows to loa
- Currently supported languages and run-times:
| Language | Runtime | Version | Tag |
-|--------------------------------------------------------------------|----------------------------------------------------------------... |
Change xmlrpc schema from http to https | @@ -24,7 +24,7 @@ def fetch(url, retries=4, timeout=5):
def fetch_resource(id_):
- urls = xmlrpclib.ServerProxy("http://sandbox.yandex-team.ru/sandbox/xmlrpc").get_resource_http_links(id_)
+ urls = xmlrpclib.ServerProxy("https://sandbox.yandex-team.ru/sandbox/xmlrpc").get_resource_http_links(id_)
for u in urls:
try:
|
doc: update Kconfig related doc
Replace Kconfig related scheduler configuration with scenario XML
file configuration in tutorials because the Kconfig related files
have been removed in the other PR 6358. | @@ -128,26 +128,11 @@ and BVT (Borrowed Virtual Time) scheduler.
Scheduler configuration
+* The scheduler used at runtime is defined in the scenario XML file
+ via the :option:`hv.FEATURES.SCHEDULER` option. The default scheduler
+ is **SCHED_BVT**. Use the :ref:`ACRN configuration tool <acrn_configuration_tool>`
+ if ... |
Ignore length of resource for PCI ROM request
Writing PCIR_BIOS is to get PCI ROM resource length. Ingore the request
as it's not support currently. Else, guest might get wrong information
about the PCI ROM resource. | @@ -1905,6 +1905,8 @@ pci_cfgrw(struct vmctx *ctx, int vcpu, int in, int bus, int slot, int func,
}
pci_set_cfgdata32(dev, coff, bar);
+ } else if (coff == PCIR_BIOS) {
+ /* ignore ROM BAR length request */
} else if (pci_emul_iscap(dev, coff)) {
pci_emul_capwrite(dev, coff, bytes, *eax);
} else if (coff >= PCIR_COMMAN... |
Travis: Fix failing macOS build job
See also: | @@ -177,6 +177,7 @@ matrix:
- swig
- yajl
- zeromq
+ update: true
env:
# Unfortunately the tests for the Xerces plugin fail: https://travis-ci.org/ElektraInitiative/libelektra/jobs/483331657#L3740
- PLUGINS='ALL;-xerces'
|
Reduce log level of pgVersionFromStr() and pgVersionToStr(). | @@ -521,9 +521,9 @@ pgXactPath(unsigned int pgVersion)
FN_EXTERN unsigned int
pgVersionFromStr(const String *const version)
{
- FUNCTION_LOG_BEGIN(logLevelTrace);
- FUNCTION_LOG_PARAM(STRING, version);
- FUNCTION_LOG_END();
+ FUNCTION_TEST_BEGIN();
+ FUNCTION_TEST_PARAM(STRING, version);
+ FUNCTION_TEST_END();
ASSERT(v... |
detect z14 arch on s390x | #define CPU_GENERIC 0
#define CPU_Z13 1
+#define CPU_Z14 2
static char *cpuname[] = {
"ZARCH_GENERIC",
- "Z13"
+ "Z13",
+ "Z14"
};
static char *cpuname_lower[] = {
"zarch_generic",
- "z13"
+ "z13",
+ "z14"
};
int detect(void)
@@ -62,6 +65,10 @@ int detect(void)
if (strstr(p, "2964")) return CPU_Z13;
if (strstr(p, "2965... |
mangle: mangle_Resize() | @@ -599,26 +599,26 @@ static void mangle_Resize(run_t* run, bool printable) {
ssize_t oldsz = run->dynamicFileSz;
ssize_t newsz = 0;
- uint64_t choice = util_rndGet(0, 27);
+ uint64_t choice = util_rndGet(0, 32);
switch (choice) {
- case 0 ... 16: /* Do nothing */
- newsz = oldsz;
- break;
- case 17: /* Set new size ar... |
Made inline rendering of %exp speeches a bit more consistent. | $exp
:- (tr-chow wyd '#' ' ' (trip exp.sep))
?~ res.sep ~
- =- [[' ' ' ' (snag 0 -)] ~]
- (wash [0 wyd] (snag 0 `(list tank)`res.sep))
+ =- [' ' (tr-chow (dec wyd) ' ' -)]~
+ ~(ram re (snag 0 `(list tank)`res.sep))
::
$ire
$(sep sep.sep)
|
Update the test file size to account for CR/LF vs just LF | @@ -1228,7 +1228,7 @@ static const picoquic_demo_stream_desc_t file_test_scenario[] = {
};
static size_t const demo_file_test_stream_length[] = {
- 4598
+ 4499
};
static size_t nb_file_test_scenario = sizeof(file_test_scenario) / sizeof(picoquic_demo_stream_desc_t);
|
Added new tests in pk_invalid_param | @@ -303,7 +303,6 @@ exit:
void pk_invalid_param()
{
mbedtls_pk_context ctx;
- mbedtls_md_type_t md_alg_none = MBEDTLS_MD_NONE;
mbedtls_pk_type_t pk_type = 0;
unsigned char buf[] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 };
size_t buf_size = sizeof( buf );
@@ -311,21 +310,37 @@ void pk_invalid_param()
mbedtls_pk_init( &ctx... |
Fix linking of go on Windows. | %rename (string) tinyspline::Domain::toString;
%insert(cgo_comment_typedefs) %{
-#cgo LDFLAGS: -L${SRCDIR} -lm -lstdc++ -ltinysplinego
+#cgo !windows LDFLAGS: -L${SRCDIR} -lm -lstdc++ -ltinysplinego
+#cgo windows,!stdcxxshared LDFLAGS: -L${SRCDIR} -ltinysplinego -Wl,-Bstatic -lstdc++
+#cgo windows,stdcxxshared LDFLAGS:... |
Add mirror_replay test to greenplum_schedule
This was missed in commit | @@ -250,6 +250,7 @@ test: oid_wraparound
# fts_recovery_in_progresss uses fault injectors to simulate FTS fault states,
# hence it should be run in isolation.
test: fts_recovery_in_progress
+test: mirror_replay
test: autovacuum-template0
# gpexpand introduce the partial tables, check them if they can run correctly
|
fix MANPATH for mpich, use setenv for MPI_DIR | @@ -99,11 +99,11 @@ module-whatis "URL: %{url}"
set version %{version}
+setenv MPI_DIR %{install_path}
prepend-path PATH %{install_path}/bin
-prepend-path MANPATH %{install_path}/man
+prepend-path MANPATH %{install_path}/share/man
prepend-path LD_LIBRARY_PATH %{install_path}/lib
prepend-path MODULEPATH %{OHPC_MODULEDEP... |
test: allow assertions to execute properly in fixtures.
Before, calling cr_assert from fixtures resulted in undefined behaviour.
We now interpret failing fixtures as we would for tests: exit the test
normally. | @@ -60,9 +60,13 @@ void criterion_internal_test_setup(void)
const struct criterion_test *test = criterion_current_test;
send_event(criterion_protocol_phase_kind_SETUP);
+ if (!cri_setjmp(g_pre_test)) {
if (suite->data)
(suite->data->init ? suite->data->init : nothing)();
(test->data->init ? test->data->init : nothing)(... |
Fix regression related to pluginVsInstall tests.
The package creation was not completed due to problems with ospray libraries.
Fix changes I made previously to FindOSPRay to correct the error. | # Kathleen Biagas, Tue Nov 29 12:29:40 PST 2022
# Use cmake_path instead of GET_FILENAME_SHORTEXT and get_filename_component.
#
+# Kathleen Biagas, Fri Dec 2 20:16:38 PST 2022
+# Use cmake_path to get PARENT_PATH when handling tbb and embree.
+#
#*************************************************************************... |
Update web client. | (fiber/new (fn webrepl []
(repl (fn get-line [buf p]
- (def [line] (parser/where p))
- (def prompt (string "janet:" line ":" (parser/state p) "> "))
+ (def offset (parser/where p))
+ (def prompt (string "janet:" offset ":" (parser/state p) "> "))
(repl-yield prompt buf)
(yield)
buf))))
|
libhfuzz/persistent: better log message for _HF_PERSISTENT_FD readFromFd | @@ -72,8 +72,12 @@ void HonggfuzzFetchData(const uint8_t** buf_ptr, size_t* len_ptr) {
uint64_t rcvLen;
ssize_t sz = files_readFromFd(_HF_PERSISTENT_FD, (uint8_t*)&rcvLen, sizeof(rcvLen));
+ if (sz == -1) {
+ PLOG_F("readFromFd(fd=%d, size=%zu) failed", _HF_PERSISTENT_FD, sizeof(rcvLen));
+ }
if (sz != sizeof(rcvLen)) ... |
Add options to my_supportedactions | @@ -509,6 +509,27 @@ app_init(void)
err |= oc_add_device(deivce_uri, device_rt, device_name, spec_version,
data_model_version, NULL, NULL);
PRINT("\tSwitch device added.\n");
+
+ oc_new_string_array(&my_supportedactions, (size_t)19);
+ oc_string_array_add_item(my_supportedactions, "arrowup");
+ oc_string_array_add_item... |
tests/cmdline/cmd_showbc.py.exp: Update for STORE_NAME_CONST opcode. | @@ -9,24 +9,24 @@ arg names:
########
bc=\\d\+ line=160
00 MAKE_FUNCTION \.\+
-\\d\+ STORE_NAME f
+\\d\+ STORE_NAME_CONST f
\\d\+ MAKE_FUNCTION \.\+
-\\d\+ STORE_NAME f
+\\d\+ STORE_NAME_CONST f
\\d\+ LOAD_CONST_SMALL_INT 1
\\d\+ BUILD_TUPLE 1
\\d\+ LOAD_NULL
\\d\+ MAKE_FUNCTION_DEFARGS \.\+
-\\d\+ STORE_NAME f
+\\d\+ ... |
[jerryx-module]Fix a bug in module name comparison
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang | @@ -179,7 +179,9 @@ jerryx_resolve_native_module (const jerry_value_t canonical_name, /**< canonical
/* Look for the module by its name in the list of module definitions. */
for (module_p = first_module_p; module_p != NULL; module_p = module_p->next_p)
{
- if (module_p->name_p != NULL && !strncmp ((char *) module_p->na... |
ctype: fix size_t printf | @@ -225,7 +225,7 @@ void test_wchar (void)
if (!checkType (k))
{
yield_error ("the following should check successfully as wchar:");
- printf ("0x%lx\n", i);
+ printf ("0x%zx\n", i);
}
}
int x ELEKTRA_UNUSED = wctomb (NULL, 0);
|
PANIC in debug for "local snapshot's xmin is older".
To help debug the issue, PANIC incase encounter this shouldn't happen case. | @@ -216,7 +216,15 @@ DistributedLog_AdvanceOldestXmin(TransactionId oldestLocalXmin,
/* sanity check, this shouldn't happen... */
if (TransactionIdFollows(oldestXmin, oldestLocalXmin))
- elog(ERROR, "local snapshot's xmin is older than recorded distributed oldestxmin");
+ {
+#ifdef USE_ASSERT_CHECKING
+ elog(PANIC,
+#e... |
test/bntest.c: add rsaz_1024_mul_avx2 regression test. | @@ -425,6 +425,28 @@ static int test_modexp_mont5(void)
if (!TEST_BN_eq(c, d))
goto err;
+ /* Regression test for bug in rsaz_1024_mul_avx2 */
+ BN_hex2bn(&a,
+ "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
+ "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
+ "FFFFFFFFFFFFFFFFFFFF... |
edit diff BUGFIX proper insert on special cases
... such as move. | @@ -1303,6 +1303,12 @@ sr_edit_insert(struct lyd_node **first_node, struct lyd_node *parent_node, struc
assert(!(*first_node)->parent || ((*first_node)->parent == (struct lyd_node_inner *)parent_node));
+ /* unlink properly first to avoid unwanted behavior (first node equals new_node or new_node is the first sibling) *... |
Remove old coverage data before starting new test.
The old coverage data has been recorded so it is no longer needed. In newer versions of gcc leaving this file around can lead to an error when writing profile data after forking off to a non-pgbackrest binary (which we do in some unit tests). | @@ -254,6 +254,8 @@ sub run
($self->{oTest}->{&TEST_VM} ne VM_NONE ? 'docker exec -i -u ' . TEST_USER . " ${strImage} " : '') .
"bash -l -c '" .
"cd $self->{strGCovPath} && " .
+ # Remove coverage data from last run
+ "rm -f test.gcda && " .
"make -j $self->{iBuildMax} -s 2>&1 &&" .
($self->{oTest}->{&TEST_VM} ne VM_CO... |
debugging print | @@ -404,6 +404,10 @@ echo '%{_sbindir}/wirecheck' >>lustre-tests.files
echo '%{_sbindir}/wiretest' >>lustre-tests.files
%endif
+echo "***"
+cat lustre.files
+echo "***"
+
%files -f lustre.files
%defattr(-,root,root)
%{_sbindir}/*
|
Correct switch configuration code for Opple/WRS-R02 | @@ -694,10 +694,6 @@ void DeRestPluginPrivate::handleZclAttributeReportIndicationXiaomiSpecial(const
item = r->item(RAttrModelId);
- if (item && item->toString().endsWith(QLatin1String("86opcn01")))
- {
- auto *item2 = r->item(RConfigPending);
-
if (item && (item->toString().endsWith(QLatin1String("86opcn01")) || item-... |
soto: address review | @@ -20,7 +20,6 @@ export default class DojoApp extends Component {
this.store.setStateHandler(this.setState.bind(this));
this.state = this.store.state;
- this.resetControllers = this.resetControllers.bind(this);
}
resetControllers() {
|
testing: Check for lambdas in loops trying break+continue. | @@ -3,6 +3,88 @@ import (Interpreter,
class TestBadLambda < TestCase
{
+ public define test_bad_break
+ {
+ var t = Interpreter()
+
+ # bad break (for loop)
+
+ assert_parse_fails(t, """\
+ SyntaxError: 'break' used outside of a loop.\n \
+ from [test]:2:\n\
+ """,
+ """\
+ for i in 0...10: {
+ var v = (|| break )
+ }
... |
fix manpage of `d2i_X509(3)`
* capitalize `X509_NAME`
* add missing suffixes to `i2d_TYPE`
CLA: trivial | @@ -469,7 +469,7 @@ Represents an ECDSA signature.
Represents an B<AlgorithmIdentifier> structure as used in IETF RFC 6960 and
elsewhere.
-=item B<X509_Name>
+=item B<X509_NAME>
Represents a B<Name> type as used for subject and issuer names in
IETF RFC 6960 and elsewhere.
@@ -588,7 +588,7 @@ fixed in future so code sho... |
compat: add some helpful comments to flb_compat.h
This explains what these macros do and why we need them, which
should make it slightly easier to maintain this file. | * limitations under the License.
*/
+/*
+ * This file contains compatibility functions and macros for various platforms.
+ *
+ * Including this header file should make platforms behave more consistently;
+ * Add more macros if you find any missing features.
+ */
+
#ifndef FLB_COMPAT_H
#define FLB_COMPAT_H
-/* libmonkey... |
Work CI-CD
Fix comment on CMake option feedback.
***NO_CI*** | @@ -202,10 +202,10 @@ option(NF_FEATURE_LIGHT_MATH "option to build without complex math functions")
if(NF_FEATURE_LIGHT_MATH)
set(TARGET_LIGHT_MATH TRUE CACHE INTERNAL "Complex Math functions disabled")
- message(STATUS "Complex math functions not available")
+ message(STATUS "Complex math functions available")
else()... |
Add tinycbor dependency for reboot module | @@ -31,6 +31,7 @@ pkg.deps:
- "@apache-mynewt-core/sys/config"
- "@apache-mynewt-core/sys/flash_map"
- "@apache-mynewt-core/sys/log/modlog"
+ - "@apache-mynewt-core/encoding/tinycbor/"
pkg.deps.(REBOOT_LOG_FCB && LOG_FCB):
- "@apache-mynewt-core/fs/fcb"
|
[P2P][POLARIS] Change minimum version of AERGO
set minimum version to 1.2.3 | @@ -32,7 +32,7 @@ func ParseAergoVersion(verStr string) (AergoVersion, error) {
// Supported Aergo version. polaris will register aergosvr within the version range. This version range should be modified when new release is born.
const (
- MinimumAergoVersion = "v1.2.1"
+ MinimumAergoVersion = "v1.2.3"
MaximumAergoVersi... |
fix(utilityBin2Hex-test.c): fix bug, printf modify to BoatLog, otherwise it will linked error about out function while cross compile. | @@ -20,11 +20,11 @@ int main(int argc, char *argv[])
from_str_len = 4;
UtilityBin2Hex(to_str, from_str, from_str_len, BIN2HEX_LEFTTRIM_UNFMTDATA, BIN2HEX_PREFIX_0x_YES, BOAT_FALSE);
- printf("BIN2HEX_LEFTTRIM_UNFMTDATA = %s\n", to_str);
+ BoatLog(BOAT_LOG_NORMAL, "BIN2HEX_LEFTTRIM_UNFMTDATA = %s\n", to_str);
UtilityBin... |
ipv6-address BUGFIX avoid freeing initialized memory | @@ -150,7 +150,7 @@ lyplg_type_store_ipv6_address(const struct ly_ctx *ctx, const struct lysc_type *
LY_CHECK_GOTO(ret, cleanup);
/* allocate the value */
- val = malloc(sizeof *val);
+ val = calloc(1, sizeof *val);
LY_CHECK_ERR_GOTO(!val, ret = LY_EMEM, cleanup);
/* init storage */
|
fix(ble): Restore manual connection params | @@ -398,6 +398,11 @@ static void connected(struct bt_conn *conn, uint8_t err) {
LOG_DBG("Connected %s", log_strdup(addr));
+ err = bt_conn_le_param_update(conn, BT_LE_CONN_PARAM(0x0006, 0x000c, 30, 400));
+ if (err) {
+ LOG_WRN("Failed to update LE parameters (err %d)", err);
+ }
+
#if IS_SPLIT_PERIPHERAL
bt_conn_le_ph... |
possible fixed previous error, still need to check | @@ -29,6 +29,7 @@ void BodyCopyDistRot(BODY *dest,BODY *src,int iTideModel,int iNumBodies,int iBod
dest[iBody].bForcePrecRate = src[iBody].bForcePrecRate;
dest[iBody].dPrecRate = src[iBody].dPrecRate;
dest[iBody].iCurrentStep = src[iBody].iCurrentStep;
+ dest[iBody].bReadOrbitData = src[iBody].bReadOrbitData;
}
|
Style changes, no functional changes. | static int connecting = 0;
static int finish = 0;
-static unsigned get_tick_count(void)
+static unsigned int get_tick_count(void)
{
#ifdef _WIN32
return GetTickCount();
#else
- struct timeval te;
- gettimeofday(&te, NULL); // get current time
- unsigned milliseconds = te.tv_sec*1000LL + te.tv_usec/1000; // calculate mi... |
cheza: Remove the TODO's of verifying the config values
Checked the resistor values. And some timing and power values are all
the same in other boards.
BRANCH=none
TEST=Flashed the EC and verified charging and sourcing. | #define CONFIG_CHARGER_PSYS_READ
#define CONFIG_CHARGER_DISCHARGE_ON_AC
-/* TODO(b/79163120): Use correct charger values, copied from Lux for rev-0 */
#define CONFIG_CHARGER_INPUT_CURRENT 512
#define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON 2
#define CONFIG_CHARGER_MIN_POWER_MW_FOR_POWER_ON 7500
#define CONFIG_CMD_ACCEL... |
silence a python travis-ci warning
The travis-ci flags a python warning:
$ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
./tools/biolatpcts.py:123:5: F821 undefined name 'die'
die()
^
1 F821 undefined name 'die'
Let us fix it with proper error message and then exit(). | @@ -120,7 +120,8 @@ elif args.which == 'after-rq-alloc':
elif args.which == 'on-device':
start_time_field = 'io_start_time_ns'
else:
- die()
+ print("Invalid latency measurement {}".format(args.which))
+ exit()
bpf_source = bpf_source.replace('__START_TIME_FIELD__', start_time_field)
bpf_source = bpf_source.replace('__... |
Support sending raw transactions to RPC nodes | ==
[%eth-get-filter-logs fid=@ud]
[%eth-get-filter-changes fid=@ud]
+ [%eth-send-raw-transaction dat=@ux]
==
::
::TODO
[%eth-new-filter fid=@ud]
[%eth-get-filter-logs los=(list event-log)]
[%eth-got-filter-changes los=(list event-log)]
+ [%eth-transaction-hash haz=@ux]
==
::
++ event-log
::
%eth-get-filter-changes
['et... |
call out os hwloc dependency | @@ -157,6 +157,11 @@ Conflicts: pbs-cmds
Requires: expat
Requires: python >= 2.6
Requires: python < 3.0
+%if %{defined suse_version}
+Requires: libhwloc5
+%else
+Requires: hwloc-libs
+%endif
Autoreq: 1
%description -n %{pname}-%{pbs_execution}%{PROJ_DELIM}
|
[mod_extforward] adjust trust check for HTTP/2
adjust trust check for HTTP/2 streams, as trust is cached at the
connection level, but headers and scheme may need to be overwritten
per-request | @@ -536,6 +536,7 @@ static int mod_extforward_set_addr(request_st * const r, plugin_data *p, const c
* should not reuse same h2 connection for requests from different clients*/
if (hctx && !buffer_is_unset(&hctx->saved_remote_addr_buf)
&& r->http_version > HTTP_VERSION_1_1) { /*(e.g. HTTP_VERSION_2)*/
+ hctx->request_c... |
tools/Win.mk:Fix an pass1dep error when USERDEPDIRS is empty in Windows native build | @@ -557,7 +557,9 @@ clean_bootloader:
# pass2dep: Create pass2 build dependencies
pass1dep: context tools\mkdeps$(HOSTEXEEXT)
+ifneq ($(USERDEPDIRS),)
$(Q) for %%G in ($(USERDEPDIRS)) do ( $(MAKE) -C %%G depend )
+endif
pass2dep: context tools\mkdeps$(HOSTEXEEXT)
$(Q) for %%G in ($(KERNDEPDIRS)) do ( $(MAKE) -C %%G EXT... |
Update README.md
Correct the order of `Create the database` setup. | @@ -56,9 +56,11 @@ Peercoin | Yes | No |
Create the database:
```bash
-psql (enter the password for postgressql)
createuser miningcore
createdb miningcore
+psql (enter the password for postgressql)
+```
+```sql
alter user miningcore with encrypted password 'some-secure-password';
grant all privileges on database mining... |
add alpn initializer in esp https server default | @@ -152,6 +152,7 @@ typedef struct httpd_ssl_config httpd_ssl_config_t;
.user_cb = NULL, \
.ssl_userdata = NULL, \
.cert_select_cb = NULL \
+ .alpn_protos = NULL \
}
/**
|
passwd: improve wording in readme | @@ -17,7 +17,7 @@ This plugin parses `passwd` files, e.g. `/etc/passwd`.
The non-POSIX function `fgetpwent` (GNU_SOURCE) will be used to
read the file supplied by the resolver.
-As a fallback we implemented our own version which might not behave correctly.
+As a fallback we implemented our own version based on musls `f... |
VERSION bump to version 1.2.0 | @@ -25,8 +25,8 @@ endif()
# minor version changes with added functionality (new tool, functionality of the tool or library, ...) and
# 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 1)
-set(SYSREPO_MICRO_VERSION 14)
+set(... |
minor code cleanup and removed trailing whitespace | -- ::
|% ::
++ calf :: reduce calx
- |* sem/* :: a spansystem hack
+ |* sem/* :: a typesystem hack
|= cax/calx
?+ sem !!
$hood ?>(?=($hood -.cax) r.cax)
==
==
::
- ++ coax !. :: bolt across
+ ++ coax !. :: bolt together
|* {hoc/(bolt) fun/(burg)}
?- -.q.hoc
- $0 =+ nuf=$:fun(,.+<- p.hoc)
+ $0 =+ nuf=(fun p.hoc +<+.fun)... |
predictor_enc,GetBestGreenRedToBlue: quiet implicit conv warnings
no change in object code
from clang-7 -fsanitize=implicit-integer-truncation
implicit conversion from type 'int' of value -16 (32-bit, signed) to
type 'uint8_t' (aka 'unsigned char') changed the value to 240 (8-bit,
unsigned) | @@ -666,8 +666,8 @@ static void GetBestGreenRedToBlue(
break; // out of iter-loop.
}
}
- best_tx->green_to_blue_ = green_to_blue_best;
- best_tx->red_to_blue_ = red_to_blue_best;
+ best_tx->green_to_blue_ = green_to_blue_best & 0xff;
+ best_tx->red_to_blue_ = red_to_blue_best & 0xff;
}
#undef kGreenRedToBlueMaxIters
#u... |
grunt: Enable discharge on AC
Add support for setting the battery to discharge even if AC is
present. Used for factory testing.
BRANCH=none
TEST=ectool chargecontrol discharge, ectool battery | #define CONFIG_CHARGER
#define CONFIG_CHARGER_V2
#define CONFIG_CHARGE_MANAGER
+#define CONFIG_CHARGER_DISCHARGE_ON_AC
#define CONFIG_CHARGER_INPUT_CURRENT 128
#define CONFIG_CHARGER_ISL9238
#define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON 1
|
update ya tool arc
use vector to store zipatch actions | },
"arc": {
"formula": {
- "sandbox_id": [441557875],
+ "sandbox_id": [442997810],
"match": "arc"
},
"executable": {
|
Error in setVertices when overflowing Mesh size; | @@ -213,6 +213,11 @@ int l_lovrMeshSetVertices(lua_State* L) {
luaL_checktype(L, 2, LUA_TTABLE);
int vertexCount = lua_objlen(L, 2);
int start = luaL_optnumber(L, 3, 1) - 1;
+ int maxVertices = lovrMeshGetVertexCount(mesh);
+
+ if (start + vertexCount > maxVertices) {
+ return luaL_error(L, "Mesh can only hold %d verti... |
Fix human-readable vmajor when out of base38 range | @@ -295,18 +295,32 @@ main1(int argc, char** argv) {
(uint32_t)(pos), len, con);
if (vmajor > 0) {
+ char vmajor_name[5];
+ vmajor_name[0] = '*';
+ vmajor_name[1] = '*';
+ vmajor_name[2] = '*';
+ vmajor_name[3] = '*';
+ vmajor_name[4] = '\x00';
uint32_t m = vmajor;
+ if (m < 38 * 38 * 38 * 38) {
uint32_t m0 = m / (38 *... |
[CHAIN] refactoring gatherReco API | @@ -427,25 +427,31 @@ func (reorg *reorganizer) gatherReco() error {
reorg.brStartBlock = startBlock
reorg.bestBlock = bestBlock
- for tmpBlk := bestBlock; tmpBlk.GetHeader().GetBlockNo() > startBlock.GetHeader().GetBlockNo(); {
- reorg.oldBlocks = append(reorg.oldBlocks, tmpBlk)
- logger.Debug().Str("hash", tmpBlk.ID(... |
Workaround for Cosmopolitan noinline conflict | # else
# define M3_WEAK __attribute__((weak))
# define M3_NO_UBSAN //__attribute__((no_sanitize("undefined")))
+// Workaround for Cosmopolitan noinline conflict: https://github.com/jart/cosmopolitan/issues/310
+# if defined(noinline)
+# define M3_NOINLINE noinline
+# else
# define M3_NOINLINE __attribute__((noinline))
... |
Prevent multiple Philips Hue motion sensor readings of attributes | @@ -8868,20 +8868,42 @@ void DeRestPluginPrivate::delayedFastEnddeviceProbe()
return;
}
}
- else if (sensor->modelId() == "SML001") // Hue motion sensor
+ else if (sensor->modelId() == QLatin1String("SML001")) // Hue motion sensor
{
std::vector<uint16_t> attributes;
+ const NodeValue &sensitivity = sensor->getZclValue(... |
Fix aix7_ppc_64 making script
$ make -j -s install
...
--- subprocess32, Linux only
/bin/sh: line 3: [: =: unary operator expected
--- stream
...
Greenplum Database installation complete.
When `$(BLD_ARCH)` is empty, the check becomes `[ = 'aix7_ppc_64' ]`, and gets
the unary operator expected error. | @@ -61,12 +61,11 @@ pygresql:
. $(prefix)/greenplum_path.sh && unset PYTHONHOME && \
if [ `uname -s` = 'HP-UX' ]; then \
cd $(PYLIB_SRC)/$(PYGRESQL_DIR) && DESTDIR="$(DESTDIR)" CC="$(CC)" LDFLAGS="-L../../../../gpAux/ext/hpux_ia64/python-2.5.6/lib" python setup.py build; \
- elif [ $(BLD_ARCH) = 'aix7_ppc_64' ]; then \... |
tests: support worker threads
Add support for specifying the worker thread when adding packet stream.
Type: feature | @@ -82,6 +82,8 @@ class VppPGInterface(VppInterface):
"""CLI string to load the injected packets"""
if self._nb_replays is not None:
return "%s limit %d" % (self._input_cli, self._nb_replays)
+ if self._worker is not None:
+ return "%s worker %d" % (self._input_cli, self._worker)
return self._input_cli
@property
@@ -15... |
NEWS: Some clean-up in last entry. | @@ -11,6 +11,13 @@ CHANGES IN V1.20.4
- cups-browsed: Make URIS for using the implicitclass backend
correctly working also with queue names containing an '@'
character.
+ - braille: Strengthen error checking (Pull request #41).
+ - braille: Index: Replace bogus characters with space (Pull
+ request #41).
+ - braille: A... |
Filter Philips specific configure reporting | @@ -619,6 +619,9 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt)
rq.minInterval = 1; // value used by Hue bridge
rq.maxInterval = 300; // value used by Hue bridge
if (sendConfigureReportingRequest(bt, rq))
+ {
+ Sensor *sensor = static_cast<Sensor *>(bt.restNode);
+ if (sensor && sensor->mod... |
Update media type for Debian package.
Note that '.udeb' (micro-deb) is for special packages used only in
installers.
Reference: | @@ -14,7 +14,7 @@ MIMEMAP("crt", "application/x-x509-ca-cert")
MIMEMAP("css", "text/css")
MIMEMAP("csv", "text/csv")
MIMEMAP("cur", "image/x-icon")
-MIMEMAP("deb", "application/octet-stream")
+MIMEMAP("deb", "application/vnd.debian.binary-package")
MIMEMAP("der", "application/x-x509-ca-cert")
MIMEMAP("dll", "applicatio... |
Fix accumulate_entity_decl() to work in builds | @@ -6618,9 +6618,9 @@ accumulate_entity_decl(void *userData,
CharData *storage = (CharData *)userData;
CharData_AppendXMLChars(storage, entityName, -1);
- CharData_AppendXMLChars(storage, "=", 1);
+ CharData_AppendXMLChars(storage, XCS("="), 1);
CharData_AppendXMLChars(storage, value, value_length);
- CharData_AppendXM... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.