message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Disable runtime checks in MSVC for release mode. | @@ -181,6 +181,10 @@ if(WIN32 AND MSVC)
add_compile_options(/Oi)
add_compile_options(/Oy)
+ # Disable runtime checks (not compatible with O2)
+ string(REPLACE "/RTC1" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
+ string(REPLACE "/RTC1" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+
if(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
#... |
add S2N_TLS10, S2N_TLS11, test cases to mfl integration test | @@ -182,13 +182,15 @@ def main():
return -1
print("\n\tTesting handshakes with Max Fragment Length Extension")
+ for ssl_version in [S2N_TLS10, S2N_TLS11, S2N_TLS12]:
+ print("\n\tTesting Max Fragment Length Extension using client version: " + S2N_PROTO_VERS_TO_STR[ssl_version])
threadpool = create_thread_pool()
port_o... |
VW is also tested for safety replay | @@ -18,6 +18,7 @@ logs = [
("02ec6bea180a4d36|2019-04-17--11-21-35.bz2", Panda.SAFETY_HYUNDAI, 0), # HYUNDAI.SANTA_FE
("6fb4948a7ebe670e|2019-11-12--00-35-53.bz2", Panda.SAFETY_CHRYSLER, 0), # CHRYSLER.PACIFICA_2018_HYBRID
("791340bc01ed993d|2019-04-08--10-26-00.bz2", Panda.SAFETY_SUBARU, 0), # SUBARU.IMPREZA
+ ("b0c9d... |
Drop packets with SHUTDOWN-ACK chunks with wrong vtags | @@ -4931,29 +4931,6 @@ sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length,
}
return (NULL);
}
- } else if (ch->chunk_type == SCTP_SHUTDOWN_ACK) {
- if (vtag_in != asoc->my_vtag) {
- /*
- * this could be a stale SHUTDOWN-ACK or the
- * peer never got the SHUTDOWN-COMPLETE and
- * is still hung; we ... |
Add support for variable UDS RX offsets | @@ -486,13 +486,14 @@ class IsoTpMessage():
FUNCTIONAL_ADDRS = [0x7DF, 0x18DB33F1]
-def get_rx_addr_for_tx_addr(tx_addr):
+def get_rx_addr_for_tx_addr(tx_addr, rx_offset=0x8):
if tx_addr in FUNCTIONAL_ADDRS:
return None
if tx_addr < 0xFFF8:
- # standard 11 bit response addr (add 8)
- return tx_addr + 8
+ # pseudo-stand... |
Feat:Delete useless code in FibocomHttpPortRequestSync | @@ -339,90 +339,6 @@ BOAT_RESULT FibocomHttpPortRequestSync(FibocomHttpPortContext *fibocomhttpport_c
BoatLog(BOAT_LOG_VERBOSE,"http_release success");
return result;
-
-#if 0
- httpclient_t client = {0};
- httpclient_data_t client_data = {0};
- BSINT32 response_code;
- BSINT32 ret;
-
- BOAT_RESULT result = BOAT_ERROR;... |
Fix group of printer-impressions-completed | @@ -799,7 +799,7 @@ copy_printer_attributes(
}
if (!ra || cupsArrayFind(ra, "printer-impressions-completed"))
- ippAddInteger(client->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "printer-impressions-completed", printer->impcompleted);
+ ippAddInteger(client->response, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "printer-impressions-... |
lv_roller: comments added | @@ -206,8 +206,14 @@ static bool lv_roller_design(lv_obj_t * roller, const area_t * mask, lv_design_m
return true;
}
-
-bool roller_scrl_signal(lv_obj_t * roller_scrl, lv_signal_t sign, void * param)
+/**
+ * Signal function of the scrollable part of the roller.
+ * @param roller_scrl ointer to the scrollable part of r... |
main: close stderr/out/in before fork | @@ -208,6 +208,11 @@ int main(int argc, char *argv[])
if (gconf->is_daemon) {
gconf->use_syslog = 1;
+ // Close pipes
+ fclose(stderr);
+ fclose(stdout);
+ fclose(stdin);
+
// Fork before any threads are started
unix_fork();
@@ -217,10 +222,6 @@ int main(int argc, char *argv[])
SetCurrentDirectoryA(path);
}
- // Close ... |
KDB File: Ignore syntax errors in config files
This commit fixes | #include <cmdline.hpp>
#include <kdb.hpp>
+#include <kdblogger.h>
#include <iostream>
@@ -36,7 +37,15 @@ int FileCommand::execute (Cmdline const & cl)
throw invalid_argument (cl.arguments[0] + " is not a valid keyname");
}
+ try
+ {
kdb.get (conf, x);
+ }
+ catch (KDBException const & exception)
+ {
+ // The command sh... |
bip32: adds network option for bitcoin addresses | ++ identity (hash160 public-key)
++ fingerprint (cut 3 [16 4] identity)
::
+++ address
+ |= network=?(%main %regtest %testnet)
+ ^- @uc
+ :: removes checksum
+ ::
+ %^ rsh 3 4
+ %+ en-base58check
+ [4 (version-bytes network %pub %.n)]
+ [20 identity]
+::
++ prv-extended
|= network=?(%main %regtest %testnet)
%+ en-b58c-... |
always send update notification from :dns[bind->collector] | (json-octs u.r.httr parse-record:(provider authority))
?~(dat ~. id.u.dat)
::
- =/ =address:dns
- ?>(?=(%direct -.target) +.target)
- =/ =turf
- (weld dom.authority /(crip +:(scow %p ship)))
- ;< ~ bind:m (poke-app:stdio collector-app [%dns-complete ship address turf])
;< now=@da bind:m get-time:stdio
=/ =bound
[now id... |
Use regexp pattern instaed of string | @@ -19,7 +19,7 @@ This module is entirely based on the PSA API.
# limitations under the License.
import re
-from typing import Dict, Iterable, Optional, Tuple
+from typing import Dict, Iterable, Optional, Pattern, Tuple
from mbedtls_dev.asymmetric_key_data import ASYMMETRIC_KEY_DATA
@@ -140,9 +140,9 @@ class KeyType:
[... |
out_stackdriver: fix test formatter prototype | @@ -800,6 +800,7 @@ static int pack_json_payload(int operation_extracted, int operation_extra_size,
static int stackdriver_format(struct flb_config *config,
struct flb_input_instance *ins,
void *plugin_context,
+ void *flush_ctx,
const char *tag, int tag_len,
const void *data, size_t bytes,
void **out_data, size_t *out... |
hslcall: make error check more robust
The check assumed absolute stack indices; rewritten to accept either
absolute or relative. | @@ -28,8 +28,9 @@ int hslua_error(lua_State *L)
*/
int hslua_is_haskell_error(lua_State *L, int idx)
{
+ int erridx = lua_absindex(L, idx);
hslua_pushhaskellerr(L);
- int is_err = lua_rawequal(L, idx, -1);
+ int is_err = lua_rawequal(L, erridx, -1);
lua_pop(L, 1); /* pop haskellerr used for equality test */
return is_e... |
Remove mat4_transform_project, it not only duplicates mat4_transform, it is buggy | @@ -417,6 +417,7 @@ MAF mat4 mat4_invert(mat4 m) {
return m;
}
+// Calculate matrix equivalent to "apply n, then m"
MAF mat4 mat4_multiply(mat4 m, mat4 n) {
float m00 = m[0], m01 = m[1], m02 = m[2], m03 = m[3],
m10 = m[4], m11 = m[5], m12 = m[6], m13 = m[7],
@@ -603,6 +604,8 @@ MAF mat4 mat4_lookAt(mat4 m, vec3 from, v... |
Detect routing table overflow | @@ -234,6 +234,8 @@ static error_return_t Luos_MsgHandler(container_t *container, msg_t *input)
Luos_TransmitLocalRoutingTable(container, &output_msg);
break;
default:
+ // Check routing table overflow
+ LUOS_ASSERT(((uint32_t)route_tab + input->header.size) <= ((uint32_t)RoutingTB_Get() + (sizeof(routing_table_t) * MA... |
ivshmem: Link ivshmem-test against the static CRT
Tools like this should run on clean installed systems. They should
not depend on CRT DLLs. | <SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>
</AdditionalIncludeDirectories>
+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>
</AdditionalIncludeDirectories>
+ <RuntimeLibrary>MultiThreadedDebug<... |
Fix iOS compilation issue | @@ -159,7 +159,7 @@ namespace carto {
if (tileMaskConfig.get("maxZoom").is<std::int64_t>()) {
tileMask.maxZoom = static_cast<int>(tileMaskConfig.get("maxZoom").get<std::int64_t>());
}
- tileMask.tileMask = std::make_shared<PackageTileMask>(tileMaskConfig.get("tilemask").get<std::string>(), tileMask.maxZoom >= 0 ? tileM... |
Add virtualrunenv generator to facilitate integration with CLion. | @@ -29,7 +29,7 @@ class CelixConan(ConanFile):
url = "https://github.com/apache/celix.git"
topics = ("conan", "celix", "osgi", "embedded", "linux", "C/C++")
exports_sources = "CMakeLists.txt", "bundles*", "cmake*", "!cmake-build*", "examples*", "libs*", "misc*", "LICENSE"
- generators = "cmake_paths", "cmake_find_packa... |
out_kafka: fix Initialising wrong variables for message_key | @@ -138,8 +138,8 @@ struct flb_kafka *flb_kafka_conf_create(struct flb_output_instance *ins,
ctx->message_key_len = strlen(tmp);
}
else {
- ctx->timestamp_key = NULL;
- ctx->timestamp_key_len = 0;
+ ctx->message_key = NULL;
+ ctx->message_key_len = 0;
}
/* Config: Timestamp_Key */
|
Tweak pacing interval to follow RFC 9002 example | @@ -13342,23 +13342,25 @@ int ngtcp2_conn_set_stream_user_data(ngtcp2_conn *conn, int64_t stream_id,
}
void ngtcp2_conn_update_pkt_tx_time(ngtcp2_conn *conn, ngtcp2_tstamp ts) {
+ double pacing_rate;
+ ngtcp2_duration interval;
+
if (conn->tx.pacing.pktlen == 0) {
return;
}
if (conn->cstat.pacing_rate > 0) {
- conn->tx... |
os/mm/Kconfig : Change default value of MM_ASSERT_ON_FAIL as y
When fail to allocate the memory, it makes assertion by default. | @@ -149,7 +149,7 @@ config MM_SHM
config MM_ASSERT_ON_FAIL
bool "Assertion when Memory allocation fail"
- default n
+ default y
---help---
When memory allocation fails, make assertion.
From the application binary with loadable build, it will be reloaded.
|
recognize VHDL as valid extension for VHDL files | @@ -27,6 +27,7 @@ quartus_tag_map = {
'.vh': 'SYSTEMVERILOG_FILE',
'.svh': 'SYSTEMVERILOG_FILE',
'.vhd': 'VHDL_FILE',
+ '.vhdl': 'VHDL_FILE',
'.sdc': 'SDC_FILE',
'.qsys': 'QSYS_FILE',
'.ip': 'IP_FILE',
@@ -67,6 +68,7 @@ sim_tag_map = {
'.vh': 'SYSTEMVERILOG_FILE',
'.svh': 'SYSTEMVERILOG_FILE',
'.vhd': 'VHDL_FILE',
+ '.... |
update for 6 btn controller | @@ -732,7 +732,7 @@ static void joyEvent(u16 joy, u16 changed, u16 state)
// can't do more in paused state
if (paused) return;
- if (changed & state & (BUTTON_A | BUTTON_B | BUTTON_C))
+ if (changed & state & (BUTTON_A | BUTTON_B | BUTTON_C | BUTTON_X | BUTTON_Y | BUTTON_Z))
{
if (movY == 0)
{
|
CLEANUP: changed MAX_FILEPATH_LENGTH. 256 => 4096 | @@ -41,6 +41,9 @@ struct default_engine;
#include "assoc.h"
#include "slabs.h"
+#define MAX_FILEPATH_LENGTH 4096
+#define MAX_FILENAME_LENGTH 256
+
/**
* engine configuration
*/
@@ -106,7 +109,6 @@ struct engine_scrubber {
/**
* cache item dumper
*/
-#define MAX_FILEPATH_LENGTH 256
struct engine_dumper {
pthread_mutex_... |
Minor formatting change for printdims in wshfl | @@ -97,10 +97,20 @@ static void print_opdims(const struct linop_s* op)
{
const struct iovec_s* domain = linop_domain(op);
const struct iovec_s* codomain = linop_codomain(op);
- debug_printf(DP_INFO, "\tDomain: ");
- debug_print_dims(DP_INFO, domain->N, domain->dims);
- debug_printf(DP_INFO, "\tCodomain: ");
- debug_pri... |
Mark pausetime entity member wiki documented. | @@ -2449,7 +2449,7 @@ typedef struct entity
u32 nextthink; // Time for next main AI update. ~~
u32 nextattack; // Time for next chance to attack. ~~
u32 next_hit_time; // When temporary invincibility after getting hit expires. ~~
- u32 pausetime; // 2012/4/30 UT: Remove lastanimpos and add this. Otherwise hit pause is ... |
Fix compiler warning by cast int to pointer | @@ -159,7 +159,7 @@ int bpf_get_first_key(int fd, void *key, size_t key_size)
// trigger a page fault in kernel and affect performence. Hence we use
// ~0 which will fail and return fast.
// This should fail since we pass an invalid pointer for value.
- if (bpf_lookup_elem(fd, key, ~0) >= 0)
+ if (bpf_lookup_elem(fd, k... |
term: ignore SIGWINCH if there's no active terminal driver | @@ -977,14 +977,17 @@ u3_term_get_blew(c3_l tid_l)
void
u3_term_ef_winc(void)
{
+ // XX groace, this should be a global handler sent to each pier
+ //
+ if ( u3_Host.uty_u->car_u ) {
u3_noun wir = u3nt(c3__term, '1', u3_nul);
u3_noun cad = u3nc(c3__blew, u3_term_get_blew(1));
c3_assert( 1 == u3_Host.uty_u->tid_l );
- c... |
misc: vppctl - fix coverity warning
Check that provided path fits into defined buffer. Don't write too many
bytes to avoid having an unterminated string.
Type: fix
Fixes: | @@ -192,6 +192,13 @@ main (int argc, char *argv[])
struct sockaddr_un saddr = { 0 };
saddr.sun_family = AF_UNIX;
+
+ if (strlen (sock_fname) > sizeof (saddr.sun_path) - 1)
+ {
+ perror ("socket path too long");
+ exit (1);
+ }
+
strncpy (saddr.sun_path, sock_fname, sizeof (saddr.sun_path) - 1);
sock_fd = socket (AF_UNI... |
Account for Negative Queue Delay | @@ -435,11 +435,20 @@ QuicWorkerProcessConnection(
QuicConfigurationAttachSilo(Connection->Configuration);
if (Connection->Stats.Schedule.LastQueueTime != 0) {
- QuicWorkerUpdateQueueDelay(
- Worker,
+ uint32_t Delay =
CxPlatTimeDiff32(
Connection->Stats.Schedule.LastQueueTime,
- (uint32_t)*TimeNow));
+ (uint32_t)*Time... |
Deprecate SET_FRAME_TO_VALUE | @@ -135,7 +135,8 @@ export const EventsHidden = [
EVENT_CALL_CUSTOM_EVENT,
EVENT_ACTOR_SET_POSITION_TO_VALUE,
EVENT_ACTOR_MOVE_TO_VALUE,
- EVENT_ACTOR_SET_DIRECTION_TO_VALUE
+ EVENT_ACTOR_SET_DIRECTION_TO_VALUE,
+ EVENT_ACTOR_SET_FRAME_TO_VALUE
];
export const EventFields = {
|
Benchmarks: opmphm: add missing ifdef for hsearch | @@ -1852,10 +1852,12 @@ int main (int argc, char ** argv)
char * benchmarkNameBinarySearchTime = "binarysearchtime";
benchmarks[7].name = benchmarkNameBinarySearchTime;
benchmarks[7].benchmarkF = benchmarkBinarySearchTime;
+#ifdef HAVE_HSEARCHR
// hsearchbuildtime
char * benchmarkNameHsearchBuildTime = "hsearchbuildtim... |
Add buildsdk command fix | <AdditionalIncludeDirectories>$(SolutionDir)phnt\include;$(SolutionDir)phlib\include;include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ResourceCompile>
<PostBuildEvent>
- <Command>$(SolutionDir)build\build_sdk.cmd</Command>
+ <Command>"$(SolutionDir)build\build_sdk.cmd"</Command>
</PostBuildEvent... |
Fix python interface, get_spacegroup_type, pointgroup_international <-> pointgroup_schoenflies (issue | @@ -333,8 +333,8 @@ def get_spacegroup_type(hall_number):
'schoenflies',
'hall_symbol',
'choice',
- 'pointgroup_schoenflies',
'pointgroup_international',
+ 'pointgroup_schoenflies',
'arithmetic_crystal_class_number',
'arithmetic_crystal_class_symbol')
spg_type_list = spg.spacegroup_type(hall_number)
|
Use I4ui instead of I1ui for lovrDrawID constant value;
glVertexAttribI1ui isn't supported on GLES for some reason. | @@ -2089,7 +2089,7 @@ Shader* lovrShaderInitGraphics(Shader* shader, const char* vertexSource, const c
glVertexAttrib4fv(LOVR_SHADER_VERTEX_COLOR, (float[4]) { 1., 1., 1., 1. });
glVertexAttribI4uiv(LOVR_SHADER_BONES, (uint32_t[4]) { 0., 0., 0., 0. });
glVertexAttrib4fv(LOVR_SHADER_BONE_WEIGHTS, (float[4]) { 1., 0., 0.... |
sidk_s5jt200: enable GC of unsed input sections
There are static fucntions not in use or referenced by others. In order
to reduce the size of .text, this commit changes the default build
option, specifying the linker to drop the unused input sections. | @@ -99,7 +99,7 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
endif
-ARCHCFLAGS = -fno-builtin -mcpu=cortex-r4 -mfpu=vfpv3
+ARCHCFLAGS = -fno-builtin -mcpu=cortex-r4 -mfpu=vfpv3 -ffunction-sections -fdata-sections
ARCHCXXFLAGS = -... |
build v1.63.0 in ohpc v1.3.2 | Summary: Boost free peer-reviewed portable C++ source libraries
Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 1.64.0
+Version: 1.63.0
-%define version_exp 1_64_0
+%define version_exp 1_63_0
Release: 1%{?dist}
License: BSL-1.0
|
drv_gpio: remove dependency to control.h | @@ -56,7 +56,7 @@ void gpio_init(void) {
int gpio_init_fpv(uint8_t rxmode) {
#if defined(FPV_ON) && defined(FPV_PORT) && defined(FPV_PIN)
// only repurpose the pin after rx/tx have bound
- if (rxmode == RXMODE_NORMAL) {
+ if (rxmode == 1) {
// set gpio pin as output
GPIO_InitTypeDef GPIO_InitStructure;
|
Fix RP2040 Issue 1721 | @@ -155,7 +155,9 @@ static void __tusb_irq_path_func(_hw_endpoint_start_next_buffer)(struct hw_endpo
// For now: skip double buffered for Device mode, OUT endpoint since
// host could send < 64 bytes and cause short packet on buffer0
// NOTE this could happen to Host mode IN endpoint
- bool const force_single = !(usb_h... |
[cmake] try to fix openblas include dir | @@ -248,8 +248,13 @@ if(NOT BLAS_FOUND)
# to ensure that std::complex<double> can be casted to double* and produces good results we should enfore std=c++11
# Right now openblas ships with a cblas.h header which uses double* as type for pointer to double complex, which makes ublas cry since it
# want to pass std::comple... |
style convention doc | +<!---
+STYLE CONVENTION USED
+ bolt italic:
+ ***file***"
+ code:
+ `program` or `library``
+ `commands` or `paths`
+ `variable`
+ bold code:
+ **`function`**
+ **`type`** or **`structure`**
+-->
# CCL [](https://travis-ci.org/LSSTDESC/CCL)
LSST DESC... |
lv_pb: set default click = false | @@ -90,6 +90,7 @@ lv_obj_t * lv_pb_create(lv_obj_t * par, lv_obj_t * copy)
ext->label = lv_label_create(new_pb, NULL);
lv_rect_set_layout(new_pb, LV_RECT_LAYOUT_CENTER);
+ lv_obj_set_click(new_pb, false);
lv_obj_set_size(new_pb, LV_PB_DEF_WIDTH, LV_PB_DEF_HEIGHT);
lv_obj_set_style(new_pb, lv_pbs_get(LV_PBS_DEF, NULL));... |
v2.0.46 landed | -ejdb2 (2.0.46) UNRELEASED; urgency=medium
+ejdb2 (2.0.46) testing; urgency=medium
* Upgraded to iowow v1.4.4
* Added `jbn_paths_compare()` (jbl.h)
* Added `no_src_clone` parameter `jbn_copy_path` (jbl.h)
- -- Anton Adamansky <adamansky@gmail.com> Fri, 24 Apr 2020 22:17:33 +0700
+ -- Anton Adamansky <adamansky@gmail.co... |
tests/test-join: preserve order in join | @@ -3,7 +3,7 @@ tests/test-join: ones join nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
seq 1 300 | xargs -P 100 -n1 -I {} $(TOOLDIR)/ones 3 6 1 7 o-{}.ra ;\
$(TOOLDIR)/ones 3 6 300 7 o1.ra ;\
- $(TOOLDIR)/join 1 o-*.ra o.ra ;\
+ $(TOOLDIR)/join 1 `seq -f "o-%.0f.ra" 1 300` o.ra ;\
$(TOOLDIR)/nrmse -t 0.00001 ... |
extras must be built after hip | @@ -140,9 +140,6 @@ Developers may update a component and then run these scripts in the folowing or
./build_clang.sh
./build_clang.sh install
- ./build_extras.sh
- ./build_extras.sh install
-
./build_utils.sh
./build_utils.sh install
@@ -152,6 +149,9 @@ Developers may update a component and then run these scripts in th... |
Makefile: fix issue on make menuconfig
The BOARD/SCENARIO envrionment variable should be passed in one shell command; | @@ -68,8 +68,8 @@ $(HV_OBJDIR)/$(HV_CONFIG_H): $(HV_OBJDIR)/$(HV_CONFIG)
.PHONY: defconfig
defconfig: $(KCONFIG_DEPS)
@mkdir -p $(HV_OBJDIR)
- @BOARD=$(CONFIG_BOARD) SCENARIO=$(CONFIG_SCENARIO); \
- if ([ "$(KCONFIG_FILE)" = "" ] || ([ "$(KCONFIG_FILE)" != "" ] && [ ! -f $(KCONFIG_FILE) ])) && [ "$(CONFIG_XML_ENABLED)"... |
CHANGELOG: add note about BackupData.length
Forgotten in | @@ -8,6 +8,7 @@ customers cannot upgrade their bootloader, its changes are recorded separately.
### [Unreleased]
- Allow arbitrary input sequence numbers (fixes compatibility with Taproot transactions in Sparrow wallet)
+- The BackupData.length field is now obsolete and always set to 0
### 9.12.0
- Ethereum: add suppor... |
Explicitly disallow handler for datagram server. | @@ -630,8 +630,7 @@ static Janet cfun_net_server(int32_t argc, Janet *argv) {
return janet_wrap_abstract(stream);
} else {
/* Server with handler */
- /* TODO - state machine */
- janet_panic("nyi");
+ janet_panic("handler must be nil for datagram server");
}
} else {
/* Stream server (TCP) */
|
added information about goal of hcxtools | @@ -160,6 +160,8 @@ Most output files will be appended to existing files (with the exception of pcap
It is recommended to use hash mode 22000 (22001) instead of deprecated hash modes 2500 (2501) and 16800 (16801)
+hcxtools are designed to be analysis tools. This means that everything is converted by default and unwante... |
[CUDA] Set device address bits | @@ -192,6 +192,7 @@ pocl_cuda_init_device_infos(struct _cl_device_id* dev)
pocl_basic_init_device_infos(dev);
dev->type = CL_DEVICE_TYPE_GPU;
+ dev->address_bits = (sizeof(void*)*8);
dev->llvm_target_triplet = (sizeof(void*)==8) ? "nvptx64" : "nvptx";
dev->spmd = CL_TRUE;
dev->execution_capabilities = CL_EXEC_KERNEL;
|
github: fix build and publish cloud images | @@ -14,7 +14,6 @@ on:
env:
REGISTRY: ghcr.io
- IMAGE_NAME: ${{ github.repository }}/cloud-server
jobs:
build-and-push-image:
@@ -49,7 +48,7 @@ jobs:
id: meta
uses: docker/metadata-action@v3
with:
- images: ${{ env.REGISTRY }}/${{ matrix.name }}
+ images: ${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.name }}
t... |
Remove unused ret variable | @@ -1131,8 +1131,6 @@ static int cryptodev_digest_final(EVP_MD_CTX *ctx, unsigned char *md)
struct dev_crypto_state *state = EVP_MD_CTX_md_data(ctx);
struct session_op *sess = &state->d_sess;
- int ret = 1;
-
if (!md || state->d_fd < 0) {
printf("cryptodev_digest_final: illegal input\n");
return (0);
@@ -1157,7 +1155,7... |
Map INVALID_PADDING from PSA to MbedTLS error in rsa_verify_wrap() | @@ -214,8 +214,15 @@ static int rsa_verify_wrap( void *ctx, mbedtls_md_type_t md_alg,
status = psa_verify_hash( key_id, psa_alg_md, hash, hash_len,
sig, sig_len );
if( status != PSA_SUCCESS )
+ {
+ if ( status == PSA_ERROR_INVALID_PADDING )
+ {
+ ret = MBEDTLS_ERR_RSA_INVALID_PADDING;
+ }
+ else
{
ret = mbedtls_psa_err... |
remove frequency limits from sdr-transceiver.c | @@ -18,6 +18,9 @@ volatile uint32_t *rx_freq, *tx_freq;
volatile uint16_t *gpio, *rx_rate, *rx_cntr, *tx_rate, *tx_cntr;
volatile uint8_t *rx_rst, *tx_rst;
+const uint32_t freq_min = 0;
+const uint32_t freq_max = 62500000;
+
int sock_thread[4] = {-1, -1, -1, -1};
void *rx_ctrl_handler(void *arg);
@@ -162,8 +165,6 @@ vo... |
fixed crash on malformed packets | @@ -1686,6 +1686,11 @@ ppi_t *ppi;
uint32_t crc;
struct timeval tvtmp;
+packet_ptr = packet;
+if(caplen < MAC_SIZE_NORM)
+ {
+ return;
+ }
if((tv_sec == 0) && (tv_usec == 0))
{
tscleanflag = true;
@@ -1694,7 +1699,6 @@ if((tv_sec == 0) && (tv_usec == 0))
tv_usec = tvtmp.tv_usec;
}
-packet_ptr = packet;
if(linktype == D... |
vere: updates ames to only print network send failures once | c3_w imp_w[256]; // imperial IPs
time_t imp_t[256]; // imperial IP timestamps
c3_o imp_o[256]; // imperial print status
+ c3_o net_o; // can send
c3_o see_o; // can scry
c3_d saw_d; // successive scry failures
c3_o fit_o; // filtering active
@@ -146,9 +147,14 @@ static void
_ames_send_cb(uv_udp_send_t* req_u, c3_i sas_... |
Changed target/output attributes obj/list to outdir/intdir. | @@ -19,7 +19,7 @@ The most significant differences are:
\section section_layer Introduction of Layers
One example is the separation of an existing project into files and components that are HW dependent (board, device, processor)
and those that are application specific. The result is a HW and an application layer. Assu... |
Update PersistentFuzzing.md
Fix code block formatting | @@ -14,13 +14,13 @@ Prepare a binary in the two following ways:
Two functions must be provided
```c
-int LLVMFuzzerTestOneInput(uint8_t *buf, size_t len)```
+int LLVMFuzzerTestOneInput(uint8_t *buf, size_t len)
````
and optionally
```c
-int LLVMFuzzerInitialize(int *argc, char ***argv)```
+int LLVMFuzzerInitialize(int ... |
Eliminate compiler warning about unused variable on non Windows platforms. | @@ -424,7 +424,9 @@ InterpreterObject *newInterpreterObject(const char *name)
const char *str = NULL;
+#if defined(WIN32)
const char *python_home = 0;
+#endif
/* Create handle for interpreter and local data. */
|
apps/testcase/audio : give the frame count in pcm_readi of itc_audio_pcm_readi_p testcase
itc_audio_pcm_readi_p
1.give the proper frame count in pcm_readi | @@ -977,7 +977,7 @@ static void itc_audio_pcm_readi_p(void)
TC_ASSERT_NEQ_CLEANUP("pcm_readi", str, NULL, clean_all_data(fd, buffer));
while (remain > 0) {
- frames_read = pcm_readi(g_pcm, buffer, remain);
+ frames_read = pcm_readi(g_pcm, buffer, pcm_get_buffer_size(g_pcm));
if (frames_read < 0) {
break;
}
|
[arch][mmu][tests] slight tweaks | #include <arch/mmu.h>
#include <lk/cpp.h>
+#include <lk/debug.h>
#include <lk/err.h>
#include <lib/unittest.h>
#include <kernel/vm.h>
@@ -19,7 +20,7 @@ static bool create_user_aspace(void) {
arch_aspace_t as;
status_t err = arch_mmu_init_aspace(&as, USER_ASPACE_BASE, USER_ASPACE_SIZE, 0);
- ASSERT_EQ(NO_ERROR, err, "in... |
stm32/boards/PYBD_SF2: Put nimble library in external QSPI XIP flash.
The BLE stack is not performance critical, so put it in external
memory-mapped flash to save internal flash for other things (like frozen
bytecode). | @@ -49,6 +49,7 @@ SECTIONS
{
. = ALIGN(4);
*lib/mbedtls/*(.text* .rodata*)
+ *lib/mynewt-nimble/*(.text* .rodata*)
. = ALIGN(512);
*(.big_const*)
. = ALIGN(4);
|
Comments about GDAL build | @@ -81,6 +81,19 @@ python swigpp-csharp.py --profile standard winphone
python build-winphone.py --profile standard
```
+## GDAL build for Android
+
+Use precompiled GDAL library containing headers and .so files. Make symbolic links
+from GDAL_precompiled/android to prebuilt/gdal and GDAL_precompiled/android to libs-ext... |
qlog: Write HANDSHAKE_DONE | @@ -730,6 +730,24 @@ write_connection_close_frame(uint8_t *p, const ngtcp2_connection_close *fr) {
return p;
}
+static uint8_t *write_handshake_done_frame(uint8_t *p,
+ const ngtcp2_handshake_done *fr) {
+ ngtcp2_vec name, value;
+ (void)fr;
+
+ /*
+ * {"frame_type":"handshake_done"}
+ */
+#define NGTCP2_QLOG_HANDSHAKE... |
Improve handle menu error checking | @@ -206,17 +206,18 @@ VOID PhShowHandleObjectProperties1(
}
else if (PhEqualString2(Info->TypeName, L"Section", TRUE))
{
+ NTSTATUS status;
HANDLE handle = NULL;
BOOLEAN readOnly = FALSE;
- if (!NT_SUCCESS(PhpDuplicateHandleFromProcessItem(
+ if (!NT_SUCCESS(status = PhpDuplicateHandleFromProcessItem(
&handle,
SECTION_... |
libffs: Fix string truncation gcc warning.
Use memcpy as other libffs functions do. | @@ -522,7 +522,7 @@ int ffs_part_info(struct ffs_handle *ffs, uint32_t part_idx,
n = calloc(1, FFS_PART_NAME_MAX + 1);
if (!n)
return FLASH_ERR_MALLOC_FAILED;
- strncpy(n, ent->name, FFS_PART_NAME_MAX);
+ memcpy(n, ent->name, FFS_PART_NAME_MAX);
*name = n;
}
return 0;
|
Check the return from EVP_PKEY_get0_DH()
Fixes | @@ -2481,6 +2481,12 @@ int tls_construct_server_key_exchange(SSL *s, WPACKET *pkt)
}
dh = EVP_PKEY_get0_DH(s->s3->tmp.pkey);
+ if (dh == NULL) {
+ SSLfatal(s, SSL_AD_INTERNAL_ERROR,
+ SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE,
+ ERR_R_INTERNAL_ERROR);
+ goto err;
+ }
EVP_PKEY_free(pkdh);
pkdh = NULL;
|
[MQTT5] Fix compilation | @@ -137,6 +137,9 @@ static const char *broker_ip = MQTT_CLIENT_BROKER_IP_ADDR;
#define RETRY_FOREVER 0xFF
#define RECONNECT_INTERVAL (CLOCK_SECOND * 2)
+/*---------------------------------------------------------------------------*/
+/* Control whether or not to perform authentication (MQTTv5) */
+#define MQTT_5_AUTH_E... |
Test for smaller user buf instead of larger
Testing for the case where the user specifies a smaller buffer
than expected for PIOc_write_darray(). A larger user buffer
should be accepted.
See Issue | @@ -110,7 +110,7 @@ int test_darray(int iosysid, int ioid, int num_flavors, int *flavor, int my_rank
ERR(ERR_WRONG);
if (PIOc_write_darray(ncid, varid, ioid + TEST_VAL_42, arraylen, test_data, &fillvalue) != PIO_EBADID)
ERR(ERR_WRONG);
- if (PIOc_write_darray(ncid, varid, ioid, arraylen + TEST_VAL_42, test_data, &fillv... |
Make Xcode theme comments gray | @@ -33,7 +33,7 @@ struct XcodeSourceCodeTheme: SourceCodeTheme {
func color(for syntaxColorType: SourceCodeTokenType) -> Color {
switch syntaxColorType {
case .comment:
- return Color(red: 0/255, green: 128/255, blue: 0/255, alpha: 1)
+ return Color(red: 83/255, green: 101/255, blue: 121/255, alpha: 1)
case .editorPlac... |
Fix rendering with vertexCount of 0; | @@ -513,7 +513,7 @@ void lovrGraphicsBatch(BatchRequest* req) {
}
}
- if (!req->instanced || !batch) {
+ if (req->vertexCount > 0 && (!req->instanced || !batch)) {
*(req->vertices) = lovrGraphicsMapBuffer(STREAM_VERTEX, req->vertexCount);
uint8_t* ids = lovrGraphicsMapBuffer(STREAM_DRAW_ID, req->vertexCount);
memset(id... |
Fix typo in comment in task.h | @@ -1638,7 +1638,7 @@ configSTACK_DEPTH_TYPE uxTaskGetStackHighWaterMark2( TaskHandle_t xTask ) PRIVIL
* configSUPPORT_STATIC_ALLOCATION is set. For more information see this URI: https://www.FreeRTOS.org/a00110.html#configSUPPORT_STATIC_ALLOCATION
*
* @param ppxIdleTaskTCBBuffer A handle to a statically allocated TCB ... |
[numerics] Inactivate optiion SICONOS_FRICTION_3D_IPM_IPARAM_ITERATES_MATLAB_FILE | @@ -2199,7 +2199,7 @@ void gfc3d_ipm_set_default(SolverOptions* options)
options->iparam[SICONOS_FRICTION_3D_IPM_IPARAM_NESTEROV_TODD_SCALING] = 1;
- options->iparam[SICONOS_FRICTION_3D_IPM_IPARAM_ITERATES_MATLAB_FILE] = 1;
+ options->iparam[SICONOS_FRICTION_3D_IPM_IPARAM_ITERATES_MATLAB_FILE] = 0;
options->iparam[SICO... |
Add missing paragraph tag in user guide. | <p>This user guide is intended to be followed sequentially from beginning to end &mdash; each section depends on the last. For example, the <link section="/restore">Restore</link> section relies on setup that is performed in the <link section="/quickstart">Quick Start</link> section. Once <backrest/> is up and runn... |
fsplib.c: sync with libfspclient | @@ -90,15 +90,11 @@ static int simplecommand(FSP_SESSION *s,const char *directory,unsigned char comm
/* Get directory part of filename. You must free() the result */
static char * directoryfromfilename(const char *filename)
{
- char *result;
+ const char *result;
char *tmp;
size_t pos;
-#ifdef __cplusplus // olverloade... |
Run hexmate for microchip test project | @@ -342,6 +342,8 @@ if(AFR_IS_TESTING)
TARGET ${exe_target} POST_BUILD
COMMAND "echo" "Running Post-build step"
COMMAND "${xc32_bin2hex}" "$<TARGET_FILE:${exe_target}>"
+ COMMAND "echo" "Running Hexmate to combine bootloader with image"
+ COMMAND "${hexmate_path}" $<TARGET_FILE_DIR:${exe_target}>/${exe_target}.hex ${bl... |
test-suite: update RM jobs for openblas to reflect updated fortran test | @@ -17,21 +17,12 @@ ARGS=0
export GFORTRAN_UNBUFFERED_PRECONNECTED=1
export OMP_NUM_THREADS=2
-@test "[$testname/xscblat1] xscblat1 under resource manager ($rm/$LMOD_FAMILY_COMPILER)" {
- if [ ! -s xscblat1 ];then
- flunk "xscblat1 binary does not exist"
+@test "[$testname/dblat1] dblat1 under resource manager ($rm/$LM... |
CMake: Use GNUInstallDirs for pkgconfig too
Fixes i.e. multilib setups on linux
Follow-up to | @@ -187,8 +187,8 @@ expat_install(TARGETS expat RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix "\${prefix}")
-set(libdir "\${exec_prefix}/lib")
-set(includedir "\${prefix}/include")
+set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
+set(includedir "\${prefix}/${CMAK... |
out_file: add error message on flush failure | @@ -349,6 +349,7 @@ static void cb_file_flush(const void *data, size_t bytes,
fp = fopen(out_file, "ab+");
if (fp == NULL) {
flb_errno();
+ flb_plg_error(ctx->ins, "error opening: %s", out_file);
FLB_OUTPUT_RETURN(FLB_ERROR);
}
|
link: restore contributor counts in sidebar
During the metadata restructure I didn't adjust
this property pass and it passed through an
empty "group" prop and processed it as 0. | @@ -33,7 +33,7 @@ export class ChannelsSidebar extends Component {
<ChannelsItem
key={path}
link={path}
- memberList={props.groups[meta.group]}
+ memberList={props.groups[meta["group-path"]]}
selected={selected}
linkCount={linkCount}
unseenCount={unseenCount}
|
tests/basics/gc1: Add test which triggers GC threshold. | @@ -27,3 +27,8 @@ if hasattr(gc, 'threshold'):
assert(gc.threshold() == 0)
assert(gc.threshold(-1) is None)
assert(gc.threshold() == -1)
+
+ # Setting a low threshold should trigger collection at the list alloc
+ gc.threshold(1)
+ [[], []]
+ gc.threshold(-1)
|
Store native lib in runtimes/${rid}/native. Fixes | @@ -1443,7 +1443,7 @@ if(${TINYSPLINE_WITH_LUA})
"${TINYSPLINE_LUAROCKS_SPEC}" @ONLY)
endif()
-# NuGet
+# Nuget
file(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/.nuspec")
if(DEFINED TINYSPLINE_CSHARP_FRAMEWORK_VERSION)
get_filename_component(TINYSPLINE_NUGET_INTERFACE_FILE
@@ -1458,7 +1458,7 @@ if(DEFINED TINYSPLINE_CSHARP_FRA... |
last_built_toolchain.py: try 25 last builds | @@ -25,8 +25,8 @@ def find_sdk(page):
req = urllib2.Request(TRAVIS_API, headers=HEADERS)
build_info = json.load(urllib2.urlopen(req))
number = build_info['repo']['last_build_number']
-# just check last 10 build
-for x in range(10):
+# just check last 25 builds
+for x in range(25):
tag = (TAG_FORMAT % dict(branch='maste... |
Update README.md
No separate `mangohud` script, there's only zuu...\$LIB | @@ -80,14 +80,10 @@ flatpak override --user --env=MANGOHUD=1 com.valvesoftware.Steam
# Normal usage
-To enable the MangoHud overlay layer for 64bit Vulkan and OpenGL, run :
+To enable the MangoHud overlay layer for Vulkan and OpenGL, run :
`mangohud /path/to/app`
-Or
-
-`mangohud.x86 /path/to/app` for 32bit OpenGL
-
Fo... |
add installed files | @@ -38,6 +38,28 @@ pwd
make install BIN_PATH=${RPM_BUILD_ROOT}/usr MAN_PATH=${RPM_BUILD_ROOT}/usr/share/man CONFIG_PATH=${RPM_BUILD_ROOT}/etc
%files
+/etc/oidc-agent/issuer.config
+/etc/oidc-agent/privileges/agentIpc.priv
+/etc/oidc-agent/privileges/crypt.priv
+/etc/oidc-agent/privileges/daemon.priv
+/etc/oidc-agent/pr... |
os/mm: Print largest and total free size at allocation failure
When memory alloc is failed, we must always print largest free
node and total free space in the heap. | @@ -100,7 +100,6 @@ void mm_manage_alloc_fail(struct mm_heap_s *heap, int startidx, int endidx, size
mfdbg(" - caller address = 0x%08x\n", caller);
#endif
-#ifdef CONFIG_MM_ASSERT_ON_FAIL
struct mallinfo info;
memset(&info, 0, sizeof(struct mallinfo));
for (int idx = startidx; idx <= endidx; idx++) {
@@ -109,6 +108,7 @... |
integration: Bump integration tests timeout to 30 minutes.
Integration tests on AKS arm64 takes slightly more than 20 minutes. | @@ -167,7 +167,7 @@ integration-tests: kubectl-gadget
KUBECTL_GADGET="$(shell pwd)/kubectl-gadget" \
go test ./integration/... \
-integration \
- -timeout 20m \
+ -timeout 30m \
-k8s-distro $(KUBERNETES_DISTRIBUTION) \
-k8s-arch $(KUBERNETES_ARCHITECTURE) \
-image $(CONTAINER_REPO):$(IMAGE_TAG) \
|
Change BOARD_SUPPORTS_BSL from 0 to 1 | @@ -15,7 +15,7 @@ SUPPORTS_BLE_BEACON = 0
SUPPORTS_HIGH_PA = 0
### Signal that we can be programmed with cc2538-bsl
-BOARD_SUPPORTS_BSL = 0
+BOARD_SUPPORTS_BSL = 1
# Include the common board makefile
include $(FAMILY_PATH)/launchpad/Makefile.launchpad
|
Add document-creation-attributes-supported (Issue | @@ -316,9 +316,35 @@ serverCreatePrinter(
"display",
"sound"
};
+ static const char * const doc_creation[] =
+ { /* document-creation-attributes-supported values */
+ "copies",
+ "document-name",
+ "media",
+ "media-col",
+ "orientation-requested",
+ "output-bin",
+ "page-ranges",
+ "print-color-mode",
+ "print-quality... |
fix unprobable leak in webp_sdl.c | @@ -71,6 +71,7 @@ int main(int argc, char* argv[]) {
goto Error;
}
if (webp_size != (size_t)(int)webp_size) {
+ free((void*)webp);
fprintf(stderr, "File too large.\n");
goto Error;
}
|
Make sure `h2o_mem_alloc_pool` returns a valid pointer when size is 0
Credit to OSS-Fuzz | @@ -147,6 +147,10 @@ void *h2o_mem_alloc_pool(h2o_mem_pool_t *pool, size_t sz)
return newp->bytes;
}
+ /* return a valid pointer even for 0 sized allocs */
+ if (sz == 0)
+ sz = 1;
+
/* 16-bytes rounding */
sz = (sz + 15) & ~15;
if (sizeof(pool->chunks->bytes) - pool->chunk_offset < sz) {
|
test_utils: allow printint multiple argument in the performance log | @@ -47,28 +47,28 @@ extern "C" {
#define _TEST_PERFORMANCE_ASSERT(ARG) printf("Ignoring performance test [%s]\n", PERFORMANCE_STR(ARG))
#endif
-#define TEST_PERFORMANCE_LESS_THAN(name, value_fmt, value) do { \
- printf("[Performance][" PERFORMANCE_STR(name) "]: "value_fmt"\n", value); \
+#define TEST_PERFORMANCE_LESS_T... |
feat: return NULL instead of abort for strings that are not in the enum name set | @@ -826,7 +826,7 @@ static void gen_enum_to_string(FILE *fp, struct jc_enum *e)
fprintf(fp, " if (v == %s) return \"%s\";\n",
item_name, item->name);
}
- fprintf(fp, "\n abort();\n");
+ fprintf(fp, "\n return (void*)0;\n");
fprintf(fp, "}\n");
}
|
Missed outdir | @@ -168,10 +168,10 @@ FIRTOOL_MODEL_SMEMS_JSON = $(OUT_DIR)/metadata/tb_seq_mems.json
# macrocompiler smems in/output
TOP_SMEMS_CONF ?= $(build_dir)/$(long_name).top.mems.conf
-TOP_SMEMS_FILE ?= $(build_dir)/vsrc/$(long_name).top.mems.v
+TOP_SMEMS_FILE ?= $(OUT_DIR)/$(long_name).top.mems.v
TOP_SMEMS_FIR ?= $(build_dir)... |
Add optional argument to parser/where to set index.
DSLs that use the parser API can use this to more accurately
report source location. | @@ -801,10 +801,16 @@ static Janet cfun_parse_flush(int32_t argc, Janet *argv) {
}
static Janet cfun_parse_where(int32_t argc, Janet *argv) {
- janet_fixarity(argc, 1);
+ janet_arity(argc, 1, 2);
JanetParser *p = janet_getabstract(argv, 0, &janet_parse_parsertype);
+ if (argc > 1) {
+ int32_t offset = janet_getinteger(... |
README.md: fixing build status and coverage results to use new titan repository name | # Titan
-[](https://travis-ci.org/titan-lang/titan-v0)
-[](https://codecov.io/gh/titan-lang/titan-v0/branch/master)
+[ {
esp.m.device = ESP_DEVICE_UNKNOWN;
#endif /* ESP_CFG_ESP8266 && !ESP_CFG_ESP32 */
+ /* Reset baudrate to default */
+ esp.ll.uart.baudrate = ESP_CFG_AT_PORT_BAUDRATE;
+ esp_ll_init(&esp.ll);
+
/* If reset was not forced by user, repeat with manual reset */
if... |
update to the template copyright notice. | @@ -410,8 +410,8 @@ define's such as ``INT_MAX``:
All new source files should begin with a copyright and license stating:
+ // Copyright (c) Contributors to the OpenEXR Project. All rights reserved.
// SPDX-License-Identifier: BSD-3-Clause
- // Copyright Contributors to the OpenEXR Project.
#### Third-party libraries
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.