message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
apps/examples/mtdpart: Prevent part array overflow. mtdpart examples create partions and allocate from 1 index not a 0 index to part[] array. This cause buffer overflow for part array. This change fixes this problem. | /****************************************************************************
* examples/mtdpart/mtdpart_main.c
*
- * Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2013, 2016-2017 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in so... |
engine: cleanup scheduler timers after each event round | @@ -285,12 +285,6 @@ static FLB_INLINE int flb_engine_handle_event(flb_pipefd_t fd, int mask,
flb_utils_pipe_byte_consume(fd);
return FLB_ENGINE_SHUTDOWN;
}
-#ifdef FLB_HAVE_STATS
- else if (config->stats_fd == fd) {
- flb_utils_timer_consume(fd);
- return FLB_ENGINE_STATS;
- }
-#endif
else if (config->ch_manager[0] ==... |
handle multiple values for -s and -t | @@ -711,13 +711,13 @@ def build_quic_trace_result(res, event, fields):
def handle_quic_event(cpu, data, size):
ev = b["events"].event(data)
- if allowed_quic_event and ev.type != allowed_quic_event:
+ if len(allowed_quic_event) > 0 and ev.type not in allowed_quic_event:
return
if ev.type == "h2o__send_response_header":... |
Fix warning in release build | inline Glyph gbuffer_peek(Gbuffer gbuf, Usz height, Usz width, Usz y, Usz x) {
assert(y < height && x < width);
+ (void)height;
return gbuf[y + width + x];
}
@@ -18,6 +19,7 @@ inline Glyph gbuffer_peek_relative(Gbuffer gbuf, Usz height, Usz width, Usz y,
inline void gbuffer_poke(Gbuffer gbuf, Usz height, Usz width, Usz... |
Suspend the animation task if there are no running animations | *********************/
#define LV_ANIM_RESOLUTION 1024
#define LV_ANIM_RES_SHIFT 10
+#define LV_ANIM_TASK_PRIO LV_TASK_PRIO_MID
/**********************
* TYPEDEFS
* STATIC PROTOTYPES
**********************/
static void anim_task(lv_task_t * param);
+static void anim_mark_list_change(void);
static bool anim_ready_handle... |
[chainmaker]add transactPayload struct explanation | @@ -64,9 +64,11 @@ typedef struct TKeyValuePair {
} KeyValuePair;
typedef struct TBoatChainmakerTransactPayload {
-
+ // smart contract name
char* contractName;
+ // invoke method
char* method;
+ // invoke parameters in k-v format
KeyValuePair* Parameters;
} BoatChainmakerTransactPayload;
|
test: make the `check_connection` test use the local ssh setup
With GitHub shutting down user/pass for Git access, let's take the opportunity
to fix this failing test by using our own local setup instead of having to write
down a password to an account. | @@ -33,10 +33,11 @@ class RemoteNetworkTest < Rugged::TestCase
end
def test_remote_check_connection_push_credentials
- skip_if_unreachable
- remote = @repo.remotes.create_anonymous('https://github.com/libgit2-push-test/libgit2-push-test.git')
- credentials = Rugged::Credentials::UserPassword.new(username: "libgit2-push... |
Update lv_kb.h
Fixed enum prefix | @@ -70,9 +70,9 @@ typedef uint8_t lv_kb_style_t;
enum {
- LC_KB_SHIFT_LOWER = 0,
- LC_KB_SHIFT_UPPER,
- LC_KB_SHIFT_SYMBOL,
+ LV_KB_SHIFT_LOWER = 0,
+ LV_KB_SHIFT_UPPER,
+ LV_KB_SHIFT_SYMBOL,
};
typedef uint8_t lv_kb_shift_t;
|
Fix file: output when job name contains a slash. | @@ -106,21 +106,33 @@ pappl_file_open(
for (fileptr = filename + strlen(resource) + 1; *fileptr; fileptr ++)
{
- if (*fileptr < ' ' || *fileptr == 0x7f || *fileptr & 0x80)
+ if (*fileptr < ' ' || *fileptr == 0x7f || *fileptr & 0x80 || *fileptr == '/')
*fileptr = '_';
}
- *fd = open(filename, O_WRONLY | O_CREAT | O_TRUN... |
graph-store: update indices in post on migrate | ~(tap by nodes)
|= [=index:store =node:store]
^- [index:store node:store]
- :- (turn index maybe-unix-to-da)
+ :- (convert-unix-timestamped-index index)
(convert-unix-timestamped-node node)
::
++ remove-nodes
%- ~(gas in *(set index:store))
%+ turn
~(tap in indices)
- |=(=index:store (turn index maybe-unix-to-da))
+ co... |
webterm: improve session creation regexes
Trailing dashes are, in fact, allowed. As are numerics in the agent
name. | @@ -6,9 +6,8 @@ export const DEFAULT_SESSION = '';
* - must start with an alphabetical
* - can be composed of alphanumerics with hyphens
* - can be length 1 or longer
- * - cannot begin or end with a hyphen
*/
-export const SESSION_ID_REGEX = /(^[a-z]{1}[a-z\d-]*[a-z\d]{1}$)|(^[a-z]{1}$)/;
+export const SESSION_ID_REGE... |
fix(fabric ):
add checking of the length of fabric response data | @@ -129,6 +129,11 @@ __BOATSTATIC BOAT_RESULT BoatHlfabricTxExec(BoatHlfabricTx *tx_ptr,
continue;
}
BoatLog(BOAT_LOG_CRITICAL, "http2SubmitRequest ok \n ");
+ //BoatLog(BOAT_LOG_CRITICAL, "http2SubmitRequest fabricHttp2res.httpResLen = %d \n ",fabricHttp2res.httpResLen);
+ if(fabricHttp2res.httpResLen < 5){
+ result =... |
Publish to patterns even if channel object doesn't exist (no clients) | @@ -117,17 +117,19 @@ Pubblish to clients and test against subscribed patterns.
static void pubsub_publish_matched_channel(fio_dict_s *ch_, void *msg_) {
msg_s *msg = msg_;
client_s *cl;
+ if (ch_) {
channel_s *channel = fio_node2obj(channel_s, channels, ch_);
fio_ht_for_each(client_s, clients, cl, channel->clients) {
... |
[scripts][do-qemux86] add a few more virtio devices and tweaks | @@ -99,11 +99,16 @@ if (( ! $DO_GRAPHICS )); then
ARGS+=" -nographic"
else
ARGS+=" -serial stdio -vga std"
+ if (( ! $DO_LEGACY )); then
+ # add a couple of virtio devices for good measure
+ ARGS+=" -device virtio-keyboard-pci"
+ ARGS+=" -device virtio-mouse-pci"
+ fi
fi
if (( $DO_DISK )); then
if (( ! $DO_LEGACY )); t... |
Rename test names from "event" to "msg"
The meson test names had not been changed when "event" had been renamed
to "message".
Ref: | @@ -164,12 +164,12 @@ if get_option('buildtype') == 'debug'
'src/cli.c',
'src/util/str_util.c',
]],
- ['test_control_event_serialize', [
+ ['test_control_msg_serialize', [
'tests/test_control_msg_serialize.c',
'src/control_msg.c',
'src/util/str_util.c',
]],
- ['test_device_event_deserialize', [
+ ['test_device_msg_dese... |
tcpci: reset TCPC if alert mask is reset
The PS8751 TCPC expresses that it has been reset by resetting the
alert mask. Handle its re-init case.
BRANCH=none
TEST=Verify that TCPC is reset on yorp C1 after reinsertion | @@ -288,12 +288,37 @@ int tcpci_tcpm_transmit(int port, enum tcpm_transmit_type type,
return rv;
}
+/* Returns true if TCPC has reset based on reading mask registers. */
+static int register_mask_reset(int port)
+{
+ int mask;
+
+ mask = 0;
+ tcpc_read16(port, TCPC_REG_ALERT_MASK, &mask);
+ if (mask == TCPC_REG_ALERT_M... |
[docs] add Debian packages | @@ -8,6 +8,16 @@ Download Siconos
:local:
+
+Packages
+--------
+
+Debian packages :
+
+* Siconos 4.2.0 https://packages.debian.org/sid/siconos sid(unstable)
+
+
+
Latest source release
---------------------
@@ -28,7 +38,7 @@ and the development source code can be freely downloaded. Try for example::
As user, you will ... |
disable warnings for protobufs | @@ -77,7 +77,7 @@ namespace internal {
#ifdef INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#define YPROTOBUF_DEPRECATED
#else
-#define YPROTOBUF_DEPRECATED [[deprecated("Deprecated")]]
+#define YPROTOBUF_DEPRECATED //warnings are disabled: IGNIETFERRO-886 Y_DEPRECATED("Deprecated")
#endif
#define PROTOBUF_DEPRECATED
|
Makefile: use virtualenv | @@ -7,10 +7,10 @@ SWIFTNAV_ROOT := $(shell pwd)
MAKEFLAGS += SWIFTNAV_ROOT=$(SWIFTNAV_ROOT)
SBP_SPEC_DIR := $(SWIFTNAV_ROOT)/spec/yaml/swiftnav/sbp/
SBP_TESTS_SPEC_DIR := $(SWIFTNAV_ROOT)/spec/tests/yaml/
-SBP_GEN_BIN := python sbpg/generator.py
-export PYTHONPATH := .:$(shell echo $$PYTHONPATH)
+PYTHON := $(SWIFTNAV_R... |
Update MinGW for x86 builds. | @@ -13,19 +13,19 @@ environment:
TEST_PYTHON2: "C:/Python27/python.exe"
TEST_PYTHON3: "C:/Python34/python.exe"
- SCONSOPTS: "-j 3 TOOLSET=mingw ARCH=x86_64"
- INSTALL_MINGW_64: yes
+ INSTALL_MINGW: "--x64"
TEST_PYTHON2: "C:/Python27-x64/python.exe"
TEST_PYTHON3: "C:/Python34-x64/python.exe"
- # The next item can't buil... |
fix(docs): Remove build.yml from new shield steps | @@ -17,7 +17,6 @@ The high level steps are:
- (Optional) Add the matrix transform for mapping KSCAN row/column values to sane key positions. This is needed for non-rectangular keyboards, or where the underlying row/column pin arrangement does not map one to one with logical locations on the keyboard.
- Add a default ke... |
u3: optimizes +wyt:in jet, gated by compile-time assertion | */
#include "all.h"
-/* functions
-*/
-u3_noun
-u3qdi_wyt(u3_noun a)
+STATIC_ASSERT( (UINT32_MAX > u3a_cells),
+ "width precision" );
+
+static c3_w
+_wyt_in(u3_noun a)
{
if ( u3_nul == a ) {
return 0;
}
else {
- u3_noun n_a, l_a, r_a;
- u3x_trel(a, &n_a, &l_a, &r_a);
+ u3_noun l_a, r_a;
+ u3x_trel(a, 0, &l_a, &r_a);
-... |
added github.com/mennanov/fieldmask-utils | @@ -408,6 +408,9 @@ ALLOW .* -> vendor/github.com/beevik/etree
# CONTRIB-1703 telebot client for telegram. responsible: alittleprince@
ALLOW .* -> vendor/gopkg.in/tucnak/telebot.v2
+# CONTRIB-1726 helpers for working with protobuf field masks
+ALLOW .* -> vendor/github.com/mennanov/fieldmask-utils
+
#
# Temporary excep... |
Update swversion to be fullfilled from Application version
swversion is not proposed by device, filled from App version attribute to don't have it empty. More cosmetic than other concern. | "name": "attr/name"
},
{
- "name": "attr/swversion"
+ "name": "attr/swversion",
+ "refresh.interval": 86400,
+ "read": {
+ "at": "0x0001",
+ "cl": "0x0000",
+ "ep": 0,
+ "fn": "zcl"
+ },
+ "parse": {
+ "at": "0x0001",
+ "cl": "0x0000",
+ "ep": 255,
+ "eval": "Item.val = Attr.val",
+ "fn": "zcl"
+ }
},
{
"name": "attr/t... |
Fix derive_input test ignoring parameter
Fix derive_input test hardcoding key type instead of using test argument. | @@ -5934,7 +5934,7 @@ void derive_input( int alg_arg,
if( output_key_type != PSA_KEY_TYPE_NONE )
{
psa_reset_key_attributes( &attributes );
- psa_set_key_type( &attributes, PSA_KEY_TYPE_RAW_DATA );
+ psa_set_key_type( &attributes, output_key_type );
psa_set_key_bits( &attributes, 8 );
actual_output_status =
psa_key_der... |
Fix SEGFAULT in ping response functions
Tested-by: Build Bot | @@ -69,7 +69,7 @@ LIBCOUCHBASE_API lcb_STATUS lcb_respping_result_id(const lcb_RESPPING *resp, siz
return LCB_ERR_OPTIONS_CONFLICT;
}
*endpoint_id = resp->services[index].id;
- *endpoint_id_len = strlen(*endpoint_id);
+ *endpoint_id_len = *endpoint_id == nullptr ? 0 : strlen(*endpoint_id);
return LCB_SUCCESS;
}
@@ -100... |
Modernise samtools view option usage
Remove long-unneeded -S "SAM input" option; fix conflicting -bC
"BAM---no, CRAM!---output" options; use -o instead of redirection. | @@ -36,13 +36,13 @@ with_md.sam.gz: ex2.bam ex1.fa
# samtools view $(NO_PG) -bo $@ -t ex1.fa.fai $<
uncompressed.bam: ex2.sam
- samtools view $(NO_PG) -buS $< > $@
+ samtools view $(NO_PG) -bu -o $@ $<
%.bam: %.sam
- samtools view $(NO_PG) -bS $< > $@
+ samtools view $(NO_PG) -bo $@ $<
%.cram: %.sam
- samtools view $(N... |
Update declaration of graphics assembly | @@ -748,7 +748,6 @@ static const CLR_RT_MethodHandler method_lookup[] =
Library_nanoFramework_Graphics_nanoFramework_UI_DisplayControl::get_Orientation___STATIC__nanoFrameworkUIDisplayOrientation,
NULL,
Library_nanoFramework_Graphics_nanoFramework_UI_DisplayControl::NativeChangeOrientation___STATIC__BOOLEAN__nanoFramew... |
refine fgets function a little | @@ -140,9 +140,9 @@ static void dnut_prepare_intersect(struct dnut_job *cjob,
DNUT_TARGET_FLAGS_ADDR | DNUT_TARGET_FLAGS_SRC);
//result_table in DDR
- // 128 is a dummy value. HW will update this field when finished.
+ // 99 is a dummy value. HW will update this field when finished.
ddr_addr = 2*MAX_TABLE_SIZE;
- dnut_... |
CBLK: Fix return codes on block_write on error | @@ -884,6 +884,14 @@ static struct cblk_req *get_read_req(struct cblk_dev *c,
while (c->status == CBLK_READY) {
sem_wait(&c->r_busy_sem);
+
+ /* Check if device is still healthy after waiting */
+ if (c->status != CBLK_READY) {
+ block_trace("[%s] err: Device not READY, no read req given out!\n",
+ __func__);
+ return ... |
Fix coverity issue CID 186433. | @@ -285,7 +285,6 @@ mdunlink_ao(const char *path)
bool finished = false;
for (int i = 0; i < segNumberArraySize; i++)
{
- bool finished = false;
sprintf(segpath_suffix_position, ".%u",
colnum*AOTupleId_MultiplierSegmentFileNum + segNumberArray[i]);
if (unlink(segpath) != 0)
|
Fix DESTDIR support for cygwin/msys2 install
fixes | @@ -91,7 +91,7 @@ ifeq ($(OSNAME), WINNT)
@-cp $(LIBDLLNAME).a "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
endif
ifeq ($(OSNAME), CYGWIN_NT)
- @-cp $(LIBDLLNAME) $(OPENBLAS_BINARY_DIR)
+ @-cp $(LIBDLLNAME) "$(DESTDIR)$(OPENBLAS_BINARY_DIR)"
endif
endif
#Generating OpenBLASConfig.cmake
|
Silence gcc false positive warning on alpn_protos_len in test/handshake_helper.c | @@ -641,7 +641,8 @@ static int configure_handshake_ctx(SSL_CTX *server_ctx, SSL_CTX *server2_ctx,
}
if (extra->client.alpn_protocols != NULL) {
unsigned char *alpn_protos = NULL;
- size_t alpn_protos_len;
+ size_t alpn_protos_len = 0;
+
if (!TEST_true(parse_protos(extra->client.alpn_protocols,
&alpn_protos, &alpn_proto... |
roller: retrieve latest (current+pending) nonce | !> ^- (unit @)
?~ point=(get:orm:naive points.pre u.who)
~
- =< `nonce
+ =/ nonce=@
+ =< nonce
(proxy-from-point:naive proxy u.point)
+ %- some
+ %+ roll pending
+ |= [pend-tx nonce=_nonce]
+ ?:(=([u.who proxy] from.tx.raw-tx) +(nonce) nonce)
::
++ spawned
|= wat=@t
|
NimBLE: Fixed README file for BLE PHY prph example | @@ -13,7 +13,7 @@ This example performs below functionalities:
This example aims at understanding how to establish connections on preferred PHY and changing LE PHY once the connection is established.
-To test this demo, use any BLE GATT server app that advertises support for the LE PHY service (0xABF2) and includes it ... |
openssl versioning concerns | @@ -541,7 +541,9 @@ static ssize_t fio_tls_read(intptr_t uuid, void *udata, void *buf,
case SSL_ERROR_WANT_CONNECT: /* overflow */
case SSL_ERROR_WANT_ACCEPT: /* overflow */
case SSL_ERROR_WANT_X509_LOOKUP: /* overflow */
+#ifdef SSL_ERROR_WANT_ASYNC
case SSL_ERROR_WANT_ASYNC: /* overflow */
+#endif
case SSL_ERROR_WANT... |
data BUGFIX free incomplete data in case of error in lyd_find_xpath() | @@ -3434,6 +3434,10 @@ lyd_find_xpath(const struct lyd_node *ctx_node, const char *xpath, struct ly_set
cleanup:
lyxp_set_free_content(&xp_set);
lyxp_expr_free((struct ly_ctx *)LYD_CTX(ctx_node), exp);
+ if (ret) {
+ ly_set_free(*set, NULL);
+ *set = NULL;
+ }
return ret;
}
|
board/twinkie/board.c: Format with clang-format
BRANCH=none
TEST=none | @@ -66,13 +66,11 @@ BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- {
- .name = "master",
+ { .name = "master",
.port = I2C_PORT_MASTER,
.kbps = 100,
.scl = GPIO_I2C_SCL,
- .sda = GPIO_I2C_SDA
- },
+ .sda = GPIO_I2C_SDA },
};
const unsigned int i2c_ports... |
Remove redundant status message | @@ -121,7 +121,6 @@ endif()
include(CheckIncludeFile)
CHECK_INCLUDE_FILE("stdatomic.h" HAVE_C11)
-if (HAVE_C11 EQUAL 1)
-message (STATUS found stdatomic.h)
+if (HAVE_C11)
set (CCOMMON_OPT "${CCOMMON_OPT} -DHAVE_C11")
endif()
|
eth-watcher: implement /block peek
/block/some-path allows you to get the next block that will be checked
for updates for the watcher at /some-path. Useful for uptime checking. | ::
+$ context [=path dog=watchdog]
::
- +$ peek-data ~
+ +$ peek-data
+ [%atom =next-block=number:block]
+$ in-poke-data
$: %eth-watcher-poke
$% [%watch =path =config]
[%clear =path]
- ==
- ==
+ == ==
+$ out-poke-data ~
+$ in-peer-data ~
+$ out-peer-data
:: Main
::
=* default-tapp default-tapp:tapp
-%- create-tapp-poke... |
fix: use ntl_malloc() | @@ -46,7 +46,7 @@ json_list_load(void *p_guild_list, char *str, size_t len)
++amt;
}
- data *new_guilds = (data*)ntl_calloc(1, amt, sizeof(data));
+ data *new_guilds = (data*)ntl_malloc(amt, sizeof(data));
for (size_t i=0; i < amt; ++i) {
json_load(new_guilds+i, toks[i]->start, toks[i]->length);
}
|
zuse: add +all and +run to ++ordered-map | ?~ a b
::
$(a r.a, b [n.a $(a l.a)])
+ :: +run: apply gate to transform all values in place
+ :: without modifying their type
+ ::
+ ++ run
+ |= [a=(tree item) b=$-(val val)]
+ |- ^+ a
+ ?~ a a
+ [n=[key.n.a (b val.n.a)] l=$(a l.a) r=$(a r.a)]
+ :: +all: apply logical AND boolean test on all values
+ ::
+ ++ all
+ |= [... |
Windows CI: Enable fuzz test in plain build | @@ -57,7 +57,7 @@ jobs:
run: nmake /S
- name: test
working-directory: _build
- run: nmake test VERBOSE_FAILURE=yes TESTS=-test_fuzz* HARNESS_JOBS=4
+ run: nmake test VERBOSE_FAILURE=yes HARNESS_JOBS=4
minimal:
runs-on: windows-latest
steps:
|
CCode: Split definition and implementation | @@ -2,10 +2,11 @@ if (DEPENDENCY_PHASE)
include (LibAddTest)
add_gtest (testmod_ccode
SOURCES ccode.cpp
+ coder.cpp
LINK_ELEKTRA elektra-kdb
elektra-plugin
INCLUDE_DIRECTORIES "${CMAKE_CURRENT_BINARY_DIR}" # Required for `readme_ccode.c`
"${CMAKE_SOURCE_DIR}/src/bindings/cpp/tests")
endif (DEPENDENCY_PHASE)
-add_plugin... |
Fixed link in documentation
Closes | @@ -1822,7 +1822,7 @@ unaware of it.
To learn more about this extension, see:
-- [VK_KHR_dedicated_allocation in Vulkan specification](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/chap44.html#VK_KHR_dedicated_allocation)
+- [VK_KHR_dedicated_allocation in Vulkan specification](https://www.khronos.o... |
NULL check CallExpr.getCalleeDecl()
getCalleeDecl() may return NULL, so either check it explicitly or use
dyn_cast_or_null operator instead of dyn_cast. This fixes | @@ -209,7 +209,7 @@ class ProbeChecker : public RecursiveASTVisitor<ProbeChecker> {
if (!track_helpers_)
return false;
- if (VarDecl *V = dyn_cast<VarDecl>(E->getCalleeDecl()))
+ if (VarDecl *V = dyn_cast_or_null<VarDecl>(E->getCalleeDecl()))
needs_probe_ = V->getName() == "bpf_get_current_task";
return false;
}
@@ -42... |
jni: avoid segfault when open fails
see | @@ -156,7 +156,6 @@ int elektraJniOpen (Plugin * handle, Key * errorKey)
Data * data = elektraMalloc (sizeof (Data));
data->module = 0;
data->printException = 0;
- elektraPluginSetData (handle, data);
KeySet * config = elektraPluginGetConfig (handle);
Key * k = ksLookupByName (config, "/module", 0);
@@ -295,12 +294,22 ... |
external/stress_tool: add assert_neq
add assert_neq | @@ -200,6 +200,15 @@ void perf_set_keeprunning(int enable);
} \
} while (0)
+#define ST_ASSERT_NEQ(val, exp) \
+ do { \
+ if (exp == val) { \
+ printf("\t[ERROR] val (%d) exp (%d)\n", val, exp); \
+ printf("\t %s\t%s:%d\n", __FUNCTION__, __FILE__, __LINE__); \
+ assert(0); \
+ } \
+ } while (0)
+
#define ST_EXPECT_EQ2(... |
hw: bsp: pic32mz2048_wi-fire: Remove SPI_X_MASTER defines | @@ -84,18 +84,6 @@ syscfg.defs:
description: 'Whether to enable UART5'
value: 1
- SPI_1_MASTER:
- description: 'SPI on J9 connector'
- value: 1
-
- SPI_2_MASTER:
- description: 'SPI connected to microSD card'
- value: 1
-
- SPI_3_MASTER:
- description: 'SPI connected to MRF24WG0MA'
- value: 1
-
I2C_3:
description: 'I2C... |
Improve encoder example and cleanup README | ***************************************************************************************************/
/**
- * @file Example on assembling a basic function returning `0x1337` in `rax`.
+ * @file
+ *
+ * Example on assembling a basic function returning `0x1337` in `rax`.
*/
#include <Zydis/Zydis.h>
+#include <Zycore/LibC.... |
Added EVHTP_FLAG_ENABLE_ALL to enable all socket flags | @@ -298,6 +298,11 @@ struct evhtp_s {
#define EVHTP_FLAG_ENABLE_NODELAY (1 << 3)
#define EVHTP_FLAG_ENABLE_DEFER_ACCEPT (1 << 4)
#define EVHTP_FLAG_DEFAULTS EVHTP_FLAG_ENABLE_100_CONT
+ #define EVHTP_FLAG_ENABLE_ALL EVHTP_FLAG_ENABLE_100_CONT \
+ | EVHTP_FLAG_ENABLE_REUSEPORT \
+ | EVHTP_FLAG_ENABLE_NODELAY \
+ | EVHTP... |
fix default event limit | @@ -79,7 +79,7 @@ scope events -n 1000 -e 'sourcetype!="console" && source.indexOf("cribl.log") ==
helpErrAndExit(cmd, "Cannot specify --match and --all")
} else if len(fields) > 0 && allFields {
helpErrAndExit(cmd, "Cannot specify --fields and --allfields")
- } else if em.LastN > -1 && em.AllEvents {
+ } else if cmd.F... |
gh-actions: try commit message witohut quotes on implementation-status
Hopefully this gets us the ID in the commit message. If not, I'll add
a commit later to just use "Sync with SIMDe" or something like that. | @@ -45,6 +45,6 @@ jobs:
- uses: EndBug/add-and-commit@v7
with:
cwd: implementation-status
- message: "Update to ${{ env.GITHUB_SHA }}"
+ message: Update to ${{ env.GITHUB_SHA }}
default_author: github_actions
branch: main
|
grid mode default | #!/bin/bash
rm config.h
+make clean
make
sudo make install
|
schema tree CHANGE removed unused deviated flag | @@ -707,7 +707,6 @@ struct lysp_module {
struct lysp_ext_instance *exts; /**< list of the extension instances (0-terminated) */
uint8_t submodule:1; /**< flag to distinguish main modules and submodules */
- uint8_t deviated:1; /**< flag if the module is deviated by another module */
uint8_t implemented:1; /**< flag if ... |
check proper pointer for null | @@ -1080,7 +1080,7 @@ void calibrate_gyro(SurviveObject* so, FLT* agm) {
agm[2] -= so->gyro_bias[2];
}
- if (so->gyro_bias != NULL) {
+ if (so->gyro_scale != NULL) {
agm[0] *= so->gyro_scale[0];
agm[1] *= so->gyro_scale[1];
agm[2] *= so->gyro_scale[2];
|
out_http: add host:port on connection error | @@ -357,7 +357,8 @@ void cb_http_flush(void *data, size_t bytes,
if (body != data) {
flb_free(body);
}
- flb_error("[out_http] no upstream connections available");
+ flb_error("[out_http] no upstream connections available to %s:%i",
+ u->tcp_host, u->tcp_port);
FLB_OUTPUT_RETURN(FLB_RETRY);
}
|
esp32: Pump the event loop while waiting for rx-chr or delay_ms. | @@ -48,6 +48,7 @@ int mp_hal_stdin_rx_chr(void) {
if (c != -1) {
return c;
}
+ MICROPY_EVENT_POLL_HOOK
vTaskDelay(1);
}
}
@@ -92,12 +93,21 @@ uint32_t mp_hal_ticks_us(void) {
void mp_hal_delay_ms(uint32_t ms) {
struct timeval tv_start;
- gettimeofday(&tv_start, NULL);
- vTaskDelay(ms / portTICK_PERIOD_MS);
struct timev... |
cleanup Xsession install | @@ -376,7 +376,6 @@ post_install:
ifndef MAC_OS
@ldconfig
@update-desktop-database
- @grep -Fxq "use-oidc-agent" $(XSESSION_PATH)/Xsession.options || echo "use-oidc-agent" >> $(XSESSION_PATH)/Xsession.options
else
@open -a oidc-gen #open the app one time so the handler is registered
endif
|
add missing include to test | @@ -302,7 +302,8 @@ if get_option('tests').enabled()
cmocka_dep,
spdlog_dep,
dearimgui_dep
- ])
+ ],
+ include_directories: inc_common)
test('test amdgpu', e, workdir : meson.project_source_root() + '/tests')
|
os/fs/smartfs: Optimize number of loop iterations in deleteentry()
Exit the loop for counting entries when count>1.
If count>1, we know that sector can't be released. | @@ -1579,6 +1579,10 @@ int smartfs_deleteentry(struct smartfs_mountpt_s *fs, struct smartfs_entry_s *en
if (ENTRY_VALID(direntry)) {
/* Count this entry */
count++;
+ if (count == 2) {
+ /* If valid entry count exceeds 1, we know we cannot release the sector */
+ break;
+ }
}
/* Advance to next entry */
|
ixfr-out, an unlink error does not stop ixfrcreate processing. | @@ -920,8 +920,7 @@ static int ixfr_create_rename_and_delete_files(const char* zname,
num--;
while(num > 0) {
if(num+1 >= (int)ixfr_number) {
- if(!ixfr_unlink_it(zname, zfile, num, 0))
- return 0;
+ (void)ixfr_unlink_it(zname, zfile, num, 0);
} else {
if(!ixfr_rename_it(zname, zfile, num, 0, num+1, 0))
return 0;
|
Build: Test IA32 target as well | @@ -43,6 +43,7 @@ package() {
}
cd $(dirname "$0")
+ARCHS=(X64 IA32)
SELFPKG=OpenCorePkg
DEPNAMES=('EfiPkg' 'OcSupportPkg' 'MacInfoPkg')
DEPURLS=('https://github.com/acidanthera/EfiPkg' 'https://github.com/acidanthera/OcSupportPkg' 'https://github.com/acidanthera/MacInfoPkg')
|
add http2_grpc pusher | @@ -10,7 +10,7 @@ import (
"k8s.io/client-go/tools/clientcmd"
"lmp/eBPF_Supermarket/cilium_ebpf_probe/cluster_utils"
"lmp/eBPF_Supermarket/cilium_ebpf_probe/http2_tracing"
- //"lmp/eBPF_Supermarket/cilium_ebpf_probe/http_kprobe"
+ "lmp/eBPF_Supermarket/cilium_ebpf_probe/http_kprobe"
//
// Uncomment to load all auth plu... |
Fix documentation for SHG in bridge domain | @@ -425,7 +425,7 @@ autoreply define sw_interface_set_l2_xconnect
@param rx_sw_if_index - the interface
@param bd_id - bridge domain id
@param bvi - Setup interface as a bvi, bridge mode only
- @param shg - Shared horizon group, for bridge mode only
+ @param shg - Split horizon group, for bridge mode only
@param enable... |
vppinfra: dont complain about linux-vdso.so.1
It's not an elf file, yadda yadda.
Type: fix | @@ -243,7 +243,13 @@ add_section (struct dl_phdr_info *info, size_t size, void *opaque)
error = clib_elf_parse_file (cem, name, addr);
if (error)
+ {
+ /* Don't complain about 'linux-vdso.so.1' */
+ if (!is_main && name[0] != '/' && error->code == ENOENT)
+ clib_error_free (error);
+ else
clib_error_report (error);
+ }... |
ShareProfile: only share if we arent recipient | @@ -101,7 +101,9 @@ export const ShareProfile = (props) => {
} else if (!group.hidden) {
const [,,ship,name] = groupPath.split('/');
await api.contacts.allowGroup(ship,name);
+ if(ship !== `~${window.ship}`) {
await api.contacts.share(ship);
+ }
setShowBanner(false);
}
};
|
Remove left-over CPP directives from Core.Types | @@ -273,15 +273,9 @@ data RelationalOperator
-- | Convert relation operator to its C representation.
fromRelationalOperator :: RelationalOperator -> CInt
-#if LUA_VERSION_NUMBER >= 502
fromRelationalOperator EQ = #{const LUA_OPEQ}
fromRelationalOperator LT = #{const LUA_OPLT}
fromRelationalOperator LE = #{const LUA_OPL... |
Fix _PY3_REGISTER with sandboxing | import sys
template = '''
-#include "Python.h"
-
-PyMODINIT_FUNC {1}(void);
+struct PyObject;
+extern "C" int PyImport_AppendInittab(const char* name, PyObject* (*initfunc)());
+extern "C" PyObject* {1}();
namespace {
struct TRegistrar {
|
Correct version compare | @@ -1140,8 +1140,8 @@ class NMMLParser
}
else if (newString.startsWith("toolversion:"))
{
- var ver = Std.parseInt( newString.substr(12) );
- newString = ver >= TOOL_VERSION ? "true" : "false";
+ var requiredVersion = Std.parseInt( newString.substr(12) );
+ newString = requiredVersion <= TOOL_VERSION ? "true" : "false"... |
Docs - update PXF version info | <body>
<p>
<ul id="ul_ckf_sfc_hbb">
- <li>Greenplum Platform Extension Framework (PXF) v5.11.1 - PXF, integrated with
+ <li>Greenplum Platform Extension Framework (PXF) v5.13.0 - PXF, integrated with
Greenplum Database 6, provides access to Hadoop, object store, and SQL external data
stores. Refer to <xref scope="peer"... |
Core(M): Fixed comment for MPU Armv7-M device memory access attributes. (Issue | /**
* MPU Memory Access Attribute for device memory.
-* - TEX: 000b (if non-shareable) or 010b (if shareable)
+* - TEX: 000b (if shareable) or 010b (if non-shareable)
* - Shareable or non-shareable
* - Non-cacheable
* - Bufferable (if shareable) or non-bufferable (if non-shareable)
|
Fix verbose option on two-way mode | @@ -495,6 +495,7 @@ int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h)
if (two_way) {
/* ECC-651 and ECC-431 */
handles_swapped = 1;
+ if (verbose) printf(" Swapping handles (two-way mode)\n");
if(compare_handles(h, global_handle, options)) {
error++;
if (!force) exit(1);
@@ -667,7 +668,7 @@... |
admin/meta-packages: add ICU unicode library to compute base - needed
for newer Boost on suse | @@ -102,6 +102,7 @@ Requires: libcairo2
Requires: libpciaccess0
Requires: libatomic1
Requires: librdmacm1
+Requires: libicu-suse65_1
%ifarch x86_64
Requires: libpsm2-2
%endif
|
Make a build error when CONFIG_MAX_TASKS is not power of 2
Max number of tasks should be power of 2 | * tasks built into the design).
*/
+#if CONFIG_MAX_TASKS & (CONFIG_MAX_TASKS - 1)
+#error "Max number of tasks(CONFIG_MAX_TASKS) should be power of 2"
+#endif
#define MAX_TASKS_MASK (CONFIG_MAX_TASKS-1)
#define PIDHASH(pid) ((pid) & MAX_TASKS_MASK)
|
fuzz: move hw ip printing before soft edge/ip | @@ -464,14 +464,14 @@ static void fuzz_perfFeedback(run_t* run) {
run->global->linux.hwCnts.softCntEdge += softCntEdge;
run->global->linux.hwCnts.softCntCmp += softCntCmp;
- LOG_I("Size:%zu (i,b,edg,ip,hw,cmp): %" PRIu64 "/%" PRIu64 "/%" PRIu64 "/%" PRIu64
+ LOG_I("Size:%zu (i,b,hw,edge,ip,cmp): %" PRIu64 "/%" PRIu64 "... |
admin/meta-packages: tau-exec requires perl on computes for job launch | @@ -91,6 +91,7 @@ Requires: libpciaccess
Requires: libseccomp
Requires: librdmacm
Requires: NetworkManager
+Requires: perl-interpreter
%ifarch x86_64
Requires: libpsm2
%endif
|
Build benchmarks with "-Wall -Werror" | @@ -95,11 +95,8 @@ func doBenchTest1(filename string, bench bool, ccompilers string, focus string,
ccArgs := []string(nil)
if bench {
ccArgs = append(ccArgs, "-O3")
- } else {
- // TODO: set these flags even if we pass -O3.
- ccArgs = append(ccArgs, "-Wall", "-Werror")
}
- ccArgs = append(ccArgs, "-std=c99", "-o", out,... |
Increase test coverage of XML_SetEncoding() | @@ -1655,6 +1655,30 @@ START_TEST(test_subordinate_reset)
}
END_TEST
+/* Test setting an explicit encoding */
+START_TEST(test_explicit_encoding)
+{
+ const char *text1 = "<doc>Hello ";
+ const char *text2 = " World</doc>";
+
+ /* First say we are UTF-8 */
+ if (XML_SetEncoding(parser, "utf-8") != XML_STATUS_OK)
+ fail... |
Fix generated metasprites to use relative positions | @@ -131,6 +131,8 @@ const compileSprites = async (
spriteSheet.flipLeft,
(animation, flip) => {
return animation.frames.map((frame) => {
+ let currentX = 0;
+ let currentY = 0;
return frame.tiles
.map((tile) => {
const optimisedTile = lookup[tile.id];
@@ -140,8 +142,8 @@ const compileSprites = async (
if (flip) {
const... |
fs/smartfs : Add journal format to signature sector, logical 0
If level of crc is same but journal state is different, guide it to lower level format | #define SMART_STATUS_SIZEBITS 0x1C
#define SMART_STATUS_VERBITS 0x03
+#define SMART_JOURNAL_DISABLE 0x01
+#define SMART_JOURNAL_ENABLE 0x02
+
+#ifdef CONFIG_MTD_SMART_JOURNALING
+#define SMART_FMT_JOURNAL SMART_JOURNAL_ENABLE
+#else
+#define SMART_FMT_JOURNAL SMART_JOURNAL_DISABLE
+#endif
+
#if defined(CONFIG_SMART_CRC... |
Fix logic for Set PCD to resolve bug writing to LSA partition.
Allow large payload full size for LSA region, while PCD partition is
only up to 64kb using small payload. | @@ -2335,13 +2335,24 @@ FwCmdSetPlatformConfigData (
SetMem(&InPayloadSetData, sizeof(InPayloadSetData), 0x0);
if ((pDimm == NULL) || (pRawData == NULL) ||
- (RawDataSize > PCD_OEM_PARTITION_INTEL_CFG_REGION_SIZE) ||
+ (RawDataSize > PCD_PARTITION_SIZE) ||
(0 == RawDataSize)) {
Rc = EFI_INVALID_PARAMETER;
goto Finish;
... |
ikev2: fix issue when decrypting packet with no keys
Type: fix | @@ -915,7 +915,7 @@ ikev2_decrypt_sk_payload (ikev2_sa_t * sa, ike_header_t * ike,
ikev2_sa_get_td_for_type (sa->r_proposals, IKEV2_TRANSFORM_TYPE_ENCR);
int is_aead = tr_encr->encr_type == IKEV2_TRANSFORM_ENCR_TYPE_AES_GCM_16;
- if ((!sa->sk_ar || !sa->sk_ai) && !is_aead)
+ if (((!sa->sk_ar || !sa->sk_ai) && !is_aead)... |
Make text black in page's header | @@ -69,7 +69,7 @@ features :
# Theme Settings
topbar_color : "#000000"
topbar_transparency : 0.1
-topbar_title_color : "#ffffff"
+topbar_title_color : "#000000"
cover_image : # Replace with alternative image path or image URL.
cover_overlay_color : "#ffffff"
@@ -81,9 +81,9 @@ body_background_color : "ffffff"
link_color... |
Docs: fixed kexts list | @@ -48,6 +48,7 @@ Kexts
- [AsusSMC.kext](https://github.com/hieplpvip/AsusSMC)
- [CPUFriend.kext](https://github.com/acidanthera/CPUFriend)
- [FakeSMC.kext and sensors](https://sourceforge.net/projects/hwsensors3.hwsensors.p/)
+- [HWPEnabler.kext](https://github.com/goodwin/HWPEnable)
- [NullCPUPowerManagement.kext](ht... |
Faster npc movement | @@ -370,10 +370,41 @@ void SceneUpdateActors_b()
}
}
+ if (script_ptr == 0)
+ {
if (IS_FRAME_64)
{
r = rand();
+ for (i = 1; i != scene_num_actors; i++)
+ {
+ if ((time == 0 || time == 128) && (i & 0x1))
+ {
+ continue;
+ }
+ if (actors[i].movement_type == AI_RANDOM_FACE)
+ {
+ memcpy(&actors[i].dir, directions[r & 3],... |
Use correct format for XML_Char in error output
Only actually invoked when XML_Char is char, but it keeps the
compiler quiet | #include "chardata.h"
+#ifdef XML_UNICODE_WCHAR_T
+#define XML_FMT_STR "ls"
+#else
+#define XML_FMT_STR "s"
+#endif
static int
xmlstrlen(const XML_Char *s)
@@ -115,7 +120,8 @@ CharData_CheckString(CharData *storage, const char *expected)
if (len != count) {
if (sizeof(XML_Char) == 1)
sprintf(buffer, "wrong number of da... |
libhfuzz/files: prefault the mmap'd memory | @@ -290,9 +290,16 @@ int files_getTmpMapFlags(int flag, bool nocore) {
flag |= MAP_NOSYNC;
#endif /* defined(MAP_NOSYNC) */
#if defined(MAP_HASSEMAPHORE)
- flag |= MAP_HASSEMAPHORE;
/* Our shared/mmap'd pages can have mutexes in them */
+ flag |= MAP_HASSEMAPHORE;
#endif /* defined(MAP_HASSEMAPHORE) */
+ /* Avoid mappi... |
Spec Mount: Reformat source code | @@ -43,7 +43,8 @@ public:
virtual std::string getShortHelpText () override
{
- return "Mount a new backend by specification. All necessary plugins will be loaded automatically, depending on the metadata.";
+ return "Mount a new backend by specification. All necessary plugins will be loaded automatically, depending on t... |
[core] adjust http_chunk read() retry loop | @@ -62,7 +62,7 @@ static int http_chunk_append_read_fd_range(server *srv, connection *con, buffer
offset = 0;
do {
rd = read(fd, b->ptr+offset, len-offset);
- } while ((rd > 0 && (offset += rd, len -= rd)) || errno == EINTR);
+ } while (rd > 0 ? (offset += rd, len -= rd) : errno == EINTR);
buffer_commit(b, offset);
if ... |
Enable linear filtering in OTG mode
This improves the icon quality with non-standard window size.
PR <https://github.com/Genymobile/scrcpy/pull/3219> | @@ -55,6 +55,10 @@ scrcpy_otg(struct scrcpy_options *options) {
const char *serial = options->serial;
+ if (!SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1")) {
+ LOGW("Could not enable linear filtering");
+ }
+
// Minimal SDL initialization
if (SDL_Init(SDL_INIT_EVENTS)) {
LOGE("Could not initialize SDL: %s", SDL_GetEr... |
adding precision to spike~ | @@ -13,8 +13,8 @@ typedef struct _spike
int x_precount;
int x_nwait;
float x_waittime;
- float x_ksr;
- float x_rcpksr;
+ double x_ksr;
+ double x_rcpksr;
t_clock *x_clock;
} t_spike;
|
meta: add dev ship instructions from master | @@ -38,6 +38,17 @@ To resume a fake ship, just pass the name of the pier:
$ urbit my-fake-zod
```
+Fake ships by default use the same pre-compiled kernelspace ('pills') as livenet
+ships do: boot pills, which are not always current with `master`. If you wish to
+develop using code off the master branch, run the followi... |
use non-ROM variant functions
since the ROM ones are no longer supported in cc2640r2sdk | #include <stdint.h>
/*---------------------------------------------------------------------------*/
#define gpio_hal_arch_interrupt_enable(p) interrupt_enable(p)
-#define gpio_hal_arch_interrupt_disable(p) ti_lib_rom_ioc_int_disable(p)
#ifdef ThisLibraryIsFor_CC26x0R2_HaltIfViolated
+#define gpio_hal_arch_interrupt_dis... |
[core] combine more dup header processing code
(pedantically, repeating HTTP_HEADER_HTTP2_SETTINGS should be an error,
but ignore the duplicate if it matches the value of the first one seen) | @@ -346,9 +346,15 @@ static int http_request_parse_duplicate(request_st * const restrict r, const enu
case HTTP_HEADER_IF_MODIFIED_SINCE:
errmsg = "duplicate If-Modified-Since header -> 400";
break;
+ case HTTP_HEADER_HTTP2_SETTINGS:
+ errmsg = "duplicate HTTP2-Settings header -> 400";
+ break;
default:
errmsg = "dupli... |
shm sub BUGFIX remove obsolete remap
Fixes | @@ -1200,12 +1200,6 @@ sr_shmsub_change_notify_change_done(struct sr_mod_info_s *mod_info, sr_sid_t sid
}
do {
- /* remap sub SHM once we have the lock, it will do anything only on the first call */
- if ((err_info = sr_shm_remap(&shm_sub, sizeof *multi_sub_shm + diff_lyb_len))) {
- goto cleanup_wrunlock;
- }
- multi_s... |
Hardware handshake (RTS/CTS) setting now used properly. | @@ -60,7 +60,7 @@ void uart_init(void)
.cts_pin_no= CTS_PIN_NUMBER, // defaults to UART_PIN_DISCONNECTED
.baud_rate= UART_DEFAULT_CONFIG_BAUDRATE,
.use_parity= (UART_DEFAULT_CONFIG_PARITY != 0) ? (true) : (false),
- .flow_control= HWFC // defaults to false
+ .flow_control= UART_DEFAULT_CONFIG_HWFC // defaults to false
... |
Add C++ include guard to if.h (to fix linker errors in asio) | #ifndef _ESP_PLATFORM_NET_IF_H_
#define _ESP_PLATFORM_NET_IF_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "lwip/sockets.h"
#include "lwip/if_api.h"
@@ -29,4 +33,8 @@ unsigned int if_nametoindex(const char *ifname);
char *if_indextoname(unsigned int ifindex, char *ifname);
+#ifdef __cplusplus
+}
+#endif
+
#en... |
u3: refactors _cu_rock_save(), splitting out path/directory format/creation | @@ -444,13 +444,10 @@ u3u_uniq(void)
ur_hcon_free(rot_u);
}
+/* _cu_rock_path_make(): format rock path, creating directory if necessary..
+*/
static c3_o
-_cu_rock_save(c3_c* dir_c, c3_d eve_d, c3_d len_d, c3_y* byt_y)
-{
- c3_i fid_i;
-
- // open rock file, creating the containing directory if necessary
- //
+_cu_rock... |
Don't attempt to up-ref an EVP_CIPHER if it is NULL
EVP_CIPHERs in the ssl_cipher_methods table can be NULL if
they are not available. We shouldn't attempt to up-ref a
cipher if it is NULL. | @@ -457,7 +457,10 @@ int ssl_cipher_get_evp_cipher(SSL_CTX *ctx, const SSL_CIPHER *sslc,
if (*enc == NULL)
return 0;
} else {
- if (!ssl_evp_cipher_up_ref(ctx->ssl_cipher_methods[i]))
+ const EVP_CIPHER *cipher = ctx->ssl_cipher_methods[i];
+
+ if (cipher == NULL
+ || !ssl_evp_cipher_up_ref(cipher))
return 0;
*enc = ct... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.