message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
gitlab: Move to the latest docker image
This enables support for testing U-Boot vboot.
BRANCH=none
TEST=passes on gitlab: | # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-image: jbettis/ubuntu-29sep21
+image: sjg20/ubuntu-25feb22c
# You can update that image using this repo:
# https://gitlab.com/zephyr-ec/gitlab-ci-runner/-/tree/main
|
Adjust the style to be in alignment with what the rest of code is | @@ -9,7 +9,7 @@ AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
-AllowShortFunctionsOnASingleLine: Inline
+AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingle... |
emitter: Fix an indentation oops. | @@ -3963,8 +3963,8 @@ static void run_named_call(lily_emit_state *emit, lily_ast *ast,
if (va_pos != INT_MAX) {
lily_type *va_type = call_type->subtypes[call_type->subtype_count - 1];
- if (va_type->cls->id != LILY_ID_OPTARG ||
- var_arg_head) {
+ if (var_arg_head ||
+ va_type->cls->id != LILY_ID_OPTARG) {
lily_type *v... |
http_server: api/v1: metrics: add fluentbit_uptime on prometheus output | @@ -224,6 +224,7 @@ void cb_metrics_prometheus(mk_request_t *request, void *data)
int len;
int time_len;
int start_time_len;
+ uint64_t uptime;
size_t index;
size_t num_metrics = 0;
long now;
@@ -274,12 +275,6 @@ void cb_metrics_prometheus(mk_request_t *request, void *data)
}
metric_helptxt_head = FLB_SDS_HEADER(metric... |
khan: comment changes
Not sure we actually want to guarantee exactly-once response semantics,
so you can't rely on request ordering to correlate requests even if you
never send simultaneous requests.
Also do a worked example of a %urth scry, which hopefully raises the
question of whether %urth should try to support vie... | **
** request-id is a 31-bit client-supplied identifier that will
** be returned along with the response, to allow correlating
-** responses to simultaneous requests. (any request that may
-** take more than a single arvo event is not guaranteed to
-** return in order.) it may be reused; e.g. 0 could be supplied
-** ev... |
tools/docker: Add libpython2.7 in order to satisfy GDB dependencies
It was not possible to run xtensa-esp32-elf-gdb from container due to
missing libpython2.7 library.
Merges
Closes | @@ -2,6 +2,7 @@ FROM ubuntu:18.04
ARG DEBIAN_FRONTEND=noninteractive
+# We need libpython2.7 due to GDB tools
RUN apt-get update && apt-get install -y \
apt-utils \
bison \
@@ -17,6 +18,7 @@ RUN apt-get update && apt-get install -y \
libusb-1.0-0-dev \
make \
ninja-build \
+ libpython2.7 \
python3 \
python3-pip \
unzip... |
dpdk: fix coverity warning
Add a hint so that it's obvious that fall through in switch statement is
intentional.
Type: fix
Fixes: | @@ -476,6 +476,7 @@ dpdk_lib_init (dpdk_main_t * dm)
/* Drivers with valid speed_capa set */
case VNET_DPDK_PMD_I40E:
xd->flags |= DPDK_DEVICE_FLAG_INT_UNMASKABLE;
+ /* fall through */
case VNET_DPDK_PMD_E1000EM:
case VNET_DPDK_PMD_IGB:
case VNET_DPDK_PMD_IGC:
@@ -519,6 +520,7 @@ dpdk_lib_init (dpdk_main_t * dm)
/* SR-... |
esp_http_server: reword error messages | @@ -381,7 +381,7 @@ esp_err_t httpd_resp_send_err(httpd_req_t *req, httpd_err_code_t error, const ch
switch (error) {
case HTTPD_501_METHOD_NOT_IMPLEMENTED:
status = "501 Method Not Implemented";
- msg = "Request method is not supported by server";
+ msg = "Server does not support this operation";
break;
case HTTPD_505... |
Ben says this might work. | @@ -5,7 +5,7 @@ env.make_derivation rec {
builder = ./builder.sh;
src = ../../../pkg/ge-additions;
- nativeBuildInputs = [ deps.ed25519 ];
+ cross_inputs = [ deps.ed25519 ];
CC = "${env.host}-gcc";
AR = "${env.host}-ar";
|
fix stringUtils to complain with tests | @@ -112,7 +112,8 @@ char* getDateString() {
* eliminates a character c if it is followed by character f
*/
char* strelimIfFollowed(char* str, char c, char f) {
- if (!strValid(str)) {
+ if (str == NULL) {
+ oidc_setArgNullFuncError(__func__);
return str;
}
size_t len = strlen(str);
@@ -132,7 +133,8 @@ char* strelimIfFo... |
armv8: EFI loader sets correct memory attributes | @@ -232,6 +232,12 @@ static EFI_STATUS
build_page_tables(struct config *cfg) {
EFI_STATUS status = EFI_SUCCESS;
+ /* We need the current memory map to set memory attributes */
+ status = update_memory_map();
+ if (EFI_ERROR(status)) {
+ Print(L"Failed to update memory map\n");
+ }
+
/* Page table book keeping in static... |
mesh: Fix clearing model subscription list
The code was storing a "cleared" entry in storage for every model,
regardless of them having any subscriptions or not. Update hte
mod_sub_list_clear() function to return a "cleared entries" count so
that the calling code can decide whether any action is needed or not. | @@ -1243,28 +1243,36 @@ static u8_t va_del(u8_t *label_uuid, u16_t *addr)
return STATUS_CANNOT_REMOVE;
}
-static void mod_sub_list_clear(struct bt_mesh_model *mod)
+static size_t mod_sub_list_clear(struct bt_mesh_model *mod)
{
u8_t *label_uuid;
+ size_t clear_count;
int i;
/* Unref stored labels related to this model *... |
u3: rewrites +skip jet with u3i_defcons() | */
#include "all.h"
- static u3_noun
- _skip_in(u3j_site* sit_u, u3_noun a)
- {
- if ( 0 == a ) {
- return a;
- }
- else if ( c3n == u3du(a) ) {
- return u3_none;
- } else {
- u3_noun hoz = u3j_gate_slam(sit_u, u3k(u3h(a)));
- u3_noun vyr = _skip_in(sit_u, u3t(a));
-
- switch ( hoz ) {
- case c3y: return vyr;
- case c3... |
User/Pcd: Add PcdPciExpressBaseSize
Needed since | @@ -43,6 +43,7 @@ extern BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderLoadHeader;
#define _PCD_GET_MODE_32_PcdCpuNumberOfReservedVariableMtrrs _gPcd_FixedAtBuild_PcdCpuNumberOfReservedVariableMtrrs
// this will not be of any effect at userspace
#define _PCD_GET_MODE_64_PcdPciExpressBaseAddress 0
+#define _PCD_GET_MODE_64_P... |
changes: add a CHANGES.md entry for the OSSL_FORCE_NO_CACHE_FETCH option. | @@ -23,6 +23,12 @@ OpenSSL 3.0
### Changes between 1.1.1 and 3.0 [xx XXX xxxx]
+ * Add a compile time option to prevent the caching of provider fetched
+ algorithms. This is enabled by including the no-cached-fetch option
+ at configuration time.
+
+ *Paul Dale*
+
* Combining the Configure options no-ec and no-dh no lo... |
Update toc in installation-usage readme | - [Set logging verbosity](#set-logging-verbosity)
- [Configure the SELinux type](#configure-the-selinux-type)
- [Restrict the allowed syscalls in seccomp profiles](#restrict-the-allowed-syscalls-in-seccomp-profiles)
+- [Constrain spod scheduling](#constrain-spod-scheduling)
- [Create a seccomp profile](#create-a-seccom... |
Remove commented out text from previous commit | \usepackage[outdir=./]{epstopdf}
\usepackage{graphicx,verbatim}
-%\usepackage{subcaption}
-%\captionsetup{compatibility=false}
\usepackage{xspace}
\usepackage[figuresright]{rotating}
\usepackage{tabularx}
@@ -826,7 +824,6 @@ In addition to the above tests in $\Lambda$CDM cosmologies without massive neutr
%-------------... |
Add uge-tracker branch to CI config | @@ -149,6 +149,7 @@ workflows:
- develop
- master
- v2beta
+ - uge-tracker
- "make:win32":
requires:
- checkout
@@ -158,6 +159,7 @@ workflows:
- develop
- master
- v2beta
+ - uge-tracker
- "make:win64":
requires:
- checkout
@@ -167,6 +169,7 @@ workflows:
- develop
- master
- v2beta
+ - uge-tracker
- "make:linux":
requi... |
pbio/control: Log time in microseconds.
No need to throw away accuracy in the log. | @@ -120,7 +120,7 @@ void pbio_control_update(pbio_control_t *ctl, int32_t time_now, int32_t count_no
// Log control data
int32_t log_data[] = {
- (time_ref - ctl->trajectory.t0) / 1000,
+ time_ref - ctl->trajectory.t0,
count_now,
rate_now,
*actuation,
|
[dpos] fix genesis block handling during LIB status rollback | @@ -161,6 +161,11 @@ func (pls *libStatus) load(lib *blockInfo, block *types.Block) {
pls.confirms.Init()
}
+ // Nothing left for the genesis block.
+ if block.BlockNo() == 0 {
+ return
+ }
+
// Rebuild confirms info & pre-LIB map from LIB + 1 and block based on
// the blocks.
if tmp := loadPlibStatus(lib, block); tmp ... |
WritableBuffer re-use problem | @@ -146,7 +146,11 @@ namespace MiningCore.JsonRpc
var json = JsonConvert.SerializeObject(payload, serializerSettings);
logger.Trace(() => $"[{ConnectionId}] Sending: {json}");
- SendInternal(Encoding.UTF8.GetBytes(json + '\n'));
+ var buffer = upstream.Allocate(json.Length);
+ buffer.WriteString(json, Encoding.UTF8);
+... |
DBG_(FATAL)_PRINTF has now optional va args | @@ -68,11 +68,11 @@ int picoquic_compare_addr(struct sockaddr * expected, struct sockaddr * actual);
#define DBG_PRINTF(fmt, ...) \
debug_printf("%s:%u [%s]: " fmt "\n", \
__FILE__ + MAX(DBG_PRINTF_FILENAME_MAX, sizeof(__FILE__)) - DBG_PRINTF_FILENAME_MAX, \
- __LINE__, __FUNCTION__, __VA_ARGS__)
+ __LINE__, __FUNCTION... |
Update: Better pretty printing | @@ -297,7 +297,6 @@ void Encode_PrintAtom(Atom atom)
if(atom)
{
fputs(atom_names[atom-1], stdout);
- fputs(" ", stdout);
}
else
{
@@ -315,23 +314,19 @@ void Encode_PrintTermPrettyRecursive(Term *term, int index) //start with index=1
int child1 = index*2;
int child2 = index*2+1;
bool hasChild = child1 < NARSESE_LEN_MAX ... |
correct build CMAKE options for building opencl for rocm 4.1 | @@ -96,7 +96,8 @@ if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then
fi
VDI_ROOT=$AOMP_REPOS/$AOMP_VDI_REPO_NAME
- MYCMAKEOPTS="$AOMP_ORIGIN_RPATH_NO_DTAGS -DCMAKE_BUILD_TYPE=$BUILDTYPE -DCMAKE_INSTALL_PREFIX=$AOMP_INSTALL_DIR -DUSE_COMGR_LIBRARY=yes -DROCclr_DIR=$VDI_ROOT -DLIBROCclr_STATIC_DIR=$BUILD_DIR/build/... |
nvbios: Add unknown mem types for Pascal and "skip" | @@ -926,6 +926,12 @@ const char * mem_type(uint8_t version, uint16_t start)
case 3:
return "GDDR5";
break;
+ case 8:
+ return "GDDR5X";
+ break;
+ case 15:
+ return "Skip";
+ break;
default:
return "Unknown ram type";
}
|
Less verbose generator head. | :: with normal hoon rules. multipass parsing is the tax
:: humans have to pay for simple but human-friendly syntax.)
::
-:- %say
-|= {^ {pax/path $~} $~}
-:- %noun
+|= pax/path
=< (test pax)
=> |%
++ item (pair mite (list flow)) :: xml node generator
|
Stitch exception stack to the location raising the exception | @@ -385,6 +385,19 @@ void oe_real_exception_dispatcher(oe_context_t* oe_context)
* for the case of nested exceptions) */
td->state = OE_TD_STATE_SECOND_LEVEL_EXCEPTION_HANDLING;
+ // Update the stitched callstack so that it points to the location that
+ // raised the exception.
+ if (is_enclave_debug_allowed_cached())
... |
do not clear _isIncludingExternal in nested calls | function includeexternal(fname)
local fullPath = p.findProjectScript(fname)
+ local wasIncludingExternal = api._isIncludingExternal
api._isIncludingExternal = true
fname = fullPath or fname
dofile(fname)
- api._isIncludingExternal = nil
+ api._isIncludingExternal = wasIncludingExternal
end
p.alias(_G, "includeexternal"... |
Added default logger in debug mode. | @@ -50,13 +50,16 @@ int metacall_initialize()
metacall_null_args[0] = NULL;
/* TODO: Initialize by config or default */
- /*
- log_configure("metacall",
+ #if (!defined(NDEBUG) || defined(DEBUG) || defined(_DEBUG) || defined(__DEBUG) || defined(__DEBUG__))
+ if (log_configure("metacall",
log_policy_format_text(),
log_p... |
add warning when fewer closest hits are found than requested. | @@ -167,8 +167,21 @@ void RecordOutputMgr::printClosest(RecordKeyVector &keyList, const vector<CHRPOS
_currBamBlockList = &blockList;
}
if (!keyList.empty()) {
+ if (context->getNumClosestHitsWanted() > keyList.size())
+ {
+ cerr << "Warning: Fewer hits ("
+ << keyList.size()
+ << ") found on "
+ << keyRec->getChrName(... |
usb.c refactoring request: remove getenv("STLINK_DEVICE")
There is no enironment variable "STLINK_DEVICE" in user system, and program do not set it. So I removed all code which works with it. | @@ -1134,33 +1134,8 @@ stlink_t *stlink_open_usb(enum ugly_loglevel verbose, enum connect_type connect,
#endif
libusb_device **list = NULL;
- // TODO: We should use ssize_t and use it as a counter if > 0.
- // As per libusb API: ssize_t libusb_get_device_list (libusb_context *ctx, libusb_device ***list)
- int cnt = (in... |
gdbstub: improve format of info thread command output
gdbstub: simplify the state handling on extra thread info | @@ -76,7 +76,6 @@ void esp_gdbstub_panic_handler(esp_gdbstub_frame_t *frame)
}
}
-
static void send_reason(void)
{
esp_gdbstub_send_start();
@@ -90,6 +89,13 @@ static uint32_t gdbstub_hton(uint32_t i)
return __builtin_bswap32(i);
}
+static void esp_gdbstub_send_str_as_hex(const char *str)
+{
+ while (*str) {
+ esp_gdbs... |
[skip CI][cmake] change version | # --- set siconos current version ---
set(MAJOR_VERSION 4)
-set(MINOR_VERSION 2)
+set(MINOR_VERSION 3)
set(PATCH_VERSION 0)
set(SICONOS_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
|
Update gps.go
Added logic to only slow down to 2Hz for UBX8 using Galileo | @@ -254,8 +254,7 @@ func initGPSSerial() bool {
// Byte order for UBX configuration is little endian.
// Set 10 Hz update to make gpsattitude more responsive for ublox7/8.
- //p.Write(makeUBXCFG(0x06, 0x08, 6, []byte{0x64, 0x00, 0x01, 0x00, 0x01, 0x00})) // 10 Hz
- p.Write(makeUBXCFG(0x06, 0x08, 6, []byte{0x06, 0x00, 0... |
hoon: removes obsolete compiler hooks | ~% %pen
+
==
- %ap ap
%ut ut
==
|%
--
::
++ ap :: hoon engine
- ~% %ap
- +>+
- ==
- %open open
- %rake rake
- ==
+ ~% %ap +>+ ~
|_ gen=hoon
::
++ grip
~% %ut
+>+
==
- %ar ar
%fan fan
%rib rib
%vet vet
- %blow blow
- %burp burp
- %busk busk
- %buss buss
- %crop crop
- %duck duck
- %dune dune
- %dunk dunk
- %epla epla
- ... |
Added hyperlink to the VPLanet model description and validation paper. | @@ -40,7 +40,7 @@ undergoing plate tectonics or stagnant lid evolution.
`vplanet` is a community project. We're happy to take pull requests; if you want to create one, please issue it to the *dev* branch. Soon we will include tutorials on adding new input options, governing variables, and modules. It's a platform for p... |
tests: internal: multiline: fix expected output data | @@ -108,7 +108,7 @@ struct record_check java_input[] = {
{" at com.example.myproject.Book.getId(Book.java:22)\n"},
{" at com.example.myproject.Author.getBookIds(Author.java:35)\n"},
{" ... 1 more"},
- {"single line"}
+ {"single line\n"}
};
struct record_check java_output[] = {
@@ -122,7 +122,7 @@ struct record_check ja... |
Build the GPIO HAL for the CC2538 | @@ -17,7 +17,7 @@ CONTIKI_CPU_DIRS = . dev usb usb/common usb/common/cdc-acm
CONTIKI_CPU_SOURCEFILES += soc.c clock.c rtimer-arch.c uart.c watchdog.c
CONTIKI_CPU_SOURCEFILES += nvic.c sys-ctrl.c gpio.c ioc.c spi.c adc.c
CONTIKI_CPU_SOURCEFILES += crypto.c aes.c ecb.c cbc.c ctr.c cbc-mac.c gcm.c
-CONTIKI_CPU_SOURCEFILES... |
test FEATURE perf validation test | @@ -371,6 +371,22 @@ test_create_path(struct test_state *state, struct timespec *ts_start, struct tim
return LY_SUCCESS;
}
+static LY_ERR
+test_validate(struct test_state *state, struct timespec *ts_start, struct timespec *ts_end)
+{
+ LY_ERR r;
+
+ TEST_START(ts_start);
+
+ if ((r = lyd_validate_all(&state->data1, NUL... |
Update routing table unit test | @@ -51,17 +51,17 @@ void unittest_RTFilter_InitCheck(void)
// Init variables
search_result_t result;
uint8_t value;
- // Add samples
+
NEW_STEP("Verify that we have not initialized the result");
value = RTFilter_InitCheck(&result);
// Verify
- TEST_ASSERT_EQUAL(0, value);
+ TEST_ASSERT_EQUAL(FAILED, value);
NEW_STEP("V... |
u8g2: Fix name of updateDisplay export
Correct typo in Lua export from updateDispla() to updateDisplay() | @@ -607,7 +607,7 @@ LROT_BEGIN(lu8g2_display, NULL, LROT_MASK_INDEX)
LROT_FUNCENTRY( setFontRefHeightExtendedText, lu8g2_setFontRefHeightExtendedText )
LROT_FUNCENTRY( setFontRefHeightText, lu8g2_setFontRefHeightText )
LROT_FUNCENTRY( setPowerSave, lu8g2_setPowerSave )
- LROT_FUNCENTRY( updateDispla, lu8g2_updateDispla... |
flash_fp_mcu: Minor spacing fix
BRANCH=none
TEST=none | @@ -355,6 +355,7 @@ flash_fp_mcu_stm32() {
config_hatch() {
check_gpio_chip_exists "gpiochip200"
+
readonly TRANSPORT="SPI"
readonly DEVICE="/dev/spidev1.1"
# See
@@ -442,7 +443,6 @@ config_zork() {
check_gpio_chip_exists "gpiochip320"
readonly TRANSPORT="UART"
-
readonly DEVICE="/dev/ttyS1"
# FPMCU RST_ODL is on AGPIO... |
Track log files for current session | @@ -12,6 +12,7 @@ string os, cpu, gpu, ram, kernel, driver;
bool sysInfoFetched = false;
int gpuLoadLog = 0, cpuLoadLog = 0;
uint64_t elapsedLog;
+std::vector<std::string> logFiles;
struct logData{
double fps;
@@ -50,6 +51,7 @@ string exec(string command) {
}
void writeFile(string filename){
+ logFiles.push_back(filena... |
options/posix: Simplify posix_fallocate(). | @@ -40,25 +40,8 @@ int posix_fadvise(int fd, off_t offset, off_t length, int advice) {
}
int posix_fallocate(int fd, off_t offset, off_t size) {
- struct error_guard {
- error_guard()
- : _s{errno} { }
-
- ~error_guard() {
- errno = _s;
- }
-
- private:
- int _s;
- };
-
- error_guard guard;
-
- if(int e = mlibc::sys_fa... |
Use `%d` instead of `%ld` for `uint32_t`. | @@ -862,11 +862,11 @@ static uint32_t get_relative_index(lily_state *s, lily_container_val *list_val,
if (pos < 0 ||
pos > list_size)
lily_IndexError(s,
- "Index %ld is too small for list (minimum: -%ld)", old_pos,
+ "Index %ld is too small for list (minimum: -%d)", old_pos,
list_size);
}
else if (pos > list_size)
- li... |
Enable examples suite failures as epsdb blocking | @@ -153,7 +153,7 @@ if [ "$nekfails" -ge "1" ]; then
fi
echo "EPSDB Status: " $epsdb_status
Ret=$(($efails + $appfails + $nekfails + $exafails + $exaMfails))
-echo "Experimental Ret " $Ret
-Ret=$(($efails + $appfails + $nekfails))
+#echo "Experimental Ret " $Ret
+#Ret=$(($efails + $appfails + $nekfails))
exit $Ret
|
cooja-radio RSSI_NO_SIGNAL more commented | const struct simInterface radio_interface;
+
+
+/* There radio driver can provide cooja it's nosignal value.
+ * But at present, cooja ignore and override it.
+ * */
enum {
- RSSI_NO_SIGNAL = -120,
- LQI_NO_SIGNAL = 120,
+ /*
+ * Tmote Sky (with CC2420 radio) give value -100dB
+ * CC1310 gives value about -110dB
+ */
+... |
pgraph/hwtest: Nailed down Kelvin POLYGON_STIPPLE method. | @@ -4407,6 +4407,20 @@ class MthdKelvinPolygonStippleEnable : public SingleMthdTest {
using SingleMthdTest::SingleMthdTest;
};
+class MthdKelvinPolygonStipple : public SingleMthdTest {
+ void adjust_orig_mthd() override {
+ adjust_orig_bundle(&orig);
+ }
+ void emulate_mthd() override {
+ pgraph_kelvin_check_err19(&exp... |
Update movie tutorial with ffmpeg information. | @@ -413,3 +413,22 @@ their resolution. ::
Convert can also be used to do other types of image manipulations such
as cropping a flipping images. To learn more about convert google
*ImageMagick convert*.
+
+
+Higher quality encoding with ffmpeg
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+You can get higher quality encoding u... |
stm32/boards/NUCLEO_H743ZI: Use priority 0 for SysTick IRQ.
This follows how all other boards are configured. | * @brief This is the HAL system configuration section
*/
#define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */
-#define TICK_INT_PRIORITY ((uint32_t)0x0F) /*!< tick interrupt priority */
+#define TICK_INT_PRIORITY ((uint32_t)0x00) /*!< tick interrupt priority */
#define USE_RTOS 0
#define USE_SD_TRANSCEIVER 0U ... |
btshell: Add option for directed advertising in the shell
Note when peer_addr is set then directed is marked to true however it
can be overwriten by option "directed" | @@ -206,6 +206,13 @@ cmd_advertise_configure(int argc, char **argv)
return rc;
}
+
+ params.directed = parse_arg_bool_dflt("directed", params.directed, &rc);
+ if (rc != 0) {
+ console_printf("invalid 'directed' parameter\n");
+ return rc;
+ }
+
params.own_addr_type = parse_arg_kv_dflt("own_addr_type",
cmd_own_addr_typ... |
YAy PEG: Fix warning about unused function | @@ -42,6 +42,8 @@ bool ends_with (std::string const & text, std::string const & ending)
return ending.size () > text.size () ? false : std::equal (ending.rbegin (), ending.rend (), text.rbegin ());
}
+#ifdef HAVE_LOGGER
+
/**
* @brief This function returns the string representation of a tree node.
*
@@ -72,6 +74,8 @@ s... |
fix: incorrect comment and parameter | @@ -106,17 +106,19 @@ struct discord_bucket {
/**
* Match endpoint to a route
*
+ * @see https://discord.com/developers/docs/topics/rate-limits#rate-limits
+ *
* @param endpoint that will be matched
- * @return the bucket assigned to this endpoint, can be itself or a major parameter
+ * @return the route from @endpoint... |
Send systematic window updates for the connection *even on bogus DATA frames*
when streaming, only send window updates for the stream | @@ -502,6 +502,7 @@ static void set_priority(h2o_http2_conn_t *conn, h2o_http2_stream_t *stream, con
}
}
+static int write_req_chunk(void *req_, h2o_iovec_t payload, int is_end_stream);
static void write_req_chunk_done(h2o_req_t *req, size_t written, int done)
{
h2o_http2_stream_t *stream = H2O_STRUCT_FROM_MEMBER(h2o_h... |
Do not use space padded day of the month as it messes up log names. | @@ -42,7 +42,7 @@ setaompgpu
# Log directories/files
function create_logs(){
- log_dir=$AOMP_SRC/test/test-suite-results/$(date '+%b-%e-%Y')/$(date '+%H-%M-%S')
+ log_dir=$AOMP_SRC/test/test-suite-results/$(date '+%b-%d-%Y')/$(date '+%H-%M-%S')
mkdir -p $log_dir
results_file=results-report.log
echo Final Log: $log_dir/... |
support mingw64, according to [Add partial support for building with MingW64 GCC 4.8-SEH.](https://github.com/LuaJIT/LuaJIT/commit/1a5fd521b830a8aa17c12d2e707d167722e8c7b1) | @@ -64,8 +64,7 @@ IF(SIZEOF_VOID_P EQUAL 8)
ENDIF()
if ( WIN32 AND NOT CYGWIN )
- add_definitions ( -DLUAJIT_OS=LUAJIT_OS_WINDOWS)
- set ( LJVM_MODE coffasm )
+ set ( LJVM_MODE peobj )
elseif ( APPLE )
set ( CMAKE_EXE_LINKER_FLAGS "-pagezero_size 10000 -image_base 100000000 ${CMAKE_EXE_LINKER_FLAGS}" )
set ( LJVM_MODE ... |
libhfuzz/instrument: print debugging for memcmp earlier | @@ -82,6 +82,10 @@ static void* getsym(const char* sym) {
extern int __wrap_memcmp(const void* s1, const void* s2, size_t n) __attribute__((weak));
static void initializeLibcFunctions(void) {
libc_memcmp = (int (*)(const void* s1, const void* s2, size_t n))getsym("memcmp");
+
+ LOG_D("libc_memcmp=%p, (_memcmp=%p, memcm... |
[dpos] Bug fix: prevent block producers with redudant ID | @@ -18,7 +18,7 @@ type errBpSize struct {
}
func (e errBpSize) Error() string {
- return fmt.Sprintf("wrong # of block producers - %v (required - %v)", e.given, e.required)
+ return fmt.Sprintf("insufficient or redundant block producers - %v (required - %v)", e.given, e.required)
}
// Cluster represents a cluster of bl... |
ctype: fix bugs | @@ -209,9 +209,8 @@ void test_wchar (void)
keySetString (k, "");
succeed_if (!checkType (k), "empty string should not check successfully as wchar");
- wchar_t y[2] = L"ab";
- char s[3 * MB_CUR_MAX];
- wcstombs (s, y, 3 * sizeof (wchar_t));
+ char * s = elektraCalloc (3 * MB_CUR_MAX + 1);
+ wcstombs (s, L"ab", 3 * MB_CU... |
updated logstream test to logstream 2.0 | @@ -55,16 +55,17 @@ class CriblTCPToFileTest(ApplicationTest):
out_file_pattern = "/tmp/CriblOut-*.json"
logging.info(f"Waiting for cribl to output to file {out_file_pattern}")
- result_file_path = self.__wait_for_file(out_file_pattern)
+ result_file_paths = self.__wait_for_files(out_file_pattern)
try:
- res = self.__v... |
[kservice] Fix 64 bit compilation warning | @@ -1383,8 +1383,8 @@ rt_inline void _heap_unlock(rt_base_t level)
#if defined(RT_USING_SMALL_MEM_AS_HEAP)
static rt_smem_t system_heap;
-rt_inline void _smem_info(rt_uint32_t *total,
- rt_uint32_t *used, rt_uint32_t *max_used)
+rt_inline void _smem_info(rt_size_t *total,
+ rt_size_t *used, rt_size_t *max_used)
{
if (t... |
crota: enable BBR firmware update
BRANCH=none
TEST=make -j BOARD=crota
TEST=boot into OS and no type-c function lost | /* Enabling USB4 mode */
#define CONFIG_USB_PD_USB4
-/*
- * TODO: b/229934138, Disable BBR firmware update temporarily.
- */
/* Retimer */
-#undef CONFIG_USBC_RETIMER_FW_UPDATE
+#define CONFIG_USBC_RETIMER_FW_UPDATE
/* Thermal features */
#define CONFIG_THERMISTOR
|
proc: kill the children first | @@ -153,6 +153,11 @@ int proc_start(void (*initthr)(void *), void *arg, const char *path)
void proc_kill(process_t *proc)
{
+ process_t *child;
+
+ for (child = proc->childs; child != proc->childs; child = child->next)
+ proc_kill(child);
+
proc_lockSet(&process_common.lock);
lib_rbRemove(&process_common.id, &proc->idl... |
fs/select : Prevent assert when select called after close | @@ -273,10 +273,18 @@ int file_poll(FAR struct file *filep, FAR struct pollfd *fds, bool setup)
FAR struct inode *inode;
int ret = -ENOSYS;
- DEBUGASSERT(filep != NULL && filep->f_inode != NULL);
+ DEBUGASSERT(filep != NULL);
inode = filep->f_inode;
- if (inode != NULL) {
+ /* If inode is null, notify error result */
+... |
Do not cast to uint16 in SurfaceBlit | @@ -386,8 +386,8 @@ struct MultiplyHandler
static inline uint8 comp(uint8 a, uint8 b) { return (a * b ) / 255; }
static inline uint8 alpha(uint8 a, uint8 b) { return (a * b )/ 255; }
#else
- static inline uint8 comp(uint8 a, uint8 b) { return ( ( (uint16)a + (a>>7)) * b ) >> 8; }
- static inline uint8 alpha(uint8 a, ui... |
Comment out a code block that performs out-of-bounds memory accesses
...and does not appear to be needed even when it stays within the bounds of the array | @@ -823,24 +823,22 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
b[ 3] = *(a01 + 3);
b += 4;
}
+#if 1
+ }
+#else
} else {
#ifdef UNIT
b[ 0] = ONE;
b[ 1] = ZERO;
#else
-// out-of-bounds memory accesses, see issue 601
-// b[ 0] = *(a01 + 0);
-// b[ 1] = *(a01 + 1);
- b[0]=ZERO;
- b[1... |
BugID:18236504:Enable rhino preempt for fixing yloop cert issue | @@ -1058,8 +1058,7 @@ CASE(test_yloop, aos_2_009)
aos_sem_wait(&g_sem_taskexit_sync, -1);
}
printf("%d tasks exit!\r\n", TEST_CONFIG_YLOOP_LOOP_COUNT);
- //ASSERT_EQ(g_var, TEST_CONFIG_YLOOP_LOOP_COUNT);
- ASSERT_EQ(g_var, 1);
+ ASSERT_EQ(g_var, TEST_CONFIG_YLOOP_LOOP_COUNT);
aos_sem_free(&g_sem_taskexit_sync);
}
#endi... |
add non-binary flag! | @@ -20,6 +20,7 @@ BROWN = display.create_pen(97, 57, 21)
BLACK = display.create_pen(0, 0, 0)
MAGENTA = display.create_pen(255, 33, 140)
CYAN = display.create_pen(33, 177, 255)
+AMETHYST = display.create_pen(156, 89, 209)
# Uncomment one of these to change flag
# If adding your own, colour order is left to right (or top... |
TCPMv2: PD Timers - Add PE ChunkingNotSupported to framework
BRANCH=none
TEST=make runtests
Tested-by: Denis Brockus | @@ -672,17 +672,6 @@ static struct policy_engine {
*/
uint64_t wait_and_add_jitter_timer;
- /*
- * PD 3.0, version 2.0, section 6.6.18.1: The ChunkingNotSupportedTimer
- * is used by a Source or Sink which does not support multi-chunk
- * Chunking but has received a Message Chunk. The
- * ChunkingNotSupportedTimer Shal... |
List the correct features for 3D queues. | @@ -146,7 +146,9 @@ serverCreatePrinter(
};
static const char * const features3d[] =/* ipp-features-supported values */
{
- "ipp-3d"
+ "infrastructure-printer",
+ "ipp-3d",
+ "system-service"
};
static const int ops[] = /* operations-supported values */
{
|
ipsec: fix perf issue in esp_aad_fill
Type: fix
Fixes: | @@ -137,19 +137,22 @@ esp_aad_fill (vnet_crypto_op_t * op,
esp_aead_t *aad;
aad = (esp_aead_t *) op->aad;
- clib_memcpy_fast (aad, esp, 8);
+ aad->data[0] = esp->spi;
if (ipsec_sa_is_set_USE_ESN (sa))
{
/* SPI, seq-hi, seq-low */
- aad->data[2] = aad->data[1];
aad->data[1] = clib_host_to_net_u32 (sa->seq_hi);
+ aad->da... |
appveyor: changing Qt folder | @@ -3,7 +3,7 @@ image: Visual Studio 2015
platform: x86
clone_folder: C:\TAU\rhodes
environment:
- QTDIR: C:\Qt\5.9.5\msvc2015
+ QTDIR: C:\Qt\5.9\msvc2015
matrix:
- win32_rhosimulator:
testable_application_repository: https://github.com/rhomobile/RMS-Testing.git
|
spec: correct return value for missing keys when ignore is set | @@ -793,8 +793,11 @@ static int processSpecKey (Key * specKey, Key * parentKey, KeySet * ks, const Co
char * msg = elektraFormat ("Required key %s is missing.", strchr (keyName (specKey), '/'));
handleConflict (parentKey, msg, ch->missing);
elektraFree (msg);
+ if (ch->missing != IGNORE)
+ {
ret = -1;
}
+ }
if (isKdbGe... |
readme: add a link to the quic wikipedia page | @@ -26,7 +26,7 @@ $ sudo h2olog -p $(pgrep -o h2o)
## Tracing QUIC events
-Server-side QUIC events can be traced using the `quic` subcommand.
+Server-side [QUIC](https://en.wikipedia.org/wiki/QUIC) events can be traced using the `quic` subcommand.
Events are rendered in [JSON](https://en.wikipedia.org/wiki/JSON) format... |
doc: Fix typos in interrupt hld | @@ -191,7 +191,7 @@ The interrupt vectors are assigned as shown here:
- Usage
* - 0x0-0x14
- - Exceptions: NMI, INT3, page dault, GP, debug.
+ - Exceptions: NMI, INT3, page fault, GP, debug.
* - 0x15-0x1F
- Reserved
@@ -218,7 +218,7 @@ The interrupt vectors are assigned as shown here:
- Hypervisor Callback HSM
* - 0xF4... |
vere: updates ames future-refactoring comments for accuracy | @@ -190,7 +190,7 @@ _ames_etch_head(u3_head* hed_u, c3_y buf_y[4])
}
/* _ames_chub_bytes(): c3_y[8] to c3_d
-** XX move
+** XX factor out, deduplicate with other conversions
*/
static inline c3_d
_ames_chub_bytes(c3_y byt_y[8])
@@ -206,7 +206,6 @@ _ames_chub_bytes(c3_y byt_y[8])
}
/* _ames_ship_to_chubs(): pack [len_y]... |
router_add_route: be more specific about unreachable matches | @@ -840,19 +840,25 @@ router_add_route(router *rtr, route *rte)
{
route *rw;
route *last = NULL;
- char hadmatchall = 0;
+ route *matchallstop = NULL;
for (rw = rtr->routes; rw != NULL; last = rw, rw = rw->next)
if (rw->matchtype == MATCHALL && rw->stop)
- hadmatchall = 1;
+ matchallstop = rw;
if (last == NULL) {
rtr->... |
Destroy Lua objects before destroying lovr;
This fixes a bug where physics Worlds are destroyed after
ODE is deinitialized, which can cause a segfault. Instead we
collect Lua objects first and then destroy each module. This
makes more sense and doesn't seem to have any consequences... | @@ -33,9 +33,8 @@ static void emscriptenLoop(void* arg) {
int status = lua_tonumber(L, -1);
bool isRestart = lua_type(L, -1) == LUA_TSTRING && !strcmp(lua_tostring(L, -1), "restart");
- lovrDestroy();
-
lua_close(L);
+ lovrDestroy();
emscripten_cancel_main_loop();
if (isRestart) {
@@ -98,8 +97,8 @@ bool lovrRun(int arg... |
Support Python 3.7 in iterate_leaf_indexes and staged_predict fix | @@ -1812,7 +1812,10 @@ class CatBoost(_CatBoostBase):
ntree_end = self.tree_count_
staged_predict_iterator = self._staged_predict_iterator(data, prediction_type, ntree_start, ntree_end, eval_period, thread_count, verbose)
while True:
+ try:
predictions = staged_predict_iterator.next()
+ except StopIteration:
+ return
y... |
Fix arduino primo LED pin (25 --> 20). | @@ -38,7 +38,7 @@ extern uint8_t _ram_start;
#define RAM_SIZE 0x10000
/* LED pins */
-#define LED_BLINK_PIN (25)
+#define LED_BLINK_PIN (20)
/* UART info */
#define ESPDUINO_UART "uart1"
|
acrn-config: fix logical of vm total pci devices count
Skip vhostbridge if there is no pci passtrhough device | @@ -110,14 +110,25 @@ def pci_dev_num_per_vm_gen(config):
shmem_num = scenario_cfg_lib.get_shmem_num(shmem_regions)
for vm_i,vm_type in common.VM_TYPES.items():
+ num = 0
if "POST_LAUNCHED_VM" == scenario_cfg_lib.VM_DB[vm_type]['load_type']:
+ shmem_num_i = 0
if shmem_enabled == 'y' and vm_i in shmem_num.keys():
- prin... |
link to Wiki sections in README.md | @@ -20,19 +20,27 @@ to applications protected by the Apache web server and establishes an authentica
The protected content, applications and services can be hosted by the Apache server itself or served from
origin server(s) residing behind it by configuring Apache as a Reverse Proxy in front of those servers. The
-latt... |
try osx builds, 2 | @@ -24,16 +24,7 @@ jobs:
python -m pip install --upgrade pip
pip install cython pytest pytest-pep8
- - name: Install build prerequisites
- if: runner.os == 'Linux'
- uses: pypa/cibuildwheel@v2.1.2
- env:
- CIBW_BUILD: cp36-* cp37-* cp38-*
- CIBW_BEFORE_BUILD: yum install -y libcurl-devel zlib-devel bzip2-devel xz-devel... |
Fixing but in return value of neutrino integral at limits. | @@ -77,10 +77,10 @@ double nu_phasespace_intg(gsl_interp_accel* accel, double mnuOT, int* status)
// First check the cases where we are in the limits.
if (mnuOT<CCL_NU_MNUT_MIN) {
- integral_value = 7./8.;
+ return 7./8.;
}
else if (mnuOT>CCL_NU_MNUT_MAX) {
- integral_value = 0.2776566337*mnuOT;
+ return 0.2776566337*m... |
fixing uninitialized value | @@ -5088,7 +5088,7 @@ FieldlineLib::
removeOverlap( std::vector< std::vector< std::vector < Point > > > &bins,
unsigned int windingGroupOffset )
{
- unsigned int nnodes;
+ unsigned int nnodes = 0;
unsigned int nSections = bins.size();
for( unsigned int s=0; s<nSections; ++s )
|
FIX: set exp_bucket to hashsize-1. | @@ -287,7 +287,7 @@ static void assoc_expand(void)
#ifdef SLOW_HASH_EXPANSION
/* set hash table expansion */
assocp->expanding = true;
- assocp->exp_bucket = assocp->prevsize - 1;
+ assocp->exp_bucket = assocp->hashsize - 1;
assocp->exp_tabidx = 0;
#else
if (assocp->redistributed_bucket_cnt != 0) {
|
Allow "nul" output for compressed images | @@ -1199,11 +1199,18 @@ int main(
}
else
{
+#if defined(_WIN32)
+ bool is_null = output_filename == "NUL" || output_filename == "nul";
+#else
+ bool is_null = output_filename == "/dev/null";
+#endif
+ if (!is_null)
+ {
printf("ERROR: Unknown compressed output file type\n");
-
return 1;
}
}
+ }
// Store decompressed ima... |
riscv64: cleared page attributes | @@ -132,10 +132,10 @@ int pmap_enter(pmap_t *pmap, addr_t pa, void *va, int attr, page_t *alloc)
return -EFAULT;
}
- pmap->pdir2[pdi2] = (((alloc->addr >> 12) << 10) | (attr & 0x10) | 0xc1);
+ pmap->pdir2[pdi2] = (((alloc->addr >> 12) << 10) | 0x01);
/* Initialize pdir (MOD) - because of reentrancy */
- pmap_common.pdi... |
[cmake] work around a Debian/Ubuntu bug in Python install paths | @@ -33,6 +33,12 @@ option(INSTALL_PYTHON_SYMLINKS "Install Python .py files as symlinks" OFF)
#
function(set_python_install_path)
set(python_install_options "--record;${CMAKE_BINARY_DIR}/python_install_manifest.txt")
+
+ execute_process(COMMAND ${PYTHON_EXECUTABLE} -c
+ "import sys; print('%d.%d'%(sys.version_info.majo... |
framework/st_things: Change local stack variable to static
The reference of this stack object is passed to new thread as parameter,
but it may be freed before dereference in the new thread. | @@ -301,7 +301,8 @@ static void *__attribute__((optimize("O0"))) t_things_wifi_join_loop(void *args)
void things_wifi_sta_connected(wifi_manager_result_e res)
{
- bool is_wifi_retry_connect = false;
+ static bool is_wifi_retry_connect;
+ is_wifi_retry_connect = false;
if (res == WIFI_MANAGER_FAIL) {
THINGS_LOG_E(TAG, "... |
benchmark/rresamp: scaling number of trials by Q, adding more benches | @@ -31,7 +31,8 @@ void rresamp_crcf_bench(struct rusage * _start,
unsigned int _P,
unsigned int _Q)
{
- unsigned long int i;
+ // adjust number of iterations: cycles/trial ~ 160 + 50 Q
+ *_num_iterations /= (160 + 50*_Q);
rresamp_crcf q = rresamp_crcf_create_default(_P,_Q);
@@ -40,6 +41,7 @@ void rresamp_crcf_bench(str... |
Fix no-ec
The cmp_protect_test cert chain tests use some EC certs which breaks in
a no-ec build. The fix is to just skip those tests if no-ec has been
configured. | @@ -294,6 +294,8 @@ static int test_MSG_add_extraCerts(void)
return result;
}
+#ifndef OPENSSL_NO_EC
+/* The cert chain tests use EC certs so we skip them in no-ec builds */
static int execute_cmp_build_cert_chain_test(CMP_PROTECT_TEST_FIXTURE *fixture)
{
STACK_OF(X509) *result = NULL;
@@ -372,6 +374,7 @@ static int te... |
evp: fix coverity & unchecked return values | @@ -57,11 +57,13 @@ RSA *EVP_PKEY_get1_RSA(EVP_PKEY *pkey)
#ifndef OPENSSL_NO_EC
int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key)
{
- int ret = EVP_PKEY_assign_EC_KEY(pkey, key);
-
- if (ret)
- EC_KEY_up_ref(key);
- return ret;
+ if (!EC_KEY_up_ref(key))
+ return 0;
+ if (!EVP_PKEY_assign_EC_KEY(pkey, key)) {
+ EC... |
Update debug code for fibers. | @@ -612,7 +612,9 @@ static void *op_lookup[255] = {
nextfiber = dst_unwrap_fiber(fiberval);
switch (nextfiber->status) {
default:
- vm_throw("expected pending or new fiber");
+ vm_throw("expected pending, new, or debug fiber");
+ case DST_FIBER_DEBUG:
+ break;
case DST_FIBER_NEW:
{
dst_fiber_push(nextfiber, val);
@@ -6... |
Add static qualifier to s_light_sleep_wakeup variable to prevent it from being global.
Closes | @@ -81,7 +81,9 @@ static sleep_config_t s_config = {
.wakeup_triggers = 0
};
-bool s_light_sleep_wakeup = false;
+/* Internal variable used to track if light sleep wakeup sources are to be
+ expected when determining wakeup cause. */
+static bool s_light_sleep_wakeup = false;
/* Updating RTC_MEMORY_CRC_REG register via... |
fixes the initial value | @@ -711,7 +711,7 @@ static void gen_enum(FILE *fp, struct jc_enum *e)
char *t = ns_to_symbol_name(e->name);
fprintf(fp, "enum %s {\n", t);
- int i = 0, prev_value;
+ int i = 0, prev_value = -1;
for (i = 0; e->items && e->items[i]; i++) {
struct jc_item * item = e->items[i];
|
muxread: fix 0 offset of NULL pointer | @@ -100,7 +100,7 @@ static int MuxImageParse(const WebPChunk* const chunk, int copy_data,
WebPMuxImage* const wpi) {
const uint8_t* bytes = chunk->data_.bytes;
size_t size = chunk->data_.size;
- const uint8_t* const last = bytes + size;
+ const uint8_t* const last = (bytes == NULL) ? NULL : bytes + size;
WebPChunk subc... |
Try fixing -lm in cmake | @@ -9,13 +9,17 @@ find_package(CMocka REQUIRED)
message(STATUS "CMocka vars: ${CMOCKA_LIBRARIES} ${CMOCKA_INCLUDE_DIR}")
+find_library(MATH_LIBRARY m)
+
foreach (TEST ${TESTS})
string(REGEX REPLACE ".*/([^/]+).c" "\\1" NAME ${TEST})
message("Adding test ${NAME}")
add_executable(${NAME} "${NAME}.c" assertions.c stream_e... |
examples/nettest: Fix some printf output | @@ -108,7 +108,7 @@ void nettest_client(void)
memcpy(server.sin6_addr.s6_addr16, g_nettestserver_ipv6, 8 * sizeof(uint16_t));
addrlen = sizeof(struct sockaddr_in6);
- printf("Connecting to IPv6 Address: %04x:04x:04x:04x:04x:04x:04x:04x\n",
+ printf("Connecting to IPv6 Address: %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n"... |
khan: wip naive scry implementation
As of yet untested since I don't yet know how to construct a scry path
from Haskell. Probably broken; crashes the process on some input. | @@ -168,6 +168,21 @@ _khan_moor_bail(void* ptr_v, ssize_t err_i, const c3_c* err_c)
}
}
+/* _khan_peek_cb(): handle scry result: send immediately.
+*/
+static void
+_khan_peek_cb(void* ptr_v, u3_noun nun)
+{
+ u3_chan* can_u = (u3_chan*)ptr_v;
+ u3_khan* kan_u = can_u->san_u->kan_u;
+ c3_y* byt_y;
+ c3_d len_d;
+
+ u3s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.