message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
peview: Fix memory leak | @@ -1455,7 +1455,10 @@ INT_PTR CALLBACK PvpPeHashesDlgProc(
hashString = PhBufferToHexString(entry->PageHash, sizeof(entry->PageHash));
PvPeHashesAddListViewItem(context->ListViewHandle, PV_HASHLIST_CATEGORY_PAGEHASH, MAXINT, &count, TRUE, NULL, number, hashString);
+ PhFree(entry);
}
+
+ PhDereferenceObject(results->P... |
stm32/main: run a static program | @@ -104,8 +104,15 @@ static uint32_t get_user_program(uint8_t **buf) {
#ifdef PYBRICKS_MPY_MAIN_MODULE
mp_print_str(&mp_plat_print, "\nLoading program from flash.\n");
- // TODO: set buf to address in flash and return len stored in flash
- return 0;
+ // FIXME: This is a placeholder program that does the following:
+ /... |
An infinite_loop fault should break when reset.
This commit fixes fault injector such that when a infinte_loop fault is reset,
the infinite loop is broken and the fault is removed, as expected. | @@ -414,7 +414,9 @@ FaultInjector_InjectFaultNameIfSet(
entryLocal->faultName,
FaultInjectorTypeEnumToString[entryLocal->faultInjectorType])));
- for (ii=0; ii < cnt; ii++)
+ for (ii=0;
+ ii < cnt && FaultInjector_LookupHashEntry(entryLocal->faultName);
+ ii++)
{
pg_usleep(1000000L); // sleep for 1 sec (1 sec * 3600 = ... |
gmskmodem/sandbox: removing unused variable in program | @@ -62,16 +62,13 @@ int main(int argc, char*argv[])
float complex x [num_samples]; // transmitted signal
float complex y [num_samples]; // received signal
float complex z [num_samples]; // received signal
- unsigned int sym_out[num_symbols]; // output symbols
// create modem objects
gmskmod mod = gmskmod_create(k, m, b... |
Added PR's 708,709 and associated commits to 2.5.0 release notes | @@ -54,8 +54,8 @@ Minor release with miscellaneous bug fixes and small features
### Merged Pull Requests
-
-
+* [709](https://github.com/AcademySoftwareFoundation/openexr/pull/709) Fix clean pthreads strikes back
+* [708](https://github.com/AcademySoftwareFoundation/openexr/pull/708) Fix clean pthreads
* [707](https://... |
Eliminate another warning about an unused function | # define CONFIG_NSH_CODECS_BUFSIZE 128
#endif
+#undef NEED_CMD_CODECS_PROC
+#undef HAVE_CODECS_URLENCODE
+#undef HAVE_CODECS_URLDECODE
+#undef HAVE_CODECS_BASE64ENC
+#undef HAVE_CODECS_BASE64DEC
+#undef HAVE_CODECS_HASH_MD5
+
+#if defined(CONFIG_CODECS_URLCODE) && !defined(CONFIG_NSH_DISABLE_URLENCODE)
+# define HAVE_C... |
Don't show external poses from recordings by default | #include "survive_gz.h"
STATIC_CONFIG_ITEM(PLAYBACK_REPLAY_POSE, "playback-replay-pose", 'i', "Whether or not to output pose", 0)
+STATIC_CONFIG_ITEM(PLAYBACK_REPLAY_EXTERNAL_POSE, "playback-replay-external-pose", 'i',
+ "Whether or not to output external pose", 0)
STATIC_CONFIG_ITEM(PLAYBACK, "playback", 's', "File to... |
Fix OP_ARYCAT in case of nil in 1st param | @@ -1909,6 +1909,15 @@ static inline int op_arycat( mrbc_vm *vm, mrbc_value *regs )
{
FETCH_B();
+ if( regs[a].tt == MRBC_TT_NIL ){
+ // arycat(nil, [...]) #=> [...]
+ assert( regs[a+1].tt == MRBC_TT_ARRAY );
+ regs[a] = regs[a+1];
+ regs[a+1].tt = MRBC_TT_NIL;
+
+ return 0;
+ }
+
assert( regs[a ].tt == MRBC_TT_ARRAY )... |
Testing curl call | @@ -63,7 +63,7 @@ SUT_PATH=(`find $BUILD_HOME -name "bin" -type d`)
# determine latest tag from GitHub API
LATEST_URL="https://api.github.com/repos/openwateranalytics/epanet-example-networks/releases/latest"
-LATEST_TAG=(`curl --silent ${LATEST_URL} | jq -r .tag_name`)
+LATEST_TAG=(`curl ${LATEST_URL} | jq -r .tag_name... |
Add printf warning flags to CMake Build
Add extra printf warning flags into the cmake build, only adding those
that are supported by each version of the compiler | @@ -179,6 +179,9 @@ if(CMAKE_COMPILER_IS_GNU)
execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion
OUTPUT_VARIABLE GCC_VERSION)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wwrite-strings")
+ if (GCC_VERSION VERSION_GREATER 3.0 OR GCC_VERSION VERSION_EQUAL 3.0)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat=2... |
VERSION bump to version 2.0.181 | @@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 180)
+set(LIBYANG_MICRO_VERSION 181)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}... |
mesh: Remove dependency on BT_MESH_IV_UPDATE_TEST in shell
Only enable the IV update commands when CONFIG_BT_MESH_IV_UPDATE_TEST
is defined. | @@ -796,19 +796,6 @@ struct shell_cmd_help cmd_net_send_help = {
NULL, "<hex string>", NULL
};
-static int cmd_iv_update(int argc, char *argv[])
-{
- if (bt_mesh_iv_update()) {
- printk("Transitioned to IV Update In Progress state\n");
- } else {
- printk("Transitioned to IV Update Normal state\n");
- }
-
- printk("IV ... |
Fix improper init for blowback source | @@ -10695,7 +10695,7 @@ int test_stateless_blowback_one(picoquic_quic_t* quic, uint64_t * simulated_time
*was_sent = 0;
/* Format random 1 RTT packet */
- filler = 0xff ^ ((uint8_t)simulated_time & 0xff);
+ filler = 0xff ^ (((uint8_t)*simulated_time) & 0xff);
memset(bytes, filler, sizeof(bytes));
bytes[0] &= 0x7f;
pico... |
trim end slash | <_XmakeExecutable>"$([System.IO.Path]::GetFullPath('$(XmakeProgramDir)xmake.exe'))"</_XmakeExecutable>
<_XmakeEnv>
chcp 65001 > NUL
- set XMAKE_CONFIGDIR=$(XmakeConfigDir)
- set XMAKE_PROGRAM_DIR=$(XmakeProgramDir)
+ set XMAKE_CONFIGDIR=$(XmakeConfigDir.TrimEnd('/\'.ToCharArray()))
+ set XMAKE_PROGRAM_DIR=$(XmakePro... |
bpf_module: clean up some ".bpf.fn." usage
Replace usage of the raw string with macro. | @@ -428,7 +428,7 @@ int BPFModule::load_maps(sec_map_def §ions) {
// update instructions
for (auto section : sections) {
auto sec_name = section.first;
- if (strncmp(".bpf.fn.", sec_name.c_str(), 8) == 0) {
+ if (strncmp(BPF_FN_PREFIX, sec_name.c_str(), 8) == 0) {
uint8_t *addr = get<0>(section.second);
uintptr_t s... |
usbdev:resolve ADB compilation errors | @@ -528,7 +528,7 @@ static void usb_adb_wrcomplete(FAR struct usbdev_ep_s *ep,
{
case OK: /* Normal completion */
{
- usbtrace(TRACE_CLASSWRCOMPLETE, priv->nwrq);
+ usbtrace(TRACE_CLASSWRCOMPLETE, sq_count(&priv->txfree));
/* Notify all waiting writers that write req is available */
@@ -549,7 +549,7 @@ static void usb_... |
fixed sprite corruption | @@ -231,6 +231,7 @@ static void processSelectCanvasMouse(Sprite* sprite, s32 x, s32 y)
{
tic_rect rect = {x, y, CANVAS_SIZE, CANVAS_SIZE};
const s32 Size = CANVAS_SIZE / sprite->size;
+ bool endDrag = false;
if(checkMousePos(&rect))
{
@@ -265,13 +266,16 @@ static void processSelectCanvasMouse(Sprite* sprite, s32 x, s32... |
Reverse the logic of flagging malformed packet in fragmentation code to allow padding | @@ -66,7 +66,7 @@ ip4_frag_do_fragment (vlib_main_t * vm, u32 pi, u32 ** buffer,
ptr = 0;
max = (mtu - sizeof (*ip4) - vnet_buffer (p)->ip_frag.header_offset) & ~0x7;
- if (rem < (p->current_length - offset - sizeof (*ip4)))
+ if (rem > (p->current_length - offset - sizeof (*ip4)))
{
*error = IP_FRAG_ERROR_MALFORMED;
r... |
Added missing logical operator in js-parser-expr
This fix is needed to build JerryScript 2.1 on a STM board.
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis | @@ -2154,7 +2154,7 @@ parser_parse_expression (parser_context_t *context_p, /**< context */
*
* If this is not done, it is possible to carry the flag over to the next expression.
*/
- bool has_super_ref = (context_p->status_flags & PARSER_CLASS_SUPER_PROP_REFERENCE);
+ bool has_super_ref = (context_p->status_flags & PA... |
[target][qemu-m4] tweak a line after stm32f4xx library changed a definition. | @@ -89,7 +89,7 @@ static void setup_pins(void) {
GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_UP;
GPIO_Init(GPIOG, &GPIO_InitStruct);
- GPIOE->BSRRL |= GPIO_Pin_7; // set PE7 high
+ GPIOE->BSRR |= GPIO_Pin_7; // set PE7 high
// Setup display CS Pin
gpio_config(GPIO(GPIO_PORT_G, 8), GPIO_OUTPUT);
|
sdcard_image-rpi.bbclass: Use armstub machine feature | @@ -55,7 +55,7 @@ do_image_rpi_sdimg[depends] = " \
dosfstools-native:do_populate_sysroot \
virtual/kernel:do_deploy \
${IMAGE_BOOTLOADER}:do_deploy \
- ${@bb.utils.contains('ARMSTUB', '', '', 'armstubs:do_deploy',d)} \
+ ${@bb.utils.contains('MACHINE_FEATURES', 'armstub', 'armstubs:do_deploy', '' ,d)} \
${@bb.utils.co... |
Checkout with submodules. | @@ -13,6 +13,8 @@ jobs:
steps:
- uses: actions/checkout@v2
+ with:
+ submodules: recursive
- name: update build environment
run: sudo apt-get update --fix-missing -y
- name: install prerequisites
@@ -32,6 +34,8 @@ jobs:
steps:
- uses: actions/checkout@v2
+ with:
+ submodules: recursive
- name: install prerequisites
run... |
Fixed protocol version string handling in router. | @@ -842,7 +842,7 @@ nxt_app_http_req_header_parse(nxt_task_t *task, nxt_app_parse_ctx_t *ctx,
h->done = 1;
h->version.start = p->version.str;
- h->version.length = nxt_strlen(p->version.str);
+ h->version.length = sizeof(p->version.str);
h->method = p->method;
|
vere: copy argv[0] before calling dirname() | @@ -361,7 +361,9 @@ _main_getopt(c3_i argc, c3_c** argv)
if ( (U3_BIN_ALIAS_LEN <= len_w)
&& (0 == strcmp(argv[0] + (len_w - U3_BIN_ALIAS_LEN), U3_BIN_ALIAS)) )
{
- u3_Host.dir_c = _main_repath(dirname(argv[0]));
+ c3_c* bin_c = strdup(argv[0]);
+ u3_Host.dir_c = _main_repath(dirname(bin_c));
+ c3_free(bin_c);
}
// no ... |
doc: mention pg_upgrade extension script
Since commit pg_upgrade automatically creates a script to
update extensions, so mention that instead of ALTER EXTENSION.
Backpatch-through: 9.6 | @@ -308,8 +308,9 @@ make prefix=/usr/local/pgsql.new install
must be installed in the new cluster, usually via operating system
commands. Do not load the schema definitions, e.g., <command>CREATE
EXTENSION pgcrypto</command>, because these will be duplicated from
- the old cluster. (Extensions with available updates ca... |
ChangeLog entry is fixed in a different PR | Bugfix
- * Fix a bug whereby the list of signature algorithms sent as part of the
+ * Fix a bug whereby the the list of signature algorithms sent as part of the
TLS 1.2 server certificate request would get corrupted, meaning the first
algorithm would not get sent and an entry consisting of two random bytes
would be sen... |
[hardware] Dump the CSR values in hex and dec | @@ -1404,7 +1404,7 @@ module snitch
always_ff @(posedge clk_i or posedge rst_i) begin
// Display CSR write if the CSR does not exist
if (!rst_i && csr_dump && inst_valid_o && inst_ready_i && !stall) begin
- $display("[DUMP] %3d: 0x%3h = %d", hart_id_i, inst_data_i[31:20], alu_result);
+ $display("[DUMP] %3d: 0x%3h = 0x... |
TerrainShape mass fix; | @@ -901,6 +901,10 @@ void lovrShapeGetMass(Shape* shape, float density, float* cx, float* cy, float*
dMassTranslate(&m, -m.c[0], -m.c[1], -m.c[2]);
break;
}
+
+ case SHAPE_TERRAIN: {
+ break;
+ }
}
const dReal* position = dGeomGetOffsetPosition(shape->id);
@@ -1052,7 +1056,7 @@ MeshShape* lovrMeshShapeCreate(int vertex... |
add support for arm packages | @@ -31,8 +31,16 @@ if [ "$OS" == 'Linux' ]; then
ARCH='x64'
LIBDIR="lib64"
else
- ARCH=x86
LIBDIR="lib"
+ if [ "$ARCH" == "aarch64" ]; then
+ ARCH=arm64
+ else
+ if [ "$ARCH" == "armv7l" ]; then
+ ARCH=arm
+ else
+ ARCH=x86
+ fi
+ fi
fi
else
if [ "$OS" == 'Darwin' ]; then
@@ -53,6 +61,9 @@ while :; do
lowerI="$(echo $1... |
Touch up styling of %exp messages | @@ -86,8 +86,14 @@ export class Message extends Component {
renderExp(expression, result) {
return (<>
- <p><pre className="clamp-attachment">{expression}</pre></p>
- <p><pre className="clamp-attachment">{result[0].join('\n')}</pre></p>
+ <p>
+ <pre className="clamp-attachment pa1 mt0 bg-light-gray">
+ {expression}
+ <... |
doc/console: translate console.rst into zh_CN | @@ -125,7 +125,7 @@ A few other functions are provided by the command registration module:
``esp_console_run``
This function takes the command line string, splits it into argc/argv argument list using ``esp_console_split_argv``, looks up the command in the list of registered components, and if it is found, executes its... |
rfc5482: initialize TCP User Timeout Option with sys default | @@ -47,6 +47,7 @@ od_config_init(od_config_t *config)
config->keepalive = 15;
config->keepalive_keep_interval = 5;
config->keepalive_probes = 3;
+ config->keepalive_usr_timeout = 0; // use sys default
config->workers = 1;
config->resolvers = 1;
config->client_max_set = 0;
|
Fix `ocf_engine_unmapped_count()`
Inserted entries should be considered mapped. | @@ -109,7 +109,8 @@ static inline uint32_t ocf_engine_mapped_count(struct ocf_request *req)
*/
static inline uint32_t ocf_engine_unmapped_count(struct ocf_request *req)
{
- return req->core_line_count - (req->info.hit_no + req->info.invalid_no);
+ return req->core_line_count -
+ (req->info.hit_no + req->info.invalid_no... |
Reorder includes to allow build on FreeBSD | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
-#include <getopt.h>
-#include <fcntl.h>
-#include <netdb.h>
-#include <netinet/udp.h>
-#include <stdio.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.... |
Remove full speed defaults.
#595, | @@ -69,21 +69,9 @@ func fanControl(pwmDutyMin int, pin int, tempTarget float32) {
})
pwmDuty := 0
- tempWhenRampStarted := float32(0.)
for {
if temp > (tempTarget + hysteresis) {
- if tempWhenRampStarted < 1. {
- tempWhenRampStarted = temp
- }
pwmDuty = iMax(iMin(pwmDutyMax, pwmDuty+1), pwmDutyMin)
- if pwmDuty == pwmD... |
Update: Reference to the logo in readme added | **OpenNARS for Applications**
+<img src="https://user-images.githubusercontent.com/8284677/74609985-02087e80-50e7-11ea-9562-218dec34714d.png" width="500" height="450">
+
This is a completely new platform and not branched from the existing OpenNARS codebase. The ONA (OpenNARS for Applications) system takes the logic and... |
cnat: fix session scanner restart point
Restart point saved by caller, do not restart at i=0.
Type: fix | @@ -165,7 +165,7 @@ cnat_session_scan (vlib_main_t * vm, f64 start_time, int i)
if (alloc_arena (h) == 0)
return 0.0;
- for (i = 0; i < h->nbuckets; i++)
+ for ( /* caller saves starting point */ ; i < h->nbuckets; i++)
{
/* allow no more than 100us without a pause */
if ((vlib_time_now (vm) - start_time) > 10e-5)
|
Fix yapyc uids blinking | import os
import ymake
-from _common import stripext, rootrel_arc_src, listid, resolve_to_ymake_path, generate_chunks
+from _common import stripext, rootrel_arc_src, tobuilddir, listid, resolve_to_ymake_path, generate_chunks
from pyx import PyxParser
@@ -299,12 +299,14 @@ def onpy_srcs(unit, *args):
for path, mod in py... |
Add void parameter to avoid warning in python plugin. | @@ -349,6 +349,7 @@ void function_py_interface_destroy(function func, function_impl impl)
if (py_func->values != NULL)
{
/* TODO: Check why Py_DECREF of each value segfaults */
+ (void)func;
/*
signature s = function_signature(func);
|
acrn-config: Fix ve820 table generation when guest memory size is >512MB
This patch fixes an issue with generation of guest ve820 when the size
of the memory is >512MB. The issue is primarily with respect to converting
between hex and int.
Acked-by: Victor Sun | @@ -48,9 +48,9 @@ def ve820_per_launch(config, hpa_size, hpa2_size):
#HPA2 is always allocated in >4G space.
high_mem_hpa2_len.append(int(hpa2_size[i], 16))
if (high_mem_hpa_len[i] != 0) and (high_mem_hpa2_len[i] != 0):
- high_mem_hpa2_addr.append(hex(FOUR_GBYTE) + high_mem_hpa_len[i])
+ high_mem_hpa2_addr.append(FOUR_... |
Implement ANIMATING_NONE. | @@ -21400,7 +21400,7 @@ void update_animation()
}
else if((unsigned)f >= (unsigned)self->animation->numframes)
{
- self->animating = 0;
+ self->animating = ANIMATING_NONE;
if(self->autokill)
{
@@ -21422,7 +21422,7 @@ void update_animation()
if(!self->animation->loop.mode)
{
- self->animating = 0;
+ self->animating = AN... |
CI: add CRYPTOS definition to Jenkinsfile | @@ -104,7 +104,8 @@ enum TEST {
MEM, // Test for memoryleaks via valgrind
NOKDB, // Only run tests that do not write to disk
ALL, // Run all tests
- INSTALL // Run all tests on an installed version of Elektra
+ INSTALL, // Run all tests on an installed version of Elektra
+ CRYPTOS // Test crypto, fcrypt and gpgme for m... |
Move todo list from README to issue tracker. | @@ -11,19 +11,10 @@ Right now the focus is on portable implementations, but eventually I'd
like to try to implement instruction sets with one another (like
implementing SSE using NEON).
-Instruction sets I'd like to implement include:
-
- * [x86](https://software.intel.com/sites/landingpage/IntrinsicsGuide/)
- * SSE
- ... |
Clarify VariantFile.fetch start/stop region parameters
These are 0-based and half-open. Fixes | @@ -4364,9 +4364,10 @@ cdef class VariantFile(HTSFile):
return bcf_str_cache_get_charptr(bcf_hdr_id2name(hdr, rid))
def fetch(self, contig=None, start=None, stop=None, region=None, reopen=False, end=None, reference=None):
- """fetch records in a :term:`region` using 0-based indexing. The
- region is specified by :term:... |
Makefile.vc: use /MANIFEST:EMBED
this removes the mt.exe step and may fix some build failures if the
executable is locked after linking, e.g., by an antivirus program | @@ -31,12 +31,11 @@ CCNODBG = cl.exe $(NOLOGO) /O2 /DNDEBUG
CCDEBUG = cl.exe $(NOLOGO) /Od /Zi /D_DEBUG /RTC1
CFLAGS = /I. /Isrc $(NOLOGO) /W3 /EHsc /c
CFLAGS = $(CFLAGS) /DWIN32 /D_CRT_SECURE_NO_WARNINGS /DWIN32_LEAN_AND_MEAN
-LDFLAGS = /LARGEADDRESSAWARE /MANIFEST /NXCOMPAT /DYNAMICBASE
+LDFLAGS = /LARGEADDRESSAWARE ... |
xpath BUGFIX start node proper merge | @@ -1116,7 +1116,12 @@ lyxp_set_scnode_merge(struct lyxp_set *set1, struct lyxp_set *set2)
}
}
- if (j == orig_used) {
+ if (j < orig_used) {
+ /* node is there, but update its status if needed */
+ if (set1->val.scnodes[j].in_ctx == LYXP_SET_SCNODE_START_USED) {
+ set1->val.scnodes[j].in_ctx = set2->val.scnodes[i].in_... |
Add texture/color variants to lovr.graphics.newMaterial; | @@ -683,6 +683,19 @@ int l_lovrGraphicsNewFont(lua_State* L) {
int l_lovrGraphicsNewMaterial(lua_State* L) {
MaterialData* materialData = lovrMaterialDataCreateEmpty();
Material* material = lovrMaterialCreate(materialData, false);
+
+ int index = 1;
+
+ if (lua_isuserdata(L, index)) {
+ Texture* texture = luax_checktyp... |
travis: fix typo and increase timeouts | @@ -268,7 +268,7 @@ before_script:
-DBUILD_FULL="${BUILD_FULL:-OFF}"
-DBUILD_SHARED="${BUILD_SHARED:-ON}"
-DENABLE_ASAN="${ENABLE_ASAN:-OFF}"
- -DCOMMON_FLAGS="${COMMON_FLAGS--Werror}"
+ -DCOMMON_FLAGS="${COMMON_FLAGS:--Werror}"
-DENABLE_DEBUG=ON
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DKDB_DB_SYSTEM="$SYSTEM_DIR"
@@ -283,... |
/lib/test/ames-gall: clean up lanes | life=3
rift=0
public-key=bud-pub
- sponsor=~nec
+ sponsor=~bud
==
- =. route.peer-state `[direct=%.y `lane:ames`[%& ~nec]]
+ =. route.peer-state `[direct=%.y `lane:ames`[%& ~bud]]
[%known peer-state]
:: tell ~bud about ~nec
::
public-key=nec-pub
sponsor=~nec
==
- =. route.peer-state `[direct=%.y `lane:ames`[%| `@`%lane... |
[numerics] remove hard-coded verbose mode | @@ -537,7 +537,7 @@ void statsIterationCallback(FrictionContactProblem *problem,
void fc3d_nsgs(FrictionContactProblem* problem, double *reaction,
double *velocity, int* info, SolverOptions* options)
{
- verbose=1;
+ /* verbose=1; */
/* int and double parameters */
int* iparam = options->iparam;
double* dparam = option... |
input: add debug message if collector fails | @@ -518,6 +518,7 @@ static int collector_start(struct flb_input_collector *coll,
FLB_ENGINE_EV_CORE,
MK_EVENT_READ, event);
if (ret == -1) {
+ flb_error("[input collector] COLLECT_EVENT registration failed");
close(coll->fd_event);
coll->running = FLB_FALSE;
return -1;
@@ -530,14 +531,22 @@ static int collector_start(s... |
bugid:16796279:[http2-example]update http2 stream api | @@ -356,7 +356,7 @@ static int http2_stream_test()
return -1;
}
- ret = IOT_HTTP2_Stream_Query(handle, &info_download);
+ ret = IOT_HTTP2_Stream_Query(handle, &info_download, &my_header_info);
if (ret < 0) {
EXAMPLE_TRACE("=========iotx_http2_downstream_query failed %d!!!!!\n", ret);
IOT_HTTP2_Stream_Disconnect(handle)... |
[BSP][imxrt1052-evk] fix rt_i2c_transfer bug. | @@ -294,7 +294,7 @@ static rt_size_t imxrt_i2c_mst_xfer(struct rt_i2c_bus_device *bus,
if (rt1052_i2c->msg[i].flags & RT_I2C_RD)
{
LPI2C_MasterStart(rt1052_i2c->I2C, rt1052_i2c->msg[i].addr, kLPI2C_Read);
- if (LPI2C_MasterReceive(rt1052_i2c->I2C, rt1052_i2c->msg->buf, rt1052_i2c->msg->len) == kStatus_LPI2C_Nak)
+ if (... |
re-add replacement statement | @@ -65,7 +65,7 @@ Depends: ${misc:Depends},
oidc-agent-cli,
xterm | x-terminal-emulator,
yad
-Replaces: oidc-agent-prompt (<= 4.0.2-1)
+Replaces: oidc-agent (<= 4.0.2-1), oidc-agent-prompt (<= 4.0.2-1)
Description: oidc-agent desktop integration
Desktop integration files for oidc-gen and oidc-agent and for creating the... |
Clarify the EVP_PKEY_decrypt manual page
Fixes | @@ -18,19 +18,21 @@ EVP_PKEY_decrypt - decrypt using a public key algorithm
=head1 DESCRIPTION
The EVP_PKEY_decrypt_init() function initializes a public key algorithm
-context using key B<pkey> for a decryption operation.
+context using key I<pkey> for a decryption operation.
The EVP_PKEY_decrypt_init_ex() function ini... |
enhance the plugin feature list | // Plugin sub-category //
/////////////////////////
+#define CLAP_PLUGIN_FEATURE_SYNTHESIZER "synthesizer"
+#define CLAP_PLUGIN_FEATURE_SAMPLER "sampler"
+#define CLAP_PLUGIN_FEATURE_DRUM "drum" // For single drum
+#define CLAP_PLUGIN_FEATURE_DRUM_MACHINE "drum-machine"
+
#define CLAP_PLUGIN_FEATURE_FILTER "filter"
#de... |
Update Per-Processor Socket IOCTL to Correct Name | @@ -40,11 +40,12 @@ QuicFuzzerRecvMsg(
#pragma warning(disable:4116) // unnamed type definition in parentheses
//
-// This is a (currently) undocumented socket IOCTL. It allows for creating
-// per-processor sockets for the same UDP port. This is used to get better
-// parallelization to improve performance.
+// This I... |
cleanup: redrix: Fix macro string
BRANCH=none
TEST=make BOARD=redrix | * found in the LICENSE file.
*/
-#ifndef __BOARD_BRYA_FW_CONFIG_H_
-#define __BOARD_BRYA_FW_CONFIG_H_
+#ifndef __BOARD_REDRIX_FW_CONFIG_H_
+#define __BOARD_REDRIX_FW_CONFIG_H_
#include <stdint.h>
@@ -52,4 +52,4 @@ union redrix_cbi_fw_config get_fw_config(void);
*/
bool ec_cfg_has_eps(void);
-#endif /* __BOARD_BRYA_FW_C... |
fix memory leak in jam | (u3k(x), u3nc(u3nc(x, u3qc_lsh(0, 1, u3t(d))), u3k(l)), 0);
u3z(d);
+ u3z(l);
return y;
}
u3z(d);
u3z(x);
+ u3z(l);
return z;
}
return (jamframe*) u3a_peek(sizeof(jamframe));
}
+
u3_noun
u3qe_jam(u3_atom a)
{
{
u3_noun z = u3qa_add(2, fam->b);
u3_noun y = u3qa_add(z, p_d);
- _jam_push(u3t(fam->a), y, q_d, &(fam->tel));... |
[numerics] fix lcp_path without PATH ... | #include <stdio.h>
#include "SiconosConfig.h"
+#include "LinearComplementarityProblem.h"
+#include "SolverOptions.h"
+
#ifdef HAVE_PATHFERRIS
#include <stdlib.h>
#include <string.h>
#include "SimpleLCP.h"
#include "numerics_verbose.h"
-#include "LinearComplementarityProblem.h"
-#include "SolverOptions.h"
#include "Nume... |
make test: vcl fix OSError exception handling | @@ -215,7 +215,7 @@ class VCLTestCase(VppTestCase):
os.killpg(os.getpgid(worker_client.process.pid),
signal.SIGKILL)
worker_client.join()
- except:
+ except OSError:
self.logger.debug(
"Couldn't kill client worker process")
raise
|
out_cloudwatch_logs: fix spelling mistake | @@ -549,7 +549,7 @@ static struct flb_config_map config_map[] = {
{
FLB_CONFIG_MAP_STR, "metric_dimensions", NULL,
0, FLB_FALSE, 0,
- "Metric dimensions is a list of lsits. If you have only one list of "
+ "Metric dimensions is a list of lists. If you have only one list of "
"dimensions, put the values as a comma seper... |
sse: fix _mm_cvtps_pi8 to not read memory it shouldn't | @@ -736,7 +736,7 @@ simde_mm_cvtps_pi8 (simde__m128 a) {
#else
simde__m64 r;
SIMDE__VECTORIZE
- for (size_t i = 0 ; i < (sizeof(r.i8) / sizeof(r.i8[0])) ; i++) {
+ for (size_t i = 0 ; i < (sizeof(a.f32) / sizeof(a.f32[0])) ; i++) {
r.i8[i] = (int8_t) a.f32[i];
}
return r;
|
[numerics] uncomment code | @@ -963,8 +963,8 @@ void gfc3d_ADMM(GlobalFrictionContactProblem* restrict problem_original, double*
}
- /* tmp_m = options->dWork; /\* options->dWork may be reallocated by computeError *\/ */
- /* tmp_n = &options->dWork[m]; */
+ tmp_m = options->dWork; /* options->dWork may be reallocated by computeError */
+ tmp_n =... |
examples/watchdog/watchdog_main.c: Elapsed var is now being updated through clock | #define DEVNAME_SIZE 16
+/* Number of timeout expirations to change mode to reset the chip */
+
/****************************************************************************
* Private Types
****************************************************************************/
@@ -230,9 +232,13 @@ int main(int argc, FAR char *ar... |
fallback from cooperlake to skylake if gcc<10 | @@ -110,6 +110,8 @@ if (${CORE} STREQUAL "COOPERLAKE")
execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
if (${GCC_VERSION} VERSION_GREATER 10.1 OR ${GCC_VERSION} VERSION_EQUAL 10.1)
set (CCOMMON_OPT = "${CCOMMON_OPT} -march=cooperlake")
+ else ()
+ set (CCOMMON_OPT "${CCOMMON_OPT} -... |
Ensure that a Hello is sent in the same packet as an IHU.
If no Hello has been buffered yet, insert an unscheduled Hello.
This only works if rfc6126-compatible is false. | @@ -1683,6 +1683,7 @@ send_ihu(struct neighbour *neigh, struct interface *ifp)
{
int rxcost, interval;
int send_rtt_data;
+ int unicast;
if(neigh == NULL && ifp == NULL) {
struct interface *ifp_aux;
@@ -1718,7 +1719,9 @@ send_ihu(struct neighbour *neigh, struct interface *ifp)
neigh->ifp->name,
format_address(neigh->ad... |
Solving memory leakage in function get_cache in magic.c | @@ -67,11 +67,15 @@ static int get_cache(MAGIC_CACHE** cache)
(*cache)->magic_cookie = magic_open(0);
if ((*cache)->magic_cookie == NULL)
+ {
+ yr_free(*cache);
return ERROR_INSUFFICIENT_MEMORY;
+ }
if (magic_load((*cache)->magic_cookie, NULL) != 0)
{
magic_close((*cache)->magic_cookie);
+ yr_free(*cache);
return ERROR... |
add docs for new -reloadNoSync option | @@ -83,6 +83,7 @@ houdiniAsset
[-resetSimulation string ]
[-cookMessages string ]
[-reloadAsset string]
+[-reloadNoSync string]
[-sync string]
[-syncAttributes]
[-syncOutputs]
@@ -121,6 +122,11 @@ houdiniAsset
<td>assetName</td>
<td>reload the asset definition for the specified asset, from the hda from which it was pre... |
OpenCorePkg\Library\OcDevicePathLib\OcDevicePathLib.c: Fix warning C4244: '=': conversion from 'const UINT32' to 'UINT{8|16}', possible loss of data | @@ -210,7 +210,7 @@ OcFixAppleBootDevicePathNodeRestore (
if (NodeType == MESSAGING_DEVICE_PATH) {
switch (NodeSubType) {
case MSG_SATA_DP:
- Node.Sata->PortMultiplierPortNumber = RestoreContext->Sata.PortMultiplierPortNumber;
+ Node.Sata->PortMultiplierPortNumber = (UINT16) RestoreContext->Sata.PortMultiplierPortNumbe... |
test/usb_tcpmv2_td_pd_ll_e4.c: Format with clang-format
BRANCH=none
TEST=none | @@ -31,8 +31,8 @@ static int td_pd_ll_e4(enum pd_data_role data_role)
/*
* a) Run PROC.PD.E1 Bring-up according to the UUT role.
*/
- TEST_EQ(proc_pd_e1(data_role, INITIAL_AND_ALREADY_ATTACHED),
- EC_SUCCESS, "%d");
+ TEST_EQ(proc_pd_e1(data_role, INITIAL_AND_ALREADY_ATTACHED), EC_SUCCESS,
+ "%d");
/*
* Make sure we ar... |
fix error with pull file | @@ -216,6 +216,12 @@ rho::net::CNetResponseWrapper CNetRequestWrapper::pushMultipartData(const String
rho::net::CNetResponseWrapper CNetRequestWrapper::pullFile(const String& strUrl, const String& strFilePath, IRhoSession* oSession, Hashtable<String,String>* pHeaders,bool overwriteFile,bool createFolders, bool* pFileEx... |
[lwip] add list_udps. | @@ -673,6 +673,35 @@ void list_tcps(void)
rt_exit_critical();
}
FINSH_FUNCTION_EXPORT(list_tcps, list all of tcp connections);
-#endif
+#endif /* LWIP_TCP */
+
+#if LWIP_UDP
+void list_udps(void)
+{
+ struct udp_pcb *pcb;
+ rt_uint32_t num = 0;
+ char local_ip_str[16];
+ char remote_ip_str[16];
+
+ rt_enter_critical();... |
Fix CMAKE_FLAGS in build.ps1. | @@ -27,10 +27,9 @@ if ($Env:PLATFORM -ne "Win32" -and $Env:PLATFORM -ne "Win64") {
# Make BUILD_DIR next to this script.
$BUILD_DIR_FIXED = "$PSScriptRoot\$Env:BUILD_DIR"
-# Setup CMake generator.
+# Setup CMAKE_FLAGS.
+$CMAKE_FLAGS = "$Env:CMAKE_FLAGS -DCMAKE_BUILD_TYPE=Release"
if ($Env:COMPILER -eq "mingw") {
- # sh... |
Fix wasm build.........; | @@ -15,6 +15,49 @@ int main(int argc, char** argv);
#ifndef LOVR_USE_OCULUS_MOBILE
+#ifdef EMSCRIPTEN
+#include <emscripten.h>
+typedef struct {
+ lua_State* L;
+ lua_State* T;
+ int argc;
+ char** argv;
+} lovrEmscriptenContext;
+
+void lovrDestroy(void* arg) {
+ lovrEmscriptenContext* context = arg;
+ lua_State* L = ... |
cleanup old 2x2 checks | @@ -275,16 +275,6 @@ char *SCS(get_cone_header)(const ScsCone *k) {
return tmp;
}
-static scs_int is_simple_semi_definite_cone(scs_int *s, scs_int ssize) {
- scs_int i;
- for (i = 0; i < ssize; i++) {
- if (s[i] > 2) {
- return 0; /* false */
- }
- }
- return 1; /* true */
-}
-
static scs_float exp_newton_one_d(scs_flo... |
in_head: use new input logging api | #include <fluent-bit/flb_info.h>
#include <fluent-bit/flb_input.h>
+#include <fluent-bit/flb_input_plugin.h>
#include <fluent-bit/flb_config.h>
#include <fluent-bit/flb_error.h>
#include <fluent-bit/flb_utils.h>
@@ -64,7 +65,7 @@ static int read_lines(struct flb_in_head_config *ctx)
new_len = ctx->buf_size + str_len + ... |
fixed captured mouse on game menu/exit | @@ -364,6 +364,7 @@ void tic_api_reset(tic_mem* memory)
resetBlitSegment(memory);
memset(&memory->ram.vram.vars, 0, sizeof memory->ram.vram.vars);
+ memory->ram.input.mouse.relative = 0;
tic_api_clip(memory, 0, 0, TIC80_WIDTH, TIC80_HEIGHT);
|
docs/uselect: Describe POLLHUP/POLLERR semantics in more details.
Per POSIX,
these flags aren't valid in the input eventmask. Instead, they can be
returned in unsolicited manner in the output eventmask at any time. | @@ -35,12 +35,15 @@ Methods
Register *obj* for polling. *eventmask* is logical OR of:
- * ``select.POLLIN`` - data available for reading
- * ``select.POLLOUT`` - more data can be written
- * ``select.POLLERR`` - error occurred
- * ``select.POLLHUP`` - end of stream/connection termination detected
+ * `uselect.POLLIN` -... |
Updated 'special thanks' part | @@ -154,12 +154,12 @@ SGDK is completly free but you can support it on Patreon: https://www.patreon.co
## SPECIAL THANKS
-Of course I thank all my patreon for their continuous support but I want to dedicace a very special and warmfull thanks for
-my premium patreon supporters (100$ / month):
+Of course I thank all my p... |
METADATA.ini: remove duplicates | @@ -644,54 +644,6 @@ type = enum
status = implemented
description = sets the conflict handling for missing key conflicts in kdbGet, see spec plugin README
-[conflict/get/member]
-type = enum
- ERROR
- WARNING
- INFO
-status = implemented
-description = sets the conflict handling for range conflicts in kdbGet, see spec ... |
input: disable storage_type for metrics plugin | @@ -349,6 +349,11 @@ int flb_input_set_property(struct flb_input_instance *ins,
flb_sds_destroy(tmp);
}
else if (prop_key_check("storage.type", k, len) == 0 && tmp) {
+ /* If the input generate metrics, always use memory storage (for now) */
+ if (ins->event_type == FLB_INPUT_LOGS) {
+ ins->storage_type = CIO_STORE_MEM... |
Fix limits on scene switch event | @@ -13,7 +13,7 @@ const fields = [
label: l10n("FIELD_X"),
type: "number",
min: 0,
- max: 30,
+ max: 255,
defaultValue: 0,
width: "50%"
},
@@ -22,7 +22,7 @@ const fields = [
label: l10n("FIELD_Y"),
type: "number",
min: 0,
- max: 31,
+ max: 255,
defaultValue: 0,
width: "50%"
},
|
examples/openssl: remove assert on RAND_set_rand_method | -#include <assert.h>
#include <openssl/rand.h>
#ifdef __cplusplus
@@ -27,9 +26,9 @@ static RAND_METHOD hf_method = {
hf_stat,
};
-void HFResetRand(void)
+static void HFResetRand(void)
{
- assert(RAND_set_rand_method(&hf_method) == 1);
+ RAND_set_rand_method(&hf_method);
}
#ifdef __cplusplus
|
Fix interning build for cmake version 3.15+ | @@ -491,7 +491,16 @@ if (NOT $ENV{S2N_LIBCRYPTO} STREQUAL "awslc")
target_compile_options(${PROJECT_NAME} PRIVATE -Wcast-qual)
endif()
-#work around target differences
+# For interning, we need to find the static libcrypto library. Cmake configs
+# can branch on the variable BUILD_SHARED_LIBS to e.g. avoid having to de... |
[autoconf] force large file support
force large file support; ignore --disable-lfs
(already forced in lighttpd meson, CMake, and Scons builds)
x-ref:
"File upload regression with --disable-lfs" | @@ -1527,7 +1527,8 @@ AC_ARG_ENABLE([lfs],
[
case "${enableval}" in
yes) ENABLE_LFS=yes ;;
- no) ENABLE_LFS=no ;;
+ no) ENABLE_LFS=yes
+ AC_MSG_NOTICE([large file support forced; --disable-lfs ignored]) ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-lfs]) ;;
esac
],
|
fixed src/text sources compilation | @@ -8,9 +8,11 @@ endif
include $(GDK)/common.mk
SRC_LIB_C := $(wildcard $(SRC_LIB)/*.c)
-SRC_LIB_C += $(wildcard $(SRC_LIB)/*/*.c)
+SRC_LIB_C += $(wildcard $(SRC_LIB)/ext/*.c)
+SRC_LIB_C += $(wildcard $(SRC_LIB)/ext/*/*.c)
SRC_LIB_S := $(wildcard $(SRC_LIB)/*.s)
-SRC_LIB_S += $(wildcard $(SRC_LIB)/*/*.s)
+SRC_LIB_S += ... |
tool: elektrad fix null /kdb result | @@ -60,10 +60,6 @@ func lookup(ks elektra.KeySet, key elektra.Key, depth int) (*lookupResult, error
ks = ks.Cut(key)
foundKey := ks.Lookup(key)
- if foundKey == nil {
- return nil, nil
- }
-
var meta map[string]string
exists := foundKey != nil
name := key.BaseName()
|
bitcoin: address joe review | ?> ?=(%bucket -.dat)
|^ :- =/ del=event:settings [%del-bucket %landscape %btc-wallet]
(poke-our:hc %settings-store %settings-event !>(del))
- %- zing
- %+ turn ~(tap by bucket.dat)
- (cork copy-if-missing drop)
+ (murn ~(tap by bucket.dat) copy-if-missing)
::
++ copy-if-missing
|= [=key:settings =val:settings]
|= upd=u... |
Pin coap-cli to working version 0.5.1 | @@ -35,7 +35,7 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E03280
&& apt-get -qq clean
# Install coap-cli
-RUN npm -q install coap-cli -g \
+RUN npm -q install coap-cli@0.5.1 -g \
&& sudo ln -s /usr/bin/nodejs /usr/bin/node
# Install ARM toolchain
|
review5: add keil-c51 toolchain & rules | -
-rule("c51.static")
+rule("c51.binary")
on_load(function (target)
-- we disable checking flags for cross toolchain automatically
target:set("policy", "check.auto_ignore_flags", false)
|
Don't seek past rows in xport
Row count is unknown, so row_offset > actual row count will be a seek error. | @@ -570,13 +570,18 @@ static readstat_error_t xport_process_row(xport_ctx_t *ctx, const char *row, siz
}
pos += variable->storage_width;
- if (ctx->handle.value && !ctx->variables[i]->skip) {
+ if (ctx->handle.value && !ctx->variables[i]->skip && !ctx->row_offset) {
if (ctx->handle.value(ctx->parsed_row_count, variable... |
Adopt the upstream's default value of 'log_line_prefix' | @@ -3696,9 +3696,7 @@ static struct config_string ConfigureNamesString[] =
GUC_NO_SHOW_ALL
},
&Log_line_prefix,
- /* GPDB_12_MERGE_FIXME: Could we adopt the upstream's default? Is there some
- * reason for this particular prefix in GPDB? */
- "%m|%u|%d|%p|%I|%X|:-",
+ "%m [%p] ",
NULL, NULL, NULL
},
|
dpdk: bump to 21.08
Type: feature
This patch bumps dpdk version from 21.05 to 21.08 | @@ -22,9 +22,10 @@ DPDK_FAILSAFE_PMD ?= n
DPDK_MACHINE ?= default
DPDK_MLX_IBV_LINK ?= static
-dpdk_version ?= 21.05
+dpdk_version ?= 21.08
dpdk_base_url ?= http://fast.dpdk.org/rel
dpdk_tarball := dpdk-$(dpdk_version).tar.xz
+dpdk_tarball_md5sum_21.08 := de33433a1806280996a0ecbe66e3642f
dpdk_tarball_md5sum_21.05 := a7... |
Change default in blacklist | @@ -720,8 +720,8 @@ static int AttachInterface(SurviveViveData *sv, struct SurviveUSBInfo *usbObject
}
static const struct DeviceInfo *find_known_device(SurviveContext *ctx, uint16_t idVendor, uint16_t idProduct) {
- const char *blacklist = survive_configs(ctx, "blacklist-devs", SC_GET, "-");
- for (const struct Device... |
mount: detect availability of cache plugin | @@ -314,7 +314,7 @@ Plugin * elektraMountGlobalsLoadPlugin (KeySet * referencePlugins, Key * cur, Ke
KeySet * elektraDefaultGlobalConfig (void)
{
- return ksNew (
+ KeySet * config = ksNew (
24, keyNew ("system/elektra/globalplugins", KEY_VALUE, "", KEY_END),
keyNew ("system/elektra/globalplugins/postcommit", KEY_VALUE... |
safety measure for cases with "no report file provided" | @@ -83,15 +83,18 @@ namespace ebi
continue;
}
+ std::string synonym_found_in_assembly_report = record_core.chromosome;
+ if (assembly_report != ebi::vcf::NO_MAPPING) {
std::vector<std::string> found_synonyms = get_matching_synonyms_list(synonyms_map,
- line_num,
- record_core,
- fasta_index,
- outputs);
+ line_num, rec... |
crypto-native: add missing static_always_inline
Type: improvement | @@ -258,7 +258,7 @@ static const u8x16 aese_prep_mask1 =
static const u8x16 aese_prep_mask2 =
{ 12, 13, 14, 15, 12, 13, 14, 15, 12, 13, 14, 15, 12, 13, 14, 15 };
-static inline void
+static_always_inline void
aes128_key_expand_round_neon (u8x16 * rk, u32 rcon)
{
u8x16 r, t, last_round = rk[-1], z = { };
@@ -272,7 +272,... |
Work CD-CI
Revert changes from last commit. | steps:
- task: DotNetCoreCLI@2
- condition: eq(variables['System.PullRequest.PullRequestId'], '')
+ condition: ne(variables['system.pullrequest.isfork'], true)
displayName: Install NBGV tool
inputs:
command: custom
@@ -11,13 +11,13 @@ steps:
arguments: install --tool-path . nbgv
- script: nbgv cloud -a -c
- condition: ... |
Added null checks for strdup | @@ -704,9 +704,9 @@ static ACVP_RESULT match_dependencies_page(ACVP_CTX *ctx,
name = json_object_get_string(dep_obj, "name");
description = json_object_get_string(dep_obj, "description");
- tmp_dep.type = strdup(type);
- tmp_dep.name = strdup(name);
- tmp_dep.description = strdup(description);
+ if (type) tmp_dep.type ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.