message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
fuzz_utils.h: rename max() to Max()
avoids conflict with windows.h define | @@ -169,7 +169,7 @@ static WEBP_INLINE int ExtractSourcePicture(WebPPicture* const pic,
//------------------------------------------------------------------------------
-static WEBP_INLINE int max(int a, int b) { return ((a < b) ? b : a); }
+static WEBP_INLINE int Max(int a, int b) { return ((a < b) ? b : a); }
static ... |
Registered note function with recording | @@ -35,7 +35,10 @@ static void survivefault(struct SurviveContext *ctx, const char *fault) {
exit(-1);
}
-static void survivenote(struct SurviveContext *ctx, const char *fault) { fprintf(stderr, "Info: %s\n", fault); }
+static void survivenote(struct SurviveContext *ctx, const char *fault) {
+ survive_recording_info_pr... |
btshell: Report error if failed to append extra data to adv data
This was resulting is less data being appended to advertising data
if msys pool was depleted without notifing user about error. | @@ -1821,6 +1821,7 @@ cmd_set_adv_data_or_scan_rsp(int argc, char **argv, bool scan_rsp,
rc = ble_hs_adv_set_fields_mbuf(&adv_fields, adv_data);
if (rc) {
+ os_mbuf_free_chain(adv_data);
goto done;
}
@@ -1832,8 +1833,12 @@ cmd_set_adv_data_or_scan_rsp(int argc, char **argv, bool scan_rsp,
while (counter < extra_data_le... |
add virtiual gaps between hinted allocations in secure mode | @@ -476,6 +476,10 @@ static void* mi_os_get_aligned_hint(size_t try_alignment, size_t size)
if (try_alignment == 0 || try_alignment > MI_SEGMENT_SIZE) return NULL;
if ((size%MI_SEGMENT_SIZE) != 0) return NULL;
if (size > 1*GiB) return NULL; // guarantee the chance of fixed valid address is at most 1/(4<<40 / 1<<30) = 1... |
Update to parser.conf
MongoDB log file parser | Time_Format %b %d %H:%M:%S
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep On
+
+[PARSER]
+ Name mongodb
+ Format regex
+ Regex ^(?<time>[^ ]*)\s+(?<severity>\w)\s+(?<context>[^ ]+)\s+\[(?<connection>[^\]]+)]\s+(?<message>.*)$
+ Time_Format %Y-%m-%dT%H:%M:%S.%L
+ Time_Keep On
+ Time_Key time
|
Update README.md
Include DESC standard acknowledgements. | @@ -114,3 +114,8 @@ If you have comments, questions, or feedback, please
[write us an issue](https://github.com/LSSTDESC/CCL/issues).
The current lead of the LSST DESC CCL Topical Team is Danielle Leonard (c-d-leonard, danielle.leonard at ncl.ac.uk)
+
+
+# Acknowledgements
+
+The DESC acknowledges ongoing support from ... |
Changed default keybinds | @@ -369,8 +369,8 @@ parse_overlay_config(struct overlay_params *params,
params->log_interval = 100;
#ifdef HAVE_X11
- params->toggle_hud = { XK_F12 };
- params->toggle_logging = { XK_F2 };
+ params->toggle_hud = { XK_Shift_R, XK_F12 };
+ params->toggle_logging = { XK_Shift_L, XK_F2 };
params->reload_cfg = { XK_Shift_L,... |
Fix typos in pbuf | @@ -124,7 +124,7 @@ lwesp_pbuf_free(lwesp_pbuf_p pbuf) {
/**
* \brief Concatenate `2` packet buffers together to one big packet
* \note After `tail` pbuf has been added to `head` pbuf chain,
- * it must not be referenced by user anymore as it is now completelly controlled by `head` pbuf.
+ * it must not be referenced b... |
Always check whether or not a macro is defined before defining it. | // Copyright (c) Microsoft. All rights reserved.
+#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
+#endif
#include "common/Common.hpp"
#include "common/HttpServer.hpp"
#include "utils/Utils.hpp"
|
Update README.md
update supply calculation | @@ -46,7 +46,7 @@ Daggers are mined in every main block. There are three periods of mining:
| Stage 1 | Stage 2 | Stage 3 |
| -- | -- | -- |
-| 2 years, Jan 5th, 2018 to Jan 5th, 2020 | 2 years, Jan 5th, 2020 to Jan 5th, 2022 | Each 4 years |
+| Block #1 to #1,017,322 | Block #1,017,323 | Each 2,097,152 blocks |
| 1024... |
fix move constructor in TStringBuilder. | @@ -12,6 +12,12 @@ namespace NPrivateStringBuilder {
{
}
+ TStringBuilder(TStringBuilder&& rhs)
+ : TString(std::move(rhs))
+ , Out(*this)
+ {
+ }
+
TStringOutput Out;
};
|
fail generate.sh when cargo fails | set -e
# cd into the script directory so it can be executed from anywhere
-cd "$(dirname "${BASH_SOURCE[0]}")"
+pushd "$(dirname "${BASH_SOURCE[0]}")"
# delete the existing copy in case we have extra files
rm -rf s2n-tls-sys/lib
@@ -34,19 +34,23 @@ cp -r \
s2n-tls-sys/lib/
# generate the bindings modules from the copie... |
External: Reformat CMake code | cmake_minimum_required (VERSION 3.0)
+# ~~~
# you might need to change CMAKE_MODULE_PATH
# can also be done with ccmake
# set (CUSTOM_MODULE_PATH "/opt/local/share/cmake-3.0/Modules")
# set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CUSTOM_MODULE_PATH})
+# ~~~
find_package (Elektra REQUIRED)
|
Fix handling of "*" as address in example server | @@ -2178,7 +2178,7 @@ int create_sock(Address &local_addr, const char *addr, const char *port,
hints.ai_socktype = SOCK_DGRAM;
hints.ai_flags = AI_PASSIVE;
- if (strcmp("addr", "*") == 0) {
+ if (strcmp(addr, "*") == 0) {
addr = nullptr;
}
|
travis: remove dtrace test from travis since h2olog tests does not pass on Travis. | @@ -38,14 +38,3 @@ matrix:
before_install: *bi
script:
- make -f misc/docker-ci/check.mk ossl1.1.1
- - os: linux
- sudo: required
- dist: bionic
- services:
- - docker
- env:
- - label=dtrace
- before_install: *bi
- script:
- - uname -a
- - make -f misc/docker-ci/check.mk dtrace CONTAINER_NAME=h2oserver/h2o-ci:ubuntu20... |
Add support for Python 3 to post_build_script.py | from __future__ import absolute_import
from __future__ import print_function
+import sys
import argparse
import itertools
import binascii
@@ -115,7 +116,9 @@ def post_build_script(input_file, output_file, board_id=None, family_id=None, bi
new_hex_file.puts(target_addr_unpack + 2,struct.pack('<1H',int(family_id, 16)))
#... |
rand_unix.c: Ensure requests to KERN_ARND don't exceed 256 bytes.
Requests for more than 256 bytes will fail. | @@ -250,7 +250,7 @@ static ssize_t sysctl_random(char *buf, size_t buflen)
mib[1] = KERN_ARND;
do {
- len = buflen;
+ len = buflen > 256 ? 256 : buflen;
if (sysctl(mib, 2, buf, &len, NULL, 0) == -1)
return done > 0 ? done : -1;
done += len;
|
[PATCH] BugID:20791250 | @@ -1060,7 +1060,7 @@ dns_check_entry(u8_t i)
break;
} else {
entry->tmr = 1 << entry->retries;
- if (entry->tmr > DNS_MAX_RETRY_INTERVAL) {
+ if ((entry->tmr > DNS_MAX_RETRY_INTERVAL) || (entry->retries > 7)) {
entry->tmr = DNS_MAX_RETRY_INTERVAL;
}
}
|
[trie] - remove loadDefaultHashes (already called by NewTrie )
clear cache before loading so it can be called any time (not just after node restart) | @@ -17,7 +17,7 @@ func (s *Trie) LoadCache(root []byte) error {
if s.db.store == nil {
return fmt.Errorf("DB not connected to trie")
}
- s.loadDefaultHashes()
+ s.db.liveCache = make(map[Hash][][]byte)
ch := make(chan error, 1)
s.loadCache(root, nil, 0, s.TrieHeight, ch)
s.Root = root
|
arvo: removes vestigial |is core | mev=(pal '$:{$meta $vase}')
==
::
-++ is :: operate in time
- |= [who=ship vil=vile eny=@ bud=vase vanes=(list [label=@tas =vane])]
- |_ now/@da
- ::
++ dint :: input routing
|= hap/path ^- @tas
?+ hap ~|([%bad-dint hap] !!)
{@ $http-server *} %e
{@ $behn *} %b
==
- --
+::
+++ is &
--
=< :: Arvo larval stage
::
::
:: l... |
Fixing offset for EmnityByte in PartyListMemberStruct | @@ -156,7 +156,7 @@ public unsafe struct AddonPartyList
[FieldOffset(0xD0)] public AtkResNode* TargetGlowContainer;
[FieldOffset(0xD8)] public AtkNineGridNode* ClickFlash;
[FieldOffset(0xE0)] public AtkNineGridNode* TargetGlow;
- [FieldOffset(0xE8)] public byte EmnityByte; //01 or 02 or FF
+ [FieldOffset(0xF0)] public ... |
Now responds to EIP712 APDUs | @@ -378,6 +378,19 @@ bool handle_eip712_struct_def(const uint8_t *const apdu_buf)
apdu_buf[OFFSET_INS]);
ret = false;
}
+ if (ret)
+ {
+ G_io_apdu_buffer[0] = 0x90;
+ G_io_apdu_buffer[1] = 0x00;
+ }
+ else
+ {
+ G_io_apdu_buffer[0] = 0x6A;
+ G_io_apdu_buffer[1] = 0x80;
+ }
+ //*flags |= IO_ASYNCH_REPLY;
+ // Send back ... |
provisioning: Update README.md to explain QR code format
Add examples of how to create a QR code that will be recognised by the iOS or Android app
Merges | @@ -17,6 +17,18 @@ Provisioning applications are available for various platforms:
- Source code on GitHub: [esp-idf-provisioning-ios](https://github.com/espressif/esp-idf-provisioning-ios)
* For all other platforms a python based command line tool is provided under "$IDF_PATH/tools/esp_prov"
+The Andriod and iOS provis... |
Update pf_gp_exceptions test | #include <openenclave/internal/tests.h>
#include "pf_gp_exceptions_t.h"
+#define MOV_INSTRUCTION_BYTES 3
+#define LGDT_INSTRUCTION_BYTES 8
+
static uint64_t faulting_address;
static uint32_t error_code;
static uint32_t exception_code;
+static uint64_t bypass_bytes;
uint64_t test_pfgp_handler(oe_exception_record_t* exce... |
hw/drivers/pwm: Fix error code return on open/close pwm_nrf52
Be consistent and return OS_ERR in os_dev_open and os_dev_close
functions | @@ -297,7 +297,7 @@ nrf52_pwm_open(struct os_dev *odev, uint32_t wait, void *arg)
inst_id = dev->pwm_instance_id;
if (instances[inst_id].in_use) {
- return (EINVAL);
+ return OS_EBUSY;
}
instances[inst_id].in_use = true;
@@ -341,7 +341,7 @@ nrf52_pwm_close(struct os_dev *odev)
inst_id = dev->pwm_instance_id;
if (!insta... |
Rust: Move Raw Bindings usage to the end | @@ -31,26 +31,6 @@ If you run `cargo run` and everything builds correctly and prints `Hello, world!
## Usage
-### Raw Bindings
-
-Safe wrappers are provided in the `elektra` crate, however you can also use the raw bindings from `elektra_sys` directly. Rust for instance does not allow the definition of variadic function... |
Fix the cipher_overhead_test
Now that libssl no longer has any OPENSSL_NO_ALG guards the internal
cipher_overhead_test wasn't quite handling disabled ciphers correctly. | #include "testutil.h"
#include "../ssl/ssl_local.h"
+static int cipher_enabled(const SSL_CIPHER *ciph)
+{
+ /*
+ * ssl_cipher_get_overhead() actually works with AEAD ciphers even if the
+ * underlying implementation is not present.
+ */
+ if ((ciph->algorithm_mac & SSL_AEAD) != 0)
+ return 1;
+
+ if (ciph->algorithm_en... |
Fix reverse docstring | res)
(defn reverse
- "Reverses the order of the elements in a given array or tuple and returns a new array."
+ "Reverses the order of the elements in a given array or tuple and returns it mutated."
[t]
(def len-1 (- (length t) 1))
(def half (/ len-1 2))
|
Remove argparser default for directory
This reverts commit Adds a
comment to explain reasoning for current implementation. | @@ -137,7 +137,7 @@ class BaseTarget(metaclass=ABCMeta):
class TestGenerator:
"""Generate test cases and write to data files."""
def __init__(self, options) -> None:
- self.test_suite_directory = getattr(options, 'directory')
+ self.test_suite_directory = getattr(options, 'directory', 'tests/suites')
# Update `targets`... |
nat: fix byte order on ipfix message fields
Type: fix
The code for quota exceeded events is a u32 and was being copied
into ipfix packets in host byte order. Same for the limit field.
Swap the order before copying into packet buffer. | @@ -780,7 +780,7 @@ nat_ipfix_logging_max_entries_per_usr (u32 thread_index,
vlib_main_t *vm = vlib_get_main ();
u64 now;
u8 nat_event = QUOTA_EXCEEDED;
- u32 quota_event = MAX_ENTRIES_PER_USER;
+ u32 quota_event = clib_host_to_net_u32 (MAX_ENTRIES_PER_USER);
u16 template_id;
now = (u64) ((vlib_time_now (vm) - silm->vl... |
Fixed warnings about inline static functions being exported | #include <limits.h>
#include <stdarg.h>
-
#ifdef _WIN32
#define SURVIVE_LOCAL_ONLY
#else
@@ -29,7 +28,8 @@ SURVIVE_LOCAL_ONLY void cvCopyTo(const CvMat *srcarr, CvMat *dstarr) {
memcpy(dstarr->data.db, srcarr->data.db, sizeof(double) * dstarr->rows * dstarr->cols);
}
-SURVIVE_LOCAL_ONLY void cvGEMM(const CvMat *src1, c... |
netutils/mqtt: add exception handling code
This patch adds exception handling code in mosquitto library. | @@ -58,8 +58,13 @@ int mosquitto_loop_start(struct mosquitto *mosq)
pthread_attr_t attr;
mosq->threaded = mosq_ts_self;
- pthread_attr_init(&attr);
- pthread_attr_setstacksize(&attr, TINYARA_MQTT_PTHREAD_STACK_SIZE);
+ if (pthread_attr_init(&attr) != 0) {
+ return MOSQ_ERR_ERRNO;
+ }
+
+ if (pthread_attr_setstacksize(&... |
leap: redirect to notifications correctly | @@ -117,7 +117,7 @@ export class Omnibox extends Component {
const { props } = this;
this.setState({ results: this.initialResults(), query: '' }, () => {
props.api.local.setOmnibox();
- if (defaultApps.includes(app.toLowerCase()) || app === 'profile' || app === 'Links' || app === 'home') {
+ if (defaultApps.includes(ap... |
Directory Value: Keep `array` metadata | @@ -442,6 +442,9 @@ CppKeySet convertArrayParentsToLeaves (CppKeySet const & parents)
for (auto parent : parents)
{
CppKey directory{ parent.getName (), KS_END };
+ // The plugin still stores the `array` metadata in the parent and not the first child. Otherwise storage plugins pick up
+ // the wrong key as parent.
+ di... |
Fix errors on the "Pyto Screenshots" target | @@ -839,11 +839,13 @@ int initialize_python(int argc, char *argv[]) {
// That makes the app startup a lot faster
// It's not recommended by the Python docs to add builtin modules after PyInitialize
// But it works after adding mod names to builtin mod names manually
+ #if !SCREENSHOTS
init_pil();
#if MAIN
init_numpy();... |
decision: remove paragraph that has too vague claims | @@ -143,7 +143,6 @@ We'd just have to write the keyset to disk during kdbGet and use it during kdbSe
Since disk space is far less precious than RAM, we could even create separate files for every parent key.
If we do go down this route, kdbClose should clean up the files created by this KDB instance to avoid wasting dis... |
stdioproc: mention config keyset in README | @@ -133,6 +133,8 @@ Here `(opname)` is one of `open`, `get`, `set` or `close` and describes the oper
The keyset `[parent]` always consists of a single key, namely the `parentKey` (or `errorKey`) that was passed to the plugin.
Finally, `[data]` is the keyset that was passed to the plugin.
The `[data]` keyset is not pres... |
interface: use buttons on banners
Fixes urbit/landscape#705 | -import { BaseImage, Box, Row, Text } from '@tlon/indigo-react';
+import { BaseImage, Row, Text, Button } from '@tlon/indigo-react';
import { allowGroup, allowShips, Contact, share } from '@urbit/api';
import React, { ReactElement } from 'react';
import { Sigil } from '~/logic/lib/sigil';
@@ -61,14 +61,15 @@ const Shar... |
[CHAIN] fix nil access error in reorg process | @@ -261,7 +261,7 @@ func (reorg *reorganizer) rollforwardChain() error {
//add rollbacked Tx to mempool (except played tx in roll forward)
cntRbTxs := len(reorg.rbTxs)
if cntRbTxs > 0 {
- txs := make([]*types.Tx, cntRbTxs)
+ txs := make([]*types.Tx, 0, cntRbTxs)
logger.Debug().Int("tx count", cntRbTxs).Msg("tx add to m... |
tcp: fix the tcp unittest to work
Type: fix | @@ -1341,6 +1341,8 @@ tcp_test (vlib_main_t * vm,
{
int res = 0;
+ vnet_session_enable_disable (vm, 1);
+
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "sack"))
|
Remove unused `error` variable. | @@ -478,7 +478,6 @@ static VALUE rb_git_diff_each_delta(VALUE self)
{
git_diff *diff;
const git_diff_delta *delta;
- int error = 0;
size_t d, delta_count;
RETURN_ENUMERATOR(self, 0, 0);
@@ -490,8 +489,6 @@ static VALUE rb_git_diff_each_delta(VALUE self)
rb_yield(rugged_diff_delta_new(self, delta));
}
- rugged_exception... |
change version 2.1.0 to released | -kadnode (2.1.0) UNRELEASED; urgency=medium
+kadnode (2.1.0) unstable; urgency=medium
* use base64hex to make 32 byte keys 54 characters long as the
the official maximum length of domain parts are 63 characters
|
mk_server: http: do not force threads destroy | @@ -83,6 +83,8 @@ void mk_http_request_init(struct mk_http_session *session,
request->real_path.data = NULL;
request->handler_data = NULL;
+ request->in_file.fd = -1;
+
/* Response Headers */
mk_header_response_reset(&request->headers);
@@ -715,7 +717,6 @@ int mk_http_init(struct mk_http_session *cs, struct mk_http_req... |
test: add platon test case test_004ParametersInit_0011TxInitFailureLonghrp
fix the issue
teambition task id | @@ -263,6 +263,24 @@ START_TEST(test_004ParametersInit_0010TxInitFailureNullhrp)
}
END_TEST
+START_TEST(test_004ParametersInit_0011TxInitFailureLonghrp)
+{
+ BSINT32 rtnVal;
+ BoatPlatONTx tx_ptr;
+
+ BoatIotSdkInit();
+
+ rtnVal = platonWalletPrepare();
+ ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
+
+ rtnVal = BoatPlatON... |
Use capital letters in info message | @@ -277,7 +277,7 @@ main(int argc, char **argv, char **env)
ret = attach(pid, scopeLibPath);
} else {
// libscope exists, a reattach
- scope_printf("reattaching to pid %d\n", pid);
+ scope_printf("Reattaching to pid %d\n", pid);
ret = attachCmd(pid, "true");
}
@@ -295,7 +295,7 @@ main(int argc, char **argv, char **env)... |
Don't use tyhash for scoping.
Soon enough, it's going to use a strict equality comparison,
so that params from different scopes will be considered
different.
It's a step towards deduping. | @@ -116,6 +116,18 @@ popstab()
stabstkoff--;
}
+ulong
+paramhash(void *p)
+{
+ return strhash(((Type*)p)->pname);
+}
+
+int
+parameq(void *a, void *b)
+{
+ return streq(((Type*)a)->pname, ((Type*)b)->pname);
+}
+
Tyenv*
mkenv()
{
@@ -123,7 +135,7 @@ mkenv()
e = malloc(sizeof(Tyenv));
e->super = NULL;
- e->tab = mkht(ty... |
static-code-checker-fixes: make scan-build aware of ELEKTRA_ASSERT | @@ -16,6 +16,13 @@ extern "C" {
void elektraAbort (const char * expression, const char * function, const char * file, const int line, const char * msg, ...)
#ifdef __GNUC__
__attribute__ ((format (printf, 5, 6)))
+#endif
+
+// For scan-build / clang analyzer to detect our assertions abort
+#ifndef CLANG_ANALYZER_NORETU... |
IEEE Packing: grid simple matrix | @@ -75,8 +75,8 @@ if(matrixOfValues == 0)
decimalScaleFactor,
optimizeScaleFactor,
halfByte,
- packingType,
- grid_ieee
+ packingType
+ #grid_ieee
) : read_only;
alias data.packedValues = codedValues;
meta values data_apply_bitmap(codedValues,bitmap,missingValue,binaryScaleFactor) : dump;
|
feat: set list head's prev in parse_array and parse_object | @@ -1509,6 +1509,10 @@ static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buf
success:
input_buffer->depth--;
+ if (head != NULL) {
+ head->prev = current_item;
+ }
+
item->type = cJSON_Array;
item->child = head;
@@ -1681,6 +1685,10 @@ static cJSON_bool parse_object(cJSON * const item, parse_b... |
Remove code for qt version < 5. Resolves
The bulk of the pre-qt5 code removal was handled previously. | @@ -6486,19 +6486,6 @@ QvisGUIApplication::ReadFromViewer(int)
{
debug1 << "Reading from the viewer's socket is currently not allowed!"
<< endl;
-
-#if defined(_WIN32)
- // This no longer seems necessary, at least with QT 5.
- // Removing it for Qt5-enabled fixes problem running VisIt
- // on newer Windows OS (8, 10) a... |
travis: Use new build.py script | @@ -18,8 +18,6 @@ before_script:
script:
- set -e
- cd $TRAVIS_BUILD_DIR
- - python $TRAVIS_BUILD_DIR/.travis.d/definition_check.py
- - bash $TRAVIS_BUILD_DIR/.travis.d/definition_ordering.sh
- bash $TRAVIS_BUILD_DIR/.travis.d/download_sdk.sh
- export VITASDK=$PWD/vitasdk
- export PATH=$VITASDK/bin:$PATH
@@ -34,10 +32,... |
sds: fix increate() behavior, always realloc | @@ -87,16 +87,12 @@ flb_sds_t flb_sds_create_size(size_t size)
/* Increase SDS buffer size 'len' bytes */
flb_sds_t flb_sds_increase(flb_sds_t s, size_t len)
{
- size_t avail;
size_t new_size;
struct flb_sds *head;
+ flb_sds_t out;
void *tmp;
- avail = flb_sds_avail(s);
- if (avail >= len) {
- return s;
- }
-
+ out = s... |
Extract the container names into constants | @@ -64,6 +64,11 @@ const (
ContainerIDMetrics = 4
DefaultHostProcPath = "/proc"
MetricsContainerName = "metrics"
+ SelinuxContainerNmae = "selinuxd"
+ LogEnricherContainerName = "log-enricher"
+ BpfRecorderContainerName = "bpf-recorder"
+ NonRootEnablerContainerName = "non-root-enabler"
+ SelinuxPoliciesCopierContainer... |
fix link error in diagnostics.md | @@ -16,7 +16,7 @@ To start collecting a trace, you can use the following command:
netsh.exe trace start overwrite=yes report=dis correlation=dis traceFile=quic.etl provider={ff15e657-4f26-570e-88ab-0796b258d11c} level=0x5 keywords=0xffffffff
```
-> **Note** - The command above collects **all** keywords (`0xffffffff`) w... |
linux-firmware-rpidistro: Bump revision
This reverts the last firmware update where enabling WiFi breaks
Bluetooth connectivity[1].
[1] | @@ -35,7 +35,7 @@ NO_GENERIC_LICENSE[WHENCE] = "WHENCE"
SRC_URI = "git://github.com/RPi-Distro/firmware-nonfree"
-SRCREV = "f0ad1a42b051aa9da1d9e1dc606dd68ec2f163a5"
+SRCREV = "00daf85ffa373ecce7836df7543c6ebe4cf43639"
PV = "0.0+git${SRCPV}"
S = "${WORKDIR}/git"
|
chat: pad inline code | @@ -26,7 +26,7 @@ const DISABLED_INLINE_TOKENS = [
const renderers = {
inlineCode: ({language, value}) => {
- return <Text mono backgroundColor='washedGray' style={{ whiteSpace: 'preWrap'}}>{value}</Text>
+ return <Text mono p='1' backgroundColor='washedGray' style={{ whiteSpace: 'preWrap'}}>{value}</Text>
},
code: ({l... |
Fix typo
Reported-By: Eric Mutta
Backpatch-through: 10
Discussion: | @@ -1083,7 +1083,7 @@ primary_slot_name = 'node_a_slot'
servers. Waiting for confirmation increases the user's confidence that the
changes will not be lost in the event of server crashes but it also
necessarily increases the response time for the requesting transaction.
- The minimum wait time is the round-trip time be... |
outputg: remove old and unused handling of flush methods (pthread) | @@ -250,8 +250,6 @@ static FLB_INLINE void cb_output_thread_destroy(void *data)
mk_list_del(&out_th->_head);
}
-#if defined FLB_HAVE_FLUSH_LIBCO
-
/*
* libco do not support parameters in the entrypoint function due to the
* complexity of implementation in terms of architecture and compiler, but
@@ -376,41 +374,6 @@ str... |
Fix security sub-headings embedded in forms. | @@ -1100,11 +1100,13 @@ _papplSystemWebSecurity(
if (system->auth_service)
{
// Show Users pane for group controls
+ papplClientHTMLPuts(client,
+ " <div class=\"col-12\">\n"
+ " <h2 class=\"title\">Users</h2>\n");
+
papplClientHTMLStartForm(client, client->uri, false);
papplClientHTMLPuts(client,
- " <div class=\"col-... |
Release: Add info about CMake formatting tool | @@ -124,6 +124,8 @@ These notes are of interest for people developing Elektra:
- <<TODO>>
- <<TODO>>
- <<TODO>>
+- The script [`check_formatting.sh`](https://master.libelektra.org/tests/shell/check_formatting.sh) now also checks the formatting of CMake
+ code if you installed [`sponge`](https://joeyh.name/code/moreutil... |
staging mode should be in octal | @@ -37,7 +37,7 @@ func TestNodeHelloWorld(t *testing.T) {
fmt.Printf("Extracting %s...\n", localpackage)
staging := ".staging"
- os.MkdirAll(staging, 755)
+ os.MkdirAll(staging, 0755)
cpCmd := exec.Command("cp", "-rf", localpackage, staging)
err := cpCmd.Run()
if err != nil {
|
[update][bsp][stm32] drv_wdt.c | @@ -90,7 +90,9 @@ static rt_err_t wdt_control(rt_watchdog_t *wdt, int cmd, void *arg)
return -RT_ERROR;
}
stm32_wdt.is_start = 1;
+ break;
default:
+ LOG_W("This command is not supported.");
return -RT_ERROR;
}
return RT_EOK;
|
crypto: simplify gpg-agent shutdown code in unit test | @@ -13,19 +13,12 @@ static inline void test_teardown (void)
{
// try to gracefully shut down the gpg-agent
int status = system ("gpg-connect-agent --quiet KILLAGENT /bye");
+ warn_if_fail (status == 0, "failed to stop the gpg-agent");
if (status != 0)
{
// use the hammer
int killStatus = system ("/bin/sh -c \"pgrep \'g... |
Do not quit on cleanup configuration failure
Cleanup is used for some options like --show-touches to restore the
state on exit.
If the configuration fails, do not crash the whole process. Just log an
error.
PR <https://github.com/Genymobile/scrcpy/pull/2802> | @@ -17,7 +17,7 @@ public final class Server {
// not instantiable
}
- private static void initAndCleanUp(Options options) throws IOException {
+ private static void initAndCleanUp(Options options) {
boolean mustDisableShowTouchesOnCleanUp = false;
int restoreStayOn = -1;
if (options.getShowTouches() || options.getStayA... |
Remove ++<scala-version> per Jack's recommendation | @@ -102,7 +102,7 @@ JAVA_ARGS ?= -Xmx$(JAVA_HEAP_SIZE) -Xss8M -XX:MaxPermSize=256M
SCALA_VERSION=2.12.10
SCALA_VERSION_MAJOR=$(basename $(SCALA_VERSION))
-SBT ?= java $(JAVA_ARGS) -jar $(ROCKETCHIP_DIR)/sbt-launch.jar ++$(SCALA_VERSION)
+SBT ?= java $(JAVA_ARGS) -jar $(ROCKETCHIP_DIR)/sbt-launch.jar
###################... |
iotivity: modify Kconfig
1. Move a comment location to show title when iotivity is enabled.
2. Iotivity is an one component of external so that it makes menuconfig.
3. Remove a dependancy from all of iotivity configs and make a conditional | @@ -66,9 +66,7 @@ endif #DM_WIFI
endif
-menu "IOTIVITY Config Parameters"
-
-config ENABLE_IOTIVITY
+menuconfig ENABLE_IOTIVITY
bool "enable / disable iotivity stack"
default n
select LIBC_NETDB
@@ -77,91 +75,83 @@ config ENABLE_IOTIVITY
---help---
select to enable the iotivity stack in tinyara
+if ENABLE_IOTIVITY
+
+c... |
added psl_accel_types | @@ -27,10 +27,8 @@ USE work.donut_types.ALL;
ENTITY donut IS
GENERIC(
- IMP_VERSION_DAT : std_ulogic_vector(63 DOWNTO 0) := x"0007_02B5_5357_53C2";
IMP_VERSION_DAT : std_ulogic_vector(63 DOWNTO 0);
BUILD_DATE_DAT : std_ulogic_vector(63 DOWNTO 0);
- BUILD_DATE_DAT : std_ulogic_vector(63 DOWNTO 0) := x"0000_2017_0315_135... |
added umask case with -r,-w, etc, support | @@ -718,12 +718,20 @@ static void set_symbolic_bits(const struct perms* p, mfu_filetype type, mode_t*
mode_t old_mask = umask(S_IWGRP | S_IWOTH);
umask(old_mask);
- /* only change the permission bits that umask allows */
+ /* only change permission bits that umask allows */
*mode &= ~old_mask;
- /* now or this with the... |
apps: elf: Fix stack corruption in task test | @@ -128,7 +128,7 @@ int main(int argc, char **argv)
child_argv[0] = child_arg;
child_argv[1] = 0;
- child_pid = task_create(child_name, 50, 512, child_task, (FAR char * const *)child_argv);
+ child_pid = task_create(child_name, 50, 2048, child_task, (FAR char * const *)child_argv);
if (child_pid < 0)
{
printf("Parent: ... |
Fix path_getrelative for Windows
Windows now performs case insensitive comparison for strings. | #include "premake.h"
#include <string.h>
+#if PLATFORM_WINDOWS
+#include <ctype.h>
+#endif
int path_getrelative(lua_State* L)
@@ -22,7 +25,11 @@ int path_getrelative(lua_State* L)
do_normalize(L, dst, p2);
/* same directory? */
+#if PLATFORM_WINDOWS
+ if (_stricmp(src, dst) == 0) {
+#else
if (strcmp(src, dst) == 0) {
+... |
tries to fix test setup | @@ -147,13 +147,14 @@ TEST(CelixBundleContextBundlesTests, startBundleWithException) {
CHECK_TRUE(called);
}
+/* TODO research why this lead to resolved instead of installed bundle for Ubuntu 18
TEST(CelixBundleContextBundlesTests, startUnresolveableBundle) {
long bndId = celix_bundleContext_installBundle(ctx, TEST_BND... |
Adding missed uncommited changes to Makefile.. | CC = gcc # C compiler
INCLUDE := -Iinclude #include directories
-BUILD_DIR := build
CFLAGS = -fPIC -Wall -Wextra -g $(INCLUDE) # C flags
LDFLAGS = -shared # linking flags
RM = rm -f # rm command
@@ -17,9 +16,8 @@ all: ${TARGET_LIB} install
$(TARGET_LIB): $(OBJS)
$(CC) ${LDFLAGS} -o $@ $^
-$(BUILD_DIR)/%.o: %.c
+source/... |
Keyset: Fix unsigned integer overflow | @@ -911,7 +911,7 @@ ssize_t ksCopyInternal (KeySet * ks, size_t to, size_t from)
ELEKTRA_ASSERT (length >= 0, "length %zu too small", length);
ELEKTRA_ASSERT (ks->size >= to, "ks->size %zu smaller than %zu", ks->size, to);
- ks->size += sizediff;
+ ks->size = ssize + sizediff;
if (length != 0)
{
|
Fix memleak in PKCS12_pbe_crypt_ex()
Makes sure that the variable 'out' is free on every error path.
Fixes | @@ -94,6 +94,8 @@ unsigned char *PKCS12_pbe_crypt_ex(const X509_ALGOR *algor,
if (EVP_CIPHER_CTX_is_encrypting(ctx)) {
if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG,
(int)mac_len, out+outlen) < 0) {
+ OPENSSL_free(out);
+ out = NULL;
ERR_raise(ERR_LIB_PKCS12, ERR_R_INTERNAL_ERROR);
goto err;
}
|
admin/docs: bump doc version for v1.3.7 | %include %{_sourcedir}/OHPC_macros
Name: docs%{PROJ_DELIM}
-Version: 1.3.6
+Version: 1.3.7
Release: 1
Summary: OpenHPC documentation
License: BSD-3-Clause
|
* Example fixes | /// Sample records put/query example
#include <ejdb2.h>
-#define RCHECK(rc_) \
+#define CHECK(rc_) \
if (rc_) { \
iwlog_ecode_error3(rc_); \
return 1; \
@@ -26,10 +26,10 @@ int main() {
JBL jbl = 0; // Json document
iwrc rc = ejdb_init();
- RCHECK(rc);
+ CHECK(rc);
rc = ejdb_open(&opts, &db);
- RCHECK(rc);
+ CHECK(rc);... |
Fix format strings serverLogObjectDebugInfo to use unsigned
This doesn't have any real impact, just a cleanup. | @@ -938,8 +938,8 @@ void _serverAssertPrintClientInfo(const client *c) {
}
void serverLogObjectDebugInfo(const robj *o) {
- serverLog(LL_WARNING,"Object type: %d", o->type);
- serverLog(LL_WARNING,"Object encoding: %d", o->encoding);
+ serverLog(LL_WARNING,"Object type: %u", o->type);
+ serverLog(LL_WARNING,"Object enc... |
Fix up tests for shutdown handler. | @@ -5,6 +5,7 @@ import traceback
import time
import os
import threading
+import atexit
try:
mod_wsgi.request_data()
@@ -18,7 +19,7 @@ def wrapper(application):
return _application
def event_handler(name, **kwargs):
- print('EVENT', name, kwargs, os.getpid(), mod_wsgi.application_group)
+ print('EVENT-HANDLER', name, kw... |
Add phony firrtl target to just build firrtl file | @@ -44,6 +44,9 @@ generator_temp: $(SCALA_SOURCES) $(sim_files)
mkdir -p $(build_dir)
cd $(base_dir) && $(SBT) "project $(SBT_PROJECT)" "runMain $(GENERATOR_PACKAGE).Generator $(build_dir) $(MODEL_PACKAGE) $(MODEL) $(CONFIG_PACKAGE) $(CONFIG)"
+.PHONY: firrtl
+firrtl: $(FIRRTL_FILE)
+
##################################... |
spi_docs: Fixed the default value of max_transfer_sz. | @@ -106,7 +106,7 @@ typedef struct {
int sclk_io_num; ///< GPIO pin for Spi CLocK signal, or -1 if not used.
int quadwp_io_num; ///< GPIO pin for WP (Write Protect) signal which is used as D2 in 4-bit communication modes, or -1 if not used.
int quadhd_io_num; ///< GPIO pin for HD (HolD) signal which is used as D3 in 4-... |
Removal and modification of tests
Changes for tests involving mbedtls_rsa_pkcs1_encrypt.
Removal of test in test_suite_rsa.function where
invalid mode is used. Also modification of other tests
to use the constant MBEDTLS_RSA_PUBLIC instead
of the mode variable. | @@ -103,22 +103,17 @@ void rsa_invalid_param( )
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
mbedtls_rsa_pkcs1_encrypt( NULL, NULL, NULL,
- valid_mode,
- sizeof( buf ), buf,
- buf ) );
- TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
- mbedtls_rsa_pkcs1_encrypt( &ctx, NULL, NULL,
- invalid_mode,
+ M... |
Make test_alloc_parse_xdecl_2() robust vs allocation pattern changes | @@ -7912,27 +7912,18 @@ START_TEST(test_alloc_parse_xdecl_2)
"'?>"
"<doc>Hello, world</doc>";
int i;
- int repeat = 0;
-#define MAX_ALLOC_COUNT 10
+#define MAX_ALLOC_COUNT 20
for (i = 0; i < MAX_ALLOC_COUNT; i++) {
- /* Repeat counts to defeat cached allocations */
- if (i == 4 && repeat == 3) {
- i -= 2;
- repeat++;
-... |
fix initial gFreqMin value in ExtIO_RedPitaya_TRX.cpp | @@ -30,7 +30,7 @@ UInt32 gRate = 100000;
Int32 gCorr = 0;
UInt32 gFreq = 600000;
-UInt32 gFreqMin = 100000;
+UInt32 gFreqMin = 50000;
UInt32 gFreqMax = 60000000;
bool gInitHW = false;
|
esp32s2: Clear the timer interrupt to avoid losing the next one | @@ -153,6 +153,8 @@ static int esp32s2_timer_handler(int irq, void *context, void *arg)
(struct esp32s2_timer_lowerhalf_s *)arg;
uint32_t next_interval_us = 0;
+ ESP32S2_TIM_ACKINT(priv->tim); /* Clear the Interrupt */
+
if (priv->callback(&next_interval_us, priv->upper))
{
if (next_interval_us > 0)
@@ -168,7 +170,6 @@... |
fix: all new connections were counted as rejected
from an earlier patch from a static analyzer... :( | @@ -6668,7 +6668,9 @@ static void drive_machine(conn *c) {
if (settings.maxconns_fast) {
STATS_LOCK();
reject = stats_state.curr_conns + stats_state.reserved_fds >= settings.maxconns - 1;
+ if (reject) {
stats.rejected_conns++;
+ }
STATS_UNLOCK();
} else {
reject = false;
|
HTTP/1 to HTTP/2 upgrade path leak
missing cleanup when the connection upgrade fails | @@ -1361,6 +1361,7 @@ int h2o_http2_handle_upgrade(h2o_req_t *req, struct timeval connected_at)
return 0;
Error:
h2o_linklist_unlink(&http2conn->_conns);
+ kh_destroy(h2o_http2_stream_t, http2conn->streams);
free(http2conn);
return -1;
}
|
add SLUA_TRY_PUSHBASE push mode for search base if exported | @@ -337,6 +337,19 @@ namespace SLua
{
Logger.LogWarning(string.Format("{0} not exported, using reflection instead", o.ToString()));
}
+#elif SLUA_TRY_PUSHBASE
+ Type t = o.GetType();
+ while (t!=typeof(Object)) {
+ LuaDLL.luaL_getmetatable(l, getAQName(t));
+ if (!LuaDLL.lua_isnil(l, -1))
+ {
+ LuaDLL.lua_pop(l, 1);
+ ... |
fix: suppress the debugging info by default | @@ -2076,7 +2076,7 @@ json_vextract (char * json, size_t size, char * extractor, va_list ap)
jsmn_init(&parser);
jsmntok_t * tokens = NULL;
int num_tok = jsmn_parse(&parser, json, size, NULL, 0);
- D_PRINT("# of tokens = %d", num_tok);
+ DS_PRINT("# of tokens = %d", num_tok);
if (num_tok < 0)
ERR("Failed to parse JSON:... |
scripts: prepare for reformat source | SCRIPTS_DIR=$(dirname "$0")
. "${SCRIPTS_DIR}/include-common"
-CLANG_FORMAT=$(which clang-format-3.8)
+CLANG_FORMAT=$(which clang-format-5.0)
if [ -z "${CLANG_FORMAT}" ]; then
CLANG_FORMAT=$(which clang-format)
fi
|
add cmake to ohpc-base metapackage | @@ -42,6 +42,7 @@ Collection of GNU autotools packages
Summary: OpenHPC base
Requires: bc
Requires: conman%{PROJ_DELIM}
+Requires: cmake%{PROJ_DELIM}
Requires: emacs-nox
Requires: examples%{PROJ_DELIM}
Requires: gdb
|
minor tweak for bit faster DMA queue operation | @@ -652,9 +652,6 @@ bool SYS_doVBlankProcessEx(VBlankProcessTime processTime)
}
else
DMA_flushQueue();
-
- // always clear process
- vbp &= ~PROCESS_DMA_TASK;
}
// map process (VDP scroll)
|
Fix - null ptr dereference when a table is created with negative capacity | @@ -301,6 +301,7 @@ JANET_CORE_FN(cfun_table_new,
"can be avoided. Returns the new table.") {
janet_fixarity(argc, 1);
int32_t cap = janet_getinteger(argv, 0);
+ if (cap < 0) janet_panic("expected positive integer");
return janet_wrap_table(janet_table(cap));
}
|
Fix rotation handling for NMLModels | @@ -15,7 +15,7 @@ namespace carto {
{
MapPos mapPosInternal = projection.toInternal(model.getGeometry()->getCenterPos());
cglib::vec3<double> pos = projectionSurface.calculatePosition(mapPosInternal);
- cglib::mat4x4<double> rotateMat = cglib::rotate4_matrix(cglib::vec3<double>(model.getRotationAxis().getX(), model.get... |
scalebench: print the path of the xml report | @@ -267,7 +267,7 @@ class Scalebench:
def write_xml_report(self, testcases, path):
assert(have_junit_xml)
- debug.log("producing junit-xml report")
+ debug.log("producing junit-xml report, file: %s" % path)
ts = TestSuite('harness suite', testcases)
with open(os.path.join(path, 'report.xml'), 'w') as f:
TestSuite.to_fi... |
king: actually try shutting down the piers | @@ -727,6 +727,7 @@ runShipRestarting serfExe r o = do
loop
Right () -> do
logTrace $ display (pier <> " shutdown requested")
+ atomically $ putTMVar vKillPier ()
race_ (wait tid) $ do
threadDelay 5_000_000
logInfo $ display (pier <> " not down after 5s, killing with fire.")
|
Force build_tests in CMakePrests.txt | "CMAKE_EXPORT_COMPILE_COMMANDS": {
"type": "boolean",
"value": true
+ },
+ "CLAP_BUILD_TESTS": {
+ "type": "boolean",
+ "value": true
}
}
}
|
Require the assignment LHS to be effect-free | @@ -682,6 +682,10 @@ func (p *parser) parseStatement1() (*a.Node, error) {
if err != nil {
return nil, err
}
+ if lhs.Effect() != 0 {
+ return nil, fmt.Errorf(`parse: assignment LHS %q is not effect-free at %s:%d`,
+ lhs.Str(p.tm), p.filename, p.line())
+ }
return a.NewAssign(op, lhs, rhs).AsNode(), nil
}
|
doc: adjust views processing for schema documentation
The acrn:views processing for showing which tabs an option would display
on wasn't quite right when an element AND a parent both had a views
attribute (specifically when the parent had "basic, advanced" but the
element only had "basic" or "advanced"). | <!-- Only visit elements having complex types. Those having simple types are
described as an option -->
<xsl:choose>
+ <xsl:when test="xs:annotation/@acrn:views=''">
+ <!-- don't document elements if not viewable -->
+ </xsl:when>
<xsl:when test="//xs:complexType[@name=$ty]">
<!-- The section header -->
<xsl:if test="$... |
Modify inappropritate condition check for task_create in tc_task
task_create doesn't return the errno. when failed to create task,
it returns ERROR and sets errno. | @@ -473,7 +473,7 @@ static void tc_task_on_exit(void)
g_callback = false;
pid = task_create("tc_on_exit", SCHED_PRIORITY_DEFAULT, 2048, onexit_task, (char *const *)NULL);
- if (pid == ENOMEM || pid < 0) {
+ if (pid < 0) {
printf("tc_task_on_exit task_create FAIL, Error No: %d %d\n", errno, pid);
total_fail++;
RETURN_ER... |
wincng: fix return value in _libssh2_dh_secret
Do not ignore return value of modular exponentiation. | @@ -2156,8 +2156,7 @@ _libssh2_dh_secret(_libssh2_dh_ctx *dhctx, _libssh2_bn *secret,
_libssh2_bn *f, _libssh2_bn *p)
{
/* Compute the shared secret */
- _libssh2_wincng_bignum_mod_exp(secret, f, *dhctx, p);
- return 0;
+ return _libssh2_wincng_bignum_mod_exp(secret, f, *dhctx, p);
}
void
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.