message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
sysrepoctl BUGFIX list imports of submodules | @@ -178,11 +178,12 @@ srctl_list_collect(sr_conn_ctx_t *conn, struct lyd_node *sr_data, const struct l
{
struct list_item *cur_item;
const struct lys_module *ly_mod;
+ const struct lys_submodule *ly_submod;
struct lyd_node *module, *child;
char *owner, *group;
const char *str;
int ret = SR_ERR_OK;
- uint32_t i;
+ uint3... |
+expect-eq now produces a +tang | :- %noun
=+ tester:tester
|^
-^- wall
+^- tang
;: weld
test-is-schematic-live
test-date-from-schematic
title=@tas
contents=tape
==
- ^- wall
+ ^- tang
::
?> ?=([* %give %made @da %complete %result ^ *] move)
=/ result result.p.card.move
::
++ expect-ford-empty
|= [ford=_(ford-turbo) ship=@p]
- ^- wall
+ ^- tang
%- expe... |
hw/mcu/dialog: Add PDC helper to check if PDC entry is pending | #ifndef __MCU_DA1469X_PDC_H_
#define __MCU_DA1469X_PDC_H_
+#include <stdbool.h>
#include <stdint.h>
#include "DA1469xAB.h"
@@ -127,6 +128,19 @@ da1469x_pdc_set(int idx)
PDC->PDC_SET_PENDING_REG = idx;
}
+/**
+ * Check if PDC lookup table entry is pending
+ *
+ * @param idx Entry index
+ *
+ * @return true if entry is p... |
Fix CID 168615 | @@ -196,10 +196,12 @@ main(int argc, char *argv[])
#ifdef _WIN32
if ((fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == INVALID_SOCKET) {
printf("socket() failed with error: %d\n", WSAGetLastError());
+ exit(EXIT_FAILURE);
}
#else
if ((fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
perror("socket");
+ exit(EXIT_... |
Remove lxml from pip bundle packages | @@ -72,7 +72,7 @@ if False:
OLD_SITE_PACKAGES_FOLDER = os.path.expanduser('~/Documents/{}'.format(OLD_SITE_PACKAGES_DIR_NAME))
else:
- BUNDLED_MODULES = ['certifi', 'chardet', 'colorama', 'cycler', 'dateutil', 'distlib', 'idna', 'ipaddress', 'jedi', 'lockfile', 'matplotlib', 'numpy', 'pandas', 'setuptools', 'progress',... |
threadstest: use locking for tsan operations if required
Not all platforms support tsan operations, those that don't need to have an
alternative locking path.
Fixes | @@ -44,7 +44,11 @@ static const char *default_provider[] = { "default", NULL };
static const char *fips_provider[] = { "fips", NULL };
static const char *fips_and_default_providers[] = { "default", "fips", NULL };
-/* Grab a globally unique integer value */
+#ifdef TSAN_REQUIRES_LOCKING
+static CRYPTO_RWLOCK *tsan_lock... |
_libssh2_check_length() : additional bounds check
Misc.c : _libssh2_check_length()
Ensure the requested length is less than the total length before doing the additional bounds check | @@ -811,6 +811,9 @@ int _libssh2_get_bignum_bytes(struct string_buf *buf, unsigned char **outbuf)
int _libssh2_check_length(struct string_buf *buf, size_t len)
{
+ if(len > buf->len)
+ return 0;
+
return ((int)(buf->dataptr - buf->data) <= (int)(buf->len - len)) ? 1 : 0;
}
|
feat: if there are pendings file descriptors, wait a little more to close | @@ -423,7 +423,7 @@ ws_send_text(struct websockets *ws, char text[], size_t len)
"WS_SEND_TEXT");
if (WS_CONNECTED != ws->status) {
- log_error("[%s] Failed attempt to send 'ws_send_text()'", ws->tag);
+ log_error("[%s] Failed to send '%.*s'", ws->tag, len, text);
return false;
}
@@ -460,14 +460,6 @@ ws_perform(struct ... |
doccords: update language in lib/deco | :: > =deco -build-file %/lib/deco/hoon
:: > # deco
:: > # deco/arch
-:: > # deco/arch/model
-:: > # deco/arch/model/goof
+:: > # deco/arch/molds
+:: > # deco/arch/molds/goof
::
:: > ?? *goof:deco
::
:> but compile-time evaluation doesnt work in the current
:> core; we often want to statically evaluate structures.
:>
- ... |
vppapigen: crcchecker: report deprecated messages
Report if the messages were marked as deprecated,
but not yet deleted.
Useful for building the release notes and comparing
between the releases.
Also, put the dict_compare() call into the report(),
since latter always consumes the output of the former.
Type: improvement | @@ -107,7 +107,8 @@ def is_in_progress(d, k):
except:
return False
-def report(old, new, added, removed, modified, same):
+def report(new, old):
+ added, removed, modified, same = dict_compare(new, old)
backwards_incompatible = 0
for k in added:
print(f'added: {k}')
@@ -126,6 +127,17 @@ def report(old, new, added, remo... |
version T13.826: fixed version of -l flag | -/* cheatcoin main, T13.654-T13.825 $DVS:time$ */
+/* cheatcoin main, T13.654-T13.826 $DVS:time$ */
#include <stdio.h>
#include <stdlib.h>
@@ -345,6 +345,7 @@ static int out_balances(void) {
unsigned i = 0;
cheatcoin_set_log_level(0);
xdag_mem_init((cheatcoin_main_time() - cheatcoin_start_main_time()) << 8);
+ cheatcoi... |
adding new EFAS/GLOFAS streams | 1059 efcl European Flood Awareness System (EFAS) climatology
1060 wfas Global flood awareness system (GLOFAS)
1061 wfcl Global flood awareness system (GLOFAS) climatology
+1062 wfse Global flood awareness system (GLOFAS) seasonal forecasts
+1063 efrf European Flood Awareness System (EFAS) reforecasts
+1064 efsr Europea... |
python: add safety param arg to set_safety_mode | @@ -480,8 +480,8 @@ class Panda(object):
self._handle.controlWrite(Panda.REQUEST_OUT, 0xda, int(bootmode), 0, b'')
time.sleep(0.2)
- def set_safety_mode(self, mode=SAFETY_SILENT, disable_checks=True):
- self._handle.controlWrite(Panda.REQUEST_OUT, 0xdc, mode, 0, b'')
+ def set_safety_mode(self, mode=SAFETY_SILENT, para... |
mpi-families/mvapich2: require zlib-devel at build | @@ -68,6 +68,7 @@ Requires: prun%{PROJ_DELIM}
BuildRequires: bison
BuildRequires: libibmad-devel
+BuildRequires: zlib-devel
# Default library install path
%define install_path %{OHPC_MPI_STACKS}/%{pname}-%{compiler_family}/%version
|
Update Max Connection memory usage to support Round 3 KEM Groups | @@ -61,7 +61,7 @@ int main(int argc, char **argv)
*/
{
/* Carefully consider any increases to this number. */
- const uint16_t max_connection_size = 18700;
+ const uint16_t max_connection_size = 19584;
const uint16_t min_connection_size = max_connection_size * 0.75;
size_t connection_size = sizeof(struct s2n_connection... |
esp32/machine_hw_spi: Use separate DMA channels for HSPI and VSPI.
Otherwise only one of HSPI or VSPI can be used at a time. Fixes
issue | @@ -186,9 +186,16 @@ STATIC void machine_hw_spi_init_internal(
};
//Initialize the SPI bus
- // FIXME: Does the DMA matter? There are two
- ret = spi_bus_initialize(self->host, &buscfg, 1);
+ // Select DMA channel based on the hardware SPI host
+ int dma_chan = 0;
+ if (self->host == HSPI_HOST) {
+ dma_chan = 1;
+ } el... |
libuv is included when compiling photon
Authored-by: Brent Doil | @@ -108,7 +108,7 @@ function include_libuv() {
local includedir=/usr/include
local libdir
case "${OS}" in
- centos | sles) libdir=/usr/lib64 ;;
+ centos | sles | photon) libdir=/usr/lib64 ;;
ubuntu) libdir=/usr/lib/x86_64-linux-gnu ;;
*) return ;;
esac
|
mesh/proxy: Fix connection handle when disconnected | @@ -641,7 +641,7 @@ static void proxy_disconnected(uint16_t conn_handle, int reason)
bt_mesh_pb_gatt_close(conn_handle);
}
- client->conn_handle = 0;
+ client->conn_handle = BLE_HS_CONN_HANDLE_NONE;
break;
}
}
|
media:Init reference count in PlayerObserverWorker
mRefCnt should be initialized as zero | @@ -24,9 +24,10 @@ namespace media {
std::unique_ptr<PlayerObserverWorker> PlayerObserverWorker::mWorker;
std::once_flag PlayerObserverWorker::mOnceFlag;
-PlayerObserverWorker::PlayerObserverWorker()
+PlayerObserverWorker::PlayerObserverWorker() : mRefCnt{0}
{
}
+
PlayerObserverWorker::~PlayerObserverWorker()
{
}
|
Update sedem image
r6538497 by SEDEM - Garden/baseimage basic support
r6539402 by Revert "SEDEM - Garden/baseimage basic support" | },
"sedem": {
"formula": {
- "sandbox_id": 639376770,
+ "sandbox_id": 639983201,
"match": "SEDEM archive"
},
"executable": {
|
Fixed catboost/python-package/ut/medium/gpu test | @@ -29,7 +29,7 @@ SIZE(LARGE)
IF (SANITIZER_TYPE)
TAG(ya:fat ya:not_autocheck)
ELSE()
- TAG(ya:fat ya:yt ya:noretries)
+ TAG(ya:fat ya:yt ya:noretries ya:force_distbuild)
ENDIF()
YT_SPEC(catboost/pytest/cuda_tests/yt_spec.json)
|
fix python-package get_object_importance doc | @@ -1161,7 +1161,7 @@ class CatBoost(_CatBoostBase):
- PerPool (Method returns the mean train objects scores for all input objects)
- PerObject (Method returns the train objects scores for every input object)
- importance_values_sign : string, optional (default='Both')
+ importance_values_sign : string, optional (defau... |
rpz-triggers, check for alloc failure and zone for add rpz soa. | @@ -1637,6 +1637,7 @@ rpz_add_soa(struct reply_info* rep, struct module_qstate* ms,
struct auth_rrset* soa = NULL;
struct ub_packed_rrset_key* rsoa = NULL;
struct ub_packed_rrset_key** prevrrsets;
+ if(!az) return 1;
soa = auth_zone_get_soa_rrset(az);
if(!soa) return 1;
if(!rep) return 0;
@@ -1645,6 +1646,8 @@ rpz_add_... |
prov: support param argument to null cipher init calls | @@ -38,7 +38,8 @@ static void null_freectx(void *vctx)
static OSSL_FUNC_cipher_encrypt_init_fn null_einit;
static int null_einit(void *vctx, const unsigned char *key, size_t keylen,
- const unsigned char *iv, size_t ivlen)
+ const unsigned char *iv, size_t ivlen,
+ const OSSL_PARAM params[])
{
PROV_CIPHER_NULL_CTX *ctx... |
[chainmaker] add BoatChainmakerWallet struct | @@ -110,6 +110,29 @@ typedef struct TBoatChainmakerWalletConfig
BoatChainmakerNode node_info;
}BoatChainmakerWalletConfig;
+//!chainmaker key pairs structure
+typedef struct TBoatChainmakerKeyPair {
+ BoatWalletPriKeyCtx prikeyCtx; //!< @NOTE This field MUST BE placed in the first member of the structure //!< because i... |
io-libs/pnetcdf: bump to v1.12.0 | Summary: A Parallel NetCDF library (PnetCDF)
Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 1.11.1
+Version: 1.12.0
%global sonum 1
Release: 1%{?dist}
License: NetCDF
|
Inline remapping function.
Easier to read, clearer what's going on. | @@ -513,15 +513,17 @@ tysearch(Type *t)
return t;
}
+/* Look up the best type to date in the unification table, returning it */
static Type *
-remapping(Type *t)
+tylookup(Type *t)
{
- Stab *ns;
Type *lu;
+ Stab *ns;
- if (t->type != Tyunres)
- return NULL;
-
+ assert(t != NULL);
+ lu = NULL;
+ while (1) {
+ if (!tytab... |
framesync64: checking frame data statistics | @@ -37,11 +37,7 @@ static int callback(unsigned char * _header,
//printf("callback invoked, payload valid: %s\n", _payload_valid ? "yes" : "no");
int * frame_recovered = (int*) _userdata;
- if (_header_valid && _payload_valid)
- *frame_recovered = 1;
- else
- *frame_recovered = 0;
-
+ *frame_recovered = _header_valid &... |
update keyCopy
add copying of binary metakey
flags == 0 is NOP (apart from sync flag)
source == NULL is different from keyClear
allow clearing parts of key | @@ -269,10 +269,13 @@ Key * keyVNew (const char * name, va_list va)
* Since metadata uses copy-on-write semantics there is only a
* constant memory cost to copying metadata.
*
- * When you pass a NULL-pointer as @p source the data of @p dest
- * will be cleared. This is different from keyClear(). The key
- * will not b... |
Make Release build default
Now that we have separate compiler flags for debug/release builds,
this patch set the default build mode to Release. | @@ -16,6 +16,10 @@ IF (WITH_DTRACE)
MESSAGE(STATUS "Enabling USDT support")
ENDIF ()
+# CMake defaults to a Debug build, whereas quicly defaults to an optimized (Release) build
+IF(NOT CMAKE_BUILD_TYPE)
+ SET(CMAKE_BUILD_TYPE Release)
+ENDIF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_C_FLAGS "-std=c99 -Wall -g ${CC_WARNING_FLAGS}... |
in_disk: fix packer variable | @@ -170,18 +170,18 @@ static int in_disk_collect(struct flb_input_instance *i_ins,
msgpack_packer_init(&mp_pck, &mp_sbuf, msgpack_sbuffer_write);
/* Pack data */
- msgpack_pack_array(&i_ins->mp_pck, 2);
- flb_pack_time_now(&i_ins->mp_pck);
- msgpack_pack_map(&i_ins->mp_pck, num_map);
+ msgpack_pack_array(&mp_pck, 2);
+... |
libc: Support mmap() offsets | @@ -666,6 +666,7 @@ void *mmap(void *hint, size_t size, int prot, int flags, int fd, off_t offset) {
managarm::fs::CntRequest<MemoryAllocator> req(getAllocator());
req.set_req_type(managarm::fs::CntReqType::MMAP);
req.set_fd(fd);
+ req.set_rel_offset(offset);
frigg::String<MemoryAllocator> ser(getAllocator());
req.Seri... |
libc: Implement pthread_mutex_destroy() | @@ -309,9 +309,9 @@ int pthread_mutex_init(pthread_mutex_t *__restrict mutex,
return 0;
}
-int pthread_mutex_destroy(pthread_mutex_t *) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
+int pthread_mutex_destroy(pthread_mutex_t *mutex) {
+ __ensure(!mutex->__mlibc_state);
+ return 0;
}
int pthread_mutex_loc... |
pyocf: Add missing error codes | @@ -52,6 +52,8 @@ class OcfErrorCode(IntEnum):
OCF_ERR_CORE_UUID_EXISTS = auto()
OCF_ERR_METADATA_LAYOUT_MISMATCH = auto()
OCF_ERR_CACHE_LINE_SIZE_MISMATCH = auto()
+ OCF_ERR_CACHE_STANDBY = auto()
+ OCF_ERR_FAILOVER_ATTACHED = auto()
class OcfCompletion:
|
removed illegal host accesses to device pointers that are created with use_device_ptr. I modified the write statements to show the value of the pointer within a use_device_ptr. This cannot be accessed on the host | @@ -16,12 +16,11 @@ program test
x(i)=2
enddo
- write(0, *) "before device_ptr ", x(1)
+ write(0, *) "before td use_device_ptr loc(x(1))=", loc(x(1))
!$omp target data use_device_ptr(x)
- write(0, *) "in device_ptr", x(1)
- if (x(1) .ne. 1) write (0,*) 'FAILED wrong def on x(1)', x(1)
- stop
+ write(0, *) " in td use_d... |
print sha256 before upload to build server | @@ -18,6 +18,7 @@ matrix:
- OS_FOLDER=mac
after_success:
- tar -cvzf tic80.tar.gz --directory=$HOME/build/nesbox/TIC-80/out/bin tic80
+ - sha256sum tic80.tar.gz
- curl --retry 3 --ftp-create-dirs -T tic80.tar.gz $BUILDS_SERVER_PATH/
- os: linux
@@ -31,6 +32,7 @@ matrix:
- OS_FOLDER=linux
after_success:
- tar -cvzf tic8... |
tests: internal: sinv4: added config initialization to
prevent macos crashes. | */
#include <fluent-bit/flb_info.h>
+#include <fluent-bit/flb_config.h>
#include <fluent-bit/flb_mem.h>
#include <fluent-bit/flb_kv.h>
#include <fluent-bit/flb_http_client.h>
@@ -79,6 +80,19 @@ struct aws_test {
struct mk_list _head;
};
+static void initialization_crutch()
+{
+ struct flb_config *config;
+
+ config = f... |
Adapting rhoapi.js for working with MSIE version 6.0-8.0 | @@ -497,7 +497,7 @@ var Rho = Rho || (function ($) {
};
(function propertySupportCheck() {
- propsSupport.ffHackKeywords = (function supported_firefoxHack_keywords() {
+/* propsSupport.ffHackKeywords = (function supported_firefoxHack_keywords() {
var testObj = {};
var okGet = false;
var okSet = false;
@@ -514,7 +514,7 ... |
channel: cleaning method comments in global header | @@ -433,10 +433,10 @@ void CHANNEL(_print)(CHANNEL() _q); \
\
/* apply additive white Gausss noise impairment */ \
/* _q : channel object */ \
-/* _noise_floor_dB : noise floor power spectral density */ \
-/* _SNR_dB : signal-to-noise ratio [dB] */ \
+/* _N0dB : noise floor power spectral density [dB] */ \
+/* _SNRdB :... |
Don't free in cleanup routine
Cleanse instead, and free in the free routine.
Seems to have been introduced in commit
when EVP_CIPHER_CTX was made
opaque. | @@ -60,7 +60,7 @@ CMAC_CTX *CMAC_CTX_new(void)
void CMAC_CTX_cleanup(CMAC_CTX *ctx)
{
- EVP_CIPHER_CTX_free(ctx->cctx);
+ EVP_CIPHER_CTX_cleanup(ctx->cctx);
OPENSSL_cleanse(ctx->tbl, EVP_MAX_BLOCK_LENGTH);
OPENSSL_cleanse(ctx->k1, EVP_MAX_BLOCK_LENGTH);
OPENSSL_cleanse(ctx->k2, EVP_MAX_BLOCK_LENGTH);
@@ -78,6 +78,7 @@ ... |
It isn't necessary to initialise a struct stat before a stat(2) system call.
The initialisation was also flawed, failing to account for padding and
alignment bytes. | @@ -669,7 +669,7 @@ static int str_copy(CONF *conf, char *section, char **pto, char *from)
static BIO *process_include(char *include, OPENSSL_DIR_CTX **dirctx,
char **dirpath)
{
- struct stat st = { 0 };
+ struct stat st;
BIO *next;
if (stat(include, &st) < 0) {
|
Use MediaFormat constant for MIME type
Replace "video/avc" by MIMETYPE_VIDEO_AVC. | @@ -136,12 +136,12 @@ public class ScreenEncoder implements Device.RotationListener {
}
private static MediaCodec createCodec() throws IOException {
- return MediaCodec.createEncoderByType("video/avc");
+ return MediaCodec.createEncoderByType(MediaFormat.MIMETYPE_VIDEO_AVC);
}
private static MediaFormat createFormat(in... |
docs: Added documentation for Pican2 Duo support
Added documentation for ENABLE_DUAL_CAN build configuration and support
for Pican2 Duo board. | @@ -261,6 +261,13 @@ In order to use Pican2 CAN module, set the following variables:
See: <http://skpang.co.uk/catalog/pican2-canbus-board-for-raspberry-pi-23-p-1475.html>
+In order to use Pican2 Duo CAN module, set the following variables:
+
+ ENABLE_SPI_BUS = "1"
+ ENABLE_DUAL_CAN = "1"
+
+See: <http://skpang.co.uk/c... |
Add os/remove. | @@ -607,6 +607,17 @@ static Janet os_dir(int32_t argc, Janet *argv) {
return janet_wrap_array(paths);
}
+static Janet os_rename(int32_t argc, Janet *argv) {
+ janet_fixarity(argc, 2);
+ const char *src = janet_getcstring(argv, 0);
+ const char *dest = janet_getcstring(argv, 1);
+ int status = rename(src, dest);
+ if (s... |
Do not print scrcpy version twice on --version
Refs | static void
print_version(void) {
- fprintf(stderr, "scrcpy %s\n\n", SCRCPY_VERSION);
-
- fprintf(stderr, "dependencies:\n");
+ fprintf(stderr, "\ndependencies:\n");
fprintf(stderr, " - SDL %d.%d.%d\n", SDL_MAJOR_VERSION, SDL_MINOR_VERSION,
SDL_PATCHLEVEL);
fprintf(stderr, " - libavcodec %d.%d.%d\n", LIBAVCODEC_VERSION... |
Fix The VMS variant of platform->staticname()
It was looking in the wrong place in %unified_info to determine if the
library would be installed or not. | @@ -39,7 +39,8 @@ sub staticname {
# Non-installed libraries are *always* static, and their names remain
# the same, except for the mandatory extension
my $in_libname = platform::BASE->staticname($_[1]);
- return $in_libname if $unified_info{attributes}->{$_[1]}->{noinst};
+ return $in_libname
+ if $unified_info{attrib... |
update the comment (nng_msgq_put_until doesn't exists anymore) | @@ -41,8 +41,7 @@ extern void nni_msgq_aio_put(nni_msgq *, nni_aio *);
extern void nni_msgq_aio_get(nni_msgq *, nni_aio *);
// nni_msgq_tryput performs a non-blocking attempt to put a message on
-// the message queue. It is the same as calling nng_msgq_put_until with
-// a zero time.
+// the message queue.
extern int n... |
io-libs/pnetcdf: bump version to v1.9.0 | Summary: A Parallel NetCDF library (PnetCDF)
Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 1.8.1
+Version: 1.9.0
%global sonum 1
Release: 1%{?dist}
License: NetCDF
|
resgroup: reorder resource group struct properties
Reorder the resource group struct properties to reduce paddings and
cache line misses. | @@ -124,12 +124,12 @@ struct ResGroupProcData
{
Oid groupId;
+ int32 memUsage; /* memory usage of current proc */
+
ResGroupData *group;
ResGroupSlotData *slot;
ResGroupCaps caps;
-
- int32 memUsage; /* memory usage of current proc */
};
/*
@@ -144,13 +144,13 @@ struct ResGroupSlotData
{
Oid groupId;
- ResGroupCaps cap... |
linux-raspberrypi: Update 4.9 recipe to 4.9.59 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
-LINUX_VERSION ?= "4.9.50"
+LINUX_VERSION ?= "4.9.59"
-SRCREV = "46e2d4d1bd2c17e2f84dd90768321ee0bbaa6b8a"
+SRCREV = "e7976b2affa8c05bd299ead0ad9c36ddaf135b9d"
SRC_URI = "git://github.com/raspberrypi/linux.git;branch=rpi-4.9.y"
require linux-raspberrypi.inc
|
ames: enqueue %cork in alien-agenda | ++ on-cork
|= =ship
^+ event-core
+ =/ =plea [%$ /flow [%cork ~]]
=/ ship-state (~(get by peers.ames-state) ship)
- :: XX: should go in alien-agenda maybe?
?. ?=([~ %known *] ship-state)
- event-core
+ %+ enqueue-alien-todo ship
+ |= todos=alien-agenda
+ todos(messages [[duct plea] messages.todos])
=/ =peer-state +.u.s... |
FIX: could refer invalid memory space in trim_copy(). | @@ -51,10 +51,13 @@ static int trim_copy(char *dest, size_t size, const char *src,
/* Find the last non-escaped non-space character */
const char *lastchar = src + strlen(src) - 1;
+ if (lastchar < src) {
+ return -1;
+ }
while (lastchar > src && isspace(*lastchar)) {
lastchar--;
}
- if (lastchar < src || *lastchar == ... |
Actually try calling getrandom while configuring | @@ -29,9 +29,9 @@ if not have_getentropy
#include <asm/unistd.h>
#include <unistd.h>
#include <sys/syscall.h>
- int main() { return !syscall(SYS_getrandom, (void*)0, 0, 0); }
+ int main() { return !(syscall(SYS_getrandom, (void*)0, 0, 0) >= 0); }
'''
- getrandom = cc.links(code, name: 'getrandom syscall available')
+ g... |
MI volunteers | +
%
\RequirePackage{docswitch}
\setjournal{\flag}
@@ -135,7 +136,7 @@ and $a(\chi)$, the inverse of $\chi(a)$.
%-------------------------------------------------------------------------------
\subsection{Growth of perturbations}
-\vol{?}
+\vol{Mustapha Ishak}
To compute the growth function, $D(a)$, the growth factor of... |
Add packaging status
PR <https://github.com/Genymobile/scrcpy/pull/1650> | @@ -34,6 +34,7 @@ control it using keyboard and mouse.
## Get the app
+<a href="https://repology.org/project/scrcpy/versions"><img src="https://repology.org/badge/vertical-allrepos/scrcpy.svg" alt="Packaging status" align="right"></a>
### Linux
|
pbsys/light_matrix: fix animation location
Align run animation with stop icon, so we don't touch the slot index light at the bottom row. | @@ -50,7 +50,7 @@ void pbsys_hub_light_matrix_init() {
static uint32_t pbsys_hub_light_matrix_user_program_animation_next(pbio_light_animation_t *animation) {
// The indexes of pixels to light up
- static const uint8_t indexes[] = { 6, 7, 8, 13, 18, 17, 16, 11 };
+ static const uint8_t indexes[] = { 1, 2, 3, 8, 13, 12,... |
Have vertex normals filter not process datasets containing triangle strips. Resolves | @@ -134,6 +134,11 @@ avtVertexNormalsFilter::~avtVertexNormalsFilter()
// Re-integrated structured-grid specific normals calculation after
// fixing bug regarding VTK-8.
//
+// Kathleen Biagas, Wed Jul 31 11:21:38 PDT 2019
+// Since vtkVisItPolyDataNormals filter doesn't handle triangle strips,
+// and in fact removes ... |
u3: optimizes +lent jet, avoiding u3i_vint() while possible | */
#include "all.h"
-
-/* functions
-*/
u3_noun
u3qb_lent(u3_noun a)
{
- u3_noun len = 0;
+ if ( u3_nul == a ) {
+ return 0;
+ }
+
+ // loop until we overflow [len_w]
+ //
+ {
+ c3_w len_w = 1;
+
+ do {
+ a = u3t(a);
+
+ if ( u3_nul == a ) {
+ return u3i_words(1, &len_w);
+ }
+ }
+ while ( ++len_w );
+ }
+
+ // continu... |
microbit: Update URL to microbit.org website | @@ -29,4 +29,4 @@ const char daplink_url_name[11] = "MICROBITHTM";
__attribute__((aligned(4)))
const char daplink_drive_name[11] = "MICROBIT ";
__attribute__((aligned(4)))
-const char *const daplink_target_url = "https://www.microbit.co.uk/device?mbedcode=@B@V";
+const char *const daplink_target_url = "https://microbit... |
Treat HAPI strings as | @@ -174,7 +174,9 @@ class HAPIString
operator MString() const
{
- return myString.c_str();
+ MString mayaString;
+ mayaString.setUTF8(myString.c_str());
+ return mayaString;
}
template<typename T>
|
Fix typo in define comment | @@ -236,7 +236,7 @@ extern "C" {
/* Maximum depth to follow table prototypes before giving up and returning nil. */
#define JANET_MAX_PROTO_DEPTH 200
-/* Maximum depth to follow table prototypes before giving up and returning nil. */
+/* Prevent macros to expand too deeply and error out. */
#define JANET_MAX_MACRO_EXPA... |
Autotools: Add package name variable for expat.pc config file
Add _EXPAT_TARGET package name variable for expat.pc
package config file in automake. | @@ -307,6 +307,9 @@ AS_IF([test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno],
AM_CONDITIONAL(WITH_DOCBOOK, [test "x${DOCBOOK_TO_MAN}" != x])
+dnl updating _EXPAT_TARGET variable to effect the package name in expat.pc file (issue #361)
+AC_SUBST(_EXPAT_TARGET, ["$PACKAGE_NAME"])
+
AC_CONFIG_FILES([Makefile]
[ex... |
docs with spaces2 | @@ -7,11 +7,13 @@ from .power import sigmaM # noqa
@deprecated(hal.MassFunc)
def massfunc(cosmo, halo_mass, a, overdensity=200):
"""Halo mass function, dn/dlog10M.
+
Args:
cosmo (:obj:`Cosmology`): Cosmological parameters.
halo_mass (float or array_like): Halo masses; Msun.
a (float): scale factor.
overdensity (float):... |
Disable sanitizer on debug builds
On our Windows machine, the mingw ld.exe does not support sanitizers.
Exclude them from the default debug build. | @@ -21,7 +21,7 @@ clean:
build-app-debug:
[ -d "$(APP_BUILD_DEBUG_DIR)" ] || ( mkdir "$(APP_BUILD_DEBUG_DIR)" && \
- CFLAGS=-fsanitize=address,undefined meson app "$(APP_BUILD_DEBUG_DIR)" --buildtype debug )
+ meson app "$(APP_BUILD_DEBUG_DIR)" --buildtype debug )
ninja -C "$(APP_BUILD_DEBUG_DIR)"
build-server-debug:
|
logging: don't sleep if time is over | @@ -60,7 +60,7 @@ void *logging(void *params_void){
if ((elapsedLog) >= params->log_duration * 1000000 && params->log_duration)
loggingOn = false;
-
+ else
this_thread::sleep_for(chrono::milliseconds(log_period));
}
|
Oops, `NULL` should be `null` for JSON | @@ -254,7 +254,7 @@ static int fiobj_str_new_json_task(fiobj_s *obj, void *d_) {
fiobj_num_set(data->count, fiobj_obj2num(data->count) - 1);
re_rooted:
if (!obj) {
- fiobj_str_write(data->buffer, "NULL", 4);
+ fiobj_str_write(data->buffer, "null", 4);
goto review_nesting;
}
switch (obj->type) {
@@ -303,7 +303,7 @@ re_r... |
xpath BUGFIX change malloc to calloc to prevent conditional jump depend on uninicialized value. Value inverted have to be set in variable type lysc_pattern when ly_type_validate_patterns function is called | @@ -4592,7 +4592,7 @@ xpath_re_match(struct lyxp_set **args, uint16_t UNUSED(arg_count), struct lyxp_s
LY_CHECK_RET(rc);
LY_ARRAY_NEW_RET(set->ctx, patterns, pattern, LY_EMEM);
- *pattern = malloc(sizeof **pattern);
+ *pattern = calloc(1, sizeof **pattern);
LOG_LOCSET(NULL, set->cur_node, NULL, NULL);
rc = lys_compile_... |
Add MiniCactpot vtbl | @@ -654,7 +654,7 @@ class FfxivClass:
return "<{0}(\"{1}\")>".format(self.__class__.__name__, self.name)
-# region: functions
+# region functions
# ffxivstring is just their implementation of std::string presumably, there are more ctors etc
api.set_addr_name(0x140059670, "FFXIVString_ctor") # empty string ctor
api.set_... |
For rsa_keygen, check length of e and seed | @@ -517,11 +517,17 @@ ACVP_RESULT acvp_rsa_keygen_kat_handler (ACVP_CTX *ctx, JSON_Object *obj) {
unsigned int count = 0;
if (!e_str) {
- e_str = (char *) json_object_get_string(testobj, "e");
+ e_str = json_object_get_string(testobj, "e");
if (!e_str) {
ACVP_LOG_ERR("Server JSON missing 'e'");
return ACVP_MISSING_ARG;... |
tests: include dbus tests again | @@ -10,10 +10,5 @@ if [ $# -ne 1 ]; then
exit 1
fi
-if [ "$DBUS_BUG" = 'ON' ]; then
- ARGS="-j@PROCESSOR_COUNT@ --force-new-ctest-process --output-on-failure -E test(scr_check|mod_dbus) --build-config $1"
-else
ARGS="-j@PROCESSOR_COUNT@ --force-new-ctest-process --output-on-failure -E testscr_check --build-config $1"
-... |
honggfuzz.c: stats - avoid divbyzero | @@ -190,7 +190,9 @@ static void printSummary(honggfuzz_t* hfuzz) {
exec_per_sec = hfuzz->cnts.mutationsCnt / elapsed_sec;
}
uint64_t branch_percent_cov =
- (100 * hfuzz->linux.hwCnts.softCntEdge) / hfuzz->feedback.feedbackMap->guardNb;
+ hfuzz->feedback.feedbackMap->guardNb
+ ? ((100 * hfuzz->linux.hwCnts.softCntEdge) ... |
Add missing operation. | @@ -44,6 +44,7 @@ extern "C" {
# define IPP_OP_DISABLE_ALL_PRINTERS (ipp_op_t)0x0059
# define IPP_OP_ENABLE_ALL_PRINTERS (ipp_op_t)0x005A
# define IPP_OP_GET_SYSTEM_ATTRIBUTES (ipp_op_t)0x005B
+# define IPP_OP_GET_SYSTEM_SUPPORTED_VALUES (ipp_op_t)0x005C
# define IPP_OP_PAUSE_ALL_PRINTERS (ipp_op_t)0x005D
# define IPP_... |
Fixed a few memory leaks when restoring from disk. | @@ -1163,8 +1163,8 @@ restore_global_si32 (khash_t (si32) * hash, const char *fn) {
tpl_load (tn, TPL_FILE, fn);
while (tpl_unpack (tn, 1) > 0) {
ins_si32 (hash, key, val);
- }
free (key);
+ }
tpl_free (tn);
}
@@ -1255,9 +1255,9 @@ restore_si32 (GSMetric metric, const char *path, int module) {
return 1;
while (tpl_unpa... |
travis(osx): disable asan | @@ -37,7 +37,8 @@ before_script:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libev; fi
# configure ngtcp2
- autoreconf -i
- - ./configure --enable-werror PKG_CONFIG_PATH=$PWD/../openssl/build/lib/pkgconfig CPPFLAGS=-fsanitize=address LDFLAGS="$EXTRA_LDFLAGS -fsanitize=address -Wl,-rpath,$PWD/openssl/build/li... |
Undo watchdog changes | @@ -109,7 +109,6 @@ lock_config(uint32_t status)
void
watchdog_init(void)
{
- return;
WatchdogReloadSet(CONTIKI_WATCHDOG_TIMER_TOP);
lock_config(LOCK_REGISTERS_UNLOCKED);
}
@@ -120,7 +119,6 @@ watchdog_init(void)
void
watchdog_start(void)
{
- return;
uint32_t lock_status = unlock_config();
watchdog_periodic();
@@ -135,... |
JsonRpcConnection read optimizations | @@ -49,13 +49,13 @@ namespace MiningCore.JsonRpc
if (!string.IsNullOrEmpty(data))
{
- sb.Append(data);
-
- if (sb.Length < MaxRequestLength)
+ if (sb.Length + data.Length < MaxRequestLength)
{
+ sb.Append(data);
int index;
- while ((index = sb.ToString().IndexOf('\n')) != -1)
+ // scan for lines and emit
+ while (sb.Le... |
stm32/powerctrl: On H7, re-enable disabled OSCs/PLLs on exit from STOP.
This commit saves OSCs/PLLs state before STOP mode and restores them on
exit. Some boards use HSI48 for USB for example, others have PLL2/3
enabled, etc. | @@ -517,6 +517,9 @@ void powerctrl_enter_stop_mode(void) {
#endif
#if defined(STM32H7)
+ // Save RCC CR to re-enable OSCs and PLLs after wake up from low power mode.
+ uint32_t rcc_cr = RCC->CR;
+
// Save the current voltage scaling level to restore after exiting low power mode.
uint32_t vscaling = POWERCTRL_GET_VOLTAG... |
Initializing user_cred gids and ngroups for MacOS. | @@ -486,6 +486,10 @@ nxt_user_groups_get(nxt_task_t *task, nxt_user_cred_t *uc)
if (nsaved > NGROUPS_MAX) {
/* MacOSX case. */
+
+ uc->gids = NULL;
+ uc->ngroups = 0;
+
return NXT_OK;
}
|
Python: fixed an object leak when response close() is called.
On success, PyObject_CallMethod() returns a new reference to
the result of the call, which previously got lost.
Also, error logging on failure was added.
The issue was introduced by | @@ -370,7 +370,7 @@ static void
nxt_python_request_handler(nxt_unit_request_info_t *req)
{
int rc;
- PyObject *result, *iterator, *item, *args, *environ;
+ PyObject *environ, *args, *response, *iterator, *item, *result;
nxt_python_run_ctx_t run_ctx = {-1, 0, NULL, req};
PyEval_RestoreThread(nxt_python_thread_state);
@@... |
Python operators. | %ignore tinyspline::BSpline::operator=;
%ignore tinyspline::DeBoorNet::operator=;
%ignore tinyspline::Domain::operator=;
+%ignore tinyspline::Frame::operator=;
+%ignore tinyspline::FrameSeq::operator=;
+%ignore tinyspline::Vec3::operator=;
%rename (__repr__) tinyspline::BSpline::toString;
%rename (__repr__) tinyspline:... |
Leaf: Improve failure description in test | @@ -28,7 +28,8 @@ TEST (leaf, basics)
Plugin * plugin = elektraPluginOpen ("leaf", modules.getKeySet (), config.getKeySet (), *parent);
exit_if_fail (plugin != NULL, "Could not open leaf plugin"); //! OCLint (empty if, too few branches switch)
- succeed_if_same (plugin->kdbGet (plugin, keys.getKeySet (), *parent), ELEK... |
Fix fallback logic for libmongoc and libbson | @@ -277,8 +277,8 @@ if not get_option('tools').disabled() and (not HdrHistogram_c_dep.found()
else
HdrHistogram_c_from_subproject = false
endif
-libmongoc_dep = dependency('libmongoc-1.0', version: '>=1.17.3', required: get_option('tools'))
-libbson_dep = dependency('libbson-1.0', version: '>=1.17.3', required: get_opt... |
opae-sdk: fix fpgainfo persistent Error Log convert time stamp milliseconds to seconds | @@ -816,8 +816,10 @@ void bel_timespan(struct bel_event *event, uint32_t idx)
{
struct bel_header *header_off = &event->power_off_status.header;
struct bel_header *header_on = &event->power_on_status.header;
- time_t off_sec = ((uint64_t)header_off->timespamp_high << 32) | header_off->timestamp_low;
- time_t on_sec = (... |
Fix Essential warning: "result" is dereferenced, but may still be NULL | @@ -450,6 +450,11 @@ namespace MAT_NS_BEGIN {
{
size_t size = m_storage->properties.size() + m_storage->propertiesPartB.size() + 1;
evt_prop * result = static_cast<evt_prop *>(calloc(sizeof(evt_prop), size));
+ if (result==nullptr)
+ {
+ LOG_ERROR("Unable to allocate memory to pack EventProperties");
+ return result;
+... |
in_tail: fs: stat: adjust rotation check | @@ -116,6 +116,35 @@ static int tail_fs_check(struct flb_input_instance *ins,
continue;
}
+ /* Check if the file was truncated */
+ if (file->offset > st.st_size) {
+ offset = lseek(file->fd, 0, SEEK_SET);
+ if (offset == -1) {
+ flb_errno();
+ return -1;
+ }
+
+ flb_plg_debug(ctx->ins, "file truncated %s", file->name)... |
Update NOFORTRAN message for fallback to C_LAPACK | @@ -163,7 +163,7 @@ ifeq ($(CORE), UNKNOWN)
$(error OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.)
endif
ifeq ($(NOFORTRAN), 1)
- $(info OpenBLAS: Detecting fortran compiler failed. Cannot compile LAPACK. Only compile BLAS.)
+ $(info O... |
DM: add param: -V 5 to auto check/boot UOS image
it can auto check android image, if exists, then launch it;
if not, it will try to luanch clearlinux. it can be used by
acrn_guest.service to auto boot UOS. | @@ -306,6 +306,7 @@ echo "-V 1 means just launching 1 clearlinux UOS"
echo "-V 2 means just launching 1 android UOS"
echo "-V 3 means launching 1 clearlinux UOS + 1 android UOS"
echo "-V 4 means launching 2 clearlinux UOSs"
+echo "-V 5 means auto check android/linux UOS; if exist, launch it"
}
launch_type=1
@@ -332,6 +... |
Verify apikey delete state when detectig duplicates | @@ -174,7 +174,7 @@ int DeRestPluginPrivate::createUser(const ApiRequest &req, ApiResponse &rsp)
for (; i != end; ++i)
{
- if (auth.apikey == i->apikey)
+ if (auth.apikey == i->apikey && i->state == ApiAuth::StateNormal)
{
found = true;
break;
|
links: show pending comments | @@ -7,6 +7,7 @@ import { Route, Link } from 'react-router-dom';
import { Comments } from './lib/comments';
import { LoadingScreen } from './loading';
import { makeRoutePath, getContactDetails } from '../lib/util';
+import CommentItem from './lib/comment-item';
export class LinkDetail extends Component {
constructor(pro... |
framework/media: fix invalid function call
The reset_audio_stream_in function should be called
but the reset_audio_stream_out function is called. | @@ -700,7 +700,7 @@ audio_manager_result_t set_audio_stream_in(unsigned int channels, unsigned int s
if (card_config->status == AUDIO_CARD_PAUSE) {
medvdbg("reset previous preparing\n");
- reset_audio_stream_out();
+ reset_audio_stream_in();
}
pthread_mutex_lock(&(card->card_mutex));
|
[stm32][drv_common] add LOW_E for Error_Handler | #include "drv_usart_v2.h"
#else
#include "drv_usart.h"
-#endif
-#endif
+#endif /* RT_USING_SERIAL */
+#endif /* RT_USING_SERIAL_V2 */
+
+#define DBG_TAG "drv_common"
+#define DBG_LVL DBG_INFO
+#include <rtdbg.h>
#ifdef RT_USING_FINSH
#include <finsh.h>
@@ -115,6 +119,7 @@ void _Error_Handler(char *s, int num)
{
/* USER... |
Remove irrelevant rgb5x5 test code | #include "helpers.h"
#include "msa301.h"
#include "bq24295.h"
-#include "rgb5x5.h"
#include "32blit.hpp"
#include "graphics/color.hpp"
#ifdef BLIT_ENABLE_SD
@@ -190,7 +189,6 @@ int main(void)
blit::init();
bool bq24295_ok = bq24295_init(&hi2c4);
- //rgb5x5_init(&hi2c4); uint32_t t_elapsed = 0;
#ifdef BLIT_ENABLE_SD
if(... |
libbpf-tools: update statsnoop for libbpf 1.0
Switch to libbpf 1.0 mode and adapt libbpf API usage accordingly. | @@ -115,7 +115,6 @@ int main(int argc, char **argv)
.parser = parse_arg,
.doc = argp_program_doc,
};
- struct perf_buffer_opts pb_opts;
struct perf_buffer *pb = NULL;
struct statsnoop_bpf *obj;
int err;
@@ -124,11 +123,7 @@ int main(int argc, char **argv)
if (err)
return err;
- err = bump_memlock_rlimit();
- if (err) {... |
Ignore one ulp errors in printing reals. | @@ -106,7 +106,8 @@ const uint8_t *dst_cstring(const char *str) {
#define DST_BUFSIZE 36
static int32_t real_to_string_impl(uint8_t *buf, double x) {
- int count = snprintf((char *) buf, DST_BUFSIZE, "%.17g", x);
+ /* Use 16 decimal places to ignore one ulp errors for now */
+ int count = snprintf((char *) buf, DST_BUF... |
Fix memory leak
Fixes Coverity CID | @@ -213,8 +213,10 @@ static h2o_iovec_t *decode_string(h2o_mem_pool_t *pool, const uint8_t **src, con
if (len > src_end - *src)
return NULL;
ret = alloc_buf(pool, len * 2); /* max compression ratio is >= 0.5 */
- if ((ret->len = h2o_hpack_decode_huffman(ret->base, *src, len, is_header_name, err_desc)) == SIZE_MAX)
+ if... |
Add ScePowerForDriver display NIDs | @@ -4099,6 +4099,8 @@ modules:
functions:
kscePowerGetWakeupFactor: 0x9F26222A
kscePowerRequestColdReset: 0x0442D852
+ kscePowerRequestDisplayOff: 0x160EB506
+ kscePowerRequestDisplayOn: 0x3EA75C88
kscePowerRequestHibernate: 0x08951418
kscePowerRequestSoftReset: 0x2875994B
kscePowerRequestStandby: 0x2B7C7CF4
|
idec_dec: fix 0 offset of NULL pointer
in RemapMemBuffer() and AppendToMemBuffer() | @@ -166,9 +166,11 @@ static int AppendToMemBuffer(WebPIDecoder* const idec,
VP8Decoder* const dec = (VP8Decoder*)idec->dec_;
MemBuffer* const mem = &idec->mem_;
const int need_compressed_alpha = NeedCompressedAlpha(idec);
- const uint8_t* const old_start = mem->buf_ + mem->start_;
+ const uint8_t* const old_start =
+ (... |
oc_pstat: fix logic for removing observers | @@ -258,9 +258,6 @@ oc_pstat_handle_state(oc_sec_pstat_t *ps, size_t device, bool from_storage,
ps->p = false;
} break;
case OC_DOS_RFNOP: {
-#ifdef OC_SERVER
- coap_remove_observers_on_dos_change(device, false);
-#endif /* OC_SERVER */
ps->p = true;
ps->cm = 0;
ps->tm = 0;
@@ -313,6 +310,9 @@ oc_pstat_handle_state(oc_... |
Work CI-CD
Remove schedule from yaml. Now it's configured at AZDO web interface.
(was having issues with time zones)
***NO_CI*** | @@ -17,12 +17,7 @@ resources:
ref: refs/tags/v4.4.1
# scheduled build
-schedules:
-- cron: "58 23 * * *"
- branches:
- include: [ main ]
- always: true
- displayName: Nightly build at 23:58
+# the schedule is defined at the AZDO web interface because of inconsistencies with time zones
jobs:
|
sdcard_image-rpi.bbclass: Fix typo | @@ -55,7 +55,7 @@ do_image_rpi_sdimg[depends] = " \
dosfstools-native:do_populate_sysroot \
virtual/kernel:do_deploy \
${IMAGE_BOOTLOADER}:do_deploy \
- ${@bb.utils.contains('ARMSTUBS', '', '', 'armstubs:do_deploy',d)} \
+ ${@bb.utils.contains('ARMSTUB', '', '', 'armstubs:do_deploy',d)} \
${@bb.utils.contains('RPI_USE_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.