message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
actions, macOS: use newer oclint cask | @@ -110,7 +110,7 @@ jobs:
yaml-cpp \
zeromq
if [ "$CC" = 'clang' ]; then
- brew install oclint/formulae/oclint
+ brew install --cask oclint
fi
brew install --cask adoptopenjdk
# Try to install `checkbashisms` (The file server that hosts the package is unfortunately quite unreliable.)
|
apps/system/utils/README.md : Add prodconfig guide
Added the description of prodconfig like below.
prodconfig shows the status of hw configurations like swd enable/disable. | @@ -16,10 +16,11 @@ Most of the commands support *--help* option to show how to use.
| | [heapinfo](#heapinfo) | [mkdir](#mkdir) |
| | [irqinfo](#irqinfo) | [mv](#mv) |
| | [kill/killall](#killkillall) | [mount](#mount) |
-| | [ps](#ps) | [umount](#umount) |
-| | [reboot](#reboot) | [pwd](#pwd) |
-| | [stkmon](#stkmon)... |
No Ticket - correct os_sem_init() comment | */
/**
- * os sem create
+ * os sem initialize
*
- * Create a semaphore and initialize it.
+ * Initialize a semaphore
*
* @param sem Pointer to semaphore
* tokens: # of tokens the semaphore should contain initially.
|
Configurations/unix-Makefile.tmpl: use platform->sharedlib() as fallback
If platform->sharedlib_simple() and platform->sharedlib_import()
return undefined, try platform->sharedlib() as a fallback before
platform->staticlib(). | @@ -1392,7 +1392,7 @@ FORCE:
# Building targets ###################################################
-libcrypto.pc libssl.pc openssl.pc: configdata.pm $(LIBS) {- join(" ",map { platform->sharedlib_simple($_) // platform->sharedlib_import($_) // () } @{$unified_info{libraries}}) -}
+libcrypto.pc libssl.pc openssl.pc: con... |
tree data BUGFIX uniinitialized variable | @@ -4367,14 +4367,13 @@ API LY_ERR
lyd_find_xpath(const struct lyd_node *ctx_node, const char *xpath, struct ly_set **set)
{
LY_ERR ret = LY_SUCCESS;
- struct lyxp_set xp_set;
+ struct lyxp_set xp_set = {0};
struct lyxp_expr *exp = NULL;
uint32_t i;
LY_CHECK_ARG_RET(NULL, ctx_node, xpath, set, LY_EINVAL);
*set = NULL;
... |
Include twamp configs in conf/Makefile.am | # This doesn't really do this yet - it just provides
# examples.
noinst_DATA = owampd.conf owampd.limits owampd.init owampd.service
+noinst_DATA += twampd.conf twampd.limits twampd.init twampd.service
EXTRA_DIST = owampd.conf owampd.rpm.conf owampd.limits owampd.init owampd.service
+EXTRA_DIST += twampd.conf twampd.rpm... |
added documentation references | @@ -17,6 +17,8 @@ First, you need to know that SGDK uses C language (assembly is also possible but
### MEGA DRIVE TECHNICAL INFO REFERENCES
+* And-0 - Awesome Mega Drive Development references:<br>
+https://github.com/And-0/awesome-megadrive
* Raster Scroll - Sega Mega Drive Graphics guide:<br>
https://rasterscroll.com... |
python: pyserial driver. Add hdw flow control to API | @@ -35,12 +35,13 @@ class PySerialDriver(BaseDriver):
Baud rate of serial port (defaults to 115200)
"""
- def __init__(self, port, baud=115200):
+ def __init__(self, port, baud=115200, rtscts=False):
import serial
try:
handle = serial.serial_for_url(port)
handle.baudrate = baud
handle.timeout = 1
+ handle.rtscts = rtsc... |
vlib: enable worker-thread dispatch pcap trace
Needed a bit of foreach_vlib_main(...) action to turn on/off all
instances of vm->dispatch_pcap_enable, and to pick up the pcap_main_t
pointer from vlib_global_main.
Type: fix | @@ -1023,7 +1023,7 @@ dispatch_pcap_trace (vlib_main_t * vm,
{
int i;
vlib_buffer_t *bufs[VLIB_FRAME_SIZE], **bufp, *b;
- pcap_main_t *pm = &vm->dispatch_pcap_main;
+ pcap_main_t *pm = &vlib_global_main.dispatch_pcap_main;
vlib_trace_main_t *tm = &vm->trace_main;
u32 capture_size;
vlib_node_t *n;
@@ -2243,12 +2243,16 @... |
Change requirement to have zlib in PATH to have zlib installed. | <title>gp_workfile_compress_algorithm</title>
<body>
<p>When a hash aggregation or hash join operation spills to disk during query processing,
- specifies the compression algorithm to use on the spill files. If using zlib, it must be in
- your $PATH on all segments.</p>
- <p>If your Greenplum database installation uses... |
rgb_lcd: support PLL240MHz clock source | @@ -595,15 +595,11 @@ static esp_err_t lcd_rgb_panel_select_clock_src(esp_rgb_panel_t *panel, lcd_cloc
{
esp_err_t ret = ESP_OK;
switch (clk_src) {
+ case LCD_CLK_SRC_PLL240M:
+ panel->src_clk_hz = 240000000;
+ break;
case LCD_CLK_SRC_PLL160M:
panel->src_clk_hz = 160000000;
-#if CONFIG_PM_ENABLE
- ret = esp_pm_lock_cre... |
Rust: Build only with debian buster | @@ -79,7 +79,6 @@ RUN apt-get update \
bison \
uuid-dev \
ninja-build \
- clang-3.9 \
&& rm -rf /var/lib/apt/lists/*
RUN cabal update && cabal install hspec QuickCheck
@@ -196,7 +195,3 @@ RUN mkdir -p $HASKELL_SHARED_SANDBOX \
'hspec -any' 'QuickCheck-any' --avoid-reinstalls
# Workaround for issue [#2139](http://issues... |
Hidden download button (not implemented yet) | @@ -92,9 +92,9 @@ class AppToolbar extends Component {
<ToolbarButton onClick={this.openProjectFolder}>
<FolderIcon />
</ToolbarButton>
- <ToolbarButton>
+ {/* <ToolbarButton>
<DownloadIcon />
- </ToolbarButton>
+ </ToolbarButton> */}
<ToolbarFixedSpacer />
<ToolbarButton onClick={this.onRun}>
{running ? <LoadingIcon /... |
Fix a NULL ptr deref in error path in tls_process_cke_dhe()
Fixes | @@ -3129,13 +3129,12 @@ static int tls_process_cke_dhe(SSL *s, PACKET *pkt)
SSL_R_BN_LIB);
goto err;
}
+
cdh = EVP_PKEY_get0_DH(ckey);
pub_key = BN_bin2bn(data, i, NULL);
-
- if (pub_key == NULL || !DH_set0_key(cdh, pub_key, NULL)) {
+ if (pub_key == NULL || cdh == NULL || !DH_set0_key(cdh, pub_key, NULL)) {
SSLfatal(s... |
The builtin package using vm->num_registers is a poor example.
Use `lily_take_value`, which is there for that. | @@ -1633,11 +1633,8 @@ void lily_builtin_List_map(lily_state *s)
lily_list_val *result_list = lily_new_list(i);
i--;
- for (;i >= 0;i--) {
- s->num_registers--;
- lily_value_assign(result_list->elems[i],
- s->regs_from_main[s->num_registers]);
- }
+ for (;i >= 0;i--)
+ lily_value_assign(result_list->elems[i], lily_take... |
Fix bug with wrong status detection. Set it only if not OK | @@ -88,7 +88,9 @@ esp_thread_producer(void* const arg) {
} else {
res = espERR; /* Simply set error message */
}
+ if (res != espOK) {
msg->res = res; /* Save response */
+ }
/*
* In case message is blocking,
|
options/posix/unistd: implement one pathconf() case | #include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <limits.h>
#include <bits/ensure.h>
#include <mlibc/allocator.hpp>
@@ -336,9 +337,15 @@ int nice(int) {
__ensure(!"Not implemented");
__builtin_unreachable();
}
-long pathconf(const char *, int) {
- __ensure(!"Not implemented");
- __builtin_unreachab... |
nimble/gap: Add missing listener callback call on adv finished | @@ -729,8 +729,6 @@ ble_gap_adv_finished(uint8_t instance, int reason, uint16_t conn_handle,
ble_gap_event_fn *cb;
void *cb_arg;
- ble_gap_slave_extract_cb(instance, &cb, &cb_arg);
- if (cb != NULL) {
memset(&event, 0, sizeof event);
event.type = BLE_GAP_EVENT_ADV_COMPLETE;
event.adv_complete.reason = reason;
@@ -739,6... |
Update cache key so cache re-built | steps:
- task: Cache@2
inputs:
- key: '3-3-5V2 | esp335ToolsKey'
+ key: '3-3-5V3 | esp335ToolsKey'
restoreKeys: esp335ToolchainKey
path: $(Agent.TempDirectory)\ESP32_Tools
cacheHitVar: ESP_TOOLS_CACHE_RESTORED
|
Image loader: normalize requested colors to prevent integer overflow | @@ -1331,21 +1331,27 @@ end:
SIXELAPI SIXELSTATUS
sixel_helper_load_image_file(
char const /* in */ *filename, /* source file name */
- int /* in */ fstatic, /* whether to extract static image */
- int /* in */ fuse_palette, /* whether to use paletted image */
- int /* in */ reqcolors, /* requested number of colors */
... |
use static assert macro instead of keyword
This change fixes a linker error I noticed when compiling on my windows
sytstem. see
According to this link the macro is prefered to the keyword.
https://docs.microsoft.com/en-us/cpp/c-language/static-assert-c?view=msvc-170#:~:text=The%20_Static_assert%20keyword%2C%20and%20the... | @@ -495,7 +495,7 @@ static bool openxr_init(float supersample, float offset, uint32_t msaa, bool ove
{ 0, NULL, "vibrate", XR_ACTION_TYPE_VIBRATION_OUTPUT, 2, hands, "Vibrate" }
};
- _Static_assert(COUNTOF(actionInfo) == MAX_ACTIONS, "Unbalanced action table!");
+ static_assert(COUNTOF(actionInfo) == MAX_ACTIONS, "Unba... |
doc: build changes for PKEY life cycle documentation | @@ -4391,6 +4391,10 @@ DEPEND[html/man7/life_cycle-mac.html]=man7/life_cycle-mac.pod
GENERATE[html/man7/life_cycle-mac.html]=man7/life_cycle-mac.pod
DEPEND[man/man7/life_cycle-mac.7]=man7/life_cycle-mac.pod
GENERATE[man/man7/life_cycle-mac.7]=man7/life_cycle-mac.pod
+DEPEND[html/man7/life_cycle-pkey.html]=man7/life_cyc... |
Fixed FF INC and DEC opcodes | @@ -1299,14 +1299,22 @@ x64emurun:
case 0: /* INC Ed */
if(rex.w)
ED->q[0] = inc64(emu, ED->q[0]);
- else
+ else {
+ if(MODREG)
ED->q[0] = inc32(emu, ED->dword[0]);
+ else
+ ED->dword[0] = inc32(emu, ED->dword[0]);
+ }
break;
case 1: /* DEC Ed */
if(rex.w)
ED->q[0] = dec64(emu, ED->q[0]);
- else
+ else {
+ if(MODREG)
E... |
Properly local multipath qlog ref for linux | @@ -789,7 +789,11 @@ int multipath_aead_test()
#define MULTIPATH_TRACE_BIN "0807060504030201.server.log"
#define MULTIPATH_QLOG "multipath_qlog_test.qlog"
+#ifdef _WINDOWS
#define MULTIPATH_QLOG_REF "picoquictest\\multipath_qlog_ref.txt"
+#else
+#define MULTIPATH_QLOG_REF "picoquictest/multipath_qlog_ref.txt"
+#endif
s... |
Remove last incubator leftovers
X-Original-Commit: | pkg.name: net/nimble/controller/test
pkg.type: unittest
pkg.description: "NimBLE controller unit tests."
-pkg.author: "Apache Mynewt <dev@mynewt.incubator.apache.org>"
+pkg.author: "Apache Mynewt <dev@mynewt.apache.org>"
pkg.homepage: "http://mynewt.apache.org/"
pkg.keywords:
|
Add OBJ_NAME_ALTPATH_SEPARATOR | @@ -230,6 +230,7 @@ typedef const OBJECT_ATTRIBUTES *PCOBJECT_ATTRIBUTES;
#define RTL_INIT_OBJECT_ATTRIBUTES(n, a) RTL_CONSTANT_OBJECT_ATTRIBUTES(n, a)
#define OBJ_NAME_PATH_SEPARATOR ((WCHAR)L'\\')
+#define OBJ_NAME_ALTPATH_SEPARATOR ((WCHAR)L'/')
// Portability
|
Make sure block effort is always computed | @@ -119,6 +119,10 @@ namespace MiningCore.Payments
await cf.RunTxAsync(async (con, tx) =>
{
+ // fill block effort if empty
+ if (!block.Effort.HasValue)
+ await CalculateBlockEffort(pool, block, handler);
+
switch (block.Status)
{
case BlockStatus.Confirmed:
@@ -138,9 +142,6 @@ namespace MiningCore.Payments
break;
cas... |
use new mbedtls_sha256 methods that are not deprecated | @@ -210,8 +210,8 @@ int tls_client_get_id(uint8_t id[], size_t len, const char query[])
if (strchr(query, '.')) {
mbedtls_sha256_context ctx;
mbedtls_sha256_init(&ctx);
- mbedtls_sha256_update(&ctx, (uint8_t*) &query[0], strlen(query));
- mbedtls_sha256_finish(&ctx, hash);
+ mbedtls_sha256_update_ret(&ctx, (uint8_t*) &... |
remove unused include sys/sysctl.h | #include <sys/types.h>
#include <sys/resource.h>
#include <sys/param.h>
-#if !defined(_cygwin_) && !defined(_android_)
-#include <sys/sysctl.h>
-#endif
-#else
-#if defined(_win_)
+#elif defined(_win_)
#include <util/system/winint.h>
#endif
-#endif
TTimer::TTimer(const TStringBuf message) {
static const int SMALL_DURATI... |
mpi-families/openmpi: bump to v4.0.3 to resolve ucx issue | @@ -40,7 +40,7 @@ Summary: A powerful implementation of MPI/SHMEM
Name: %{pname}%{RMS_DELIM}-%{compiler_family}%{PROJ_DELIM}
-Version: 4.0.2
+Version: 4.0.3
Release: 1%{?dist}
License: BSD-3-Clause
Group: %{PROJ_NAME}/mpi-families
|
Pass:line errors if only 1 point is provided; | @@ -4338,6 +4338,8 @@ void lovrPassPoints(Pass* pass, uint32_t count, float** points) {
}
void lovrPassLine(Pass* pass, uint32_t count, float** points) {
+ lovrCheck(count >= 2, "Need at least 2 points to make a line");
+
uint16_t* indices;
lovrPassDraw(pass, &(Draw) {
|
Fix auto mode | @@ -594,7 +594,7 @@ bool PrepareTreesCalcShapValues(
treesAverageLeafCount += (size_t(1) << forest.TreeSizes[treeIdx]);
}
treesAverageLeafCount /= treeCount;
- return treesAverageLeafCount > dataset->ObjectsGrouping->GetObjectCount();
+ return treesAverageLeafCount < dataset->ObjectsGrouping->GetObjectCount();
}
}
}
|
Rename s2n_choose_preferred_signature_hash_algorithm to s2n_choose_preferred_signature_hash_pair | @@ -37,7 +37,7 @@ int s2n_client_cert_verify_recv(struct s2n_connection *conn)
if(conn->actual_protocol_version == S2N_TLS12){
int pairs_available = 1;
/* Read and Validate Hash and Signature Algorithms provided by Client */
- GUARD(s2n_choose_preferred_signature_hash_algorithm(in, pairs_available, &chosen_hash_alg, &c... |
vppapigen: simplify JSON format for services
Use
"services": {
"foo_request": {
"reply": "foo_request_reply"
},
"foo_dump": {
"reply": "foo_details",
"stream": true
}
},
instead of:
"services": [
{
"foo_request": {
"reply": "foo_request_reply"
}
},
{
"foo_dump": {
"reply": "foo_details",
"stream": true
}
}
], | @@ -15,14 +15,14 @@ def walk_enums(s):
def walk_services(s):
- r = []
+ r = {}
for e in s:
d = {'reply': e.reply}
if e.stream:
d['stream'] = True
if e.events:
d['events'] = e.events
- r.append({e.caller: d})
+ r[e.caller] = d
return r
|
when the timer is already late, schedule the ISR manually immediately. | #include "debugpins.h"
#include <headers/hw_ints.h>
+// ========================== define ==========================================
+
+#define TIMERLOOP_THRESHOLD 0xffffff // 511 seconds @ 32768Hz clock
+
// ========================== variable ========================================
typedef struct {
@@ -45,8 +49,14 @... |
PROV: Adjust the KEYMGMT name specs to include all names
This is very simply to allow the common case, where the KEYMGMT is
fetched first, and all names are needed at that time to secure that
they are found. | @@ -388,12 +388,12 @@ static const OSSL_ALGORITHM deflt_asym_cipher[] = {
static const OSSL_ALGORITHM deflt_keymgmt[] = {
#ifndef OPENSSL_NO_DH
- { "DH", "default=yes", dh_keymgmt_functions },
+ { "DH:dhKeyAgreement", "default=yes", dh_keymgmt_functions },
#endif
#ifndef OPENSSL_NO_DSA
- { "DSA", "default=yes", dsa_key... |
framework/media: Remove unnecessary code
.get() is not necessary to using arrow operator | @@ -47,8 +47,8 @@ std::shared_ptr<FocusRequest> FocusRequest::Builder::build()
ss << static_cast<const void *>(focusRequest.get());
ss << static_cast<const void *>(mListener.get());
mId = ss.str();
- focusRequest.get()->mId = mId;
- focusRequest.get()->mListener = mListener;
+ focusRequest->mId = mId;
+ focusRequest->m... |
stm32/i2c: Fix num_acks calculation in i2c_write for F0 and F7 MCU's.
Due to buffering of outgoing bytes on the I2C bus, detection of a NACK
using the ISR_NACKF flag needs to account for the case where ISR_NACKF
corresponds to the previous-to-previous byte. | @@ -421,8 +421,13 @@ int i2c_write(i2c_t *i2c, const uint8_t *src, size_t len, size_t next_len) {
if ((ret = i2c_wait_isr_set(i2c, I2C_ISR_TCR | I2C_ISR_TC | I2C_ISR_STOPF))) {
return ret;
}
- if (i2c->ISR & I2C_ISR_NACKF) {
+ uint32_t isr = i2c->ISR;
+ if (isr & I2C_ISR_NACKF) {
// Slave did not respond to byte so sto... |
libbpf-tools/mountsnoop: Fix example strings. | @@ -84,7 +84,7 @@ const char argp_program_doc[] =
"\n"
"EXAMPLES:\n"
" mountsnoop # trace mount and umount syscalls\n"
-" mountsnoop -v # output vertically(one line per column value)\n"
+" mountsnoop -d # detailed output (one line per column value)\n"
" mountsnoop -p 1216 # only trace PID 1216\n";
static const struct a... |
Examples: Reformat CMake code | @@ -11,8 +11,7 @@ macro (do_example source)
target_link_elektra (${source} elektra-kdb)
- set_target_properties (${source} PROPERTIES
- COMPILE_DEFINITIONS HAVE_KDBCONFIG_H)
+ set_target_properties (${source} PROPERTIES COMPILE_DEFINITIONS HAVE_KDBCONFIG_H)
endmacro (do_example)
file (GLOB TESTS *.c)
|
x86_64: support for RIP in unw_get_save_loc
Returns the location of RIP through unw_get_save_loc(). | @@ -44,6 +44,7 @@ unw_get_save_loc (unw_cursor_t *cursor, int reg, unw_save_loc_t *sloc)
case UNW_X86_64_R13: loc = c->dwarf.loc[R13]; break;
case UNW_X86_64_R14: loc = c->dwarf.loc[R14]; break;
case UNW_X86_64_R15: loc = c->dwarf.loc[R15]; break;
+ case UNW_X86_64_RIP: loc = c->dwarf.loc[RIP]; break;
default:
break;
|
Make sure sample is VS2017 | <ProjectGuid>{F395E460-C042-4FA9-B00D-6EC14856182D}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>sample</RootNamespace>
- <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
+ <WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTarge... |
Update debug info for release windows ci. | @@ -191,7 +191,7 @@ if(WIN32 AND MSVC)
string(REGEX REPLACE "/RTC[^ ]*" "" ${FLAG_VAR} "${${FLAG_VAR}}")
message(STATUS "-------------------------------------------------------")
- message(STATUS "${FLAG_VAR}")
+ message(STATUS "${${FLAG_VAR}}")
message(STATUS "-------------------------------------------------------")
... |
[MEMPOOL] Slice append without loop during get and add statistic log | @@ -163,17 +163,18 @@ func (mp *MemPool) Statistics() *map[string]interface{} {
}
func (mp *MemPool) get() ([]*types.Tx, error) {
+ start := time.Now()
mp.RLock()
defer mp.RUnlock()
count := 0
txs := make([]*types.Tx, 0)
for _, list := range mp.pool {
- for _, v := range list.Get() {
- txs = append(txs, v)
- count++
- ... |
main shm CHANGE when main shm creation fails, remove it
Otherwise it is considered properly initialized
for the next connection. | @@ -2060,13 +2060,13 @@ sr_shmmain_create(sr_conn_ctx_t *conn)
/* map it (will be zeroed) */
if ((err_info = sr_shm_remap(&conn->main_shm, sizeof *main_shm))) {
- return err_info;
+ goto cleanup;
}
/* init attributes */
main_shm = (sr_main_shm_t *)conn->main_shm.addr;
if ((err_info = sr_rwlock_init(&main_shm->lock, 1))... |
CMakelist ADD compatibility with libssh 0.8.0 and 0.8.1 | @@ -189,7 +189,11 @@ endif()
if(ENABLE_SSH)
find_package(LibSSH 0.7.0 REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNC_ENABLED_SSH")
+ if(LibSSH_PACKAGE_FIND_VERSION_MINOR LESS 8)
target_link_libraries(netconf2 "-L${LIBSSH_LIBRARY_DIR}" -lssh -lssh_threads -lcrypt)
+ else()
+ target_link_libraries(netconf2 "-L${LIBSS... |
[NET] Disable DHCPD in default. | @@ -52,7 +52,7 @@ config RT_USING_LWIP
config LWIP_USING_DHCPD
bool "Enable DHCP server"
- default y
+ default n
endif
config RT_LWIP_UDP
|
SOVERSION bump to version 3.3.2 | @@ -67,7 +67,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION
# with backward compatible change and micro version is connected with any internal change of the library.
set(LIBNETCONF2_MAJOR_SOVERSION 3)
set(LIBNETCONF2_MINOR_SOVERSION 3)
-set(LIBNETCONF2_MICRO_SOVERSION 1)
+set(LIBN... |
Update README with new benchmark runner | @@ -84,14 +84,24 @@ $ busted spec/parser_spec.lua # Run just one of the test suite files
```
## Running the benchmarks suite
-Running all benchmarks in `benchmarks` directory:
+To run of the benchmarks in the benchmarks directory, tun the `benchmarks/run`
+script from the root project directory:
```sh
-$ ./run_benchmar... |
esp32s2: Move some code after the stdout initialization | @@ -293,15 +293,6 @@ void start_cpu0_default(void)
esp_brownout_init();
#endif
-#if CONFIG_SECURE_DISABLE_ROM_DL_MODE
- err = esp_efuse_disable_rom_download_mode();
- assert(err == ESP_OK && "Failed to disable ROM download mode");
-#endif
-#if CONFIG_SECURE_ENABLE_SECURE_ROM_DL_MODE
- err = esp_efuse_enable_rom_secure_... |
.github/workflows/ports_unix.yml: macos: Pin CPython version to 3.8.
Overmodern versions like 3.10 are now selected, which have compatibility
problems. | @@ -179,6 +179,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
+ with:
+ python-version: 3.8
- name: Build
run: source tools/ci.sh && ci_unix_macos_build
- name: Run tests
|
Send reset event in any case, forced reset or unforced | @@ -438,8 +438,9 @@ espi_parse_received(esp_recv_t* rcv) {
if (IS_CURR_CMD(ESP_CMD_RESET)) { /* Did we force reset? */
} else { /* Reset due unknown error */
- espi_send_cb(ESP_CB_RESET); /* Call user callback function */
+
}
+ espi_send_cb(ESP_CB_RESET); /* Call user callback function */
reset_everything(); /* Put eve... |
do not install source and bin files, only library and includes | @@ -128,7 +128,7 @@ if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then
rm -rf $BUILD_DIR/build/hip
fi
- MYCMAKEOPTS="-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_INSTALL_RPATH=$AOMP_INSTALL_DIR/lib:$AOMP_INSTALL_DIR/hcc/lib -DCMAKE_BUILD_TYPE=$BUILDTYPE -DCMAKE_INSTALL_PREFIX=$INSTALL_HIP -DHIP_PLATFORM=hcc -DH... |
error: added additional alternatives in text | @@ -40,7 +40,7 @@ Reason against: The description of the key should already provide such informati
Doing it in an extra key would imply redundant information.
* Removal of warnings with error codes from the specification file.
-Various FLOSS projects:
+Various projects and standards:
* [GStreamer](https://github.com/GS... |
libhfcommon/util: unify util_PinThreadToCPUs - NetBSD fixes | #include <sys/cpuset.h>
#include <sys/param.h>
#endif
-#if defined(HF_ARCH_NETBSD)
+#if defined(_HF_ARCH_NETBSD)
#include <sched.h>
-#endif /* defined(HF_ARCH_NETBSD) */
+#endif /* defined(_HF_ARCH_NETBSD) */
#include <signal.h>
#include <stdarg.h>
#include <stdint.h>
@@ -102,23 +102,39 @@ bool util_PinThreadToCPUs(uin... |
change example subproject to hwacha [ci skip] | @@ -113,11 +113,11 @@ Therefore, in order to simulate a simple Rocket-based example system we can use:
./simulator-<yourproject>-<yourconfig> ...
-All `Make` targets that can be applied to the default example, can also be applied to custom project using the custom environment variables. For example, the following code ... |
Add a changelog note | @@ -12,6 +12,8 @@ Next
- Globally enforced code style [#83]
- Fix issue possible memory corruption bug on repeated
cbor_(byte)string_add_chunk calls with intermittently failing realloc calls
+- Fix possibly misaligned reads and writes when endian.h is uses or when
+ running on a big-endian machine [#99, #100]
0.5.0 (20... |
CI/CD: fix run enclave tls server for sgx_la error
Fixes: | @@ -147,7 +147,7 @@ jobs:
if: ${{ contains(matrix.sgx, 'SGX2') }}
run: |
docker cp /etc/sgx_default_qcnl.conf $inclavare_test:/etc/;
- docker exec $inclavare_test bash -c 'cd /opt/enclave-tls/bin/ && ./enclave-tls-server -l debug -a sgx_la -t wolfssl_sgx -c wolfcrypt' -i 127.0.0.1 -p ${{ steps.random-port-generator3.ou... |
chip/stm32/registers.h: Format with clang-format
BRANCH=none
TEST=none
Tricium: disable | #include "common.h"
#include "compile_time_macros.h"
-
#ifndef __ASSEMBLER__
/* Register definitions */
/* --- TIMERS --- */
#define STM32_TIM_BASE(n) CONCAT3(STM32_TIM, n, _BASE)
-#define STM32_TIM_REG(n, offset) \
- REG16(STM32_TIM_BASE(n) + (offset))
-#define STM32_TIM_REG32(n, offset) \
- REG32(STM32_TIM_BASE(n) + ... |
OcConsoleLib: Fix MTRR pointers | @@ -369,8 +369,8 @@ DirectGopSetMode (
if (mGop.CachePolicy >= 0) {
MtrrSetMemoryAttribute (
- This->Mode->FrameBufferBase,
- This->Mode->FrameBufferSize,
+ mGop.OriginalFrameBufferBase,
+ mGop.OriginalFrameBufferSize,
mGop.CachePolicy
);
}
@@ -575,15 +575,15 @@ OcUseDirectGop (
if (CacheType >= 0) {
Status = MtrrSetMe... |
Render OpenVR mirror window in stereo; | @@ -253,7 +253,7 @@ static void ensureCanvas() {
glGetIntegerv(GL_SAMPLES, &msaa);
state.system->GetRecommendedRenderTargetSize(&state.renderWidth, &state.renderHeight);
CanvasFlags flags = { .msaa = msaa, .depth = true, .stencil = true, .mipmaps = false };
- state.canvas = lovrCanvasCreate(state.renderWidth, state.ren... |
Duplicate param ks in calculateSpecificationToken() before ksCut, so the caller can still use their ks afterwards. | @@ -39,8 +39,10 @@ kdb_boolean_t calculateSpecificationToken (char * hash_string, KeySet * ks, Key
//TODO: use parentKey for error reporting!
- // Cut out parentKey and all keys below. These are the ones we take into account for token calculation.
- KeySet * cutKs = ksCut (ks, parentKey);
+
+ // Duplicate ks, then cut ... |
Module API doc formatting from
Add blank before lists, so that they will be rendered as lists.
Commands RM_GetCommand and RM_CreateSubcommand were added in | @@ -953,6 +953,7 @@ RedisModuleCommand *moduleCreateCommandProxy(struct RedisModule *module, const c
* This structure is used in some of the command-related APIs.
*
* NULL is returned in case of the following errors:
+ *
* * Command not found
* * The command is not a module command
* * The command doesn't belong to the... |
add hanfer edition 1s brushless pids | @@ -66,6 +66,16 @@ const pid_rate_preset_t pid_rate_presets[] = {
{
.index = 5,
+ .name = "65mm 1s brushless whoop - Hanfer Edition",
+ .rate = {
+ .kp = {93, 91, 84},
+ .ki = {70, 70, 70},
+ .kd = {68, 68, 7},
+ },
+ },
+
+ {
+ .index = 6,
.name = "65mm 2s brushless whoop",
.rate = {
.kp = {73, 72, 71},
@@ -75,7 +85,7... |
Fixed package name in Find_libusb module
Regression from previous commit | @@ -73,7 +73,7 @@ elseif (WIN32) # Windows
if (NOT LIBUSB_FOUND OR EXISTS "/etc/debian_version")
# Preparations for installing libusb library
- find_package(7zip REQUIRED)
+ find_package(_7zip REQUIRED)
set(LIBUSB_WIN_VERSION 1.0.23) # set libusb version
set(LIBUSB_WIN_ARCHIVE libusb-${LIBUSB_WIN_VERSION}.7z)
set(LIBUS... |
Use relative symlink for CUPS command paths. | @@ -75,7 +75,7 @@ install: all
for file in $(COMMAND_TARGETS); do \
destfile=`echo $$file | sed -e '1,$$s/^ipp/$(IPP)/'`; \
$(INSTALL_BIN) $$file $(BUILDROOT)$(bindir)/$$destfile; \
- ln -sf $(bindir)/$$destfile $(BUILDROOT)$(libexecdir)/cups/command/$$file; \
+ ln -sf ../../../bin/$$destfile $(BUILDROOT)$(libexecdir)/... |
Use ImGuiListClipper to draw just visible output lines | @@ -69,7 +69,12 @@ void Overlay::DrawImgui(IDXGISwapChain3* apSwapChain)
ImVec2 listboxSize = ImGui::GetContentRegionAvail();
listboxSize.y -= ImGui::GetFrameHeightWithSpacing();
const auto result = ImGui::ListBoxHeader("", listboxSize);
- for (auto& item : m_outputLines)
+ ImGuiListClipper clipper;
+ clipper.Begin(m_o... |
error: clang-format | @@ -32,11 +32,9 @@ The current error concept has disadvantages in following regards:
## Considered Alternatives
-* Removing the specification file without requiring error numbers
-* Possible variations on what message should be displayed,
-eg. to keep the mountpoint information or on how wordings should be (with or wit... |
fix OMlink forword function | @@ -321,9 +321,10 @@ void Link::forward(OM_MANAGER::Manipulator *manipulator)
//Base Pose Set (from world)
pose_to_wolrd = getWorldPose(manipulator);
link_relative_pose = getComponentRelativePoseToParent(manipulator, getWorldChildName(manipulator));
+ rodrigues_rotation_matrix = OM_MATH::rodriguesRotationMatrix(getComp... |
Fix typo "phtreads" to "pthreads"
Closes issue | @@ -113,7 +113,7 @@ int (*mbedtls_mutex_lock)( mbedtls_threading_mutex_t * ) = threading_mutex_lock_
int (*mbedtls_mutex_unlock)( mbedtls_threading_mutex_t * ) = threading_mutex_unlock_pthread;
/*
- * With phtreads we can statically initialize mutexes
+ * With pthreads we can statically initialize mutexes
*/
#define MU... |
Disable asan with signalstack to debug better CoreCLR in compile options. | @@ -69,12 +69,12 @@ elseif(OPTION_BUILD_SANITIZER AND (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BU
"LSAN_OPTIONS=verbosity=1:log_threads=1:print_suppressions=false:suppressions=${CMAKE_SOURCE_DIR}/source/tests/sanitizer/lsan.supp"
# Specify use_sigaltstack=0 as CoreCLR uses own alternate stack for signal handlers (ht... |
Remove unnecessary check as FALSE==NULL is always true. | @@ -455,7 +455,7 @@ char *oidc_proto_create_request_param(request_rec *r,
/* concatenate parameter with value */
char* request_param = NULL;
- if (value != NULL && value != FALSE) {
+ if (value != NULL) {
request_param = apr_psprintf(r->pool, "%s=%s", parameter, value);
}
|
Cirrus: Simplify code for FreeBSD builds | @@ -10,18 +10,16 @@ bsd_task:
image: freebsd-12-0-release-amd64
install_script:
- - PLUGINS_KDB="$PLUGINS"; unset PLUGINS # `pkg` tries to load modules from the environment variable `PLUGINS`
- >
pkg install -y
cmake
git
ninja
yajl
- - export PLUGINS="$PLUGINS_KDB"; unset PLUGINS_KDB
script:
- mkdir build && cd build
-... |
Docs Pack: Fixed broken text in the tutorial. | @@ -1144,7 +1144,7 @@ This section is a tutorial that explains how to create a stand-alone BSP. Initia
an evaluation board. This BSP is then extended to contain also software components that interface with the hardware of the
board. Finally, meaningful example projects are added.
-Of course, the sections for \c boards ... |
[CUDA] Add autolocals_in_constexprs to whitelist | @@ -247,6 +247,7 @@ set_property(TEST
"regression/clSetKernelArg_overwriting_the_previous_kernel's_args"
"regression/case_with_multiple_variable_length_loops_and_a_barrier_in_one"
"regression/vector_kernel_arguments"
+ "regression/autolocals_in_constexprs"
APPEND PROPERTY LABELS "cuda")
# The vector/struct kernel argum... |
Ignore tool picker keyboard shortcuts if using meta keys | @@ -25,6 +25,9 @@ class ToolPicker extends Component {
if (e.target.nodeName !== "BODY") {
return;
}
+ if (e.ctrlKey || e.shiftKey || e.metaKey) {
+ return;
+ }
if (e.key === "t") {
this.setTool("triggers")(e);
} else if (e.key === "a") {
|
Add mingw builds to Jenkinsfile.release | @@ -572,6 +572,10 @@ def generatePublishStages() {
params.fedora_revision
)
+ tasks << buildAndTestMingwW64_x86_64()
+
+ tasks << buildAndTestMingwW64_i686()
+
tasks << buildDoc()
// publish source package built in debian-buster stage
@@ -584,6 +588,51 @@ def generatePublishStages() {
return tasks
}
+
+/* Helper to gen... |
find-doc-nits fix courtesy Rich Salz | @@ -351,6 +351,7 @@ sub name_synopsis {
my $sym;
my $is_prototype = 1;
+ $line =~ s/LHASH_OF\([^)]+\)/int/g;
$line =~ s/STACK_OF\([^)]+\)/int/g;
$line =~ s/SPARSE_ARRAY_OF\([^)]+\)/int/g;
$line =~ s/__declspec\([^)]+\)//;
|
sysdeps/managarm: Report correct device in stat() | #include <sys/socket.h>
#include <sys/timerfd.h>
#include <sys/signalfd.h>
+#include <sys/sysmacros.h>
#include <libdrm/drm.h>
#include <libdrm/drm_fourcc.h>
@@ -1977,12 +1978,12 @@ int sys_stat(const char *path, struct stat *result) {
}
result->st_dev = 1;
- result->st_ino = resp.inode_num();
+ result->st_ino = resp.f... |
handle the case where openssl may not be available | @@ -1500,12 +1500,11 @@ static void async_on_close(void *data)
free(adata);
}
+#ifdef PTLS_OPENSSL_HAVE_ASYNC
static void do_ssl_async(h2o_socket_t *sock)
{
- // async_handshake_in_flight = sock;
assert(!sock->async.enabled);
sock->async.enabled = 1;
-
int async_fd = ptls_openssl_get_async_fd(sock->ssl->ptls);
// add a... |
Install ngtcp2_crypto_gnutls.h and ngtcp2_crypto_boringssl.h | @@ -26,3 +26,11 @@ nobase_include_HEADERS = ngtcp2/ngtcp2_crypto.h
if HAVE_OPENSSL
nobase_include_HEADERS += ngtcp2/ngtcp2_crypto_openssl.h
endif
+
+if HAVE_GNUTLS
+nobase_include_HEADERS += ngtcp2/ngtcp2_crypto_gnutls.h
+endif
+
+if HAVE_BORINGSSL
+nobase_include_HEADERS += ngtcp2/ngtcp2_crypto_boringssl.h
+endif
|
Renamed stream | 1252 gfas Global fire assimilation system
1253 ocda Ocean data assimilation
1254 olda Ocean Long window data assimilation
-1255 gfar Global fire assimilation system reanalysis
+1255 gfra Global fire assimilation system reanalysis
2231 cnrm Meteo France climate centre
2232 mpic Max Plank Institute
2233 ukmo UKMO climate... |
pbio/dcmotor: Cap max voltage at hardware limit. | @@ -127,6 +127,11 @@ void pbio_dcmotor_get_settings(pbio_dcmotor_t *dcmotor, int32_t *max_voltage) {
}
pbio_error_t pbio_dcmotor_set_settings(pbio_dcmotor_t *dcmotor, int32_t max_voltage) {
+ // New maximum voltage must be positive and at or below hardware limit.
+ if (max_voltage < 0 || max_voltage > pbio_dcmotor_get_... |
Find LibGit 2: Reformat CMake code | +# ~~~
# Defines:
#
# LibGit2_FOUND
# LibGit2_INCLUDE_DIR
# LibGit2_LIBRARIES
+# ~~~
find_path (LibGit2_INCLUDE_DIR NAMES git2.h)
find_library (LibGit2_LIBRARIES NAMES git2)
include (FindPackageHandleStandardArgs)
-find_package_handle_standard_args (LibGit2
- FOUND_VAR LibGit2_FOUND
- REQUIRED_VARS LibGit2_LIBRARIES Li... |
Add second crash example. | @@ -32,4 +32,8 @@ Y_UNIT_TEST_SUITE(Demangle) {
Y_UNIT_TEST(Difficult2) {
Check("_ZTSN2na2nb2caINS0_2cbIZZNS_2nc2cc2cd2maERKNS_2ceINS_2nd2cfINS_2ne2nf2cgEEEEERKNS6_INS9_2chEEEENKUlPT_E_clINSA_2ciEEEDaSL_EUlvE_EEFvvESR_EE", "typeinfo name for na::nb::ca<na::nb::cb<auto na::nc::cc::cd::ma(na::ce<na::nd::cf<na::ne::nf::cg... |
[pthreads] Add CLOCK_CPUTIME_ID/CLOCK_MONOTONIC clock_id | @@ -307,7 +307,20 @@ struct sigevent
#define NANOSECOND_PER_TICK (NANOSECOND_PER_SECOND / RT_TICK_PER_SECOND)
#ifndef CLOCK_REALTIME
-#define CLOCK_REALTIME 0
+#define CLOCK_REALTIME 1
+#endif
+
+#define CLOCK_CPUTIME_ID 2
+
+#ifndef CLOCK_PROCESS_CPUTIME_ID
+#define CLOCK_PROCESS_CPUTIME_ID CLOCK_CPUTIME_ID
+#endif
+#... |
Add verbose build output | @@ -107,6 +107,25 @@ DFU = Struct(
)
+def display_dfu_info(parsed):
+ print(f'''
+Device: {parsed.fields.value.bcdDevice}
+Target: {parsed.fields.value.idProduct:04x}:{parsed.fields.value.idVendor:04x}
+Size: {parsed.fields.value.DFUImageSize:,} bytes
+Targets: {parsed.fields.value.bTargets}''')
+ for target in parsed.... |
xive: eqgen isn't a boolean
So don't treat it as such | @@ -2682,7 +2682,7 @@ static void xive_init_xics_emulation(struct xive_cpu_state *xs)
xs->eqptr = 0;
xs->eqmsk = (0x10000/4) - 1;
- xs->eqgen = false;
+ xs->eqgen = 0;
x = xive_from_vc_blk(xs->eq_blk);
assert(x);
@@ -2782,7 +2782,7 @@ static uint32_t xive_read_eq(struct xive_cpu_state *xs, bool just_peek)
if (!just_pee... |
nimble/ll: Fix RxAdd in AUX_CONNECT_RSP
We put TxAdd bit instead of RxAdd bit so connections failed in case we
used public address and remote used random address. | @@ -731,7 +731,10 @@ ble_ll_adv_aux_conn_rsp_pdu_make(uint8_t *dptr, void *pducb_arg,
pdulen = BLE_LL_EXT_ADV_HDR_LEN + ext_hdr_len;
/* Set BLE transmit header */
- hdr = BLE_ADV_PDU_TYPE_AUX_CONNECT_RSP | rsp_data->rxadd;
+ hdr = BLE_ADV_PDU_TYPE_AUX_CONNECT_RSP;
+ if (rsp_data->rxadd) {
+ hdr |= BLE_ADV_PDU_HDR_RXADD... |
fix the bug in tcp_client
Closes | @@ -147,6 +147,7 @@ static void tcp_client_task(void *pvParameters)
int err = connect(sock, (struct sockaddr *)&destAddr, sizeof(destAddr));
if (err != 0) {
ESP_LOGE(TAG, "Socket unable to connect: errno %d", errno);
+ break;
}
ESP_LOGI(TAG, "Successfully connected");
|
Fix typo in manual (ScriptsDirs -> ScriptDirs) | @@ -280,7 +280,7 @@ Build {
DefaultVariant = "...",
SubVariants = { ... },
DefaultSubVariant = "...",
- ScriptsDirs = { ... },
+ ScriptDirs = { ... },
SyntaxExtensions = { ... },
Passes = { ... },
ContentDigestExtensions { ... },
|
Use base diffuse color from materials in Standard shader | @@ -177,7 +177,7 @@ const char* lovrStandardFragmentShader = ""
""
"vec4 color(vec4 graphicsColor, sampler2D image, vec2 uv) { \n"
" vec3 normal = vTangentMatrix * (texture(lovrNormalTexture, uv).rgb * 2. - 1.); \n"
-" vec3 baseColor = texture(lovrDiffuseTexture, uv).rgb; \n"
+" vec3 baseColor = texture(lovrDiffuseText... |
Don't generate a new client random on retries | @@ -416,26 +416,22 @@ int s2n_client_hello_send(struct s2n_connection *conn)
}
struct s2n_stuffer *out = &conn->handshake.io;
- struct s2n_stuffer client_random = {0};
uint8_t client_protocol_version[S2N_TLS_PROTOCOL_VERSION_LEN] = {0};
- struct s2n_blob b = {0};
- POSIX_GUARD(s2n_blob_init(&b, conn->handshake_params.c... |
runtime: use guaranteedks to size egress buffer pool | #define COMMAND_QUEUE_MCOUNT 4096
/* the egress buffer pool must be large enough to fill all the TXQs entirely */
#define EGRESS_POOL_SIZE(nks) \
- (PACKET_QUEUE_MCOUNT * MBUF_DEFAULT_LEN * MAX(16, (nks)) * 8UL)
+ (PACKET_QUEUE_MCOUNT * MBUF_DEFAULT_LEN * MAX(1, guaranteedks) * 16UL)
struct iokernel_control iok;
|
Commented out section on cpp | @@ -117,7 +117,7 @@ If you ever need to uninstall `CCL`, run the following from the `build` director
$ xargs rm < install_manifest.txt
```
You may need to prepend a `sudo` if you installed `CCL` in a protected folder.
-
+<!---
### C++ compatibility
`CCL` library can be called from C++ code without any additional requir... |
refactor(ble): silence warning `auth_passkey_display` not used
Silences the following build warning ...
../src/ble.c:407:13: warning: 'auth_passkey_display' defined but not used [-Wunused-function]
407 | static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey) { | @@ -404,6 +404,7 @@ static struct bt_conn_cb conn_callbacks = {
.security_changed = security_changed,
};
+/*
static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey) {
char addr[BT_ADDR_LE_STR_LEN];
@@ -411,6 +412,7 @@ static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey) {
LO... |
Avoid sending random data | @@ -496,58 +496,6 @@ int read_data(nghttp3_conn *conn, int64_t stream_id, const uint8_t **pdata,
}
} // namespace
-struct DynDataIterator
- : public std::iterator<std::input_iterator_tag, uint8_t, std::ptrdiff_t,
- const uint8_t *, const uint8_t> {
- DynDataIterator(std::uniform_int_distribution<uint8_t> &dis, size_t l... |
BugID:17023378:fix white scan issue | @@ -961,10 +961,6 @@ static int _dm_shw_array_double_set(_IN_ dm_shw_data_value_t *data_value, _IN_ v
dm_shw_data_value_complex_t *complex_array = data_value->value;
double double_set = (value == NULL) ? (0) : (*(double *)value);
- if (((double *)(complex_array->value) + index) == NULL) {
- return DM_INVALID_PARAMETER;... |
Now we have GnuTLS support | @@ -138,10 +138,11 @@ crypto helper library which offers the basic crypto operations.
The header file exists under crypto/includes/ngtcp2 directory.
-The library file is built for a particular TLS backend. At the
-moment, libngtcp2_crypto_openssl which uses OpenSSL as TLS backend is
-provided.
+Each library file is bui... |
socket test: Add short range workaround for sockOptionsSetGet
Short range modules requires a call to uSockSendTo before
uSockReceiveFrom can be used. | @@ -1520,6 +1520,12 @@ U_PORT_TEST_FUNCTION("[sock]", "sockOptionsSetGet")
U_PORT_TEST_ASSERT(descriptor >= 0);
U_PORT_TEST_ASSERT(errno == 0);
+ // This is a workaround for short range modules that requires
+ // calling uSockSendTo before uSockReceiveFrom can be used
+ pData[0] = 0;
+ uSockSendTo(descriptor, &remoteAd... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.