message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
[numerics] add test GFC3D NSN_AC | @@ -798,10 +798,12 @@ if(WITH_${COMPONENT}_TESTING)
NEW_GFC_3D_TEST(GFC3D_Example0.dat SICONOS_GLOBAL_FRICTION_3D_VI_FPP 0 0 0 0 0)
NEW_GFC_3D_TEST(GFC3D_Example0.dat SICONOS_GLOBAL_FRICTION_3D_ACLMFP)
+ NEW_GFC_3D_TEST(GFC3D_Example0.dat SICONOS_GLOBAL_FRICTION_3D_NSN_AC)
NEW_GFC_3D_TEST(GFC3D_Example00.dat SICONOS_GL... |
esp_http_client: Include port in host field
Closes: | @@ -513,11 +513,27 @@ static esp_err_t esp_http_client_prepare(esp_http_client_handle_t client)
return ESP_OK;
}
+static char *_get_host_header(char *host, int port)
+{
+ int err = 0;
+ char *host_name;
+ if (port != DEFAULT_HTTP_PORT && port != DEFAULT_HTTPS_PORT) {
+ err = asprintf(&host_name, "%s:%d", host, port);
+... |
Avoid free of uninitialized ptr
If glfs_check_config() is called with a cfgstring that doesn't have '/'
then it can lead to crash as ptr 'hosts' is not initialized to NULL.
Fixing that in this commit. | @@ -436,7 +436,7 @@ static bool glfs_check_config(const char *cfgstring, char **reason)
char *path;
glfs_t *fs = NULL;
glfs_fd_t *gfd = NULL;
- gluster_server *hosts; /* gluster server defination */
+ gluster_server *hosts = NULL; /* gluster server defination */
bool result = true;
path = strchr(cfgstring, '/');
|
workflow/mnemonic: add password check | #include <ui/screen_stack.h>
#include <util.h>
#include <workflow/mnemonic.h>
+#include <workflow/password.h>
#include "workflow.h"
@@ -162,10 +163,12 @@ static void _check_word(uint8_t selection)
bool workflow_show_mnemonic_create(void)
{
- if (!workflow_get_interface_functions()->get_bip39_mnemonic(&_mnemonic)) {
- s... |
Hide sprites under window if camera moved | @@ -762,7 +762,12 @@ void SceneRenderActors_b()
LOG("a Reposition Actor %u\n", i);
screen_x = actors[i].pos.x + scx;
screen_y = actors[i].pos.y + scy;
+ if (actors[i].enabled && (win_pos_y == MENU_CLOSED_Y || screen_y < win_pos_y + 16))
+ {
move_sprite_pair(sprite_index, screen_x, screen_y);
+ } else {
+ hide_sprite_pa... |
plugins: in_syslog: only release tcp connections when cleaning up | @@ -222,7 +222,9 @@ int syslog_conn_del(struct syslog_conn *conn)
/* The downstream unregisters the file descriptor from the event-loop
* so there's nothing to be done by the plugin
*/
+ if (!ctx->dgram_mode_flag) {
flb_downstream_conn_release(conn->connection);
+ }
/* Release resources */
mk_list_del(&conn->_head);
|
wpa_supplicant: Fix wps_free_pins to remove all pins
Current code does not correctly free all pins in wps_free_pins due to the
semicolon at the end of dl_list_for_each_safe(). Fix it. | @@ -101,7 +101,7 @@ static void wps_remove_pin(struct wps_uuid_pin *pin)
static void wps_free_pins(struct dl_list *pins)
{
struct wps_uuid_pin *pin, *prev;
- dl_list_for_each_safe(pin, prev, pins, struct wps_uuid_pin, list);
+ dl_list_for_each_safe(pin, prev, pins, struct wps_uuid_pin, list)
wps_remove_pin(pin);
}
|
improve commit/decommit on Linux | @@ -889,8 +889,7 @@ static bool mi_os_commitx(void* addr, size_t size, bool commit, bool conservativ
#if defined(_WIN32)
if (commit) {
- // if the memory was already committed, the call succeeds but it is not zero'd
- // *is_zero = true;
+ // *is_zero = true; // note: if the memory was already committed, the call succe... |
fix way sha key is applied for new clones | @@ -215,10 +215,11 @@ AOMP_ROCR_COMPONENT_NAME=${AOMP_ROCR_COMPONENT_NAME:-rocr}
AOMP_LIBDEVICE_REPO_NAME=${AOMP_LIBDEVICE_REPO_NAME:-rocm-device-libs}
AOMP_LIBDEVICE_COMPONENT_NAME=${AOMP_LIBDEVICE_COMPONENT_NAME:-rocdl}
if [ "$AOMP_MAJOR_VERSION" == "12" ] ; then
-AOMP_LIBDEVICE_REPO_BRANCH=${AOMP_LIBDEVICE_REPO_BRAN... |
At the end of an interrupt handler allow the scheduler to run | @@ -85,6 +85,7 @@ void irq_receive(register_state_t* regs) {
if (int_no != INT_VECTOR_IRQ12 && int_no != INT_VECTOR_IRQ1) {
pic_signal_end_of_interrupt(int_no);
}
+ if (tasking_is_active()) task_switch();
return ret;
}
|
qt-gui: try to compile without libqt5svg5-dev | @@ -45,7 +45,6 @@ RUN apt-get update \
libpcre++-dev \
libpcre3-dev \
libpython3-dev \
- libqt5svg5-dev \
libssl-dev \
libsystemd-dev \
libuv1-dev \
|
FlexArray: Fix behaviour at zero-length after discard | @@ -55,7 +55,6 @@ InternalFlexArrayAddItem (
return NULL;
}
} else {
- ASSERT (FlexArray->Count > 0);
ASSERT (FlexArray->AllocatedCount > 0);
ASSERT (FlexArray->Count <= FlexArray->AllocatedCount);
++(FlexArray->Count);
@@ -194,6 +193,10 @@ OcFlexArrayFreeContainer (
} else {
*Items = (*FlexArray)->Items;
*Count = (*Fl... |
Fix typo
Update params.h | /// - the plugin is responsible for updating its GUI
///
/// V. Turning a knob via plugin's internal MIDI mapping
-/// - the plugin sends a CLAP_EVENT_PARAM_SET output event, set should_record to false
-/// - the plugin is responsible to update its GUI
+/// - the plugin sends a CLAP_EVENT_PARAM_VALUE output event, set ... |
Jenkinsfile: remove website backend build | @@ -1177,7 +1177,6 @@ def deployWebsite() {
def buildWebsite() {
def websiteTasks = [:]
websiteTasks << buildImageStage(DOCKER_IMAGES.website_frontend)
- websiteTasks << buildImageStage(DOCKER_IMAGES.website_backend)
return websiteTasks
}
|
Add Magic Value Setting to Force Failure/Assert | @@ -85,6 +85,19 @@ QuicStreamInitialize(
}
}
+#if 1 // Special case code to force bugcheck or failure. Will be removed when no longer needed.
+ QUIC_FRE_ASSERT(Connection->Settings.StreamRecvBufferDefault != 0x80000000u);
+ if (Connection->Settings.StreamRecvBufferDefault == 0x40000000u) {
+ QuicTraceEvent(
+ StreamErr... |
allow to set channel on injection test | @@ -9560,7 +9560,8 @@ if(checkdriverflag == true)
if(injectionflag == true)
{
- getscanlist();
+ if(userscanliststring == NULL) getscanlist();
+ else getscanlistchannel(userscanliststring);
process_fd_injection();
globalclose();
return EXIT_SUCCESS;
|
Fix the long help parameter check in makewindows | @@ -50,7 +50,7 @@ int windowmaker_main(int argc, char* argv[]) {
int parameterLength = (int)strlen(argv[i]);
if((PARAMETER_CHECK("-h", 2, parameterLength)) ||
- (PARAMETER_CHECK("--help", 5, parameterLength))) {
+ (PARAMETER_CHECK("--help", 6, parameterLength))) {
showHelp = true;
}
}
|
added doc target back | @@ -53,7 +53,7 @@ help:
@echo " test to run all tests"
@echo
-all: deps-generator c python javascript java haskell
+all: deps-generator c python javascript java haskell doc
docs: verify-prereq-docs deps-generator pdf html
c: deps-c gen-c test-c
|
opae-sdk: replace include file with array.h | #include "mock/opae_fixtures.h"
#include "props.h"
+#include <array>
-#include<bits/stdc++.h>
fpga_guid known_guid = {0xc5, 0x14, 0x92, 0x82, 0xe3, 0x4f, 0x11, 0xe6,
0x8e, 0x3a, 0x13, 0xcc, 0x9d, 0x38, 0xca, 0x28};
|
Fix matrix rotation decomposition when matrix has scale;
Similar to mat4_getAngleAxis, quat_fromMat4 and mat4_getOrientation need
to divide by the scale. | @@ -156,17 +156,21 @@ MAF quat quat_fromAngleAxis(quat q, float angle, float ax, float ay, float az) {
}
MAF quat quat_fromMat4(quat q, mat4 m) {
- float a = 1.f + m[0] - m[5] - m[10];
- float b = 1.f - m[0] + m[5] - m[10];
- float c = 1.f - m[0] - m[5] + m[10];
- float d = 1.f + m[0] + m[5] + m[10];
+ float sx = vec3_... |
Add support for RSA-PSS to X509_certificate_type() | @@ -35,6 +35,9 @@ int X509_certificate_type(const X509 *x, const EVP_PKEY *pkey)
/* if (!sign only extension) */
ret |= EVP_PKT_ENC;
break;
+ case EVP_PKEY_RSA_PSS:
+ ret = EVP_PK_RSA | EVP_PKT_SIGN;
+ break;
case EVP_PKEY_DSA:
ret = EVP_PK_DSA | EVP_PKT_SIGN;
break;
|
refactor codeStateFromURI | #include <string.h>
#include <syslog.h>
-struct codeState codeStateFromURI(const char* uri) {
+char* getBaseUri(const char* uri) {
if (uri == NULL) {
oidc_setArgNullFuncError(__func__);
- return (struct codeState){};
+ return NULL;
}
char* tmp = oidc_strcopy(uri);
char* tmp_uri = strtok(tmp, "?");
- char* args = strtok... |
Improve detection of 32 bit versions of ModelSim. | @@ -168,13 +168,15 @@ MENT_COMMAND = $(shell command -v vsim)
## GCC version
GCC_VERSION_GT_49 = $(shell gcc -dumpversion | gawk '{print $$1>=4.9?"1":"0"}')
-## For ModelSim figure out whether it is the 32 bit starter edition
+## For ModelSim figure out whether it is a 32 bit edition
CC_INT_SIZE=-m64
ifeq ($(SIMULATOR)... |
fix issue of mutex for send_new_block_thread | @@ -122,6 +122,8 @@ static void *xdag_send_new_block_thread(void *arg)
while(1) {
pthread_mutex_lock(&g_send_new_block_mutex);
elem = list_new_blocks;
+ pthread_mutex_unlock(&g_send_new_block_mutex);
+
if(elem) {
if(elem->block) {
xdag_debug("xdag_send_new_block_thread send block begin");
@@ -130,7 +132,11 @@ static vo... |
Python: Fix CMake warning for policy CMP0086 | @@ -8,6 +8,10 @@ if (POLICY CMP0078)
cmake_policy (SET CMP0078 OLD)
endif (POLICY CMP0078)
+if (POLICY CMP0086)
+ cmake_policy (SET CMP0086 NEW)
+endif (POLICY CMP0086)
+
include (${SWIG_USE_FILE})
include (LibAddMacros)
|
{AH} fix collections.abc import | ########################################################
import os
import collections
+try:
+ from collections.abc import Sequence, Mapping # noqa
+except ImportError:
+ from collections import Sequence, Mapping # noqa
import re
import warnings
import array
@@ -99,11 +103,11 @@ IndexStats = collections.namedtuple("Inde... |
[CHANGELOG] Add Halide applications | @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## Unreleased
+### Added
+- Add Halide runtime and build scripts for applications
+- Add Halide example applications (2D convolution & matrix multiplication)
+
## 0.4.0 - 2021-07-01
### Added
|
ci: use inbuilt github concurrency feature | @@ -9,14 +9,11 @@ env:
# Skip homebrew cleanup to avoid issues with removal of packages
HOMEBREW_NO_INSTALL_CLEANUP: 1
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
- cancel:
- name: auto-cancellation-running-action
- runs-on: macos-11
- steps:
- - uses: fauguste/aut... |
ARMv8: making coredata fields 64-bits wide | @@ -40,21 +40,21 @@ struct armv8_core_data {
lpaddr_t multiboot2; ///< The physical multiboot2 location
uint64_t multiboot2_size;
lpaddr_t efi_mmap;
- uint32_t module_start; ///< The start of the cpu module
- uint32_t module_end; ///< The end of the cpu module
- uint32_t urpc_frame_base;
- uint8_t urpc_frame_bits;
- ui... |
esp_lcd: add condition for spi to keep cs low | @@ -209,7 +209,9 @@ static esp_err_t panel_io_spi_tx_param(esp_lcd_panel_io_t *io, int lcd_cmd, cons
memset(lcd_trans, 0, sizeof(lcd_spi_trans_descriptor_t));
lcd_trans->base.user = spi_panel_io;
+ if (param && param_size) {
lcd_trans->base.flags |= SPI_TRANS_CS_KEEP_ACTIVE;
+ }
if (spi_panel_io->flags.octal_mode) {
//... |
MSR: Add `/tests` convention to ReadMe | @@ -42,6 +42,10 @@ the third command, which will fail with exit code `1`, since it tries to delete
value the last command prints to the standard error output, since we specified the expected text `Did not find the key` via the special
comment `# STDERR:`.
+## Conventions
+
+- Only add tests that store data below `/test... |
Fix a table of contents of maps | @@ -45,16 +45,18 @@ This guide is incomplete. If something feels missing, check the bcc and kernel s
- [10. BPF_DEVMAP](#10-bpf_devmap)
- [11. BPF_CPUMAP](#11-bpf_cpumap)
- [12. BPF_XSKMAP](#12-bpf_xskmap)
- - [13. map.lookup()](#13-maplookup)
- - [14. map.lookup_or_try_init()](#14-maplookup_or_try_init)
- - [15. map.d... |
Tests: added tests for translating $dollar into a literal $.
If you need to specify a $ in a URI you can now use '$dollar' or
'${dollar}'.
Added some tests for the above to test_variables.py setting a Location
string. | @@ -114,6 +114,27 @@ class TestVariables(TestApplicationProto):
check_user_agent('', 404)
check_user_agent('no', 404)
+ def test_variables_dollar(self):
+ assert 'success' in self.conf(
+ {
+ "listeners": {"*:7080": {"pass": "routes"}},
+ "routes": [{"action": {"return": 301}}],
+ }
+ )
+
+ def check_dollar(location, e... |
default toolset for linux/gmake is 'gcc'. | trigger = "gmake2",
shortname = "Alternative GNU Make",
description = "Generate GNU makefiles for POSIX, MinGW, and Cygwin",
+ toolset = "gcc",
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Utility", "Makefile" },
|
vere: add -fcommon to be compatible with gcc 10
gcc 9 and earlier default to -fcommon, i.e. linker merges identical symbols. gcc 10 defaults
to -fno-common, and the build breaks because c3_global is not defined anywhere. | @@ -93,7 +93,7 @@ do LDFLAGS="${LDFLAGS-} -I$header"
done
cat >config.mk <<EOF
-CFLAGS := ${CFLAGS-} -funsigned-char -ffast-math -std=gnu99
+CFLAGS := ${CFLAGS-} -funsigned-char -ffast-math -fcommon -std=gnu99
LDFLAGS := $LDFLAGS
CC := ${CC-cc}
EOF
|
[STM32L4] Remove error clearing on flash driver
This removes custom error clearing code. Calls to `erase` and
`program` already do pretty good error checking and clearing on both
beginning/end. This code was causing flash corruption when swap
upgrades were performed with interruptions. | @@ -78,16 +78,7 @@ stm32l4_flash_write(const struct hal_flash *dev, uint32_t address,
align = dev->hf_align;
num_dwords = ((num_bytes - 1) / align) + 1;
- /* clear previous errors */
- __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_SR_ERRORS);
-
for (i = 0; i < num_dwords; i++) {
- /*
- * FIXME: need to check why PGSERR gets set in... |
sse2: MSVC doesn't include _mm_set{,1}_epi64x until 19 | @@ -3458,7 +3458,7 @@ simde_mm_set_epi64 (simde__m64 e1, simde__m64 e0) {
SIMDE__FUNCTION_ATTRIBUTES
simde__m128i
simde_mm_set_epi64x (int64_t e1, int64_t e0) {
-#if defined(SIMDE_SSE2_NATIVE)
+#if defined(SIMDE_SSE2_NATIVE) && (!defined(HEDLEY_MSVC_VERSION) || HEDLEY_MSVC_VERSION_CHECK(19,0,0))
return _mm_set_epi64x(e... |
improved help menu: john use the same option as hashcat for PMKID | @@ -5123,7 +5123,7 @@ printf("%s %s (C) %s ZeroBeat\n"
"options:\n"
"-o <file> : output hccapx file (hashcat -m 2500/2501)\n"
"-O <file> : output raw hccapx file (hashcat -m 2500/2501)\n"
- "-z <file> : output PMKID file (hashcat hashmode -m 16800)\n"
+ "-z <file> : output PMKID file (hashcat hashmode -m 16800 and john... |
make ivlen optional unless AEAD | @@ -477,7 +477,10 @@ ACVP_RESULT acvp_aes_kat_handler(ACVP_CTX *ctx, JSON_Object *obj)
}
}
keylen = (unsigned int)json_object_get_number(groupobj, "keyLen");
+ ivlen = keylen;
+ if (alg_id == ACVP_AES_GCM || alg_id == ACVP_AES_CCM) {
ivlen = (unsigned int)json_object_get_number(groupobj, "ivLen");
+ }
ptlen = (unsigned... |
Simplify 'is_blacklisted' function | @@ -49,13 +49,6 @@ static bool check_blacklisted() {
}
bool& is_blacklisted() {
- static bool checked = false;
- static bool blacklisted = false;
-
- if (!checked) {
- checked = true;
- blacklisted = check_blacklisted();
- }
-
+ static bool blacklisted = check_blacklisted();
return blacklisted;
}
|
Also rename NProvides namespace.
Note: mandatory check (NEED_CHECK) was skipped | @@ -4,7 +4,7 @@ import sys
def main():
out, names = sys.argv[1], sys.argv[2:]
with open(out, 'w') as f:
- f.write('namespace NProvide {\n')
+ f.write('namespace NProvides {\n')
for name in sorted(names):
f.write(' bool {} = true;\n'.format(name))
f.write('}\n')
|
cmake: suggestion to add flags
see | @@ -131,6 +131,7 @@ set (COMMON_FLAGS "${COMMON_FLAGS} -Wformat-security")
set (COMMON_FLAGS "${COMMON_FLAGS} -Wshadow")
set (COMMON_FLAGS "${COMMON_FLAGS} -Wcomments -Wtrigraphs -Wundef")
set (COMMON_FLAGS "${COMMON_FLAGS} -Wuninitialized -Winit-self")
+#set (COMMON_FLAGS "${COMMON_FLAGS} -Wmissing-declarations -Wmiss... |
Change definitions | @@ -51,9 +51,9 @@ typedef osSemaphoreId esp_sys_sem_t;
typedef osMessageQId esp_sys_mbox_t;
typedef osThreadId esp_sys_thread_t;
typedef osPriority esp_sys_thread_prio_t;
-#define ESP_SYS_MBOX_NULL (osMessageQId)0
-#define ESP_SYS_SEM_NULL (osSemaphoreId)0
-#define ESP_SYS_MUTEX_NULL (osMutexId)0
+#define ESP_SYS_MBOX_... |
Fixed issue where audience wasn't getting set on create/join. | ?^ - (sh-note "has glyph {<u>}")
=+ cha=(glyph (mug pan))
(sh-note:(set-glyph cha pan) "new glyph {<cha>}")
+ =. ..sh-work
+ sh-prod(active.she pan)
=+ loc=shape:(~(got by tales) man)
::x change local mailbox config to include subscription to pan.
%^ sh-tell %design man
|
Add combination_pairs helper function
Wrapper function for itertools.combinations_with_replacement, with
explicit cast due to imprecise typing with older versions of mypy. | @@ -73,6 +73,17 @@ def hex_to_int(val: str) -> int:
def quote_str(val) -> str:
return "\"{}\"".format(val)
+def combination_pairs(values: List[T]) -> List[Tuple[T, T]]:
+ """Return all pair combinations from input values.
+
+ The return value is cast, as older versions of mypy are unable to derive
+ the specific type r... |
[numerics] improve tls variable definition | #define tlsvar thread_local
#else
- #if defined(__GNUC__)
+ #if defined(__GNUC__) || (defined(__ICC) && defined(__linux))
#define tlsvar __thread
+ #elif defined(__ICC) && defined(_WIN32)
+ #define tlsvar __declspec(thread)
+ #elif defined(SICONOS_ALLOW_GLOBAL)
+ #define tlsvar static
#else
#error "Don't know how to cr... |
OpenSSL::ParseC: handle OSSL_CORE_MAKE_FUNC | @@ -282,6 +282,20 @@ EOF
massager => sub { return "$1 $2"; },
},
+ #####
+ # Core stuff
+
+ # OSSL_CORE_MAKE_FUNC is a macro to create the necessary data and inline
+ # function the libcrypto<->provider interface
+ { regexp => qr/OSSL_CORE_MAKE_FUNC<<<\((.*?),(.*?),(.*?)\)>>>/,
+ massager => sub {
+ return (<<"EOF");
+... |
extmod/modiodevices: read data from mode | @@ -45,22 +45,24 @@ STATIC mp_obj_t iodevices_LUMPDevice_make_new(const mp_obj_type_t *type, size_t
}
// pybricks.iodevices.LUMPDevice.read
-STATIC mp_obj_t iodevices_LUMPDevice_read(mp_obj_t self_in) {
- iodevices_LUMPDevice_obj_t *self = MP_OBJ_TO_PTR(self_in);
+STATIC mp_obj_t iodevices_LUMPDevice_read(size_t n_args... |
[bug][bsp][stm32][pandora] fix a bug that cannot use fatfs in the main thread at starting up | * Change Logs:
* Date Author Notes
* 2018-12-14 balanceTWK add sdcard port file
+ * 2021-02-26 Meco Man fix a bug that cannot use fatfs in the main thread at starting up
*/
#include <rtthread.h>
@@ -46,6 +47,12 @@ int stm32_sdcard_mount(void)
{
rt_thread_t tid;
+ if (dfs_mount("sd0", "/", "elm", 0, 0) == RT_EOK)
+ {
+ ... |
server: Fix alignment issue in session ticket QUIC version | */
#include "tls_server_context_openssl.h"
+#include <cstring>
#include <iostream>
#include <fstream>
#include <limits>
@@ -220,12 +221,13 @@ SSL_TICKET_RETURN decrypt_ticket_cb(SSL *ssl, SSL_SESSION *session,
return SSL_TICKET_RETURN_IGNORE_RENEW;
}
- uint32_t *pver;
+ uint8_t *pver;
+ uint32_t ver;
size_t verlen;
if ... |
removed copy and paste error | @@ -2324,8 +2324,6 @@ if(argc < 2)
if(optind == argc)
{
printf("no input file(s) selected\n");
- if(fh_pmkideapolhc != NULL) fclose(fh_pmkideapolhc);
- if(fh_pmkideapoljtr != NULL) fclose(fh_pmkideapoljtr);
exit(EXIT_FAILURE);
}
|
doc: fix maintainer full name | @@ -9,5 +9,5 @@ Fluent Bit is developed and supported by many individuals and companies. The fo
| [Fujimoto Seiji](https://github.com/fujimotos) | Windows Platform | [Clear Code](http://clear-code.com/) |
| [Wesley Pettit](https://github.com/PettitWesley) | Amazon Plugins (AWS) | [Amazon Web Services](https://aws.amazo... |
SO_NOSIGPIPE compilefix for netbsd | @@ -2369,13 +2369,13 @@ do_accept(neat_ctx *ctx, neat_flow *flow, struct neat_pollable_socket *listen_so
neat_log(ctx, NEAT_LOG_DEBUG, "Call to setsockopt(SCTP_RECVNXTINFO) failed");
#endif // defined(SCTP_RECVNXTINFO)
#endif
-#if defined(SO_NOSIGPIPE)
+#if defined(SO_NOSIGPIPE) && defined(IPPROTO_SCTP)
optval = 1;
rc ... |
bugfix for osi_fixed_queue pointer type | @@ -154,7 +154,7 @@ void *fixed_queue_dequeue(fixed_queue_t *queue, uint32_t timeout)
assert(queue != NULL);
- if (osi_sem_take(queue->dequeue_sem, timeout) != 0) {
+ if (osi_sem_take(&queue->dequeue_sem, timeout) != 0) {
return NULL;
}
@@ -208,14 +208,14 @@ void *fixed_queue_try_remove_from_queue(fixed_queue_t *queue,... |
interface: fix publish url preprocessing | @@ -19,7 +19,7 @@ export const isUrl = (str) => {
const raceRegexes = (str) => {
let link = str.match(URL_REGEX);
- while(link?.[1]?.endsWith('(')) {
+ while(link?.[1]?.endsWith('(') || link?.[1].endsWith('[')) {
const resumePos = link[1].length + link[2].length;
const resume = str.slice(resumePos);
link = resume.match... |
Add ESP_SET_IP macro to set IPv4 IP addr | @@ -99,6 +99,13 @@ typedef struct {
uint8_t ip[4]; /*!< IPv4 address */
} esp_ip_t;
+/**
+ * \brief Set IP address to \ref esp_ip_t variable
+ * \param[in] ip: Pointer to IP structure
+ * \param[in] ip1,ip2,ip3,ip4: IPv4 parts
+ */
+#define ESP_SET_IP(ip_str, ip1, ip2, ip3, ip4) do { (ip_str)->ip[0] = (ip1); (ip_str)->... |
stm32/modmachine: Add device and revision ids to machine.info(). | @@ -155,6 +155,8 @@ STATIC mp_obj_t machine_info(size_t n_args, const mp_obj_t *args) {
printf("ID=%02x%02x%02x%02x:%02x%02x%02x%02x:%02x%02x%02x%02x\n", id[0], id[1], id[2], id[3], id[4], id[5], id[6], id[7], id[8], id[9], id[10], id[11]);
}
+ printf("DEVID=0x%04x\nREVID=0x%04x\n", (unsigned int)HAL_GetDEVID(), (unsig... |
distro-packages/python-Cython: fix fdupes | @@ -72,7 +72,7 @@ for p in cython cythonize cygdb ; do
done
%if 0%{?sles_version} || 0%{?suse_version}
-%fdupes %{buildroot}%{$python_sitearch}
+%fdupes %{buildroot}%{python3_sitearch} %{buildroot}%{_docdir}
%endif
}
|
lib/upytesthelper: Handle "wildcard lines" in .exp files,
For some tests, if a line in .exp file contains ######## on its own,
corresponding line is ignored in test output. Try to implement this
feature, to make more tests runnable with qemu_arm/zephyr/etc. | @@ -66,6 +66,23 @@ bool upytest_is_failed(void) {
// If mismatch happens, upytest_is_failed() returns true.
void upytest_output(const char *str, mp_uint_t len) {
if (!test_failed) {
+ #define WILDCARD_L "########\n"
+ while (strncmp(test_exp_output, WILDCARD_L, sizeof(WILDCARD_L) - 1) == 0) {
+ const char *p = memchr(s... |
[io] mechanics_run: fix typo on joints | @@ -1934,7 +1934,8 @@ class MechanicsHdf5Runner(siconos.io.mechanics_hdf5.MechanicsHdf5):
options.minimumPointsPerturbationThreshold = 3*multipoints_iterations
self._interman = interaction_manager(options)
- if hasattr(self._interman, 'useEqualityConstraints') and len(self.joints())==0:
+ joints = list(self.joints())
+... |
improve build warning | @@ -165,7 +165,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags)
{
function (ok, outdata, errdata)
-- show warnings?
- if ok and errdata and #errdata > 0 and (option.get("diagnosis") or option.get("warning") or policy.build_warnings()) then
+ if ok and errdata and #errdata > 0 and policy.build_warn... |
manage identification of module in the board running a detection | @@ -150,6 +150,8 @@ int wait_route_table(module_t* module, msg_t* intro_msg) {
luos_send(module, intro_msg);
uint32_t timestamp = HAL_GetTick();
while ((HAL_GetTick() - timestamp) < timeout) {
+ // If this request is for a module in this board allow him to respond.
+ luos_loop();
if (route_table[intro_msg->header.targe... |
pk: add generic defines for ECDSA capabilities
The idea is to state what are ECDSA capabilities independently from how
this is achieved | @@ -155,6 +155,28 @@ typedef struct mbedtls_pk_rsassa_pss_options {
#endif
#endif /* defined(MBEDTLS_USE_PSA_CRYPTO) */
+/**
+ * \brief The following defines are meant to list ECDSA capabilities of the
+ * PK module in a general way (without any reference to how this
+ * is achieved, which can be either through PSA dri... |
[numerics] fix memory leaks in NM_eye | @@ -2254,6 +2254,8 @@ NumericsMatrix* NM_eye(int size)
{
NumericsMatrix* M = NM_create(NM_SPARSE, size, size);
/* version incremented in NSM_triplet_eye */
+ NSM_clear(M->matrix2);
+ free(M->matrix2);
M->matrix2 = NSM_triplet_eye(size);
return M;
}
@@ -5329,6 +5331,9 @@ int NM_compute_balancing_matrices(NumericsMatrix*... |
utilities: using error-handling interface | /*
- * Copyright (c) 2007 - 2015 Joseph Gaeddert
+ * Copyright (c) 2007 - 2020 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -36,8 +36,8 @@ float liquid_rosenbrock(void * _userdata,
unsi... |
Allow specifying LogManagers as weak symbols on Apple
This lets an consumer pull in the obj-c wrapper while also having their own LOGMANAGER_INSTANCE declaration | @@ -684,6 +684,9 @@ namespace ARIASDK_NS_BEGIN
//
#define DEFINE_LOGMANAGER(LogManagerClass, LogConfigurationClass) \
ILogManager* LogManagerClass::instance = nullptr;
+#elif defined(__APPLE__) && defined(MAT_USE_WEAK_LOGMANAGER)
+#define DEFINE_LOGMANAGER(LogManagerClass, LogConfigurationClass) \
+ template<> __attrib... |
oauth2: fix to try ipv6 when getting upstream connection
Add trial to establish upstream connection with FLB_IO_IPV6 mode,
for the environment where the hostname is resolved to ipv6 primarily. | @@ -320,10 +320,15 @@ char *flb_oauth2_token_get(struct flb_oauth2 *ctx)
/* Get Token and store it in the context */
u_conn = flb_upstream_conn_get(ctx->u);
+ if (!u_conn) {
+ ctx->u->flags |= FLB_IO_IPV6;
+ u_conn = flb_upstream_conn_get(ctx->u);
if (!u_conn) {
flb_error("[oauth2] could not get an upstream connection"... |
publish: fetch notebook during navigation | @@ -41,7 +41,7 @@ export class Notebook extends Component {
componentDidUpdate(prevProps) {
const { props } = this;
- if (prevProps && prevProps.api !== props.api) {
+ if ((prevProps && (prevProps.api !== props.api)) || props.api) {
const notebook = props.notebooks?.[props.ship]?.[props.book];
if (!notebook?.subscriber... |
Add a test for SSL_clear() | @@ -2649,6 +2649,60 @@ static int test_export_key_mat(int tst)
return testresult;
}
+static int test_ssl_clear(int idx)
+{
+ SSL_CTX *cctx = NULL, *sctx = NULL;
+ SSL *clientssl = NULL, *serverssl = NULL;
+ int testresult = 0;
+
+#ifdef OPENSSL_NO_TLS1_2
+ if (idx == 1)
+ return 1;
+#endif
+
+ /* Create an initial conn... |
GRIB1: Nearest point incorrect for second order boustrophedonic | @@ -90,7 +90,7 @@ if(bitmapPresent) {
}
} else {
if (boustrophedonicOrdering) {
-
+ # See ECC-1402
meta numericValues data_g1second_order_general_extended_packing(
#simple_packing args
section4Length,
@@ -126,8 +126,7 @@ if(bitmapPresent) {
SPD,
widthOfSPD,
orderOfSPD,
- numberOfPoints
- ) : read_only;
+ numberOfPoints... |
HV: Fix compiler warnings in string.c
fix below warnings when compiling
lib/string.c: In function 'strtoul_hex':
lib/string.c:25:26: warning: suggest parentheses around comparison in
operand of '&' [-Wparentheses]
.define ISSPACE(c) (((c) & 0xFFU == ' ') || ((c) & 0xFFU == '\t'))
remove redundant MACROs in string.c | #include <hypervisor.h>
-#ifndef ULONG_MAX
#define ULONG_MAX ((uint64_t)(~0UL)) /* 0xFFFFFFFF */
-#endif
-
-#ifndef LONG_MAX
#define LONG_MAX ((long)(ULONG_MAX >> 1)) /* 0x7FFFFFFF */
-#endif
-
-#ifndef LONG_MIN
#define LONG_MIN ((long)(~LONG_MAX)) /* 0x80000000 */
-#endif
-#define ISSPACE(c) (((c) & 0xFFU == ' ') || (... |
Remove 'show' functionality from muse.
It was out of place *and* broken. | @@ -57,6 +57,7 @@ int main(int argc, char **argv)
size_t i;
FILE *f;
+ localincpath = ".";
optinit(&ctx, "sd:hmo:p:I:l:", argv, argc);
while (!optdone(&ctx)) {
switch (optnext(&ctx)) {
@@ -80,9 +81,6 @@ int main(int argc, char **argv)
case 'l':
lappend(&extralibs, &nextralibs, ctx.optarg);
break;
- case 's':
- show = 1... |
Dockerfile: add user to plugdev group
The plugdev group is mentioned on
the Toolchain installation for Linux
on the wiki so add the docker user
to that group. | @@ -113,7 +113,7 @@ RUN pip3 -q install nrfutil && \
# Create user, add to groups dialout and sudo, and configure sudoers.
RUN adduser --disabled-password --gecos '' user && \
- usermod -aG dialout,sudo user && \
+ usermod -aG dialout,plugdev,sudo user && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# Set user... |
base64: undo ini/cache workaround | @@ -22,11 +22,6 @@ The values are decoded back to their original value after `kdb get` has read fro
## Usage
-```sh
-# Disable cache because of [ini bug](https://github.com/ElektraInitiative/libelektra/issues/2592)
-kdb cache disable
-```
-
To mount a simple backend that uses the Base64 encoding, you can use:
```sh
@@ ... |
better jdk version detection | @@ -34,7 +34,6 @@ COLORING = {
def colorize(err):
for regex, sub in COLORING.iteritems():
err = re.sub(regex, sub, err, flags=re.MULTILINE)
-
return err
@@ -42,17 +41,30 @@ def remove_notes(err):
return '\n'.join([line for line in err.split('\n') if not line.startswith('Note:')])
+def find_javac(cmd):
+ if not cmd:
+ r... |
hfuzz-cc: give option to use gcc >= 8 to use trace-cmp | @@ -69,6 +69,13 @@ static bool useHFNetDriver() {
return false;
}
+static bool useGccGE8() {
+ if (getenv("HFUZZ_CC_USE_GCC_GE_8")) {
+ return true;
+ }
+ return false;
+}
+
static bool isLDMode(int argc, char** argv) {
for (int i = 1; i < argc; i++) {
if (strcmp(argv[i], "--version") == 0) {
@@ -232,8 +239,13 @@ stati... |
Fixed potential integer overflow in VmaAllocator_T::AllocateMemoryOfType when maxMemoryAllocationCount Vulkan limit has high value
Fixes | @@ -14475,7 +14475,8 @@ VkResult VmaAllocator_T::AllocateMemoryOfType(
// Protection against creating each allocation as dedicated when we reach or exceed heap size/budget,
// which can quickly deplete maxMemoryAllocationCount: Don't prefer dedicated allocations when above
// 3/4 of the maximum allocation count.
- if(m... |
disable refhang.t due to flakiness
test relies on jamming up network buffers, need better tooling. | use strict;
use warnings;
-use Test::More tests => 127;
+use Test::More;
use FindBin qw($Bin);
use lib "$Bin/lib";
use MemcachedTest;
+plan skip_all => 'Test is flaky. Needs special hooks.';
+
+plan tests => 127;
+
# start up a server with 10 maximum connections
my $server = new_memcached("-m 6");
my $sock = $server->s... |
Add README link to GitHub discussions | @@ -32,6 +32,7 @@ Find out more:
Engage with the community:
+* Discussions on GitHub: https://github.com/contiki-ng/contiki-ng/discussions
* Contiki-NG tag on Stack Overflow: https://stackoverflow.com/questions/tagged/contiki-ng
* Gitter: https://gitter.im/contiki-ng
* Twitter: https://twitter.com/contiki_ng
|
Fix premature fopen() call in mbedtls_entropy_write_seed_file | @@ -466,28 +466,27 @@ int mbedtls_entropy_update_nv_seed( mbedtls_entropy_context *ctx )
#if defined(MBEDTLS_FS_IO)
int mbedtls_entropy_write_seed_file( mbedtls_entropy_context *ctx, const char *path )
{
- int ret = MBEDTLS_ERR_ENTROPY_FILE_IO_ERROR;
- FILE *f;
+ int ret;
+ FILE *f = NULL;
unsigned char buf[MBEDTLS_ENT... |
Fix missing APP_CAPABILITY process token groups, Fix missing container tab for msix installed applications | @@ -469,7 +469,7 @@ static NTSTATUS NTAPI PhpTokenGroupResolveWorker(
)
{
PPHP_TOKEN_GROUP_RESOLVE_CONTEXT context = ThreadParameter;
- PPH_STRING fullUserName;
+ PPH_STRING sidString = NULL;
INT lvItemIndex;
lvItemIndex = PhFindListViewItemByParam(
@@ -480,10 +480,27 @@ static NTSTATUS NTAPI PhpTokenGroupResolveWorker... |
Windows compilation along with removing terminal colours on windows | @@ -14,8 +14,8 @@ struct TextAttr
};
static size_t
-log_fmt_parse(const size_t dst_size, char dst[dst_size],
- const size_t src_size, const char src[src_size])
+log_fmt_parse(const size_t dst_size, char *dst,
+ const size_t src_size, const char *src)
{
size_t log_fmt_size = 0;
@@ -31,6 +31,23 @@ log_fmt_parse(const siz... |
update config patch for v3.2.0 | ---- nrpe-3.0.1/sample-config/nrpe.cfg.in 2016-09-08 09:18:58.000000000 -0700
-+++ nrpe-3.0.1.patch/sample-config/nrpe.cfg.in 2017-04-04 11:21:52.000000000 -0700
-@@ -257,8 +257,7 @@
+--- a/sample-config/nrpe.cfg.in 2017-06-27 14:13:20.000000000 -0700
++++ b/sample-config/nrpe.cfg.in 2017-09-29 09:51:30.000000000 -0700... |
Fix bug preventing compilation | @@ -84,7 +84,7 @@ Faced with these challenges, the Dark Energy Science Collaboration (DESC), one o
\begin{figure*}
\centering
\includegraphics[width=0.9\textwidth]{CCL_Flowchart4}
-\caption{\ccl structure flowchart. \ccl is written in C with a Python interface. \ccl routines calculate basic cosmological functions such ... |
OHPC_macros: update arm compatibility package requirement | @@ -99,8 +99,8 @@ Requires: gcc-c++ intel-compilers-devel%{PROJ_DELIM}
BuildRequires: arm_licenses
BuildRequires: arm%{PROJ_DELIM}
%endif # OHPC_BUILD
-BuildRequires: arm-compilers-devel%{PROJ_DELIM}
-Requires: arm-compilers-devel%{PROJ_DELIM}
+BuildRequires: arm1-compilers-devel%{PROJ_DELIM}
+Requires: arm1-compilers-... |
Build quasar backend with ya
Allow boost for quasar backend
Fix build
Resolve simple conflicts
Resolve simple conflicts
Add untracked files | @@ -101,6 +101,8 @@ ALLOW quality/antifraud/common_lib -> contrib/libs/boost
ALLOW quality/antifraud/common_lib -> contrib/deprecated/boost
ALLOW quasar/yandex_io -> contrib/libs/boost
ALLOW quasar/yandex_io -> contrib/deprecated/boost
+ALLOW quasar/backend -> contrib/libs/boost
+ALLOW quasar/backend -> contrib/depreca... |
Makefile: use -march=native by default in copts | @@ -29,7 +29,7 @@ HFUZZ_CC_SRCS := hfuzz_cc/hfuzz-cc.c
COMMON_CFLAGS := -D_GNU_SOURCE -Wall -Werror -Wno-format-truncation -I.
COMMON_LDFLAGS := -lm libhfcommon/libhfcommon.a
COMMON_SRCS := $(sort $(wildcard *.c))
-CFLAGS ?= -O3
+CFLAGS ?= -O3 -march=native
LDFLAGS ?=
LIBS_CFLAGS ?= -fPIC -fno-stack-protector -fno-buil... |
enable stringio | @@ -267,7 +267,7 @@ void RhoRubyStart()
#if !defined(OS_MACOSX) && !defined(OS_ANDROID)
Init_Camera();
#endif
- //Init_stringio(); //+
+ Init_stringio(); //+
Init_DateTimePicker();
//#if !defined(WINDOWS_PLATFORM) && !defined(RHODES_EMULATOR) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
// Init_NativeBar();
|
opae.io: add N5010 and N5011 to ls | @@ -404,8 +404,9 @@ fpga_devices = {(0x8086, 0x09c4): "Intel PAC A10 GX",
(0x8086, 0xaf00): "Intel N6000 ADP",
(0x8086, 0xaf01): "Intel N6000 ADP VF",
(0x8086, 0xbcce): "Intel N6000 ADP",
- (0x8086, 0xbccf): "Intel N6000 ADP VF"}
-
+ (0x8086, 0xbccf): "Intel N6000 ADP VF",
+ (0x1c2c, 0x1000): "Silicom SmartNIC N5010",
... |
increase the length of plugin memory
But this shouldn't be systematic. | @@ -423,7 +423,7 @@ typedef struct st_picoquic_opaque_meta_t {
#define PROTOOPPLUGINNAME_MAX 100
#define OPAQUE_ID_MAX 0x10
-#define PLUGIN_MEMORY (8 * 1024 * 1024) /* In bytes, at least needed by tests */
+#define PLUGIN_MEMORY (16 * 1024 * 1024) /* In bytes, at least needed by tests */
typedef struct memory_pool {
ui... |
meson v0.44.1 | @@ -14,7 +14,7 @@ before_install:
install:
# pwd: ~/urbit
- - pip3 install --user -I meson==0.46.1
+ - pip3 install --user -I meson==0.44.1
- git clone https://github.com/urbit/arvo
- cd ./arvo
- git checkout $(cat ../.travis/pin-arvo-commit.txt)
|
Change function comments to doc style (\\), move to C99 | #include "assert.h"
-/* Sink statement (domain); depth: 0-indexed */
+/// Sink statement (domain); depth: 0-indexed.
void pluto_sink_statement(Stmt *stmt, int depth, int val, PlutoProg *prog) {
assert(stmt->dim == stmt->domain->ncols - prog->npar - 1);
@@ -39,8 +39,8 @@ void pluto_sink_statement(Stmt *stmt, int depth, ... |
parse_unquoted: Check returned value from ossl_property_value() | @@ -213,11 +213,10 @@ static int parse_unquoted(OSSL_LIB_CTX *ctx, const char *t[],
return 0;
}
v[i] = 0;
- if (err) {
+ if (err)
ERR_raise_data(ERR_LIB_PROP, PROP_R_STRING_TOO_LONG, "HERE-->%s", *t);
- } else {
- res->v.str_val = ossl_property_value(ctx, v, create);
- }
+ else if ((res->v.str_val = ossl_property_value... |
sp: parser: add default error for unhandled text | #include <stdio.h>
#include <stdbool.h>
#include <fluent-bit/flb_str.h>
+#include <fluent-bit/flb_log.h>
#include "sql_parser.h"
static inline char *remove_dup_qoutes(const char *s, size_t n)
@@ -116,4 +117,6 @@ RECORD_TIME return RECORD_TIME;
\n
[ \t]+ /* ignore whitespace */;
+. flb_error("[sp] bad input character '%... |
core: Avoid possible uninitialized pointer read (CID 209502)
A likely copy and paste oversight.
Fixes: (core: Add support for quiescing OPAL) | @@ -283,7 +283,7 @@ int64_t opal_quiesce(uint32_t quiesce_type, int32_t cpu_target)
if (target) {
while (target->in_opal_call) {
if (tb_compare(mftb(), end) == TB_AAFTERB) {
- printf("OPAL quiesce CPU:%04x stuck in OPAL\n", c->pir);
+ printf("OPAL quiesce CPU:%04x stuck in OPAL\n", target->pir);
stuck = true;
break;
}
|
parser common UPDATE added stmt duplication | @@ -369,6 +369,14 @@ static LY_ERR lysp_stmt_grouping(struct lysp_ctx *ctx, const struct lysp_stmt *s
static LY_ERR lysp_stmt_list(struct lysp_ctx *ctx, const struct lysp_stmt *stmt, struct lysp_node *parent,
struct lysp_node **siblings);
+/**
+ * @brief Validate stmt string value.
+ *
+ * @param[in] ctx Parser context... |
Check Bashisms: Ignore `reformat-java` | @@ -14,7 +14,7 @@ cd "@CMAKE_SOURCE_DIR@"
# Use (non-emacs) extended regex for GNU find or BSD find
find -version > /dev/null 2>&1 > /dev/null && FIND='find scripts -regextype egrep' || FIND='find -E scripts'
-# - The scripts `reformat-c` and `install-config-file` use `command -v`,
+# - The scripts `reformat-c`, `refor... |
support spread lexeme | @@ -388,7 +388,13 @@ Token scanToken(Scanner *scanner) {
case ',':
return makeToken(scanner, TOKEN_COMMA);
case '.':
+ if (match(scanner, '.')) {
+ if (match(scanner, '.')) {
+ return makeToken(scanner, TOKEN_DOT_DOT_DOT);
+ }
+ } else {
return makeToken(scanner, TOKEN_DOT);
+ }
case '/': {
if (match(scanner, '=')) {
r... |
sysrepo BUGFIX no need for write lock
... until the data are actually being stored. | @@ -397,8 +397,8 @@ sr_discard_oper_changes(sr_conn_ctx_t *conn, sr_session_ctx_t *session, const ch
}
/* add modules, lock, and get data */
- if ((err_info = sr_modinfo_add_modules(&mod_info, &mod_set, 0, SR_LOCK_WRITE, SR_MI_PERM_WRITE, 0, NULL, NULL, NULL,
- 0, 0))) {
+ if ((err_info = sr_modinfo_add_modules(&mod_in... |
options/ansi: Return SIG_ERR instead of panic when sys_sigaction fails in signal()
This is in line with the POSIX spec.
Programs such as zsh may pass an invalid signal number and crash on EINVAL. | @@ -17,8 +17,10 @@ __sighandler signal(int sn, __sighandler handler) {
sa.sa_flags = 0;
sa.sa_mask = 0;
struct sigaction old;
- if(mlibc::sys_sigaction(sn, &sa, &old))
- mlibc::panicLogger() << "\e[31mmlibc: sys_sigaction() failed\e[39m" << frg::endlog;
+ if(int e = mlibc::sys_sigaction(sn, &sa, &old)){
+ errno = e;
+ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.