message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
[io] fix issue Vview with mesh file | @@ -1639,7 +1639,7 @@ class VView(object):
scale_transform.Scale(scale, scale, scale)
scale_transform.SetInput(transform)
transformer.SetTransform(scale_transform)
- if not (self.global_filter or self.opts.export):
+ if not (self.opts.global_filter or self.opts.export):
actor.SetUserTransform(scale_transform)
else:
tra... |
bump clush to v.1.7.3 | %define pname clustershell
Name: clustershell%{PROJ_DELIM}
-Version: 1.7.2
+Version: 1.7.3
Release: 1
Summary: Python framework for efficient cluster administration
|
Fix PMKID file reading | @@ -170,15 +170,15 @@ if __name__ == "__main__":
target = parse_hccapx(buf)
else:
buf = buf + fd.readline()
- arget = parse_pmkid(buf)
+ target = parse_pmkid(buf)
+
+ if not buf:
+ break
if target is None:
sys.stderr.write('Unrecognized input format\n')
sys.exit(1)
- if not buf:
- break
-
res = regexp.search(str(target... |
Braille: In vectortopdf check inkscape version to call inkscape with the correct command line
From version 1.0.x on, Inkscape does not support the '-A' command line flag any more. Now we check the inkscape version and call inkscape always with the correct command line. | @@ -59,11 +59,24 @@ fi
checkTool inkscape inkscape "embossing ${INPUT_FORMAT} vector images"
-INKSCAPE="inkscape -z --export-area-drawing"
+INKSCAPE="inkscape --export-area-drawing"
echo "INFO: Converting image" 1>&2
printf "DEBUG: Calling $INKSCAPE on '%s'\n" "$FILE_FORMAT" 1>&2
-$INKSCAPE -A "$FILE_PDF" "$FILE_FORMAT... |
zephyr/mphalport.h: Replace deprecated macro in mp_hal_ticks_us().
Gives deprecation warning with Zephyr 2.2-pre. | #include "lib/utils/interrupt_char.h"
static inline mp_uint_t mp_hal_ticks_us(void) {
- return SYS_CLOCK_HW_CYCLES_TO_NS(k_cycle_get_32()) / 1000;
+ return k_cyc_to_us_floor32(k_cycle_get_32());
}
static inline mp_uint_t mp_hal_ticks_ms(void) {
|
slsi_wifi: Fix double fd close | @@ -507,11 +507,11 @@ static int8_t slsi_init_filesystem(void)
if (ret != 1) {
EPRINT("write_file: ERROR failed to write to %s, errno=%d, ret=%d\n", conffile, errno, ret);
- fclose(fp);
ret = SLSI_STATUS_ERROR;
+ } else {
+ ret = SLSI_STATUS_SUCCESS;
}
fclose(fp);
- ret = SLSI_STATUS_SUCCESS;
}
} else {
ret = SLSI_STAT... |
ble_mesh: fix public key mismatch error handling | #define INPUT_OOB_NUMBER 0x02
#define INPUT_OOB_STRING 0x03
+#define PUB_KEY_NO_OOB 0x00
+#define PUB_KEY_OOB 0x01
+
#define PROV_ERR_NONE 0x00
#define PROV_ERR_NVAL_PDU 0x01
#define PROV_ERR_NVAL_FMT 0x02
@@ -772,8 +775,8 @@ static void prov_start(const u8_t *data)
return;
}
- if (data[1] > 0x01) {
- BT_ERR("%s, Inval... |
VERSION bump to version 1.4.19 | @@ -31,7 +31,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 1)
set(SYSREPO_MINOR_VERSION 4)
-set(SYSREPO_MICRO_VERSION 18)
+set(SYSREPO_MICRO_VERSION 19)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
Disable publishing scorecard to see if it passes | @@ -9,13 +9,18 @@ on:
pull_request:
branches: [ main ]
-# Declare default permissions as write.
-permissions: write-all
+# Declare default permissions as read only.
+permissions: read-all
jobs:
analysis:
name: Scorecards analysis
runs-on: ubuntu-latest
+ permissions:
+ # Needed to upload the results to code-scanning da... |
Allow Xiaomi Aqara Single Switch Module T1 to create sensor resources | @@ -250,6 +250,7 @@ static const SupportedDevice supportedDevices[] = {
{ VENDOR_XIAOMI, "lumi.curtain.hagl04", xiaomiMacPrefix}, // Xiaomi B1 curtain controller
{ VENDOR_XIAOMI, "lumi.sensor_magnet.agl02", xiaomiMacPrefix}, // Xiaomi Aqara T1 open/close sensor MCCGQ12LM
{ VENDOR_XIAOMI, "lumi.flood.agl02", xiaomiMacPr... |
Fix typo in contrib/intarray documentation
Reported-by: Erik Rijkers
Discussion: | determines the maximum number of ranges in
one index key. The default value of <literal>numranges</literal> is 100.
Valid values are between 1 and 253. Using larger arrays as GiST index
- keys leads to a more precise search (scaning a smaller fraction of the index and
+ keys leads to a more precise search (scanning a s... |
Address
Make repl work when default chunks not supplied. | :compile-only compile-only
:source where} opts)
(default env (fiber/getenv (fiber/current)))
- (default chunks getline)
+ (default chunks (fn [buf p] (getline "" buf)))
(default compile-only false)
(default onstatus debug/stacktrace)
(default on-compile-error bad-compile)
[&opt chunks onsignal env]
(def level (+ (dyn :... |
sleep: fixed the issue error log not printed | @@ -367,7 +367,7 @@ static uint32_t IRAM_ATTR esp_sleep_start(uint32_t pd_flags)
{
#if CONFIG_IDF_TARGET_ESP32S3
if (esp_no_sleep) {
- ESP_LOGE(TAG, "Sleep cannot be used with Touch/ULP for now.");
+ ESP_EARLY_LOGE(TAG, "Sleep cannot be used with Touch/ULP for now.");
abort();
}
#endif //CONFIG_IDF_TARGET_ESP32S3
|
stm32/README: Update to reflect current MCU support. | MicroPython port to STM32 MCUs
==============================
-This directory contains the port of MicroPython to ST's line of STM32Fxxx
-microcontrollers. It is based on the STM32Cube HAL library and currently
-supports: STM32F401, STM32F405, STM32F411, STM32F429, STM32F746.
+This directory contains the port of MicroP... |
Fix tilemap_test for | @@ -41,7 +41,8 @@ std::map<int, int> indexes = {
{83, 8}
};
-tilemap world((uint8_t *)layer_world, nullptr, size(16, 8), fb.sprites);
+// TODO: tilemap needs an overloaded constructor to avoid the need to pass nullptr for sprites
+tilemap world((uint8_t *)layer_world, nullptr, size(16, 8), nullptr);
/* setup */
void in... |
grid: leap: search only for ship names, not display names | @@ -103,9 +103,7 @@ export const Leap = React.forwardRef(
(value: string) => {
const onlySymbols = !value.match(/[\w]/g);
const normValue = normalizeMatchString(value, onlySymbols);
- return matches.find(
- (m) =>
- (m.display && normalizeMatchString(m.display, onlySymbols).startsWith(normValue)) ||
+ return matches.fi... |
Add gfortran workaround for ABI violations
for (see gcc bug 90329) | @@ -29,6 +29,10 @@ FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -fno-fas
endif
endif
+# workaround for C->FORTRAN ABI violation in LAPACKE
+ifeq ($(F_COMPILER), GFORTRAN)
+FCOMMON_OPT += -fno-optimize-sibling-calls
+endif
FLAMEPATH = $(HOME)/flame/lib
|
mask signals for periodic thread | @@ -325,12 +325,6 @@ main(int argc, char **argv, char **env)
setGoHttpEnvVariable();
glibcenv = setGlibcEnvVariable();
- // handle = dlopen(info->path, RTLD_LAZY);
- // if (!handle) {
- // fprintf(stderr, "%s\n", dlerror());
- // goto err;
- // }
-
/*
* This is indeed as "weird" as it looks.
* We require that glibc is ... |
Base64: Add MSR usage example | @@ -41,4 +41,24 @@ sudo kdb umount /examples/base64/test
@BASE64SGVsbG8gV29ybGQhCg==
-.
+. The following example shows how you can use this plugin together with the INI plugin to store binary data.
+
+```sh
+# Mount the INI and Base64 plugin
+kdb mount config.ini user/examples/base64 ini base64
+
+# Copy binary data
+k... |
Fix edge case in PE checksum calculation. | @@ -2043,7 +2043,7 @@ define_function(calculate_checksum)
if (4 * i == csum_offset)
continue;
- if (4 * i + 4 < pe->data_size)
+ if (4 * i + 4 <= pe->data_size)
{
csum += ((uint64_t) pe->data[4 * i] +
((uint64_t) pe->data[4 * i + 1] << 8) +
|
interop: Initiate key update | @@ -34,6 +34,9 @@ if [ "$ROLE" == "client" ]; then
if [ "$TESTCASE" == "chacha20" ]; then
CLIENT_ARGS="$CLIENT_ARGS --ciphers=TLS_CHACHA20_POLY1305_SHA256"
fi
+ if [ "$TESTCASE" == "keyupdate" ]; then
+ CLIENT_ARGS="$CLIENT_ARGS --delay-stream 10ms --key-update 1ms"
+ fi
if [ "$TESTCASE" == "resumption" ] || [ "$TESTCA... |
fix readme python3 tutorial link | @@ -44,7 +44,7 @@ or else the program will fail to run. This is required even when using Python.
For those who wish to program in Python you can install python-tcod using
[this installation guide](https://python-tcod.readthedocs.io/en/latest/installation.html).
Once installed you can follow
-[the Python 3 tutorial](htt... |
Add Missing ALPNs to Interop Server | @@ -17,6 +17,8 @@ const char* RootFolderPath;
const char* UploadFolderPath;
const QUIC_BUFFER SupportedALPNs[] = {
+ { sizeof("hq-32") - 1, (uint8_t*)"hq-32" },
+ { sizeof("hq-31") - 1, (uint8_t*)"hq-31" },
{ sizeof("hq-30") - 1, (uint8_t*)"hq-30" },
{ sizeof("hq-29") - 1, (uint8_t*)"hq-29" },
{ sizeof("hq-28") - 1, (u... |
HTTP: fix sending request headers for long header values
The %v format specifier prints "{buffer <len>}" for buffer values
where the buffer length is greater than 20 bytes. As a result,
sending an HTTP header value longer than 20 bytes doesn't work.
Fix it. | @@ -20,8 +20,17 @@ typedef struct http_parser {
static void each_header(buffer dest, symbol n, value v)
{
- if (n != sym(url))
+ if (n != sym(url)) {
+ switch(tagof(v)) {
+ case tag_tuple:
+ case tag_symbol:
bprintf(dest, "%v: %v\r\n", n, v);
+ break;
+ default:
+ bprintf(dest, "%v: %b\r\n", n, (buffer)v);
+ break;
+ }... |
Fix setting the LTP305 brightness | @@ -27,8 +27,8 @@ namespace pimoroni {
return i2c->get_scl();
}
- void LTP305::set_brightness(uint8_t brightness, bool update) {
- brightness = std::min((uint8_t)MAX_BRIGHTNESS, brightness);
+ void LTP305::set_brightness(uint8_t brightness_, bool update) {
+ brightness = std::min((uint8_t)MAX_BRIGHTNESS, brightness_);
... |
Use python' gzip instead of 'subprocess(gunzip)' so test will run on Windows.
Modified AssertTrue call so that they state what is being tested. | # Alister Maguire, Thu Apr 26 13:31:31 PDT 2018
# Added test for bov compression.
#
+# Kathleen Biagas, Wed May 16, 2018
+# Use python's gzip instead of subprocess('gunzip') so test will run
+# correctly on Windows. Modified AssertTrue calls to have text stating
+# what is being tested.
+#
# ---------------------------... |
[Rust] LayerSlice.putpixel performs bounds checks | @@ -102,6 +102,10 @@ impl LayerSlice {
}
pub fn putpixel(&self, loc: Point, color: Color) {
+ if !self.frame.contains(loc + self.frame.origin) {
+ return;
+ }
+
let bpp = self.bytes_per_pixel;
let parent_bytes_per_row = self.parent_framebuffer_size.width * bpp;
let bpp_multiple = Point::new(bpp, parent_bytes_per_row);
|
check MAC_SIZE_NORM > pkh->len | @@ -1411,7 +1411,7 @@ while((pcapstatus = pcap_next_ex(pcapin, &pkh, &packet)) != -2)
h80211 = packet + ppih->pph_len;
}
- if(pkh->len < MAC_SIZE_NORM)
+ if(MAC_SIZE_NORM > pkh->len)
continue;
macf = (mac_t*)(h80211);
if((macf->to_ds == 1) && (macf->from_ds == 1))
|
ipptransform/3d are no longer installed in /usr/bin. | @@ -26,12 +26,6 @@ apps:
tool:
command: bin/tool
plugs: [home, network]
- transform:
- command: bin/transform
- plugs: [home, network]
- transform3d:
- command: bin/transform3d
- plugs: [home, network]
parts:
mupdf:
|
BugID:16846667: Enable fflush and vprintf in user space app | @@ -336,9 +336,10 @@ COMPONENTS += mm
COMPONENTS += uspace
else
COMPONENTS += mbins.umbins
+AOS_SDK_LDFLAGS += -Wl,-wrap,vprintf, -Wl,-wrap,fflsuh
endif
AOS_SDK_DEFINES += BUILD_APP
-AOS_SDK_LDFLAGS += -Wl,-wrap,vprintf -Wl,-wrap,fflush -nostartfiles
+AOS_SDK_LDFLAGS += -nostartfiles
else ifeq ($(MBINS),kernel)
ifeq ($... |
doc: fix acrn shell command
Update keys to return to ACRN shell console | @@ -28,7 +28,7 @@ The ACRN hypervisor shell supports the following commands:
- Dump a User VM (guest) memory region based on the VM ID (``vm_id``, in decimal),
the start of the memory region ``gva`` (in hexadecimal) and its length ``length`` (in bytes, decimal number).
* - vm_console <vm_id>
- - Switch to the VM's cons... |
Fix statte check on DATA stage | @@ -58,7 +58,7 @@ CFG_TUSB_MEM_SECTION static dfu_state_ctx_t _dfu_state_ctx;
static void dfu_req_dnload_setup(uint8_t rhport, tusb_control_request_t const * request);
static void dfu_req_getstatus_reply(uint8_t rhport, tusb_control_request_t const * request);
static uint16_t dfu_req_upload(uint8_t rhport, tusb_control... |
Add 'extern "C"' to testutils.h. | #include <string.h>
#include <tinyspline.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define POINT_EPSILON TS_POINT_EPSILON
#define ANGLE_EPSILON TS_POINT_EPSILON
@@ -84,4 +88,8 @@ ts_distance_varargs(CuTest *tc,
double first,
...);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* TINYSPLINE_TESTUTILS_H */
|
Have script/bench-go-gif load files less often | @@ -44,48 +44,56 @@ const (
type testCase = struct {
benchname string
- filename string
+ src []byte
itersUnscaled uint32
}
var testCases = []testCase{{
benchname: "go_gif_decode_1k_bw",
- filename: "test/data/pjw-thumbnail.gif",
+ src: mustLoad("test/data/pjw-thumbnail.gif"),
itersUnscaled: 2000,
}, {
benchname: "go_g... |
we have a fix for sm_30 so we are turning on default build of sm30-35 | @@ -85,8 +85,7 @@ fi
# Set list of default nvptx subarchitectures to build
# Only Cuda 9 and above supports sm_70
if [ "$AOMP_BUILD_CUDA" == 1 ] ; then
- #NVPTXGPUS_DEFAULT="30,32,35,50,60,61"
- NVPTXGPUS_DEFAULT="50,60,61"
+ NVPTXGPUS_DEFAULT="30,32,35,50,60,61"
if [ -f $CUDA/version.txt ] ; then
if [ `head -1 /usr/lo... |
Fix difftool timestamps when comparing to bk history
Reported by Harlan in forum:
difftool would use the wrong timestamp when extracting
data from bk history. This used to work in the past but was
broken with a different bug was fixed.
bk: 5aaba359SZC1Xp2wD2IbXR9UxAqyQA | @@ -180,7 +180,7 @@ proc getRev {file rev checkMods} \
catch {close $f}
}
set tmp [tmpfile difftool]
- if {[catch {exec bk get -qkp -r$rev $file > $tmp} msg]} {
+ if {[catch {exec bk get -qk -r$rev -TG$tmp $file} msg]} {
puts "$msg"
exit 1
}
|
u3: disable +scot and +scow jets | @@ -944,8 +944,11 @@ static u3j_core _141_qua_d[] =
{ "mole", 7, _141_qua_mole_a, 0, _141_qua_mole_ha },
{ "mule", 7, _141_qua_mule_a, 0, _141_qua_mule_ha },
- { "scot", 7, _141_qua_scot_a, 0, _141_qua_scot_ha },
- { "scow", 7, _141_qua_scow_a, 0, _141_qua_scow_ha },
+ // XX disabled, implicated in memory corruption
+ ... |
Fix warning when building pluginsdk with cplusplus | @@ -161,7 +161,7 @@ FORCEINLINE VOID PhDeleteProviderEventQueue(
PPH_PROVIDER_EVENT events;
SIZE_T i;
- events = EventQueue->Array.Items;
+ events = (PPH_PROVIDER_EVENT)EventQueue->Array.Items;
for (i = 0; i < EventQueue->Array.Count; i++)
{
@@ -201,7 +201,7 @@ FORCEINLINE PPH_PROVIDER_EVENT PhFlushProviderEventQueue(
... |
input: enable buffer size checks for dyntags | @@ -596,6 +596,13 @@ static inline void flb_input_dbuf_write_end(struct flb_input_dyntag *dt)
return;
}
+ if (flb_input_buf_paused(in) == FLB_TRUE) {
+ dt->mp_sbuf.size = dt->mp_buf_write_size;
+ flb_debug("[input] %s is paused, cannot append records",
+ in->name);
+ return;
+ }
+
/* Call the filter handler */
buf = dt... |
Testing: show diff results when they fail | @@ -34,8 +34,8 @@ ${tools_dir}/grib_dump $infile | grep -v FILE > $infile.dump
${tools_dir}/grib_dump $outfile | grep -v FILE > $outfile.dump
grib_check_key_equals $outfile section1Flags,section3Length '192 772'
-diff $outfile.dump ${data_dir}/bitmap.diff >$REDIRECT 2>&1
-diff $infile.dump ${data_dir}/no_bitmap.diff >$... |
volteer: Disable commands to create ROM space
BRANCH=None
TEST=buildall | #undef CONFIG_CMD_CBI
#undef CONFIG_CMD_CHARGER
#undef CONFIG_CMD_CHARGE_SUPPLIER_INFO
+#undef CONFIG_CMD_CRASH
+#undef CONFIG_CMD_DEVICE_EVENT
#undef CONFIG_CMD_FLASH_WP
#undef CONFIG_CMD_HASH
+#undef CONFIG_CMD_I2C_XFER
#undef CONFIG_CMD_IDLE_STATS
#undef CONFIG_CMD_INA
#undef CONFIG_CMD_MFALLOW
|
Add GET/PUT_UINT24_BE/LE | @@ -226,6 +226,78 @@ extern void (*mbedtls_test_hook_test_fail)( const char * test, int line, const c
}
#endif
+/**
+ * Get the unsigned 24 bits integer corresponding to four bytes in
+ * big-endian order (MSB first).
+ *
+ * \param data Base address of the memory to get the four bytes from.
+ * \param offset Offset fr... |
Rewrite the uniform random generator for clarity. | @@ -218,8 +218,10 @@ static const uint64_t public_random_multiplier = 1181783497276652981ull;
uint64_t picoquic_public_random_64(void)
{
+ uint64_t s1;
const uint64_t s0 = public_random_seed[public_random_index++];
- uint64_t s1 = public_random_seed[public_random_index &= 15];
+ public_random_index &= 15;
+ s1 = public... |
Expand relative paths | @@ -416,6 +416,16 @@ static const char *oidc_set_dir_slot(cmd_parms *cmd, void *ptr, const char *arg)
return rv;
}
+/*
+ * set a path value in the server config, converting to absolute if necessary
+ */
+static const char *oidc_set_path_slot(cmd_parms *cmd, void *ptr, const char *arg) {
+ oidc_cfg *cfg = (oidc_cfg *) a... |
Update more default window icons | @@ -215,6 +215,9 @@ static INT_PTR CALLBACK PhpFindObjectsDlgProc(
{
HWND lvHandle;
+ SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM)PH_LOAD_SHARED_ICON_SMALL(PhLibImageBase, MAKEINTRESOURCE(IDI_PROCESSHACKER)));
+ SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)PH_LOAD_SHARED_ICON_LARGE(PhLibImageBase, MAKEIN... |
Stopwatch handling | @@ -59,10 +59,12 @@ namespace MiningCore.Extensions
{
using (var con = factory.OpenConnection())
{
+ sw.Reset();
sw.Start();
+
action(con);
- sw.Start();
+ sw.Stop();
logger.Debug(()=> $"Query took {sw.ElapsedMilliseconds} ms");
}
}
@@ -75,10 +77,12 @@ namespace MiningCore.Extensions
{
using (var con = factory.OpenConn... |
socket_test.sh: Don't hard code debug image with gdb. | @@ -184,9 +184,6 @@ while getopts ":hitlbcd6fn:m:e:g:p:E:I:N:P:R:S:T:UBVX" opt; do
echo "ERROR: Option -g unknown argument \'$OPTARG\'" >&2
usage
fi
- title_dbg="-DEBUG"
- vpp_dir=$vpp_debug_dir
- lib64_dir=$lib64_debug_dir
;;
p) if [ $OPTARG = "a" ] || [ $OPTARG = "all" ] ; then
perf_client=1
|
doc: v3.1 release notes draft update | @@ -68,7 +68,7 @@ Improved Board Inspector Collection and Reporting
:ref:`board_inspector_tool`.
Sample Application with Two Post-Launched VMs
- With this v3.1 release, we provide a follow-on :ref_`GSG_sample_app` to the
+ With this v3.1 release, we provide a follow-on :ref:`GSG_sample_app` to the
:ref:`gsg`. This samp... |
Ensure the pristine checksums are not recomputed
When switching between the pristine and PR checkouts we must
ensure the pristine checksums are not recomputed.
Also ignore errors (such as trying to remove a label that
is not set) when setting or removing labels. | @@ -38,13 +38,14 @@ jobs:
run: make fips-checksums
working-directory: ./build
- name: update checksums pristine
- run: make update-fips-checksums
+ run: touch providers/fips.checksum.new && make update-fips-checksums
working-directory: ./build-pristine
- name: make diff-fips-checksums
run: make diff-fips-checksums && e... |
admin/meta-packages: add rsyslog to ohpc-base | @@ -57,6 +57,7 @@ Requires: man
Requires: net-tools
Requires: nfs-utils
Requires: chrony
+Requires: rsyslog
Requires: OpenIPMI
Requires: pdsh%{PROJ_DELIM}
Requires: screen
|
[CI] Upload nightly release at the end of the CI build | @@ -52,6 +52,12 @@ jobs:
shell: bash
run: |
git submodule update --init --recursive
- # TODO(PT): For nasm - Install deps can be removed once toolchain cache is rebuilt
- python3 scripts/install_dependencies.py
- python3 scripts/build_kernel.py
+ python3 scripts/build_kernel.py --no_run
+
+ - name: Update nightly relea... |
turn on optimized code | @@ -507,22 +507,22 @@ ALL_AUX_OBJS = xerbla.o ../INSTALL/lsame.o
SLAPACKOBJS = \
sgetrf.o sgetrs.o spotrf.o sgetf2.o \
spotf2.o slaswp.o sgesv.o slauu2.o \
- slauum.o strti2.o strtri.o
+ slauum.o strti2.o strtri.o strtrs.o
DLAPACKOBJS = \
dgetrf.o dgetrs.o dpotrf.o dgetf2.o \
dpotf2.o dlaswp.o dgesv.o dlauu2.o \
- dlau... |
rm unused ModelData function; | @@ -69,4 +69,3 @@ typedef struct {
ModelData* lovrModelDataCreate(Blob* blob);
void lovrModelDataDestroy(ModelData* modelData);
void lovrModelDataGetAABB(ModelData* modelData, float aabb[6]);
-void lovrModelDataGetCenter(ModelData* modelData, float center[3]);
|
Yan LR: Use `ELEKTRA_UNUSED` macro | #include <iostream>
+#include <kdbconfig.h>
+
#include "error_listener.hpp"
using std::to_string;
@@ -104,7 +106,7 @@ ErrorListener::ErrorListener (string const & errorSource)
* failure.
*/
void ErrorListener::syntaxError (Recognizer * recognizer, Token * offendingSymbol, size_t line, size_t charPositionInLine,
- const... |
mbedtls/port: added stream_block parameter sanity check | @@ -995,6 +995,11 @@ int esp_aes_crypt_ctr(esp_aes_context *ctx,
return -1;
}
+ if (!stream_block) {
+ ESP_LOGE(TAG, "No stream supplied");
+ return -1;
+ }
+
if (!nonce_counter) {
ESP_LOGE(TAG, "No nonce supplied");
return -1;
|
harness: actually define machine gorgonzola2 | @@ -405,7 +405,7 @@ machines = dict({
'boot_timeout': 360,
'platform': 'cn88xx',
'serial_binary': 'serial_kernel'},
- 'gorgonzola1': {'ncores' : 48,
+ 'gorgonzola2': {'ncores' : 48,
'machine_name' : 'gorgonzola1',
'bootarch' : 'armv8',
'buildarchs' : ['armv8'],
|
[doc] uncomment mod_auth load in conf.d/auth.conf
uncomment mod_auth load in conf.d/auth.conf to match other conf.d/* | ## for more info and many more options.
##
-#server.modules += ( "mod_auth" )
+server.modules += ( "mod_auth" )
#server.modules += ( "mod_authn_file" )
#auth.backend = "plain"
|
gpgme: Exclude plugin from general plugin test | @@ -36,6 +36,10 @@ std::vector<std::string> getAllPlugins ()
plugins.erase (std::remove (plugins.begin (), plugins.end (), "crypto_openssl"), plugins.end ());
plugins.erase (std::remove (plugins.begin (), plugins.end (), "crypto_botan"), plugins.end ());
+ // The ASAN build for `gpgme` reports memory leak on Debian Str... |
NetworkTools: Improve whois connection for dualstack | @@ -321,7 +321,7 @@ BOOLEAN WhoisConnectServer(
sizeof(dnsRecord->Data.A.IpAddress)
);
- if ((whoisSocketHandle = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, WSA_FLAG_NO_HANDLE_INHERIT)) != INVALID_SOCKET)
+ if ((whoisSocketHandle = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, WSA_FLAG_OVERLAPPED | W... |
testcase: Modify media utc SetUp and assertion
Do fclose at SetUp.
Replace ASSERT_* with EXPECT_*.
Use MEDIAPLAYER_TEST_FILE at /mnt | #include <media/MediaPlayer.h>
#include <media/FileInputDataSource.h>
-#define MEDIAPLAYER_TEST_FILE "/ramfs/utc_media_player.raw"
+#define MEDIAPLAYER_TEST_FILE "/mnt/utc_media_player.raw"
class SimpleMediaPlayerTest : public ::testing::Test
{
@@ -29,6 +29,7 @@ protected:
{
fp = fopen(MEDIAPLAYER_TEST_FILE, "w");
fput... |
sdl/keyboard: fix build failing on SDL older than 2.0.22 | @@ -7,6 +7,7 @@ package sdl
#if defined(WARN_OUTDATED)
#pragma message("SDL_IsTextInputShown is not supported before SDL 2.0.22")
+#pragma message("SDL_ClearComposition is not supported before SDL 2.0.22")
#endif
static inline SDL_bool SDL_IsTextInputShown(void)
@@ -14,6 +15,10 @@ static inline SDL_bool SDL_IsTextInput... |
deb-pkg: rename acrn-sos to acrn-service-vm
Rename acrn-sos to acrn-service-vm | @@ -27,10 +27,10 @@ while IFS= read -r line; do
fi
done < <(blkid |grep ext4 |grep ${type})
-if ls /boot/vmlinuz*acrn-sos* 1> /dev/null 2>&1;then
- sos_kernel=$(ls -tr /boot/vmlinuz-*acrn-sos* | tail -1)
+if ls /boot/vmlinuz*acrn-service-vm* 1> /dev/null 2>&1;then
+ service_vm_kernel=$(ls -tr /boot/vmlinuz-*acrn-servic... |
add search cmd | @@ -155,6 +155,7 @@ static const char *slockcmd[] = {"ilock", NULL};
static const char *langswitchcmd[] = {"ilayout", NULL};
static const char *oslockcmd[] = {"instantlock", "-o", NULL};
static const char *helpcmd[] = {"instanthotkeys", "gui", NULL};
+static const char *searchcmd[] = {"instantsearch", NULL};
static con... |
Update doc on finding help. | @@ -31,11 +31,9 @@ question, or ServerFault, if an administration issue. These sites allow a
broad range of questions about many topics with quite a large user base of
sometimes knowledgeable people.
-Do be aware though that the only forum that is guaranteed to be monitored
-is the mod_wsgi mailing list. Questions are ... |
[mod_openssl] enable read-ahead, if set, after SNI
note: not disabling if enabled; extra blocks may already have been read | @@ -972,7 +972,10 @@ mod_openssl_client_hello_cb (SSL *ssl, int *al, void *srv)
&& (size_t)((name[0] << 8) + name[1]) == len-2
&& name[2] == TLSEXT_TYPE_server_name
&& (slen = (name[3] << 8) + name[4]) <= len-5) { /*(first)*/
+ int read_ahead = hctx->conf.ssl_read_ahead;
int rc = mod_openssl_SNI(hctx, (const char *)nam... |
nrf91: update rat-excludes | @@ -56,6 +56,11 @@ arm_startup_nrf52.s
uicr_config.h
iar_startup_nrf51.s
iar_startup_nrf52.s
+system_nrf9160.c
+gcc_startup_nrf9160.s
+nrf9160.h
+nrf9160_bitfields.h
+
# Linker scripts for Nordics nRF5X - TCL license
nrf51dk_no_boot.ld
@@ -114,6 +119,13 @@ fanstel-ev-bt840_no_boot.ld
split-fanstel-ev-bt840.ld
puckjs_no... |
[kernel] fix incompatible type error for "__rt_ffs()" | static rt_int16_t rt_scheduler_lock_nest;
extern volatile rt_uint8_t rt_interrupt_nest;
-extern int __rt_ffs(int value);
+extern rt_ubase_t __rt_ffs(rt_ubase_t value);
rt_list_t rt_thread_priority_table[RT_THREAD_PRIORITY_MAX];
struct rt_thread *rt_current_thread;
|
Scripts: Add sanity checks for uniqueness | @@ -25,7 +25,8 @@ use Time::localtime;
$ARGV[0] or die "USAGE: $0 input.tsv\n";
-my $WRITE_TO_FILES = 1;
+my $SANITY_CHECK = 0;
+my $WRITE_TO_FILES = 0;
my $WRITE_TO_PARAMDB = 0; # Be careful. Fill in $contactId before proceeding
my ($paramId, $shortName, $name, $units, $cfVarName, $interpol);
@@ -89,6 +90,27 @@ if ($W... |
Update unbound_munin_
Add TLS (DoT) counters | @@ -242,6 +242,8 @@ if test "$1" = "config" ; then
p_config "total.num.prefetch" "cache prefetch" "ABSOLUTE"
p_config "num.query.tcp" "TCP queries" "ABSOLUTE"
p_config "num.query.tcpout" "TCP out queries" "ABSOLUTE"
+ p_config "num.query.tls" "TLS queries" "ABSOLUTE"
+ p_config "num.query.tls.resume" "TLS resumes" "ABS... |
doc: add vision | # Goals
+The vision of Elektra is to make it trivial to access and specify configuration by APIs.
+This helps in achieving the following goals:
+
- Improve robustness of configuration systems by
- avoiding reimplementation of parsers for the same configuration settings.
- rejecting invalid configuration.
|
euler: fix thetaY in extracting angles | @@ -76,7 +76,6 @@ glm_euler_angles(mat4 m, vec3 dest) {
m01 = m[0][1]; m11 = m[1][1]; m21 = m[2][1];
m22 = m[2][2];
- thetaY = 0.0f;
if (m20 < 1.0f) {
if (m20 > -1.0f) {
thetaY = asinf(m20);
@@ -84,6 +83,7 @@ glm_euler_angles(mat4 m, vec3 dest) {
thetaZ = atan2f(-m10, m00);
} else { /* m20 == -1 */
/* Not a unique solu... |
vm: Setup toplevel doesn't exist anymore. | @@ -111,7 +111,6 @@ typedef struct lily_vm_state_ {
lily_vm_state *lily_new_vm_state(lily_raiser *);
void lily_free_vm(lily_vm_state *);
-void lily_setup_toplevel(lily_vm_state *, lily_function_val *);
void lily_vm_execute(lily_vm_state *);
void lily_vm_ensure_class_table(lily_vm_state *, int);
|
Remove Docker image creation stuff | @@ -7,11 +7,6 @@ pipeline {
label 'go'
}
- environment {
- dockerhub_repo = "indigodatacloud/oidc-agent"
- dockerhub_image_id = ""
- }
-
stages {
stage('Code fetching') {
steps {
@@ -70,47 +65,12 @@ pipeline {
}
-
-
- /*stage('DockerHub delivery') {
+ stage('Build RPM/DEB packages') {
when {
anyOf {
- branch 'master'
b... |
IssueID:1619: clean netmgr_wifi.c private info.
[Detail]
none
[Verified Cases]
Build Pass: <none>
Test Pass: <none> | @@ -3457,7 +3457,7 @@ static void handle_netmgr_wifi_help_cmd()
NETMGR_WIFI_LOGI("netmgr -t wifi -s\n");
NETMGR_WIFI_LOGI("netmgr -t wifi -p\n");
NETMGR_WIFI_LOGI("netmgr -t wifi -r\n");
- NETMGR_WIFI_LOGI("netmgr -t wifi -w network={\\nssid=\"apple\"\\npassword=\"aos123456\"\\nchannel=\"1\"\\n}\\n");
+ NETMGR_WIFI_LOG... |
[DeviceDrivers] fix the compiling warning. | @@ -360,7 +360,11 @@ rt_size_t rt_pipe_read (rt_device_t device, rt_off_t pos, void *buffer, rt_siz
int read_bytes = 0;
rt_pipe_t *pipe = (rt_pipe_t *)device;
- if (device == RT_NULL) return -EINVAL;
+ if (device == RT_NULL)
+ {
+ rt_set_errno(-EINVAL);
+ return 0;
+ }
if (count == 0) return 0;
pbuf = (uint8_t*)buffer;... |
Detect CORTEX A53 and A72 as CORTEXA57 | @@ -114,8 +114,9 @@ int detect(void)
fclose(infile);
if(cpu_part != NULL && cpu_implementer != NULL) {
- if (strstr(cpu_part, "0xd07") && strstr(cpu_implementer, "0x41"))
- return CPU_CORTEXA57;
+ if (strstr(cpu_implementer, "0x41") &&
+ (strstr(cpu_part, "0xd07") || strstr(cpu_part,"0xd08") || strstr(cpu_part,"0xd03")... |
Fix king-haskell Linux release build. | stack2nix-output-path ? "custom-stack2nix-output.nix",
}:
let
- cabalPackageName = "king";
+ cabalPackageName = "urbit-king";
compiler = "ghc865"; # matching stack.yaml
# Pin static-haskell-nix version.
|
FEC: bugfix when sending multiple RS per FEC Block | @@ -162,10 +162,14 @@ protoop_arg_t fec_recover(picoquic_cnx_t *cnx)
}
}
+ int idx = 0;
+ int first_notnull_rs = -1;
// building the system, equation by equation
i = 0;
repair_symbol_t *rs;
for_each_repair_symbol(fec_block, rs) {
+ if (rs) {
+ if (first_notnull_rs == -1) first_notnull_rs = idx;
mpz_init(cnx, system[i][... |
esp-netif: Fix compilation if ESP_GRATUITOUS_ARP not enabled
Closes | @@ -614,7 +614,7 @@ static esp_err_t esp_netif_start_api(esp_netif_api_msg_t *msg)
#if ESP_GRATUITOUS_ARP
netif_set_garp_flag(esp_netif->lwip_netif);
#else
- ESP_LOGW(TAG,"CONFIG_LWIP_ESP_GRATUITOUS_ARP not enabled, but esp-netif configured woth ESP_NETIF_FLAG_GARP")
+ ESP_LOGW(TAG,"CONFIG_LWIP_ESP_GRATUITOUS_ARP not e... |
BetaFPVF411RX: add new gyro id | #define LED1_INVERT
// GYRO
-#define GYRO_TYPE MPU6XXX
+#define GYRO_TYPE ICM20602
#define GYRO_SPI_PORT SPI_PORT1
#define GYRO_NSS PIN_A4
#define GYRO_INT PIN_B6
#define GYRO_ID_1 0x68
#define GYRO_ID_2 0x73
#define GYRO_ID_3 0x78
-#define GYRO_ID_4 0x71
+#define GYRO_ID_4 0x98
// RADIO
#ifdef RX_EXPRESS_LRS
|
BugID:17646749:[hal] send SIGKILL when cancel child thread | @@ -429,9 +429,6 @@ int HAL_ThreadCreate(
}
ret = pthread_create((pthread_t *)thread_handle, NULL, work_routine, arg);
- if(ret == 0) {
- pthread_detach((pthread_t)thread_handle);
- }
return ret;
}
@@ -447,6 +444,7 @@ void HAL_ThreadDelete(_IN_ void *thread_handle)
pthread_exit(0);
} else {
/*main thread delete child t... |
tests/generator_throw: Test .throw() into stopped generator.
Should raise the exception being thrown. | @@ -65,3 +65,17 @@ try:
next(g)
except StopIteration:
pass
+
+# throwing into stopped generator should raise thrown exception
+# (case for exception type)
+try:
+ g.throw(ValueError)
+except ValueError:
+ print("ValueError1")
+
+# throwing into stopped generator should raise thrown exception
+# (case for exception inst... |
Properly populated ScePowerCallbackType enum. | @@ -24,24 +24,30 @@ typedef enum ScePowerErrorCode {
} ScePowerErrorCode;
typedef enum ScePowerCallbackType {
- /** indicates the power button was pushed, putting the unit into suspend mode */
- SCE_POWER_CB_POWER_SWITCH = 0x80000000,
- /** ? screen on after off ? **/
- SCE_POWER_CB_UNK_1 = 0x00600000,
- /** ? screen o... |
hw/npu2.c: Fix device aperture calculation
The POWER9 NPU2 implements an address compression scheme to compress 56-bit P9
physical addresses to 47-bit GPU addresses. System software needs to know both
addresses, unfortunately the calculation of the compressed address was
incorrect. Fix it here. | @@ -542,8 +542,10 @@ static void npu2_dn_fixup_gmb(struct dt_node *pd_dn, struct npu2_dev *ndev)
assert(mem_dn);
dt_add_property_cells(pd_dn, "memory-region", mem_dn->phandle);
- gta = ((gpu_base >> 42) & 0x1) << 41;
- gta |= ((gpu_base >> 45) & 0x3) << 42;
+ /* Coral mode address compression. This is documented in Fig... |
Still searching for the bug, which seems to have to do
an Array created in the copmile phase being freed early. | @@ -79,7 +79,7 @@ static StackFrame * VMMarkStackFrame(VM * vm, StackFrame * frame) {
}
/* Mark allocated memory associated with a value. This is
- * the main function for doing garbage collection. */
+ * the main function for doing the garbage collection mark phase. */
static void VMMark(VM * vm, Value * x) {
switch (... |
lib/protocol_fsp.c: don't use cache
the created files are always empty | @@ -662,7 +662,7 @@ int fsp_init (gftp_request * request)
request->need_hostport = 1;
request->need_username = 0;
request->need_password = 0;
- request->use_cache = 1;
+ request->use_cache = 0;
request->always_connected = 0;
request->use_local_encoding = 0;
|
YAwn: Ignore warning about long method | @@ -29,7 +29,7 @@ namespace
*/
string typeToString (int const type)
#ifdef __llvm__
- __attribute__ ((annotate ("oclint:suppress[high cyclomatic complexity]")))
+ __attribute__ ((annotate ("oclint:suppress[high ncss method]"), annotate ("oclint:suppress[high cyclomatic complexity]")))
#endif
{
switch (type)
|
make test: don't rely on cPython GC to close fds
This code improvement allows running in pypy (and other interpreters)
without exhausting file descriptors. | @@ -238,12 +238,12 @@ class VppTestCase(unittest.TestCase):
cls.logger = getLogger(cls.__name__)
cls.tempdir = tempfile.mkdtemp(
prefix='vpp-unittest-' + cls.__name__ + '-')
- file_handler = FileHandler("%s/log.txt" % cls.tempdir)
- file_handler.setFormatter(
+ cls.file_handler = FileHandler("%s/log.txt" % cls.tempdir)... |
libcupsfilters: In generated PPDs do not use ".Borderless" suffixes if printer has always zero margins | @@ -2209,7 +2209,24 @@ ppdCreateFromIPP2(char *buffer, /* I - Filename buffer */
twidth[256], /* Width string */
tlength[256], /* Length string */
ppdsizename[128];
- char *ippsizename;
+ char *ippsizename,
+ *suffix;
+ int all_borderless = 1;
+
+ /* Find a page size without ".Borderless" suffix */
+ /* (if all are ".B... |
bricks/ev3dev/modules/tools: experimental datalog
This adds an experimental datalogging convenience class. | @@ -7,6 +7,26 @@ from tools import wait, StopWatch
from sys import stderr
from builtins import print as builtinprint
+
def print(*args, **kwargs):
"""Print a message on the IDE terminal."""
builtinprint(*args, file=stderr, **kwargs)
+
+
+class DataLog():
+ def __init__(self, path, header=None):
+ self.path = path
+ sel... |
core/riscv-rv32i: Format linker script
This is a cleanup/reformat of the linker script.
This brings no functional change.
BRANCH=none
TEST=make buildall | OUTPUT_FORMAT(BFD_FORMAT, BFD_FORMAT, BFD_FORMAT)
OUTPUT_ARCH(BFD_ARCH)
ENTRY(__reset)
+
MEMORY
{
FLASH (rx) : ORIGIN = FW_OFF(SECTION) - CHIP_ILM_BASE, \
LENGTH = FW_SIZE(SECTION)
/*
* ILM (Instruction Local Memory).
- * We connect ILM to internal flash so we are able to boot from the flash.
+ * We connect ILM to inte... |
Fix typo box86 -> box64 | @@ -79,5 +79,5 @@ jobs:
- name: "Upload Artifact"
uses: actions/upload-artifact@v2
with:
- name: box86-${{ matrix.platform }}-${{ matrix.type }}
+ name: box64-${{ matrix.platform }}-${{ matrix.type }}
path: build/box64
|
Pre-alloc screenshot buffer on heap | @@ -51,6 +51,8 @@ AutoRepeat ar_button_down(250, 600);
AutoRepeat ar_button_left(0, 0);
AutoRepeat ar_button_right(0, 0);
+uint8_t screenshot_buf[320 * 240 * 3];
+
int calc_num_blocks(uint32_t size) {
return (size - 1) / qspi_flash_sector_size + 1;
}
@@ -255,18 +257,16 @@ void load_current_game_metadata() {
// Free any... |
Fix leaking memory when --roi given many times
Any previously allocated delta QP array was not freed when allocating
a new array. | @@ -1023,17 +1023,20 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value)
fprintf(stderr, "ROI dimensions exceed arbitrary value of 10000.\n");
return 0;
}
- const unsigned size = width * height;
- cfg->roi.width = width;
- cfg->roi.height = height;
- cfg->roi.dqps = calloc((size_t)size, sizeof... |
Changed the usage of sctimer in a more proper way (was the example already obsolete???) | @@ -18,11 +18,12 @@ remainder of the packet contains an incrementing bytes.
#include "radio.h"
#include "leds.h"
#include "sctimer.h"
+#include "uart.h"
//=========================== defines =========================================
#define LENGTH_PACKET 125+LENGTH_CRC // maximum length is 127 bytes
-#define CHANNEL 11... |
Fix build error for Esp32 | @@ -40,7 +40,7 @@ int Network_Interface_Open(int index)
{
// Wireless
case TCPIP_ADAPTER_IF_STA:
- return Esp32_Wireless_Open(index, config);
+ return Esp32_Wireless_Open(index, &config);
// Soft AP
case TCPIP_ADAPTER_IF_AP:
@@ -49,7 +49,7 @@ int Network_Interface_Open(int index)
#if ESP32_ETHERNET_SUPPORT
// Ethernet
... |
Do not write an empty main wbtree | @@ -834,7 +834,7 @@ static merr_t
kblock_finish(struct kblock_builder *bld, struct wbb *ptree)
{
struct bloom_hdr_omf blm_hdr;
- struct wbt_hdr_omf wbt_hdr;
+ struct wbt_hdr_omf wbt_hdr = { 0 };
struct wbt_hdr_omf pt_hdr = { 0 };
struct mblock_props mbprop;
@@ -885,6 +885,7 @@ kblock_finish(struct kblock_builder *bld, ... |
Fix function name in comment.
Author: Masahiro Ikeda
Discussion: | @@ -82,7 +82,7 @@ RelfilenodeMapInvalidateCallback(Datum arg, Oid relid)
}
/*
- * RelfilenodeMapInvalidateCallback
+ * InitializeRelfilenodeMap
* Initialize cache, either on first use or after a reset.
*/
static void
|
Update ffxiv_idarename.py
add DAT_ to allowed prefix list in ghidra to get rid of some false errors for addresses the analyzer didn't label properly | @@ -376,7 +376,7 @@ if api is None:
if any(current_func_name.startswith(name) for name in parent_class_names):
return ""
- if any(current_func_name.startswith(prefix) for prefix in ("FUN_", "LAB_", "SUB_", "LOC_")):
+ if any(current_func_name.startswith(prefix) for prefix in ("FUN_", "LAB_", "SUB_", "LOC_", "DAT_")):
r... |
added GPS (D.d) coordinates to CSV output | @@ -921,6 +921,9 @@ latitude = 0;
longitude = 0;
ew = 0;
ns = 0;
+
+double latm, lonm;
+
if(memcmp(&gprmc, nmeasentence, 6) == 0)
{
while((nmeasentence[p] != 0) && (c < 2))
@@ -929,12 +932,16 @@ if(memcmp(&gprmc, nmeasentence, 6) == 0)
p++;
}
sscanf(&nmeasentence[p],"%f,%c,%f,%c", &latitude, &ew, &longitude, &ns);
+ la... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.