message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
dbuild: Add docker image version to maintain latest ver.
dbuild.sh will use specific docker version to maintain build env. | @@ -24,6 +24,7 @@ TOPDIR="${OSDIR}/.."
BUILDDIR="${TOPDIR}/build"
BINDIR="${BUILDDIR}/output/bin"
CONFIGDIR="${BUILDDIR}/configs"
+DOCKER_VERSION="1.5.0"
STATUS_LIST="NOT_CONFIGURED BOARD_CONFIGURED CONFIGURED BUILT PREPARE_DL DOWNLOAD"
BUILD_CMD=make
@@ -350,8 +351,23 @@ function BUILD()
DOCKER_OPT="-i"
fi
- docker pu... |
[BACKPORT] s32k3xx:LPSPI register usage cleanup | @@ -498,32 +498,6 @@ static struct s32k3xx_lpspidev_s g_lpspi5dev =
* Private Functions
****************************************************************************/
-/****************************************************************************
- * Name: spi_modifyreg
- *
- * Description:
- * Atomic modification of the... |
Fix flipped labels in pass by ref/value selector | @@ -284,14 +284,14 @@ const CustomEventEditor = ({ id, multiColumn }: CustomEventEditorProps) => {
label={
<span style={{ minWidth: 40, textAlign: "left" }}>
{variable.passByReference
- ? l10n("FIELD_PASS_BY_VALUE_SHORT")
- : l10n("FIELD_PASS_BY_REFERENCE_SHORT")}
+ ? l10n("FIELD_PASS_BY_REFERENCE_SHORT")
+ : l10n("FIE... |
fsp/surv: Improve log message | @@ -153,9 +153,11 @@ static void fsp_surv_got_param(uint32_t param_id __unused, int err_len,
return;
}
- printf("SURV: Status from FSP: %d\n", surv_state_param);
- if (!(surv_state_param & 0x01))
+ if (!(surv_state_param & 0x01)) {
+ prlog(PR_NOTICE, "SURV: Status from FSP: disabled\n");
return;
+ }
+ prlog(PR_NOTICE, ... |
bench: improve go efficiency benchmark | @@ -22,9 +22,12 @@ func sqrt(n uint64) float64 {
func callibrate(n uint64) uint64 {
start := time.Now()
- v := sqrt(n)
+ v := float64(0)
+ for i := int(0); i < 10000; i++ {
+ v += sqrt(n)
+ }
elapsed := time.Since(start)
- log.Printf("took %s %f", elapsed, v)
+ log.Printf("took %s %f", elapsed / 10000, v)
return 0
}
@@... |
[RAFT] add minor log | @@ -367,6 +367,7 @@ func (cl *Cluster) isValidMember(member *consensus.Member) error {
// check if peerID of this node is valid
// check if peerID of this node is valid
if cl.NodeName() == member.Name && member.GetPeerID() != p2pkey.NodeID() {
+ logger.Error().Str("config", member.GetPeerID().String()).Str("p2pnodeid",... |
Remove unreachable code after assert 0; missed commit | @@ -2225,9 +2225,6 @@ int get_next_min_vertex_scc_cluster(int scc_id, PlutoProg *prog,
printf("Colouring SCC %d\n", scc_id);
print_scc_vertices(scc_id, prog->ddg);
assert(0);
- IF_DEBUG(printf("Returning vertex %d for colouring\n", dim););
- free(common_dims);
- return scc_offset + dim;
}
/* Normal brute force heuristi... |
Remove confising comments | @@ -3252,7 +3252,6 @@ static psa_status_t psa_cipher_setup( psa_cipher_operation_t *operation,
goto exit;
}
- /* Fetch key material from key storage. */
status = psa_get_and_lock_key_slot_with_policy( key, &slot, usage, alg );
if( status != PSA_SUCCESS )
goto exit;
@@ -3499,7 +3498,6 @@ psa_status_t psa_cipher_encrypt(... |
firpfb: clarifying filter length requirement in comments | @@ -3526,13 +3526,13 @@ LIQUID_IIRFILTSOS_DEFINE_API(LIQUID_IIRFILTSOS_MANGLE_CCCF,
/* Finite impulse response (FIR) polyphase filter bank (PFB) */ \
typedef struct FIRPFB(_s) * FIRPFB(); \
\
-/* Create firpfb object with _num_filters sub-filter each with */ \
-/* _h_len/_num_filters coefficients */ \
+/* Create firpfb... |
Added erlang:min/2 and erlang:max/2 | start_timer/3, start_timer/4, cancel_timer/1, send_after/3,
process_info/2, system_info/1,
md5/1,
- is_map/1, map_size/1, map_get/2, map_is_key/2
+ is_map/1, map_size/1, map_get/2, map_is_key/2,
+ min/2, max/2
]).
%%-----------------------------------------------------------------------------
@@ -259,3 +260,30 @@ map_g... |
fix filter with numbers as key | @@ -446,7 +446,7 @@ function interpreter:_filter(values, level)
if table.is_dictionary(values) then
local results = {}
for key, value in pairs(values) do
- key = filter:handle(key)
+ key = (type(key) == "string" and filter:handle(key) or key)
if type(value) == "string" then
results[key] = filter:handle(value)
elseif ty... |
rpi-base.conf: add disable-bt.dtbo and miniuart-bt.dtbo overlays.
Closes | @@ -16,6 +16,7 @@ XSERVER = " \
RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \
overlays/at86rf233.dtbo \
+ overlays/disable-bt.dtbo \
overlays/dwc2.dtbo \
overlays/gpio-key.dtbo \
overlays/hifiberry-amp.dtbo \
@@ -25,6 +26,7 @@ RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \
overlays/i2c-rtc.dtbo \
overlays/iqaudio-dac.dtbo \
overlays/iq... |
Modify some comments in ssl_tls13_keys.c | @@ -1304,12 +1304,12 @@ int mbedtls_ssl_tls13_key_schedule_stage_early(mbedtls_ssl_context *ssl)
*
* ssl_tls13_generate_handshake_keys() generates keys necessary for
* protecting the handshake messages, as described in Section 7 of
- * TLS 1.3.
+ * RFC 8446.
*
* \param ssl The SSL context to operate on. This must be in... |
[x86_64] Update entry point for x86_64 | #include <kernel/syscall/syscall.h>
#include <kernel/multitasking/tasks/task_small.h>
#include <kernel/util/amc/amc.h>
-
-#define SPIN while (1) {sys_yield(RUNNABLE);}
-#define SPIN_NOMULTI do {} while (1);
-
-void print_os_name() {
- NotImplemented();
-}
-
-void system_mem() {
- NotImplemented();
-}
-
-static void ker... |
Update: Removal of nanosleep when ran in test mode | @@ -438,7 +438,10 @@ void YAN_Pong2(long iterations)
}
batX=MAX(-batWidth*2,MIN(szX-1+batWidth,batX+batVX*batWidth/2));
printf("Hits=%d misses=%d ratio=%f time=%ld\n", hits, misses, (float) (((float) hits) / ((float) hits + misses)), currentTime);
+ if(iterations == -1)
+ {
nanosleep((struct timespec[]){{0, 20000000L}}... |
core: flb_scheduler fix for macOS
src/flb_scheduler.c: cosumer_bytes() gives errors in macOS (10.13,... ?).
function flb_pipe_r can return value 0 if is considered as error.
This patch allows return value zero. | @@ -44,7 +44,11 @@ static inline int consume_byte(flb_pipefd_t fd)
/* We need to consume the byte */
ret = flb_pipe_r(fd, &val, sizeof(val));
+#ifdef __APPLE__
+ if (ret < 0) {
+#else
if (ret <= 0) {
+#endif
flb_errno();
return -1;
}
|
vere: remove unused declarations from vere.h | c3_c* pax_c; // pier directory
c3_w lif_w; // lifecycle barrier
c3_d who_d[2]; // identity
- c3_c* who_c; // identity as C string
c3_o fak_o; // yes iff fake security
c3_o liv_o; // fully live
u3_disk* log_u; // event log
u3_pier_spin(u3_pier* pir_u);
# define u3L u3_Host.lup_u // global event loop
-# define u3Z (&(u3_... |
Disable internal ADC, RP_BIAS calibration for r2 chip | #include "LMS7002M_RegistersMap.h"
#include <thread>
#include <chrono>
+#include "ErrorReporting.h"
+
using namespace std;
using namespace lime;
int LMS7002M::CalibrateInternalADC()
{
+ if(Get_SPI_Reg_bits(LMS7_MASK) == 0)
+ return ReportError(ENOTSUP, "Operation not supported");
+
const uint16_t biasMux = Get_SPI_Reg_... |
SIM: set MEM_BITS to 12 to allow more then 2^10 write data bursts | @@ -53,6 +53,7 @@ module ddr3_dimm
// 8+1 Chips each 4Gb => 8GB + ECC
////////////////////////////////////////////////////////////////////////////
parameter DEBUG = 0; // Turn on / off Debug messages
+ parameter MEM_BITS = 12; // this parameter is control how many write data bursts can be stored in memory. The default ... |
session: fix coverity warning
Type: fix
Ticket: | @@ -172,7 +172,7 @@ unformat_transport_proto (unformat_input_t * input, va_list * args)
}
if (longest_match)
{
- unformat (input, str_match);
+ (void) unformat (input, str_match);
return 1;
}
|
nimble/ll: Remove CIS from host supported features
We do not support it so we should not allow to set it.
This fixes HCI/CCO/BI-44-C. | @@ -289,8 +289,7 @@ extern STATS_SECT_DECL(ble_ll_stats) ble_ll_stats;
#define BLE_LL_CONN_CLEAR_FEATURE(connsm, feature) (connsm->conn_features &= ~(feature))
/* All the features which can be controlled by the Host */
-#define BLE_LL_HOST_CONTROLLED_FEATURES (BLE_LL_FEAT_CIS_HOST | \
- BLE_LL_FEAT_CONN_SUBRATING_HOST)... |
[core] fix 1-char trunc of default server.tag
(thx avij) | #endif
#define PACKAGE_DESC PACKAGE_NAME "/" PACKAGE_VERSION REPO_VERSION
-static const buffer default_server_tag = { CONST_STR_LEN(PACKAGE_DESC), 0 };
+static const buffer default_server_tag = { CONST_STR_LEN(PACKAGE_DESC)+1, 0 };
#include <sys/types.h>
#include <sys/time.h>
|
gdbmacros; add a function to print free list from main mbuf pool. | @@ -164,3 +164,12 @@ end
define mn_msys1_print
mn_mbuf_pool_print &os_msys_init_1_mbuf_pool
end
+
+define mn_msys1_free_print
+ set $om = os_msys_init_1_mempool.slh_first
+
+ while $om != 0
+ printf "Mbuf addr: %p\n", $om
+ set $om = $om->mb_next.sle_next
+ end
+end
|
Delete bad old scanf. | ++ jone numb:enjs:format :: number from unsigned
++ jode time:enjs:format :: ms timestamp
++ jesc jesc:en-json:html :: escape for json
-++ scanf scanf:userlib :: formatted scan
-++ parsf parsf:scanf:userlib :: make parser from:
++ taco as-octs:mimes:html :: atom to octstream
++ tact as-octt:mimes:html :: tape to octstr... |
Remove cipher_info in mbedtls_ssl_ticket_setup() when USE_PSA_CRYPTO is defined | @@ -216,34 +216,29 @@ int mbedtls_ssl_ticket_setup( mbedtls_ssl_ticket_context *ctx,
uint32_t lifetime )
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
- const mbedtls_cipher_info_t *cipher_info;
#if defined(MBEDTLS_USE_PSA_CRYPTO)
psa_algorithm_t alg;
psa_key_type_t key_type;
size_t key_bits;
-#endif
+#else
+ cons... |
Clean up project file issue. | <Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\vcnet;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>DEBUG;_DEBUG;_WINDOWS;_USRDLL;LIBPAPPL1_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- ... |
decisions: improvements from comments | @@ -45,7 +45,6 @@ Substantial decisions, however, must be made in a transparent and participative
- For decision reviewers:
- Prefer to directly give suggestions how to change sentences.
- General questions should be asked in the root of "Conversation" and not at vaguely related sentences in the review.
- Small excepti... |
Add configure env flags to override jemalloc and libev clangs and libs | @@ -208,7 +208,11 @@ if test "${have_libnghttp3}" = "xno"; then
fi
AM_CONDITIONAL([HAVE_NGHTTP3], [ test "x${have_libnghttp3}" = "xyes" ])
+AC_ARG_VAR([LIBEV_CFLAGS], [C compiler flags for libev, skipping any checks])
+AC_ARG_VAR([LIBEV_LIBS], [linker flags for libev, skipping any checks])
+
# libev (for examples)
+if ... |
Configure death handler: remember to call original death handler | @@ -2731,6 +2731,7 @@ Please read INSTALL and associated NOTES files. You may also have to look over
your available compiler tool chain or change your configuration.
_____
+ $orig_death_handler->(@_) if defined $orig_death_handler;
}
# Configuration file reading #########################################
|
codegen: Add newline after enum declaration | @@ -20,9 +20,9 @@ cheetahVarStartToken = $
@for $key, $info in $parameters.iteritems()
@if $support.type_of($info) == "enum"
$support.enum_typedef($key, $info)
+
@end if
@end for
-
/**
* Default KeySet
*/
|
options/ansi: cache value of env var MLIBC_DEBUG_MALLOC | @@ -421,10 +421,19 @@ size_t wcstombs(char *mb_string, const wchar_t *wc_string, size_t max_size) {
return wcsrtombs(mb_string, &wc_string, max_size, 0);
}
+static bool debugMalloc() {
+ static bool debug = [] () -> bool {
+ // TODO: We should use a locking variant of getenv here to guard
+ // against concurrent modifi... |
Add similar safety check to DeviceInformationImpl : skip Network Interface GUID deviceId in case if we avoid running Network Detection logic. | @@ -48,7 +48,7 @@ namespace PAL_NS_BEGIN {
}
///// IDeviceInformation API
- DeviceInformationImpl::DeviceInformationImpl(MAT::IRuntimeConfig& /*configuration*/) :
+ DeviceInformationImpl::DeviceInformationImpl(MAT::IRuntimeConfig& configuration) :
m_registeredCount(0),
m_info_helper()
{
@@ -58,16 +58,29 @@ namespace PA... |
pyocf: allow no queue in I/O allocation
.. this is useful for testing I/O API without any cache | @@ -337,7 +337,13 @@ class Volume:
):
lib = OcfLib.getInstance()
io = lib.ocf_volume_new_io(
- self.handle, queue.handle, addr, length, direction, io_class, flags
+ self.handle,
+ queue.handle if queue else c_void_p(),
+ addr,
+ length,
+ direction,
+ io_class,
+ flags,
)
return Io.from_pointer(io)
|
Add case where user specifies max requests=1
Adding the case where the user specifies the number of max
requests as 1. | @@ -253,9 +253,9 @@ PIO_TF_AUTO_TEST_SUB_BEGIN set_rearr_opts_and_write
integer, parameter :: NUM_ENABLE_ISEND_OPTS = 2
logical :: enable_isend_opts(NUM_ENABLE_ISEND_OPTS) = (/.true.,.false./)
integer :: num_enable_isend_opts_comp2io, num_enable_isend_opts_io2comp
- integer, parameter :: NUM_MAX_PEND_REQ_OPTS = 2
+ int... |
sailfish: update with webengine | @@ -62,14 +62,14 @@ extern "C" {
const char* rho_sys_qt_getWebviewFramework()
{
-//#ifndef OS_SAILFISH
+#ifndef OS_SAILFISH
if (qt_webview_framework[0] == '\0') {
- #if defined(RHODES_VERSION_1) || (defined(OS_SAILFISH) && !defined(ENABLE_Q_WEB_ENGINE))
- const QByteArray ver = QString("WEBKIT").toLatin1();
+ #if defin... |
tools: acrn-crashlog: update the documents
This patch updates the documents according to the latest implementation
of crashlogctl. | @@ -53,19 +53,12 @@ The work flow diagram:
Usage
*****
-- The server is launched automatically at boot, and the client is configured in
- ``core_pattern`` or ``coredump-wrapper``. In ``prepare.service``, it will
- check the content of ``/proc/sys/kernel/core_pattern``. If there is
- ``coredump-wrapper``, which means th... |
validation BUGFIX fix allowed duplicates | @@ -298,7 +298,9 @@ lyd_validate_duplicates(const struct lyd_node *first, const struct lyd_node *nod
assert(node->flags & LYD_NEW);
- if ((node->schema->nodetype & (LYS_LIST | LYS_LEAFLIST)) && (node->schema->flags & LYS_CONFIG_R)) {
+ /* key-less list or non-configuration leaf-list */
+ if (((node->schema->nodetype ==... |
ec_kmgmt.c: check the return of BN_CTX_get() in time.
If x and y are all NULL, then it is unnecessary to do subsequent operations. | @@ -158,10 +158,16 @@ int key_to_params(const EC_KEY *eckey, OSSL_PARAM_BLD *tmpl,
goto err;
}
if (px != NULL || py != NULL) {
- if (px != NULL)
+ if (px != NULL) {
x = BN_CTX_get(bnctx);
- if (py != NULL)
+ if (x == NULL)
+ goto err;
+ }
+ if (py != NULL) {
y = BN_CTX_get(bnctx);
+ if (y == NULL)
+ goto err;
+ }
if (!... |
More minderfund stuff | @@ -527,15 +527,16 @@ public class BitcoinJob
protected virtual Money CreateMinerFundOutputs(Transaction tx, Money reward)
{
- if (!string.IsNullOrEmpty(minerFundParameters.Addresses?.First()))
- {
- var payeeAddress = BitcoinUtils.AddressToDestination(minerFundParameters.Addresses[0], network);
var payeeReward = miner... |
engine: add PID to start message | @@ -389,7 +389,7 @@ int flb_engine_start(struct flb_config *config)
return -1;
}
- flb_info("[engine] started");
+ flb_info("[engine] started (pid=%i)", getpid());
flb_thread_prepare();
/* Create the event loop and set it in the global configuration */
|
release: bundle on bullseye | @@ -374,14 +374,14 @@ def generateReleaseStages() {
tasks << buildRelease(
'debian-buster',
DOCKER_IMAGES.buster,
- params.debian_revision,
- true // bundle repository
+ params.debian_revision
)
tasks << buildRelease(
'debian-bullseye',
DOCKER_IMAGES.bullseye,
- params.debian_revision
+ params.debian_revision,
+ true /... |
Update README.md
Fix -DBUILD_TESTING flag example. | @@ -238,7 +238,7 @@ make install
You may also want to compile the tests. In this case when you configure the project,
please call the following command
```
-cmake -DCMAKE_INSTALL_PREFIX:PATH=<custom-folder> -DBUILD_TESTING:ON ../
+cmake -DCMAKE_INSTALL_PREFIX:PATH=<custom-folder> -DBUILD_TESTING=ON ../
make
ctest
```
|
Update security context derivation according to minimal-security-15 draft. | @@ -94,26 +94,20 @@ void cjoin_init(void) {
}
void cjoin_init_security_context(void) {
- uint8_t senderID[9];
- uint8_t recipientID[9];
+ uint8_t idContext[8];
+ uint8_t recipientID[] = {0x4a, 0x52, 0x43};
uint8_t *joinKey;
- eui64_get(senderID);
- senderID[8] = 0x00; // EUI-64 || 0x00 [minimal-security-03]
-
- eui64_g... |
publish: disable button after joining book | @@ -10,7 +10,8 @@ export class JoinScreen extends Component {
this.state = {
book: '/',
error: false,
- awaiting: null
+ awaiting: null,
+ disable: false
};
this.bookChange = this.bookChange.bind(this);
@@ -91,10 +92,11 @@ export class JoinScreen extends Component {
// TODO: askHistory setting
window.api.setSpinner(tru... |
fix(bluetooth): Stop adv on connected profile. | @@ -176,6 +176,10 @@ int update_advertising() {
LOG_DBG("advertising from %d to %d", advertising_status, desired_adv);
switch (desired_adv + CURR_ADV(advertising_status)) {
+ case ZMK_ADV_NONE + CURR_ADV(ZMK_ADV_DIR):
+ case ZMK_ADV_NONE + CURR_ADV(ZMK_ADV_CONN):
+ CHECKED_ADV_STOP();
+ break;
case ZMK_ADV_DIR + CURR_A... |
py/objmodule.h: Remove obsolete mp_builtin_module_weak_links_map decl.
It was made obsolete in | #include "py/obj.h"
extern const mp_map_t mp_builtin_module_map;
-extern const mp_map_t mp_builtin_module_weak_links_map;
mp_obj_t mp_module_get(qstr module_name);
void mp_module_register(qstr qstr, mp_obj_t module);
|
parser: Set __main__ to being defined at line 1 since it's native.
This makes it so only foreign functions have line 0 as the line they
were declared on. | @@ -1149,15 +1149,23 @@ static lily_var *new_native_define_var(lily_parse_state *parser,
static void create_main_func(lily_parse_state *parser)
{
lily_type_maker *tm = parser->emit->tm;
+ lily_lex_state *lex = parser->lex;
+ uint16_t save_line = lex->line_num;
lily_tm_add(tm, lily_unit_type);
lily_type *main_type = lil... |
docs: fix broken link in usb example readme | @@ -25,7 +25,7 @@ There are two ways to set up a descriptor - using Menuconfig tool and in-code
#### In-code setting up
-For the manual descriptor configuration use the default example's settings and modify `my_descriptor` in [source code](tusb_sample_descriptor_main.c) according to your needs
+For the manual descripto... |
Disable TLS re-negotiation from SSL context
via SSL_OP_NO_RENEGOTIATION option | @@ -222,17 +222,23 @@ int ssl_init(void) {
#endif
}
+#ifdef SSL_OP_NO_RENEGOTIATION
+ // Disable TLS re-negotiation if SSL_OP_NO_RENEGOTIATION is defined for
+ // openssl 1.1.0h or above
+ SSL_CTX_set_options(settings.ssl_ctx, SSL_OP_NO_RENEGOTIATION);
+#endif
+
return 0;
}
/*
* This method is registered with each SSL ... |
jn516x: compile using -std=gnu99
GCC 4 uses -std=gnu89 as default, switch
to -std=gnu99 to align the behavior of
the port with the wiki statement that C99
can be used in Contiki-NG. | @@ -61,6 +61,8 @@ LDLIBS := $(subst MiniMac_JN516x, ,$(LDLIBS))
LDLIBS += JPT_$(JENNIC_CHIP)
endif
+CFLAGS += -std=gnu99
+
# Enable all warnings
CFLAGS += -Wall
# Disable warnings that result many false positives with the Contiki core
|
more changelog contributions | @@ -17,6 +17,8 @@ Version 1.3.2 (08 September 2017)
* update backend OBS build system to avoid false package dependences for CentOS (https://github.com/openhpc/ohpc/issues/451)
* update SLURM build to support cgroup plugin (https://github.com/openhpc/ohpc/issues/476)
* relocation of several package installs into utils/... |
interface: fix converity in update_runtime_data
Type: fix | @@ -160,7 +160,7 @@ vnet_hw_if_update_runtime_data (vnet_main_t *vnm, u32 hw_if_index)
if (vec_len (rt->rxq_poll_vector) != vec_len (d[i]))
something_changed_on_rx = 1;
else if (memcmp (d[i], rt->rxq_poll_vector,
- vec_len (d[i]) * sizeof (*d)))
+ vec_len (d[i]) * sizeof (**d)))
something_changed_on_rx = 1;
if (clib_in... |
Don't repeat read request for show -dimm -performance | @@ -135,8 +135,8 @@ PrintPerformanceData(UINT16 *DimmId, UINT32 DimmIdsNum, DIMM_INFO *AllDimmInfos,
}
/** WriteRequests **/
- if (AllOptionSet || (DisplayOptionSet && ContainsValue(pDisplayOptionValue, DCPMM_PERFORMANCE_READ_REQUESTS))) {
- Print(DCPMM_PERFORMANCE_READ_REQUESTS PERFORMANCE_DATA_FORMAT,
+ if (AllOption... |
[android] Fix for race condition with timer. | @@ -36,6 +36,7 @@ import javax.microedition.khronos.egl.EGLDisplay;
import javax.microedition.khronos.opengles.GL10;
import java.util.TimerTask;
+import java.util.concurrent.Semaphore;
/**
* A simple GLSurfaceView sub-class that demonstrate how to perform
@@ -66,6 +67,7 @@ class MainView extends GLSurfaceView {
boolean... |
common: online_calibration: Initialize accelerometer calibration
Update the init function for online calibration to initialize
the accelerometer calibration.
BRANCH=None
TEST=build | @@ -93,8 +93,29 @@ void online_calibration_init(void)
{
size_t i;
- for (i = 0; i < SENSOR_COUNT; i++)
- motion_sensors[i].online_calib_data->last_temperature = -1;
+ for (i = 0; i < SENSOR_COUNT; i++) {
+ struct motion_sensor_t *s = motion_sensors + i;
+ void *type_specific_data = NULL;
+
+ if (s->online_calib_data) {... |
Swap order of FP and ISA checks | @@ -484,13 +484,13 @@ astcenc_error astcenc_config_init(
// Check basic library compatibility options here so they are checked early. Note, these checks
// are repeated in context_alloc for cases where callers use a manually defined config struct
- status = validate_cpu_float();
+ status = validate_cpu_isa();
if (statu... |
[Kconfig] Use 256 as the default stack size for idle thread. | @@ -58,8 +58,8 @@ config RT_USING_HOOK
Enable the hook function when system running, such as idle thread hook, thread context switch etc.
config IDLE_THREAD_STACK_SIZE
- int "The stack size of IDLE thread"
- default 1024
+ int "The stack size of idle thread"
+ default 256
config RT_USING_TIMER_SOFT
bool "Enable softwar... |
NetKVM: LockFreeQueue: Fix Peek Method | @@ -263,7 +263,13 @@ public:
TEntryType *Peek()
{
- return m_Queue.Peek();
+ TEntryType * element = m_Queue.Peek();
+ if (element == nullptr && !m_QueueFullListIsEmpty)
+ {
+ FillQueue();
+ element = m_Queue.Peek();
+ }
+ return element;
}
BOOLEAN IsEmpty()
|
xfconf-plugin: Mention the running dbus requirement | @@ -46,6 +46,10 @@ Usually, this library is called something such as `xfconf` (Arch, Fedora, `xfcon
As xfconf itself depends on dbus and glib, these are dependecies too but should be installed with the package manager automatically.
This plugin is tested with the xfconf versions `4.16` and above.
+Before you can start ... |
track-info draft 1 | // It is useful when the plugin is created, to initialize some parameters (mix, dry, wet)
// and pick a suitable configuartion regarding audio port type and channel count.
-static CLAP_CONSTEXPR const char CLAP_EXT_TRACK_INFO[] = "clap.track-info.draft/0";
+static CLAP_CONSTEXPR const char CLAP_EXT_TRACK_INFO[] = "clap... |
curlget: added commit function to contract | @@ -588,6 +588,7 @@ int elektraCurlgetGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned ELEKTRA
keyNew ("system/elektra/modules/curlget/exports", KEY_END),
keyNew ("system/elektra/modules/curlget/exports/get", KEY_FUNC, elektraCurlgetGet, KEY_END),
keyNew ("system/elektra/modules/curlget/exports/set", KEY_FUNC, el... |
WIP: 16-bit variable select don't include L5, T1 and 511 | @@ -202,15 +202,25 @@ export const VariableSelect: FC<VariableSelectProps> = ({
variablesLookup,
customEvent
);
- setNamedVariablesLookup(keyBy(variables, "id"));
+ const namedLookup = keyBy(variables, "id");
+ setNamedVariablesLookup(namedLookup);
const groupedVariables = groupVariables(variables);
- const groupedOpti... |
pbio/motor: fix counts per degree on ev3dev
In ev3dev_stretch, two counts means one degree. | @@ -103,12 +103,17 @@ pbio_error_t pbio_motor_setup(pbio_motor_t *mtr, pbio_motor_dir_t direction, fix
if (err != PBIO_SUCCESS) { return err; }
//
- // TODO: Use the device_id to retrieve this number. It is 1.0 for all of the supported motors so far.
- // It is 2.0 for motors with double resolution, and it is counts/mm... |
Fix nbtree deduplication README commentary.
Descriptions of some aspects of how deduplication works were unclear in
a couple of places. | @@ -780,20 +780,21 @@ order. Delaying deduplication minimizes page level fragmentation.
Deduplication in unique indexes
-------------------------------
-Very often, the range of values that can be placed on a given leaf page in
-a unique index is fixed and permanent. For example, a primary key on an
-identity column wi... |
OcMachoLib: Verify there is at least one lC in MachoGetFirstCommand. | @@ -122,7 +122,8 @@ MachoGetFirstCommand64 (
{
ASSERT (MachHeader != NULL);
- if (MachHeader->Signature != MACH_HEADER_64_SIGNATURE) {
+ if ((MachHeader->Signature != MACH_HEADER_64_SIGNATURE)
+ || (MachHeader->NumberOfCommands == 0)) {
return NULL;
}
|
Add fancy corner/side drawing for grid rulers | @@ -523,10 +523,32 @@ void draw_glyphs_grid(WINDOW* win, int draw_y, int draw_x, int draw_h,
Mark m = m_row[ix];
chtype ch;
if (g == '.') {
- if (use_y_ruler && (ix + offset_x) % ruler_spacing_x == 0)
- ch = '+';
- else
ch = bullet;
+ if (use_y_ruler && (ix + offset_x) % ruler_spacing_x == 0) {
+ bool top = iy + offset... |
viostor: packed ring handle VIRTIO_F_RING_PACKED properly | @@ -139,6 +139,11 @@ RhelScsiGetCapacity(
IN OUT PSRB_TYPE Srb
);
+VOID
+RhelSetGuestFeatures(
+ IN PVOID DeviceExtension
+);
+
UCHAR
RhelScsiVerify(
IN PVOID DeviceExtension,
@@ -357,10 +362,6 @@ VirtIoFindAdapter(
ConfigInfo->InterruptSynchronizationMode=InterruptSynchronizePerMessage;
#endif
- ConfigInfo->NumberOfBu... |
[core] fix chunked decoding from backend (fixes
(thx flynn)
x-ref:
"Socket errors after update to version 1.4.56" | @@ -420,6 +420,7 @@ http_chunk_decode_append_data (request_st * const r, const char *mem, off_t len)
len -= hsz;
te_chunked += 2; /*(for trailing "\r\n" after chunked data)*/
+ if (0 == len) break;
}
if (te_chunked >= 2) {
@@ -437,7 +438,13 @@ http_chunk_decode_append_data (request_st * const r, const char *mem, off_t ... |
comp: remove TODOs | @@ -293,10 +293,8 @@ static long bio_zlib_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp);
static const BIO_METHOD bio_meth_zlib = {
BIO_TYPE_COMP,
"zlib",
- /* TODO: Convert to new style write function */
bwrite_conv,
bio_zlib_write,
- /* TODO: Convert to new style read function */
bread_conv,
bio_zlib_read,
NULL, /* ... |
travis: add clang-9 build | @@ -25,6 +25,20 @@ jobs:
arch: amd64
compiler: clang
+ - name: "clang-9"
+ compiler: clang-9
+ env:
+ - C_COMPILER=clang-9
+ - CXX_COMPILER=clang++-9
+ - COMPILER_FLAGS='-fsanitize=address,undefined'
+ addons:
+ apt:
+ sources:
+ sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
+ key_url: 'htt... |
ELF loader initializes program break | @@ -234,6 +234,7 @@ void elf_load_file(char* name, FILE* elf, char** argv) {
elf->machine_state = (task_context_t*)stack_top;
elf->sbrk_current_break = prog_break;
elf->bss_segment_addr = bss_loc;
+ elf->sbrk_current_page_head = (elf->sbrk_current_break + PAGE_SIZE) & PAGING_PAGE_MASK;
elf->name = strdup(name);
//print... |
Silence overly-pessimistic compiler warning.
The parsed_version structure will be fully filled in if parse_version
returns a non-zero value, but initializing the variable to zero is a
trivial cost for the tests. | @@ -5696,7 +5696,8 @@ versions_equal(const XML_Expat_Version *first,
START_TEST(test_misc_version)
{
XML_Expat_Version read_version = XML_ExpatVersionInfo();
- XML_Expat_Version parsed_version;
+ /* Silence compiler warning with the following assignment */
+ XML_Expat_Version parsed_version = { 0, 0, 0 };
const XML_LCh... |
Raspberry GPIO: moved digitalWrite(0, HIGH) from processpackets() and processrcascan() to globalclose() | @@ -351,6 +351,10 @@ static void globalclose()
static struct ifreq ifr;
char *gpsd_disable = "?WATCH={\"enable\":false}";
+#ifdef DOGPIOSUPPORT
+digitalWrite(0, HIGH);
+#endif
+
memset(&ifr, 0, sizeof(ifr));
strncpy(ifr.ifr_name, interfacename, IFNAMSIZ -1);
ioctl(fd_socket, SIOCSIFFLAGS, &ifr);
@@ -3506,7 +3510,6 @@ w... |
tree data BUGFIX skip schema-only nodes | @@ -1559,8 +1559,8 @@ lyd_find_schema_ctx(const struct lysc_node *schema, const struct ly_ctx *trg_ctx
do {
/* find the next parent */
sp = schema;
- while (sp->parent != src_parent) {
- sp = sp->parent;
+ while (lysc_data_parent(sp) != src_parent) {
+ sp = lysc_data_parent(sp);
}
src_parent = sp;
|
v2.0.36 landed | -ejdb2 (2.0.36) UNRELEASED; urgency=medium
+ejdb2 (2.0.36) testing; urgency=medium
* Implemented Swift language binding #267
* Ported to iOS
@@ -6,7 +6,7 @@ ejdb2 (2.0.36) UNRELEASED; urgency=medium
* Upgraded to facil.io 0.7.4
* Improved ejdb2.h documentation
- -- Anton Adamansky <adamansky@gmail.com> Tue, 24 Dec 2019... |
doc: Fix post_link_cmds newt extcmd documentation
The `post_build_cmds` step was renamed to `post_link_cmds` with
Fix extcmd documentation appropriately. | @@ -6,7 +6,7 @@ three types of commands:
1. pre_build_cmds (run before the build)
2. pre_link_cmds (run after compilation, before linking)
-3. post_build_cmds (run after the build)
+3. post_link_cmds (run after linking)
Example
~~~~~~~
@@ -22,8 +22,8 @@ Example (apps/blinky/pkg.yml):
pkg.pre_link_cmds:
scripts/pre_link... |
test: DRBG test with long seed.
Fixes: | # and continue until a blank line. Lines starting with a pound sign,
# like this prolog, are ignored.
+# Test vector from NISTs CAVP tool
+
+Title = CAVP Large Seed
+
+RAND = CTR-DRBG
+Cipher = AES-192-CTR
+DerivationFunction = 1
+PredictionResistance = 1
+GenerateBits = 256
+Entropy.0 = 22ED7A66C9E9F494C8D2B8F81D0D49B... |
allow unanswers
Note: mandatory check (NEED_CHECK) was skipped | #include "maybe_traits.h"
#include "yexception.h"
+#include "bt_exception.h"
#include <util/system/align.h>
#include <util/stream/output.h>
namespace NMaybe {
struct TPolicyUndefinedExcept {
static void OnEmpty() {
- ythrow yexception() << AsStringBuf("TMaybe is empty");
+ ythrow TWithBackTrace<yexception>() << AsStrin... |
Fix reinit tracking noise | @@ -660,6 +660,7 @@ static void survive_kalman_tracker_config(SurviveKalmanTracker *tracker, survive
}
void survive_kalman_tracker_reinit(SurviveKalmanTracker *tracker) {
+ memset(&tracker->stats, 0, sizeof(tracker->stats));
tracker->report_ignore_start_cnt = 0;
tracker->last_light_time = 0;
@@ -840,6 +841,7 @@ void su... |
adc: fix cal addr for f722 | @@ -22,8 +22,10 @@ extern profile_t profile;
static uint16_t adc_calibration_value() {
#if defined(STM32F4)
return *((uint16_t *)0x1FFF7A2A);
-#elif defined(STM32F7)
+#elif defined(STM32F745) || defined(STM32F765)
return *((uint16_t *)0x1FF0F44A);
+#elif defined(STM32F722)
+ return *((uint16_t *)0x1FF07A2A);
#endif
}
|
intercept helpmenu when completing xrepo install | @@ -32,6 +32,11 @@ end
function main(complete, opt)
local prefix = ""
+ -- if help menu, do nothing
+ if opt.helpmenu then
+ return {}
+ end
+
-- check prefix if present
if complete:find("::", 1, true) then
prefix = complete:sub(1, complete:find("::", 1, true) - 1)
|
gpgme: fix memory leak | @@ -160,6 +160,23 @@ static void keylistRelease (keylist_t * list)
list->size = 0;
}
+/*
+ * @brief invoke gpgme_key_unref on all keys and free the array.
+ * @param recipients the array to be released.
+ */
+static void freeRecipientArray (gpgme_key_t * recipients)
+{
+ unsigned long index = 0;
+ if (recipients)
+ {
+... |
libcupsfilters: Silenced warnings and added error handling when reading EXIF
The code to read an image resolution from the images EXIF data (PR
Use "unsigned char" consistemtly
Error handling for fread(), in case of error return NULL buffer
Free buffer after use | static int flush_tile(cf_image_t *img);
static cf_ib_t *get_tile(cf_image_t *img, int x, int y);
static void trim_spaces(char *buf);
-static char *find_bytes(FILE *fp, int *size);
+static unsigned char *find_bytes(FILE *fp, long int *size);
/*
* 'cfImageClose()' - Close an image file.
@@ -901,9 +901,9 @@ static void tr... |
Len() for lists | @@ -1221,12 +1221,14 @@ static Value lenNative(int argCount, Value *args) {
return NIL_VAL;
}
- if (!IS_STRING(args[0])) {
- runtimeError("len() only takes strings as an argument.", argCount);
- return NIL_VAL;
+ if (IS_STRING(args[0])) {
+ return NUMBER_VAL(AS_STRING(args[0])->length);
+ } else if (IS_LIST(args[0])) {... |
fix a memory leak in ssl3_generate_key_block fix the error handling in ssl3_change_cipher_state | @@ -61,10 +61,10 @@ static int ssl3_generate_key_block(SSL *s, unsigned char *km, int num)
EVP_MD_CTX_set_flags(m5, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW);
for (i = 0; (int)i < num; i += MD5_DIGEST_LENGTH) {
k++;
- if (k > sizeof buf) {
+ if (k > sizeof(buf)) {
/* bug: 'buf' is too small for this ciphersuite */
SSLerr(SSL_F_S... |
garden: hark-store typo | (archive-lid seen/~ seen)
++ archive-lid
|= [=lid:store =timebox:store]
- %+ roll ~(tap ~(key by timebox))
+ %+ roll ~(tap in ~(key by timebox))
|= [=bin:store out=_poke-core]
(do-archive:out lid bin)
--
|
libcupsfilters: Silenced compiler warning in ghostscript() | @@ -1193,7 +1193,7 @@ ghostscript(int inputfd, /* I - File descriptor input stream */
}
else if(!strncasecmp(val, "Device", 6))
{
- char *ptr = val+6;
+ const char *ptr = val + 6;
if(strtol(ptr, (char **)&ptr, 10)>1) /* Printer seems to support more then 1 color */
{
pxlcolor = 1;
|
rename TweakDB flatDataBufferSize -> flatDataBufferCapacity | @@ -89,7 +89,7 @@ void InitializeFlatValuePools()
}
std::shared_lock<RED4ext::SharedMutex> _(pTDB->mutex00);
- if (pTDB->flatDataBufferSize == 0) return; // TweakDB is not initialized yet
+ if (pTDB->flatDataBufferCapacity == 0) return; // TweakDB is not initialized yet
for (RED4ext::TweakDBID& flatID : pTDB->flats)
{
... |
bricks/virtualhub: Disable unused modules.
There is no virtual driver for these, so these modules cannot be enabled. | #define PYBRICKS_PY_COMMON (1)
#define PYBRICKS_PY_COMMON_CHARGER (1)
#define PYBRICKS_PY_COMMON_CONTROL (1)
-#define PYBRICKS_PY_COMMON_IMU (1)
+#define PYBRICKS_PY_COMMON_IMU (0)
#define PYBRICKS_PY_COMMON_KEYPAD (1)
-#define PYBRICKS_PY_COMMON_LIGHT_MATRIX (1)
+#define PYBRICKS_PY_COMMON_LIGHT_MATRIX (0)
#define PYB... |
landscape - safari theme-color prefers-color-scheme dark + fallbacks | <meta name="apple-mobile-web-app-status-bar-style" content="default" />
<link rel="apple-touch-icon" href="/~landscape/img/touch_icon.png">
<link rel="icon" type="image/png" href="/~landscape/img/Favicon.png">
+ <meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
+ <meta name="theme-colo... |
req: fix default bits handling for -newkey
Fixes | @@ -1587,6 +1587,7 @@ static EVP_PKEY_CTX *set_keygen_ctx(const char *gstr,
*pkeytype = OPENSSL_strndup(keytype, keytypelen);
else
*pkeytype = OPENSSL_strdup(keytype);
+ if (keylen >= 0)
*pkeylen = keylen;
if (param != NULL) {
@@ -1626,6 +1627,10 @@ static EVP_PKEY_CTX *set_keygen_ctx(const char *gstr,
EVP_PKEY_CTX_fre... |
better line about fix suggestion | @@ -628,8 +628,8 @@ run_daemon(const char* cfgfile, int cmdline_verbose, int debug_mode, const char*
if(!config_read(cfg, cfgfile, daemon->chroot)) {
if(errno != ENOENT)
fatal_exit("Could not read config file: %s."
- " With unbound -dd it stays on the "
- "commandline to see more errors, "
+ " Maybe try unbound -dd, it... |
ttf: add Font.RenderGlyph* methods | @@ -7,9 +7,12 @@ package ttf
// TTF_SetError("%s", str);
//}
import "C"
-import "github.com/veandco/go-sdl2/sdl"
-import "unsafe"
-import "errors"
+import (
+ "errors"
+ "unsafe"
+
+ "github.com/veandco/go-sdl2/sdl"
+)
// Hinting settings.
const (
@@ -198,6 +201,43 @@ func (f *Font) SizeUTF8(text string) (int, int, err... |
Fix incorrect storage size for loop counter
When drawing chart lines/points/columns, execution will stay in loop forever when point count > 255.
The loop counter i was set to uint8_t when it should be the same size as point_cnt, uint16_t. | @@ -514,7 +514,7 @@ static void lv_chart_draw_lines(lv_obj_t * chart, const lv_area_t * mask)
{
lv_chart_ext_t * ext = lv_obj_get_ext_attr(chart);
- uint8_t i;
+ uint16_t i;
lv_point_t p1;
lv_point_t p2;
lv_coord_t w = lv_obj_get_width(chart);
@@ -562,7 +562,7 @@ static void lv_chart_draw_points(lv_obj_t * chart, const... |
freerots: fix rtos_int_exit writing outside ISR stack
rtos_int_exit would store RA at an offset of 4 byte from the SP,
where the offset should be 0.
This caused rtos_int_exit to overwrite variables in bss. | @@ -90,9 +90,9 @@ isr_skip_decrement:
/* preserve return address and schedule next task */
addi sp,sp,-4
- sw ra, 0x04(sp)
+ sw ra, 0(sp)
call vTaskSwitchContext
- lw ra, 0x04(sp)
+ lw ra, 0(sp)
addi sp, sp, 4
/* Clears the switch pending flag */
|
Disable client cert for gnutls tests | @@ -8763,6 +8763,7 @@ run_test "export keys functionality" \
# openssl feature tests: check if tls1.3 exists.
requires_openssl_tls1_3
+requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL
run_test "TLS1.3: Test openssl tls1_3 feature" \
"$O_NEXT_SRV -tls1_3 -msg" \
"$O_NEXT_CLI -tls1_3 -msg" \
@@ -8774,8 +8775... |
vere: decrement %lull and %zuse kelvins | @@ -669,8 +669,8 @@ _pier_wyrd_fail(u3_pier* pir_u, u3_ovum* egg_u, u3_noun lud)
// XX organizing version constants
//
#define VERE_NAME "vere"
-#define VERE_ZUSE 418
-#define VERE_LULL 329
+#define VERE_ZUSE 417
+#define VERE_LULL 328
/* _pier_wyrd_aver(): check for %wend effect and version downgrade. RETAIN
*/
|
remove zeorize from keys | @@ -1440,9 +1440,6 @@ int mbedtls_ssl_tls13_generate_application_keys(
handshake->tls13_master_secrets.app,
transcript, transcript_len,
app_secrets );
- /* Erase master secrets */
- mbedtls_platform_zeroize( &ssl->handshake->tls13_master_secrets,
- sizeof( ssl->handshake->tls13_master_secrets ) );
if( ret != 0 )
{
MBED... |
WIP simplified conditionals, still dies, appears stateful? | @@ -1694,57 +1694,52 @@ u3r_mug(u3_noun veb)
c3_w a;
c3_w b;
u3a_noun* veb_u;
+ u3_noun hed, tal;
while ( don != fam ) {
a = fam->a;
b = fam->b;
veb = fam->veb;
veb_u = u3a_to_ptr(veb);
+ //u3m_p("veb", veb);
+ c3_assert(_(u3a_is_cell(veb)));
- // both head and tail are mugged; combine them and pop stack
+ // already m... |
Bump version 2.04.53 | @@ -57,7 +57,7 @@ GIT_COMMIT = $$system("git rev-list HEAD --max-count=1")
# Version Major.Minor.Build
# Important: don't change the format of this line since it's parsed by scripts!
-DEFINES += GW_SW_VERSION=\\\"2.04.52\\\"
+DEFINES += GW_SW_VERSION=\\\"2.04.53\\\"
DEFINES += GW_API_VERSION=\\\"1.0.1\\\"
DEFINES += GI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.