message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
memif: coverity fix | @@ -680,8 +680,10 @@ memif_socket_filename_add_del (u8 is_add, u32 sock_id, u8 * sock_filename)
}
/* check dir existance and access rights for effective user/group IDs */
- if (faccessat ( /* ignored */ -1, dir, F_OK | R_OK | W_OK, AT_EACCESS) <
- 0)
+ if ((dir == NULL)
+ ||
+ (faccessat ( /* ignored */ -1, dir, F_OK |... |
[bsp][STM32] Add CI for new stm32 bsp | @@ -81,6 +81,11 @@ env:
- RTT_BSP='stm32l475-iot-disco' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32l476-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32h743-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
+ - RTT_BSP='stm32/stm32f103-atk-nano' RTT_TOOL_CHAIN='sourcery-arm'
+ - RTT_BSP='stm32/stm32f103-fire-arbitrary' RT... |
First bias implementation | @@ -100,11 +100,13 @@ class PowerSpecCCL : public PowerSpecBase {
at fixed z value (and l too if necessary)
*/
void Init(double z) {
- int status=0; double bias=1.0;
- double tmp= bias*ccl_growth_factor(ccl_cosmo_,1.0/(1+z), &status);
+ int status=0;
+ double tmp= ccl_growth_factor(ccl_cosmo_,1.0/(1+z), &status);
growt... |
Fix CID Error handling issues NEGATIVE_RETURNS (PKCS7_dataDecode()) | @@ -361,7 +361,7 @@ static int pkcs7_cmp_ri(PKCS7_RECIP_INFO *ri, X509 *pcert)
/* int */
BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert)
{
- int i, j;
+ int i, j, len;
BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
X509_ALGOR *xa;
ASN1_OCTET_STRING *data_body = NULL;
@@ -524,7 +524... |
chip/stm32/dma-stm32f4.c: Format with clang-format
BRANCH=none
TEST=none | @@ -132,8 +132,7 @@ void dma_prepare_tx(const struct dma_option *option, unsigned count,
option->flags);
}
-void dma_start_rx(const struct dma_option *option, unsigned count,
- void *memory)
+void dma_start_rx(const struct dma_option *option, unsigned count, void *memory)
{
stm32_dma_stream_t *stream = dma_get_channel(... |
Make gl_ViewportIndex work in fragment shaders; | @@ -61,6 +61,8 @@ const char* lovrShaderFragmentPrefix = ""
"precision mediump float; \n"
#else
"#version 150 \n"
+"#extension GL_NV_viewport_array2 : enable \n"
+"#extension GL_ARB_fragment_layer_viewport : enable \n"
"in vec4 gl_FragCoord; \n"
#endif
"#define PIXEL PIXEL \n"
|
fix variables for new boom naming | @@ -44,7 +44,7 @@ ifeq ($(SUB_PROJECT),boom)
MODEL ?= TestHarness
VLOG_MODEL ?= TestHarness
MODEL_PACKAGE ?= boom.system
- CONFIG ?= BoomConfig
+ CONFIG ?= LargeBoomConfig
CONFIG_PACKAGE ?= boom.system
GENERATOR_PACKAGE ?= boom.system
TB ?= TestDriver
|
SoundDataSetSample: only allowed on raw; and check frames instead of blob size | @@ -191,8 +191,8 @@ size_t lovrSoundDataStreamAppendSound(SoundData *dest, SoundData *src) {
}
void lovrSoundDataSetSample(SoundData* soundData, size_t index, float value) {
- size_t byteIndex = index * SampleFormatBytesPerFrame(soundData->channels, soundData->format);
- lovrAssert(byteIndex < soundData->blob->size, "S... |
board/coachz/board.h: Format with clang-format
BRANCH=none
TEST=none | @@ -101,10 +101,7 @@ enum sensor_id {
SENSOR_COUNT,
};
-enum pwm_channel {
- PWM_CH_DISPLIGHT = 0,
- PWM_CH_COUNT
-};
+enum pwm_channel { PWM_CH_DISPLIGHT = 0, PWM_CH_COUNT };
/* List of possible batteries */
enum battery_type {
|
Update SSL_SESSION_print for TLSv1.3
Make SSL_SESSION_print() show a bit more information for TLSv1.3 | @@ -33,6 +33,7 @@ int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x)
{
size_t i;
const char *s;
+ int istls13 = (x->ssl_version == TLS1_3_VERSION);
if (x == NULL)
goto err;
@@ -70,7 +71,10 @@ int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x)
if (BIO_printf(bp, "%02X", x->sid_ctx[i]) <= 0)
goto err;
}
- if (BIO_put... |
fix --strict-warnings build
C++ style comments are not allowed in ISO C90 | @@ -106,7 +106,7 @@ static __inline int CRYPTO_DOWN_REF(volatile int *val, int *ret, void *lock)
# if _WIN32_WCE >= 0x600
extern long __cdecl _InterlockedExchangeAdd(long volatile*, long);
# else
- // under Windows CE we still have old-style Interlocked* functions
+ /* under Windows CE we still have old-style Interlock... |
fix a case where H2O_USE_EBPF_MAP is not defined | @@ -1743,16 +1743,15 @@ h2o_ebpf_map_value_t h2o_socket_ebpf_lookup(h2o_loop_t *loop, const h2o_ebpf_map
int h2o_socket_ebpf_init_key_raw(struct st_h2o_ebpf_map_key_t *key, int sock_type, struct sockaddr *local, struct sockaddr *remote)
{
- h2o_fatal("unimplemented");
+ return 0;
}
-int h2o_socket_ebpf_init_key(struct ... |
Update System.Net declaration | @@ -298,13 +298,15 @@ static const CLR_RT_MethodHandler method_lookup[] =
NULL,
NULL,
NULL,
+ NULL,
+ NULL,
Library_sys_net_native_System_Security_Cryptography_X509Certificates_X509Certificate2::DecodePrivateKeyNative___STATIC__VOID__SZARRAY_U1__STRING,
};
const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_System_Net... |
doc: add myself to authors.md | @@ -211,3 +211,11 @@ development of KConfig plugin and changes on qt-gui
- email: mail@dardan.im
- github user: [darddan](https://github.com/darddan)
- devel/test on: Arch Linux
+
+## Robert Sowula
+
+debian packaging, release automation
+
+- email: robert@sowula.at
+- github user: [robaerd](https://github.com/robaerd)... |
Added NULL check for engine->port.
This is required to handle REMOVE_PID messages if router engine
initialization is incomplete. | @@ -944,9 +944,11 @@ nxt_router_remove_pid_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
nxt_queue_each(engine, &nxt_router->engines, nxt_event_engine_t, link0)
{
+ if (nxt_fast_path(engine->port != NULL)) {
nxt_port_post(task, engine->port, nxt_router_app_process_remove_pid,
msg->u.data);
}
+ }
nxt_queue_loop;
i... |
Fixing Travis build error | @@ -74,10 +74,8 @@ Rigid_rect *create_rigid_rect(Rect rect, Color color, const char *id)
RETURN_LT(lt, NULL);
}
- const size_t len_id = ({
const size_t _len = strlen(id);
- (MAX_ID_SIZE-1) < _len ? (MAX_ID_SIZE-1) : _len;
- });
+ const size_t len_id = (MAX_ID_SIZE-1) < _len ? (MAX_ID_SIZE-1) : _len;
memcpy(rigid_rect->... |
Stop outputting summarization data for net.rx/net.tx when
we're not summarizing. Fix error which resulted in numops being zero
for net.tx. | @@ -951,6 +951,8 @@ doTotalNetRxTx(metric_t type)
// Don't report zeros.
if ((*value)[bucket].mtc == 0) continue;
+ if (g_summary.net.rx_tx) {
+
event_field_t fields[] = {
PROC_FIELD(g_proc.procname),
PID_FIELD(g_proc.pid),
@@ -963,6 +965,7 @@ doTotalNetRxTx(metric_t type)
if (cmdSendMetric(g_mtc, &evt)) {
scopeLog(err... |
misc: configurator: fix minor typo | </template>
<span v-html="this.RDTType.properties.RDT_ENABLED.description"></span>
</n-popover>
- Cache Allocation Technology (requires CPU Afinity configuration in each desired VM)
+ Cache Allocation Technology (requires CPU Affinity configuration in each desired VM)
</b-form-checkbox>
<div class="d-flex flex-column g... |
OpenCoreMisc: Support OPT and CMD+R with picker | @@ -444,7 +444,9 @@ OcMiscBoot (
Context->LoadPolicy = OC_LOAD_DEFAULT_POLICY;
Context->TimeoutSeconds = Config->Misc.Boot.Timeout;
Context->StartImage = StartImage;
- Context->ShowPicker = Config->Misc.Boot.ShowPicker;
+ if (Config->Misc.Boot.ShowPicker) {
+ Context->PickerCommand = OcPickerShowPicker;
+ }
Context->Cu... |
Fix broken link to Bootloader tutorial | @@ -18,7 +18,7 @@ This folder contains the sources of every examples sorted by boards.
In most of the examples folder you will find a project called `Bootloader`, you can use this project to compile a Luos engine bootloader and load it into your board.
All the other examples have a `*_with_bootloader` compilation mode ... |
Add a multithread test for x86_64 | @@ -166,3 +166,27 @@ steps:
- make -C ctest $COMMON_FLAGS
- make -C utest $COMMON_FLAGS
- make -C cpp_thread_test dgemm_tester
+---
+kind: pipeline
+name: epyc_native_test
+
+platform:
+ os: linux
+ arch: amd64
+
+steps:
+- name: Build and Test
+ image: ubuntu:19.04
+ environment:
+ CC: gcc
+ COMMON_FLAGS: 'USE_OPENMP=... |
build: enable in_statsd on Windows
I can confirm that in_statsd is already working fine on Windows.
Let's just make it available to Windows users. | @@ -38,7 +38,7 @@ set(FLB_IN_DUMMY Yes)
set(FLB_IN_NETIF No)
set(FLB_IN_WINLOG Yes)
set(FLB_IN_COLLECTD No)
-set(FLB_IN_STATSD No)
+set(FLB_IN_STATSD Yes)
set(FLB_IN_STORAGE_BACKLOG No)
# OUTPUT plugins
|
invites: render correctly
Fixes urbit/landscape#628 | @@ -71,7 +71,6 @@ export function Invites(props: InvitesProps): ReactElement {
.map((resource) => {
const inviteOrStatus = invitesAndStatus[resource];
const join = pendingJoin[resource];
- if (typeof inviteOrStatus === 'string') {
if ('progress' in inviteOrStatus) {
return (
<InviteItem
@@ -94,7 +93,6 @@ export functio... |
util/find-doc-nits: Add a regexp for C symbols and use it
Our matching of C symbols here was inconsistent and could therefore
give false negatives when the SYNOPSIS was parsed. Now we have
$C_symbol, which is a simple regexp that matches the common C symbol. | @@ -104,6 +104,9 @@ my $ignored = qr/(?| ^i2d_
| ^DEFINE_LHASH_OF_INTERNAL
)/x;
+# A common regexp for C symbol names
+my $C_symbol = qr/\b[[:alpha:]][_[:alnum:]]*\b/;
+
# Collect all POD files, both internal and public, and regardless of location
# We collect them in a hash table with each file being a key, so we can ... |
doc: fix config option display
Seperate options with simple types with a heading so they don't get
hidden under the previous options that are part of a complex type. | </xsl:if>
</xsl:when>
<xsl:otherwise>
+ <!-- Write a section header for elements with a simple type -->
+ <xsl:if test="$level = 3">
+ <xsl:call-template name="section-header">
+ <xsl:with-param name="title" select="concat($prefix, @name)"/>
+ <xsl:with-param name="label" select="concat($prefix, @name)"/>
+ <xsl:with-p... |
simplifies casting libh2o connection to get u3 connection | @@ -412,13 +412,10 @@ _http_rec_fail(h2o_req_t* rec_u, c3_i sas_i, c3_c* sas_c)
h2o_send(rec_u, 0, 0, H2O_SEND_STATE_FINAL);
}
-struct h2o_con_wrap { // see private st_h2o_http1_conn_t
- h2o_conn_t con_u; // connection
- struct { // see private st_h2o_uv_socket_t
+typedef struct _h2o_uv_sock { // see private st_h2o_uv_... |
Added float support | @@ -153,6 +153,7 @@ sol::object Scripting::ToLua(sol::state_view aState, RED4ext::REDreverse::CScrip
static auto* pStringType = pRtti->GetType(RED4ext::FNV1a("String"));
static auto* pCNameType = pRtti->GetType(RED4ext::FNV1a("CName"));
static auto* pInt32Type = pRtti->GetType(RED4ext::FNV1a("Int32"));
+ static auto* p... |
fix ub in flatbuffers | @@ -253,7 +253,6 @@ template<typename T> T EndianSwap(T t) {
#pragma warning(pop)
#endif
-
template<typename T> T EndianScalar(T t) {
#if FLATBUFFERS_LITTLEENDIAN
return t;
@@ -263,7 +262,10 @@ template<typename T> T EndianScalar(T t) {
}
template<typename T> T ReadScalar(const void *p) {
- return EndianScalar(*reinter... |
Allow private key import in ECC608a+WinSim PKCS tests
This is needed because certificates are rederived from
the private key they correspond to in these configs.
cValidECDSAPrivateKey is needed to reconstruct
cValidECDSACertificate for PKCS tests on | /*
* @brief Set to 1 if importing device private key via C_CreateObject is supported. 0 if not.
*/
-#define pkcs11testIMPORT_PRIVATE_KEY_SUPPORT ( 0 )
+#define pkcs11testIMPORT_PRIVATE_KEY_SUPPORT ( 1 )
/*
* @brief Set to 1 if generating a device private-public key pair via C_GenerateKeyPair. 0 if not.
|
zuse: better ethereum abi data type
Considering some of the options here were atoms, not cells, $% wasn't
appropriate, and led to *etyp:abi:ethereum resulting in ford %ride execution
failure. Simply using $? instead would result in a fish-loop, so here we split
the atom cases from the tagged union ones with a $@. | => |%
:: solidity types. integer bitsizes ignored
++ etyp
- $% :: static
+ $@ $? :: static
%address %bool
%int %uint
%real %ureal
+ :: dynamic
+ %bytes %string
+ ==
+ $% :: static
[%bytes-n n=@ud]
:: dynamic
[%array-n t=etyp n=@ud]
[%array t=etyp]
- %bytes %string
==
::
:: solidity-style typed data. integer bitsizes ig... |
add branchname to branchtags | @@ -16,19 +16,19 @@ build-alpine-arm:
stage: build
script:
- docker pull $CONTAINER_IMAGE:ARM32V6 || true
- - docker build -f Dockerfile.ARM32V6 --cache-from $CONTAINER_IMAGE:ARM32V6 --tag $CONTAINER_IMAGE:$CI_BUILD_REF --tag $CONTAINER_IMAGE:ARM32V6 .
+ - docker build -f Dockerfile.ARM32V6 --cache-from $CONTAINER_IMAG... |
replaced div operation by divs(..) call | #include "timer.h"
#include "memory.h"
#include "dma.h"
+#include "maths.h"
#if (ENABLE_NEWLIB == 1)
#include <string.h> // For memcpy
@@ -427,14 +428,11 @@ bool PAL_initFade(u16 fromCol, u16 toCol, const u16* palSrc, const u16* palDst,
const s16 GD = ((d & VDPPALETTE_GREENMASK) >> VDPPALETTE_GREENSFT) << PALETTEFADE_F... |
esp_wifi: fix common clock bug | @@ -65,11 +65,15 @@ IRAM_ATTR void wifi_bt_common_module_disable(void)
void wifi_module_enable(void)
{
+ portENTER_CRITICAL_SAFE(&periph_spinlock);
periph_ll_wifi_module_enable_clk_clear_rst();
+ portEXIT_CRITICAL_SAFE(&periph_spinlock);
}
void wifi_module_disable(void)
{
+ portENTER_CRITICAL_SAFE(&periph_spinlock);
pe... |
Removing DCA v1 reference; small edit for clarity [ci skip]
* Removing DCA v1 reference; small edit for clarity [ci skip]
* line edit
* more line edits
* more edits
[ci skip] | <sectiondiv id="section5">
<b>Limitation for the Source and Destination Systems</b>
<p>If you are copying data from a system with a larger number of segments to a
- system fewer number of segment hosts. The total number of primary segments on
+ system with a fewer number of segment hosts, then the total number of prima... |
Change name of variables reported. | @@ -227,8 +227,8 @@ WSGI_STATIC_INTERNED_STRING(max_threads);
WSGI_STATIC_INTERNED_STRING(time_interval);
WSGI_STATIC_INTERNED_STRING(utilization);
WSGI_STATIC_INTERNED_STRING(request_rate);
-WSGI_STATIC_INTERNED_STRING(server_time_avg);
-WSGI_STATIC_INTERNED_STRING(application_time_avg);
+WSGI_STATIC_INTERNED_STRING(s... |
[bps][imxrt1052] fixed gcc output bin file error | @@ -43,7 +43,7 @@ if PLATFORM == 'gcc':
DEVICE = ' -mcpu=cortex-m7 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -ffunction-sections -fdata-sections'
CFLAGS = DEVICE + ' -std=c99 -Wall -DUSE_HAL_DRIVER -D__ASSEMBLY__ -D__FPU_PRESENT -eentry'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
- L... |
u3: adds debug assertion for atom-allocation internal invariant | @@ -33,6 +33,10 @@ _ci_slab_init(u3i_slab* sab_u, c3_w len_w)
vat_u->mug_w = 0;
vat_u->len_w = len_w;
+#ifdef U3_MEMORY_DEBUG
+ c3_assert( len_w );
+#endif
+
sab_u->_._vat_u = vat_u;
sab_u->buf_w = vat_u->buf_w;
sab_u->len_w = len_w;
|
out_influxdb: add escape for backslash | @@ -34,7 +34,7 @@ static int influxdb_escape(char *out, const char *str, int size, bool quote) {
int i;
for (i = 0; i < size; ++i) {
char ch = str[i];
- if (quote ? (ch == '"') : (isspace(ch) || ch == ',' || ch == '=')) {
+ if (quote ? (ch == '"' || ch == '\\') : (isspace(ch) || ch == ',' || ch == '=')) {
out[out_size+... |
gpexpand terraform: use external worker
Use the external work to properly access the terraform created VMs,
otherwise, we will hang. | @@ -2662,30 +2662,38 @@ jobs:
- *ccp_destroy
- name: MM_gpexpand_1
plan:
- - get: nightly-trigger
- trigger: ((nightly-trigger-flag))
- aggregate:
- get: gpdb_src
- passed: [gate_nightly_start]
+ tags: ["gpdb5_ccp_external_worker"]
+ params:
+ submodules:
+ - gpMgmt/bin/pythonSrc/ext
+ passed: [gate_mm_misc_start]
- ge... |
u3: rewrites +flop jet using new list iteration idiom | */
#include "all.h"
-
-/* functions
-*/
u3_noun
u3qb_flop(u3_noun a)
{
- u3_noun b = 0;
+ u3_noun i, t = a, b = u3_nul;
- while ( 1 ) {
- if ( u3_nul == a ) {
- return b;
+ while ( u3_nul != t ) {
+ u3x_cell(t, &i, &t);
+ b = u3nc(u3k(i), b);
}
- else if ( c3n == u3du(a) ) {
- u3z(b);
- return u3m_bail(c3__exit);
- }
-... |
Remove now-redundant cast. | @@ -68,7 +68,7 @@ namespace PAL_NS_BEGIN {
}
}
_exit:
- return (const char *)(netIfGuid);
+ return netIfGuid;
}
// Helper functions.
|
OpenCore: Use OcLog protocol | @@ -20,6 +20,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Protocol/OcBootstrap.h>
#include <Library/DebugLib.h>
+#include <Library/OcDebugLogLib.h>
#include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcBootManagementLib.h>
@@ -113... |
Work CI-CD
Add back task to set vars with build number.
***NO_CI*** | @@ -10,6 +10,10 @@ steps:
custom: tool
arguments: install --tool-path . nbgv
+ - script: nbgv cloud -a -c
+ condition: succeeded()
+ displayName: Set build number
+
# Force version number for PRs
- task: PowerShell@2
condition: ne(variables['system.pullrequest.pullRequestId'], '')
|
[Kernel] Fix double release for thread | @@ -338,6 +338,9 @@ rt_err_t rt_thread_detach(rt_thread_t thread)
RT_ASSERT(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread);
RT_ASSERT(rt_object_is_systemobject((rt_object_t)thread));
+ if (thread->stat == RT_THREAD_CLOSE)
+ return RT_EOK;
+
if ((thread->stat & RT_THREAD_STAT_MASK) != RT_THREAD_INIT)... |
Fix to OTA PAL | @@ -542,11 +542,11 @@ ret_code_t prvWriteFlash( uint32_t ulOffset,
ul32BitBlocksTosend = NRF_FICR->CODEPAGESIZE;
}
- memcpy(pulSerializingArray, pacData, ulBlockSize);
+ memcpy(pulSerializingArray, pacData + (ul32BitBlocksSent*4), ul32BitBlocksTosend);
xEventGroupClearBits( xFlashEventGrp, otapalFLASH_SUCCESS | otapalF... |
disable the travis for msp430 based board. | @@ -14,13 +14,13 @@ before_script:
script:
- mkdir -p ./build/doc/
- scons docs
-- scons board=telosb toolchain=mspgcc verbose=1 oos_macpong
-- scons board=telosb kernel=freertos toolchain=mspgcc verbose=1 oos_macpong
+# - scons board=telosb toolchain=mspgcc verbose=1 oos_macpong
+# - scons board=telosb kernel=freertos... |
kernel/binary_manager: check a maximum size of mq message is enough for binary manager usage
The largest size of messages for communication with binary manager is (CONFIG_NAME_MAX + 64).
So a maxmimum size of mq message should be greater than this size. | #include "sched/sched.h"
#include "binary_manager.h"
+#if CONFIG_MQ_MAXMSGSIZE < (CONFIG_NAME_MAX + 64)
+/* The largest size of messages is (CONFIG_NAME_MAX + 64) for communication with binary manager */
+#error "CONFIG_MQ_MAXMSGSIZE should be greater than (CONFIG_NAME_MAX + 64)"
+#endif
+
/****************************... |
backdoc release 2.2.0 in ChangeLog | - refactor PKCE support
- fix removing session state from cache on logout
- fix clearing chunked session cookies on logout; closes #246; thanks @Jharmuth
+- release 2.2.0
02/20/2017
- security fix: scrub headers for "AuthType oauth20"
|
config for vsmgw | @@ -16,3 +16,4 @@ portfwd - - dpdk_portfwd_control
vss - dpdk_vss_extern.c - - -
v1model - dpdk_v1model_extern.c - - -
+vsmgw - - dpdk_smgw_controller - -
|
Add missing options to manual page. | @@ -67,6 +67,9 @@ Print metadata associated to the rule.
.B \-D " --print-module-data"
Print module data.
.TP
+.B \-M " --module-names"
+show module names
+.TP
.B \-e " --print-namespace"
Print namespace associated to the rule.
.TP
@@ -79,6 +82,9 @@ Print strings found in the file.
.B \-L " --print-string-length"
Print... |
options/posix: Implement execvpe | @@ -105,6 +105,10 @@ int execv(const char *path, char *const argv[]) {
}
int execvp(const char *file, char *const argv[]) {
+ return execvpe(file, argv, environ);
+}
+
+int execvpe(const char *file, char *const argv[], char *const envp[]) {
if(!mlibc::sys_execve) {
MLIBC_MISSING_SYSDEP();
errno = ENOSYS;
@@ -112,7 +116... |
Update CI to use 2021 docker images which always point to latest version. | @@ -70,7 +70,7 @@ jobs:
cc-compiler: gcc
compiler-desc: GCC 6.3.1
threads-enabled: 'ON'
- vfx-cy: 2021.4
+ vfx-cy: 2021
exclude-tests:
# Shared, Debug
- build: 13
@@ -81,7 +81,7 @@ jobs:
cc-compiler: gcc
compiler-desc: GCC 6.3.1
threads-enabled: 'ON'
- vfx-cy: 2021.4
+ vfx-cy: 2021
exclude-tests:
# Static, Release
- bu... |
Fix typo in multixact.c
AtEOXact_MultiXact() was referenced in two places with an incorrect
routine name.
Author: Hou Zhijie
Discussion: | @@ -1742,7 +1742,7 @@ PostPrepare_MultiXact(TransactionId xid)
OldestVisibleMXactId[MyBackendId] = InvalidMultiXactId;
/*
- * Discard the local MultiXactId cache like in AtEOX_MultiXact
+ * Discard the local MultiXactId cache like in AtEOXact_MultiXact.
*/
MXactContext = NULL;
dlist_init(&MXactCache);
@@ -1772,7 +1772,... |
decisions: rework boolean | ## Problem
-Inconsistent use of bool in various parts of Elektra.
+Inconsistent use of booleans in various parts of Elektra.
## Constraints
@@ -10,20 +10,18 @@ Inconsistent use of bool in various parts of Elektra.
## Assumptions
-- type checker plugins can reject everything not 0 or 1
-
## Considered Alternatives
- onl... |
remove deprecated CHISEL_ARGS | @@ -37,11 +37,9 @@ $(sim_dotf): $(call lookup_scala_srcs,$(base_dir)/generators/utilities/src/main/
#########################################################################################
# create firrtl file rule and variables
#########################################################################################
... |
sched/wqueue: semaphore count should be consistent with the number of work entries.
The number of work entries will be inconsistent with semaphore count
if the work is canceled, in extreme case, semaphore count will overflow
and fallback to 0 the workqueue will stop scheduling the enqueue work. | @@ -88,6 +88,12 @@ static int work_qcancel(FAR struct kwork_wqueue_s *wqueue,
else
{
dq_rem((FAR dq_entry_t *)work, &wqueue->q);
+
+ /* Semaphore count should be consistent with the number of
+ * work entries.
+ */
+
+ wqueue->sem.semcount--;
}
work->worker = NULL;
|
Add instructions for tests | @@ -17,8 +17,15 @@ Testing is done via the open-source framework [zemu](https://github.com/Zondax/z
## Running tests
First [install yarn](https://classic.yarnpkg.com/en/docs/install/#debian-stable).
+Open `tests/build_local_test_elfs.sh` and add your BOLOS SDKs path to `NANOS_SDK` and `NANOX_SDK`.
+This helper script w... |
Irrelevenat changes to test sync. Try number 4 | 1 WHAT DOES THE PACKAGE CONTAIN?
--------------------------------
The code contains programs to perform rigid, affine and non-linear registration
-of 2D and 3D images stored as Nifti or Analyze.
+of 2D and 3D images stored as Nifti or Analyze (nii or hdr).
The rigid and affine registration are performed using an algori... |
Add 'premake.isSemVer' method. | -- try to parse semver, if it fails, it's not semver compatible and we cannot compare, in which case
-- we're going to ignore the checkVersion entirely, but warn.
- local sMajor, sMinor, sPatch, sPrereleaseAndBuild = version:match("^(%d+)%.?(%d*)%.?(%d*)(.-)$")
- if (type(sMajor) ~= 'string') then
+ if not premake.isSe... |
tools/dual-boot: install from .mpy blob
New version of the official apps send the script in .mpy format, so read the firmware data from there. | @@ -23,7 +23,7 @@ INSTALL_SLOT = 19
# How many bytes to write to external flash in one go (multiple of 32).
BLOCK_WRITE_SIZE = 128
-BASE64_BLOCK_WRITE_SIZE = len(b64encode(b'a'*BLOCK_WRITE_SIZE))
+BASE64_BLOCK_WRITE_SIZE = len(b64encode(b"a" * BLOCK_WRITE_SIZE))
# Read the Pybricks firmware.
with open(path.join(BUILD_P... |
Fixed infinite loop during calculation size of lv_list | @@ -495,7 +495,7 @@ uint16_t lv_list_get_size(const lv_obj_t * list)
lv_obj_t * btn = lv_list_get_next_btn(list, NULL);
while(btn) {
size++;
- btn = lv_list_get_next_btn(list, NULL);
+ btn = lv_list_get_next_btn(list, btn);
}
return size;
}
|
README.md; first take at updating the list of BSPs/features. | @@ -35,12 +35,14 @@ It currently supports the following hardware platforms:
* BLE Nano from RedBear (Nordic nRF51822 SoC based)
* BLE Nano2 and Blend2 from RedBear (Nordic nRF52832 SoC based)
* BMD-300-EVAL-ES from Rigado (Cortex-M4)
-* STM32F3DISCOVERY from ST Micro (Cortex-M4)
+* BMD-200 from Rigado (Cortex-M0)
* STM... |
OpenSSL::Test::quotify: put quotes around empty arguments | @@ -760,12 +760,13 @@ I<This must never ever be done on VMS.>
sub quotify {
# Unix setup (default if nothing else is mentioned)
my $arg_formatter =
- sub { $_ = shift; /\s|[\{\}\\\$\[\]\*\?\|\&:;<>]/ ? "'$_'" : $_ };
+ sub { $_ = shift;
+ ($_ eq '' || /\s|[\{\}\\\$\[\]\*\?\|\&:;<>]/) ? "'$_'" : $_ };
if ( $^O eq "VMS")... |
Fix coverity nit in handshake_helper.c
There's no reason to wrap this call in TEST_true() if we're not
checking the return value of TEST_true() -- all of the surrounding
similar calls do not have the macro wrapping them. | @@ -497,8 +497,8 @@ static int configure_handshake_ctx(SSL_CTX *server_ctx, SSL_CTX *server2_ctx,
case TLSEXT_max_fragment_length_2048:
case TLSEXT_max_fragment_length_4096:
case TLSEXT_max_fragment_length_DISABLED:
- TEST_true(SSL_CTX_set_tlsext_max_fragment_length(
- client_ctx, extra->client.max_fragment_len_mode));... |
Pass snap_env.sh to snap-cloud-build | @@ -294,7 +294,7 @@ config: hw_project
image: .hw_project_done
ifeq ($(USE_PRFLOW),TRUE)
@echo -e "[BUILD IMAGE.........] start `date +"%T %a %b %d %Y"`\n"
- snap-cloud-build
+ snap-cloud-build ${SNAP_ROOT}/snap_env.sh
@echo -e "[BUILD IMAGE.........] end `date +"%T %a %b %d %Y"`\n"
else
@if [ `echo "$(USE_PRFLOW)" | t... |
netutils/iperf: add newline in printf format | @@ -184,7 +184,7 @@ static int iperf_show_socket_error_reason(const char *str, int sockfd)
int err = errno;
if (err != 0)
{
- printf("%s error, error code: %d, reason: %s",
+ printf("%s error, error code: %d, reason: %s\n",
str, err, strerror(err));
}
@@ -480,7 +480,7 @@ static int iperf_run_udp_server(void)
buffer = s... |
Fix readme instructions for dependencies | @@ -22,7 +22,7 @@ The easiest way to install the dependencies for the Pallene compiler is through
the [LuaRocks](http://luarocks.org) package manager:
```sh
-$ luarocks install --local pallene-scm-1.rockspec
+$ luarocks install --local --only-deps pallene-dev-1.rockspec
```
If you want to use Pallene on Linux we also r... |
[unite] header of process | * Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
- */
-
-/*
- * File : libc_signal.h
*
* Change Logs:
* Date Author Notes
|
Memory overwrite fix
out of resources in case of too many parameters | @@ -554,7 +554,7 @@ EFI_STATUS findProperties(UINTN *pStart, struct CommandInput *pInput, struct Com
matchedProperties = 0;
pHelpStr = getCommandHelp(pCommand, FALSE);
/* loop through the input tokens */
- while ((pInput->TokenCount - *pStart) > 0)
+ while (((pInput->TokenCount - *pStart) > 0) && (EFI_SUCCESS == Rc))
{... |
fixed to handle structures better and compile | @@ -48,23 +48,17 @@ static double u_nfw_c(ccl_cosmology *cosmo, double c, double halomass, double k,
}
}
-struct z_form_bullock_test_params
- {
- struct cosmo;
+
+typedef struct{
+ ccl_cosmology *cosmo;
double halomass;
- int status;
- };
+ int *status;
+} z_form_bullock_func_Par;
-static double z_form_bullock_test(dou... |
ocpc: modify pre-charge target condition
Ensure that the desired charge current is valid an at least 0mA.
Otherwise, cause set an incorrect precharge current.
BRANCH=dedede
TEST=SIT check function is PASS | @@ -379,6 +379,7 @@ int ocpc_config_secondary_charger(int *desired_input_current,
if (batt.desired_voltage) {
if (((batt.voltage < batt_info->voltage_min) ||
((batt.voltage < batt_info->voltage_normal) &&
+ (current_ma >= 0) &&
(current_ma <= batt_info->precharge_current))) &&
(ph != PHASE_PRECHARGE)) {
/*
|
interpreters/wamr: New option to support spec test | @@ -96,6 +96,10 @@ config INTERPRETERS_WAMR_REF_TYPES
bool "Enable reference types support"
default n
+config INTERPRETERS_WAMR_ENABLE_SPEC_TEST
+ bool "Enable spectest support"
+ default n
+
config INTERPRETERS_WAMR_STACK_GUARD_SIZE
int "Custom stack guard size"
default 0
|
skeleton: use SGX_SDK to refer to the location of Intel SGX SDK | @@ -23,9 +23,9 @@ HOST_LDFLAGS := -fPIC -shared -Wl,-Bsymbolic
LDFLAGS :=
ifdef TLS_SERVER
-LDFLAGS += -L$(LIBDIR) -L/opt/intel/sgxsdk/lib64 \
- -L$(RA_TLS_SERVER)/lib -lsgx_uae_service -lsgx_urts -lsgx_dcap_ql \
- -lra-tls-server -l:libcurl-wolfssl.a -l:libwolfssl.a
+LDFLAGS += -L$(LIBDIR) -L$(SGX_SDK)/lib64 -L$(RA_TL... |
LPC55xx: update info.py. | @@ -139,6 +139,7 @@ PROJECT_RELEASE_INFO = {
('max32625_if', False, 0x0000, "bin" ),
('sam3u2c_if', False, 0x0000, "bin" ),
('stm32f103xb_if', False, 0x0000, "bin" ),
+ ('lpc55s69_if', False, 0x10000, "bin" ),
}
# Add new HICs here
@@ -314,6 +315,7 @@ HIC_STRING_TO_ID = {
'k26f': 0x97969909,
'kl27z': 0x9796990B,
'm48ss... |
use endpoint of keycloak OP | @@ -6,7 +6,7 @@ users have to either register a client manually or use a preregistered public cl
Example:
```
-$ oidc-gen --pub --issuer https://aai.egi.eu/oidc \
+# oidc-gen --pub --issuer https://aai.egi.eu/auth/realms/egi
--scope "email \
eduperson_entitlement \
eduperson_scoped_affiliation \
|
SharpYuvComputeConversionMatrix: quiet int->float warnings
under some versions of visual studio:
sharpyuv\sharpyuv_csp.c(43): warning C4244: '=': conversion from 'int' to
'float', possible loss of data
sharpyuv\sharpyuv_csp.c(35): warning C4244: 'initializing': conversion from
'int' to 'float', possible loss of data | @@ -32,7 +32,7 @@ void SharpYuvComputeConversionMatrix(const SharpYuvColorSpace* yuv_color_space,
float addY = 0.0f;
float scaleU = cr;
float scaleV = cb;
- float addUV = (128 << shift);
+ float addUV = (float)(128 << shift);
assert(yuv_color_space->bits >= 8);
@@ -40,7 +40,7 @@ void SharpYuvComputeConversionMatrix(con... |
Ignore x86 includes from intellisense.
IntelliSense is always in x64 mode and will complain about missing
includes. This seems like the best way to handle this. | "${workspaceFolder}/samples/**",
"${workspaceFolder}/tests/**",
"${vcpkgRoot}/x64-windows/include",
- "${vcpkgRoot}/x86-windows/include",
- "${vcpkgRoot}/x64-windows/include/SDL2",
- "${vcpkgRoot}/x86-windows/include/SDL2"
+ "${vcpkgRoot}/x64-windows/include/SDL2"
],
"cStandard": "c99",
"cppStandard": "c++11",
"_UNICOD... |
short range: Increase UART buffer
At least nRF5 port doesn't handle flow control correctly... | @@ -46,7 +46,7 @@ extern "C" {
/** UART buffer length. UART characters are placed in this buffer
* on arrival. EDM parser then consumes from this buffer.
*/
-# define U_SHORT_RANGE_UART_BUFFER_LENGTH_BYTES 512
+# define U_SHORT_RANGE_UART_BUFFER_LENGTH_BYTES 1024
#endif
#ifndef U_SHORT_RANGE_UART_BAUD_RATE
|
Use stringbuilder in jerry_debugger_exception_object_to_string
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi | @@ -1474,11 +1474,9 @@ jerry_debugger_exception_object_to_string (ecma_value_t exception_obj_value) /**
}
}
- lit_utf8_size_t size = lit_get_magic_string_size (string_id);
- JERRY_ASSERT (size <= 14);
+ ecma_stringbuilder_t builder = ecma_stringbuilder_create ();
- lit_utf8_byte_t data[16];
- memcpy (data, lit_get_magi... |
OcFirmwareRuntime: Extent with fallback var | @@ -39,6 +39,15 @@ typedef struct OC_FWRT_CONFIG_ {
///
BOOLEAN BootVariableRedirect;
///
+ /// Route boot variables back to EfiGlobalVariable when they are compatible.
+ /// In general we do not want this, as this basically escapes OpenCore security
+ /// jail, and permits booting operating systems bypassing OpenCore.... |
fix bring back ifdef | #ifndef _CARTO_OSRMROUTINGPROXY_H_
#define _CARTO_OSRMROUTINGPROXY_H_
-//#ifdef _CARTO_ROUTING_SUPPORT
+#ifdef _CARTO_ROUTING_SUPPORT
#include "core/MapPos.h"
#include "routing/RoutingInstruction.h"
@@ -51,4 +51,4 @@ namespace carto {
#endif
-//#endif
+#endif
|
review: fprintf -> lovrAssert | @@ -126,7 +126,6 @@ static void onCapture(ma_device* device, void* output, const void* input, uint32
uint32_t availableFrames = frames;
ma_result acquire_status = ma_pcm_rb_acquire_write(&state.captureRingbuffer, &availableFrames, &store);
if (acquire_status != MA_SUCCESS) {
- fprintf(stderr, "Dropping mic audio, faile... |
disable windows test in azure pipeline for now until we can reproduce | @@ -36,12 +36,12 @@ jobs:
inputs:
solution: $(BuildType)/libmimalloc.sln
configuration: '$(MSBuildConfiguration)'
- - script: |
- cd $(BuildType)
- ctest --verbose --timeout 120
- displayName: CTest
- - upload: $(Build.SourcesDirectory)/$(BuildType)
- artifact: mimalloc-windows-$(BuildType)
+ #- script: |
+ # cd $(Buil... |
add note about streaming | @@ -36,6 +36,8 @@ Iodine is an **evented** framework with a simple API that ports much of the [C f
Iodine is a C extension for Ruby, developed and optimized for Ruby MRI 2.2.2 and up... it should support the whole Ruby 2.0 MRI family, but CI tests start at Ruby 2.2.2.
+**Note**: iodine does **not** support the streamin... |
meta: fix landscape reporting link
fixes tloncorp/landscape-apps#1799 | blank_issues_enabled: true
contact_links:
- name: Submit a Landscape issue
- url: https://github.com/urbit/landscape/issues/new/choose
- about: Issues with Landscape (Tlon's flagship client) should be filed at urbit/landscape. This includes groups, chats, collections, notebooks, and more.
+ url: https://github.com/tlon... |
Add a bit more spacing in Bindings window between elements | @@ -93,11 +93,12 @@ void Bindings::Update()
ImGui::Spacing();
ImGui::TextUnformatted(activeModName.c_str());
+ ImGui::Spacing();
prevMod = curMod;
}
- m_madeChanges |= HelperWidgets::BindWidget(vkBindInfo, (vkBindInfo.Bind.ID != m_overlayKeyID));
+ m_madeChanges |= HelperWidgets::BindWidget(vkBindInfo, (vkBindInfo.Bind... |
Changelog note for
- Merge PR from Willem: Reset keepalive per new tcp session. | - Merge PR #493 from Jaap: Fix generation of libunbound.pc.
- Merge PR #555 from fobser: Allow interface names as scope-id in IPv6
link-local addresses.
+ - Merge PR #562 from Willem: Reset keepalive per new tcp session.
30 November 2021: Wouter
- Fix to remove git tracking and ci information from release tarballs.
|
graph-store: run-updates no longer pokes itself | ^- (quip card _state)
?< (~(has by archive) resource)
?> (~(has by graphs) resource)
- :_ state
- %+ turn (tap:orm-log update-log)
- |= [=time update=logged-update:store]
- ^- card
- ?> ?=(%0 -.update)
- :* %pass
- /run-updates/(scot %da time)
- %agent
- [our.bowl %graph-store]
- %poke
- :- %graph-update
- !>
+ =/ upda... |
config_tools: fix when CAT checkbox data missing, ui will hang up in hv.advanced issue
fix when CAT checkbox data missing, ui will hang up in hv.advanced issue | L{{ CACHE_ALLOCATION.level }} Cache Allocation Technology {{
cat_level_region_sum[CACHE_ALLOCATION.level].count > 1 ? ' Module ' + cat_level_region_sum[CACHE_ALLOCATION.level][CACHE_ALLOCATION.id] : ''
}}
- (requires CPU affinity to cores {{ Math.min(...CACHE_ALLOCATION.processors) }}~{{ Math.max(...CACHE_ALLOCATION.pr... |
Solve minor bug in metacall-sanitizer.sh. | @@ -29,8 +29,8 @@ SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
ROOT_DIR=$(dirname "$SCRIPT_DIR")
BUILD_DIR="${ROOT_DIR}/build"
-if [ "$BUILD_SANITIZER" != "sanitizer" ] || [ "$BUILD_SANITIZER" != "thread-sanitizer" ]; then
- echo "Sanitizer '$BUILD_SANITIZER' not supported, use 'sanitizer... |
crsf: implement all 3 lqi sources | @@ -112,6 +112,15 @@ extern uint8_t telemetry_offset;
extern uint8_t telemetry_packet[14];
extern uint8_t ready_for_next_telemetry;
+static uint8_t crsf_rf_mode = 0;
+static uint16_t crsf_rf_mode_fps[] = {
+ 4, // CRSF
+ 50, // CRSF
+ 150, // CRSF
+ 100, // ELRS
+ 200, // ELRS
+};
+
#define USART usart_port_defs[serial... |
OcMachoLib: Fix compilation warning | @@ -272,7 +272,6 @@ MachoGetClassNameFromMetaClassPointer (
OUT CHAR8 *ClassName
)
{
- BOOLEAN Result;
UINTN PrefixSize;
UINTN SuffixSize;
UINTN ClassNameLength;
|
docs: mention existence of --with-mpi-families option in Appendix when talking
about the test suite | @@ -38,8 +38,11 @@ Most components can be tested individually, but a default configuration is
setup to enable collective testing. To test an isolated component, use the
\texttt{configure} option to disable all tests, then re-enable the desired test
to run. The \texttt{--help} option to \texttt{configure} will display a... |
export APPDIR using 'export' keyword (TOPDIR already exported by nuttx/) | #
############################################################################
-APPDIR = $(CURDIR)
+export APPDIR = $(CURDIR)
include $(APPDIR)/Make.defs
# Symbol table for loadable apps.
@@ -78,7 +78,7 @@ ifeq ($(CONFIG_BUILD_KERNEL),y)
install: $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_install)
.import: $(foreach S... |
[PATCH] BugID:20688421: Update wifi lib for RDA, "event_alloc" and "event_post" all in same critical zone | @@ -56,6 +56,7 @@ r_void * rda_alarm_create(r_void *func, r_u32 data)
r_s32 rda_alarm_delete(r_void *handle)
{
if (NULL != handle) {
+ aos_timer_stop((aos_timer_t *)handle);
aos_timer_free((aos_timer_t *)handle);
r_free(handle);
handle = NULL;
@@ -312,12 +313,14 @@ r_void rda_msleep(r_u32 ms)
aos_msleep(ms);
}
-//#defi... |
Prevent negative values being written to SPS with --gop=0 | @@ -387,9 +387,10 @@ static void encoder_state_write_bitstream_seq_parameter_set(bitstream_t* stream,
WRITE_UE(stream, dpb - 1, "sps_max_dec_pic_buffering_minus1");
WRITE_UE(stream, 0, "sps_max_num_reorder_pics");
} else {
+ // Clip to non-negative values to prevent problems with GOP=0
const int dpb = MIN(16, encoder->... |
options/linux: Implement more constants in elf.h | #include <stdint.h>
+// TODO: Convert the enums to #defines so that they work with #ifdef.
+
+#define ELFCLASS64 2
+#define ELFDATA2LSB 1
+#define ELFOSABI_SYSV 0
+#define EM_X86_64 62
+
+#define SHT_NULL 0
+#define SHT_PROGBITS 1
+#define SHT_SYMTAB 2
+#define SHT_STRTAB 3
+#define SHT_RELA 4
+#define SHT_HASH 5
+#def... |
tests: add test cases for keycopymeta | @@ -303,7 +303,6 @@ static void test_copy (void)
keyDel (key1);
keyDel (key2);
-
succeed_if (key1 = keyNew ("/", KEY_END), "could not create key");
succeed_if (key2 = keyNew ("/", KEY_END), "could not create key");
@@ -406,6 +405,20 @@ static void test_copy (void)
keyDel (k);
keyDel (c);
+
+ succeed_if (key1 = keyNew (... |
Fixed macro error
Noted that some macros are wrong,
fixed them to avoid more errors in the future:
SHARED_SECRET_MAX_LENGHT -> SHARED_SECRET_MAX_LENGTH
ECC_KEY_MAX_LENGHT -> ECC_KEY_MAX_LENGTH
AES_KEY_MAX_LENGHT_IN_BYTES -> AES_KEY_MAX_LENGTH_IN_BYTES | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
**************************************************************************************/
-#define SHARED_SECRET_MAX_LENGHT 250
-#define ECC_KEY_MAX_LENGHT 0x256
-#define AES_KEY_MAX_LENGHT_IN_BYTES 0x10
+#define SHARED_SECRET_MAX_LENGTH 250
+#define ECC_KE... |
naive: fix spawn proxy set test nonce | ++ test-l2-sambud-spawn-spawn-proxy-postdeposit ^- tang
=/ sambud-sproxy [[~sambud %spawn] %set-spawn-proxy (addr %sambud-skey-1)]
%+ expect-eq
- !> [(addr %sambud-skey-1) 0]
+ !> [(addr %sambud-skey-1) 1]
::
!>
=| =^state:naive
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.