message
stringlengths
6
474
diff
stringlengths
8
5.22k
BugID:20072916: Update aos make prompt Remove the command that does't work in Windows Powershell
@@ -110,10 +110,7 @@ $(info $$ aos make $(BUILD_STRING) -c config) $(info ---> Or more config: $$ aos make menuconfig) $(info ) $(info Step 2: build:) -$(info $$ aos make # VAR=value if needed) -$(info ) -$(info ---> Or oneline command for config and build:) -$(info $$ aos make $(BUILD_STRING) -c config && aos make) +$...
Travis: Update snapshot release before deploying with Windows VM.
@@ -69,6 +69,11 @@ jobs: - cmake -G "Visual Studio 15 2017" -A x64 -DTINYSPLINE_ENABLE_PYTHON=True .. - C:\\Python37\\python setup.py bdist_wheel - popd + before_deploy: + - git tag -f snapshot + - git remote add gh https://${TRAVIS_REPO_SLUG%/*}:${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git + - git push -f gh sna...
header needed for python scipy mmread compatibility
@@ -26,7 +26,7 @@ void SoloFeature::outputNumUMIperGeneCB() ofstream &countMatrixStream=ofstrOpen(matrixFileName,ERROR_OUT, P); //header - countMatrixStream <<"%%\n%\n" << Trans.nGe<< ' ' << pSolo.cbWL.size() <<' '<< nCellGeneEntries << '\n'; + countMatrixStream <<"%%MatrixMarket matrix coordinate integer general\n%\n"...
Update doc/benchmarks.md.
@@ -26,7 +26,6 @@ bcheckOptimizeXxx methods." The benchmark programs aim to be runnable "out of the box" without any configuration or installation. For example, to run the `std/flate` benchmarks: - # TODO: confirm that we will live at github.com/google/puffs git clone https://github.com/google/puffs.git cd puffs/test/c...
i2s/driver: Add module reset before enabling
@@ -886,12 +886,6 @@ static esp_err_t i2s_param_config(i2s_port_t i2s_num, const i2s_config_t *i2s_co I2S_CHECK(!((i2s_config->mode & I2S_MODE_DAC_BUILT_IN) && (i2s_num != I2S_NUM_0)), "I2S DAC built-in only support on I2S0", ESP_ERR_INVALID_ARG); I2S_CHECK(!((i2s_config->mode & I2S_MODE_PDM) && (i2s_num != I2S_NUM_0))...
Fix build for PPC970 on FreeBSD pt. 1 FreeBSD needs DCBT_ARG=0 as well.
@@ -241,7 +241,7 @@ static inline int blas_quickdivide(blasint x, blasint y){ #define HAVE_PREFETCH #endif -#if defined(POWER3) || defined(POWER6) || defined(PPCG4) || defined(CELL) || defined(POWER8) || defined(POWER9) || ( defined(PPC970) && defined(OS_DARWIN) ) +#if defined(POWER3) || defined(POWER6) || defined(PPCG...
JoinGroup: check correct associations key
@@ -85,7 +85,7 @@ export function JoinGroup(props: JoinGroupProps) { await waiter((p: JoinGroupProps) => { return group in p.groups && (group in (p.associations?.graph ?? {}) - || group in (p.associations?.contacts ?? {})) + || group in (p.associations?.groups ?? {})) }); if(props.groups?.[group]?.hidden) { const { met...
Android: update default build settings for thew new app template
@@ -110,7 +110,12 @@ uwp: android: #manifest_template: 'AndroidManifest.erb' - version: 4.4.2 + + #specifies compile SDK version ( 9 corresponds to API 28). If not specified then latest available API level will be used. + #version: 9 + + #targetSDK: 28 + ## Note: in order to simplify debugging only app messages and sys...
Fix test_misc_version() for various XML_UNICODE issues.
@@ -8010,10 +8010,16 @@ START_TEST(test_misc_version) if (!versions_equal(&read_version, &parsed_version)) fail("Version mismatch"); -#if ! defined(XML_UNICODE) +#if ! defined(XML_UNICODE) || defined(XML_UNICODE_WCHAR_T) + if (xcstrcmp(version_text, XCS("expat_2.2.4"))) /* needs bump on releases */ + fail("XML_*_VERSIO...
ColorInput: fix initial field state
@@ -37,8 +37,7 @@ function padHex(hex: string) { export function ColorInput(props: ColorInputProps) { const { id, placeholder, label, caption, disabled, ...rest } = props; const [{ value, onBlur }, meta, { setValue, setTouched }] = useField(id); - const [field, setField] = useState(''); - // const [error, setError] = u...
yanglint UPDATE create empty features array
@@ -127,7 +127,8 @@ int parse_features(const char *fstring, struct ly_set *fset) { struct schema_features *rec; - char *p; + uint32_t count; + char *p, **fp; rec = calloc(1, sizeof *rec); if (!rec) { @@ -148,10 +149,11 @@ parse_features(const char *fstring, struct ly_set *fset) } rec->mod_name = strndup(fstring, p - fs...
cups/dest.c: Look for default printer on network as well The current code of `cupsGetNamedDest()` doesn't look up on network for a default printer. The result is a temporary queue cannot be set as a default printer. Fixes
@@ -1835,31 +1835,22 @@ cupsGetNamedDest(http_t *http, /* I - Connection to server or @code CUPS_HTT */ if (!_cupsGetDests(http, op, dest_name, &dest, 0, 0)) - { - if (name) { _cups_namedata_t data; /* Callback data */ DEBUG_puts("1cupsGetNamedDest: No queue found for printer, looking on network..."); - data.name = nam...
testcase: fix up tc_roundrobin.c problem tc_roundrobin try to create 15 pthread. In case of CONFIG_MAX_TASKS is 16 or smaller than 16. This should fail. This patch fix up this problem.
#define LOOP 10 #define LOG_SIZE 400 #define TESTCASE 3 +#if CONFIG_MAX_TASKS > 16 #define NTHREAD 5 +#else +#define NTHREAD 3 +#endif #define MAX_TASKS_MASK (CONFIG_MAX_TASKS-1) #define PIDHASH(pid) ((pid) & MAX_TASKS_MASK) /**************************************************************************** @@ -47,7 +51,11 @...
Fix SEGV in PUT sensor/<id>/config `sensor` was dereferenced without checking for null.
@@ -693,9 +693,6 @@ int DeRestPluginPrivate::changeSensorConfig(const ApiRequest &req, ApiResponse & TaskItem task; QString id = req.path[3]; Sensor *sensor = id.length() < MIN_UNIQUEID_LENGTH ? getSensorNodeForId(id) : getSensorNodeForUniqueId(id); - Device *device = (sensor && sensor->parentResource()) ? static_cast<...
npu2: hw-procedures: Add obus_brick_index() We have code in reset_ntl() which finds the index number of our brick within its obus chiplet. Move that logic to a separate function for reuse. No functional change. Acked-by: Alistair Popple
@@ -191,6 +191,18 @@ static uint32_t nop(struct npu2_dev *npu_dev __unused) } DEFINE_PROCEDURE(nop); +/* Return the brick number (0-2) within an obus chiplet */ +static int obus_brick_index(struct npu2_dev *ndev) +{ + int index = ndev->index % 3; + + /* On the second obus chiplet, index is reversed */ + if ((ndev->pl_x...
king kong fix update now possible to run exe directly with default parameters initial startup defaulted to desktop resolution fixed an issue in windowed mode (text was too big)
@@ -205,6 +205,48 @@ void Init() } }; injector::MakeInline<MouseSensHook>(pattern.get_first(0), pattern.get_first(6)); } + + static const std::string defaultCmd("/B /lang:01 /spg:50 /GDBShaders KKMaps.bf"); + pattern = hook::pattern("C7 45 ? ? ? ? ? 68 04 01 00 00 8D 85 D8 FB FF FF 50"); //0x401A10 + struct StartupHook...
Install SCons on Python 3 in TravisCI job.
@@ -19,13 +19,13 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python3 -m pip install --user virtualenv python3 -m virtualenv ~/venv source ~/venv/bin/activate - if [[ "$BUILD_TOOL" == "scons" ]]; then - pip install scons - elif [[ "$BUILD_TOOL" == "autotools" ]]; then + if [[ "$BUILD_TOOL" == "autotools" ]]; then HOMEB...
libhfuzz/instrument: require popcnt for more functions
@@ -272,7 +272,7 @@ HF_REQUIRE_SSE42_POPCNT void __sanitizer_cov_trace_cmpd( /* * -fsanitize-coverage=trace-div */ -void __sanitizer_cov_trace_div8(uint64_t Val) { +HF_REQUIRE_SSE42_POPCNT void __sanitizer_cov_trace_div8(uint64_t Val) { uintptr_t pos = (uintptr_t)__builtin_return_address(0) % _HF_PERF_BITMAP_SIZE_16M; ...
netutils/dhcpc: minor patch for handling exception cases This commit is the patch to handling exception cases - when abnormal interface name is coming from applications, dhcpc should not run - arguments used by dhcpc_request must not be null
@@ -369,7 +369,11 @@ void *dhcpc_open(const char *intf) uint8_t macaddr[IFHWADDRLEN]; int maclen = IFHWADDRLEN; - netlib_getmacaddr(intf, macaddr); + if (netlib_getmacaddr(intf, macaddr) != OK) { + /* Do not open dhcpc socket on wrong interface name */ + ndbg("ERROR : failed to netlib_getmacaddr\n"); + return NULL; + }...
Moved setting ctx for temporary cache object before metadata init This way debug prints during metadata init phase won't cause crash (because of the fact that temporary cache object does not have proper ctx set hence does not have logger obj).
@@ -1206,6 +1206,7 @@ static int _ocf_mngt_cache_start(ocf_ctx_t ctx, ocf_cache_t *cache, } tmp_cache = params.cache; + tmp_cache->owner = ctx; /* * Initialize metadata selected segments of metadata in memory @@ -1218,8 +1219,6 @@ static int _ocf_mngt_cache_start(ocf_ctx_t ctx, ocf_cache_t *cache, } params.flags.metada...
Add a test for CVE-2021-3449 We perform a reneg handshake, where the second ClientHello drops the sig_algs extension. It must also contain cert_sig_algs for the test to work.
@@ -38,7 +38,7 @@ my $proxy = TLSProxy::Proxy->new( $proxy->clientflags("-no_tls1_3"); $proxy->reneg(1); $proxy->start() or plan skip_all => "Unable to start up Proxy for tests"; -plan tests => 3; +plan tests => 4; ok(TLSProxy::Message->success(), "Basic renegotiation"); #Test 2: Client does not send the Reneg SCSV. Re...
multifile: fix storage kdbGet after partial cache miss
@@ -563,7 +563,7 @@ static Codes doGetStorage (MultiConfig * mc, Key * parentKey) while ((k = ksNext (mc->childBackends)) != NULL) { SingleConfig * s = *(SingleConfig **) keyValue (k); - if (s->rcResolver != SUCCESS) continue; + if (s->rcResolver != SUCCESS && s->rcResolver != CACHE_HIT) continue; keySetName (parentKey...
drv_spi: clean DMA flags for blocking transfer
@@ -269,6 +269,9 @@ void spi_dma_transfer_bytes(spi_ports_t port, uint8_t *buffer, uint32_t length) while (DMA_GetFlagStatus(PORT.dma.tx_stream, PORT.dma.tx_tci_flag) == RESET) ; + DMA_ClearFlag(PORT.dma.rx_stream, PORT.dma.rx_tci_flag); + DMA_ClearFlag(PORT.dma.tx_stream, PORT.dma.tx_tci_flag); + SPI_I2S_DMACmd(PORT.c...
diagnostics version
@@ -3,7 +3,7 @@ RESOURCES_LIBRARY() IF(USE_SYSTEM_COVERAGE_PUSH_TOOL) MESSAGE(WARNING System coverage push tool $USE_SYSTEM_COVERAGE_PUSH_TOOL will be used) ELSEIF(HOST_OS_LINUX) - DECLARE_EXTERNAL_RESOURCE(COVERAGE_PUSH_TOOL sbr:1413604407) + DECLARE_EXTERNAL_RESOURCE(COVERAGE_PUSH_TOOL sbr:1415592743) ELSE() MESSAGE(...
avx: correct range of imm8 argument on _mm_permute2f128_* Thanks to for pointing this out.
@@ -4636,7 +4636,7 @@ simde_mm256_permutevar_pd (simde__m256d a, simde__m256i b) { SIMDE_FUNCTION_ATTRIBUTES simde__m256 simde_mm256_permute2f128_ps (simde__m256 a, simde__m256 b, const int imm8) - SIMDE_REQUIRE_RANGE(imm8, 0, 15) { + SIMDE_REQUIRE_RANGE(imm8, 0, 255) { simde__m256_private r_, a_ = simde__m256_to_priva...
Ensure operator precedence for open shared bit. This update adds parenthesis to ensure operator precedence/readability for the shared bit of fpgaOpen flags param.
@@ -91,7 +91,7 @@ fpga_result __FPGA_API__ fpgaOpen(fpga_token token, fpga_handle *handle, int fla _handle->wsid_root = NULL; // Open resources in exclusive mode unless FPGA_OPEN_SHARED is given - open_flags = O_RDWR | (flags & FPGA_OPEN_SHARED ? 0 : O_EXCL); + open_flags = O_RDWR | ((flags & FPGA_OPEN_SHARED) ? 0 : O_...
[dfs] Update DFS_FD_MAX default size to 16.
@@ -24,8 +24,7 @@ if RT_USING_DFS config DFS_FD_MAX int "The maximal number of opened files" - default 16 if RT_USING_DFS_NFS - default 4 + default 16 config RT_USING_DFS_ELMFAT bool "Enable elm-chan fatfs"
chat: pointer cursor for attachment + dojo in input
@@ -189,6 +189,7 @@ class ChatInput extends Component<ChatInputProps, ChatInputState> { ) : ( <Icon icon='Attachment' + cursor='pointer' width='16' height='16' onClick={() => @@ -201,6 +202,7 @@ class ChatInput extends Component<ChatInputProps, ChatInputState> { <Box mr={2} flexShrink={0} height='16px' width='16px' fle...
Add comments in dockerfile for clarity
@@ -10,17 +10,21 @@ libboost-program-options-dev \ libboost-regex-dev \ libsqlite3-dev \ ragel \ +# Clean up to reduce layer size && apt-get clean \ && rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/doc-base -# update needed again, as it was removed before; it fetches less than 1 mb +# apt-get update needed agai...
settings: use async buttons for s3 Fixes urbit/landscape#290
import React, { ReactElement, useCallback } from 'react'; -import { Formik } from 'formik'; +import { Formik, FormikHelpers } from 'formik'; import { ManagedTextInputField as Input, @@ -10,6 +10,7 @@ import { Col, Anchor } from '@tlon/indigo-react'; +import { AsyncButton } from "~/views/components/AsyncButton"; import ...
Update README.md Update Azure Pipelines badges.
@@ -40,8 +40,8 @@ This repo contains: | Component | Build Status | Build Status (develop) | |:-|---|---| -| nanoBooter + nanoCLR | [![Build status](https://ci.appveyor.com/api/projects/status/gvkj25wv62eoikoq/branch/master?svg=true)](https://ci.appveyor.com/project/nfbot/nf-interpreter-852pb/branch/master) | [![Build S...
tinyprintf: Include '-' for floats in range (-1,0) When floating point numbers in the range (-1, 0) (i.e., between -1 and 0, exclusive) were printed, the negative sign was not included. This commit fixes the printf functions such that the negative sign is preserved.
@@ -347,10 +347,17 @@ size_t tfp_format(FILE *putp, const char *fmt, va_list va) case 'f': p.base = 10; d = va_arg(va, double); - /* Cast to an int to get the integer part of the number */ + /* Convert to an int to get the integer part of the number. */ n = d; /* Convert to ascii */ i2a(n, &p); + /* When the double was...
main shm CHANGE debug ext shm output improved
@@ -336,19 +336,19 @@ sr_shmmain_ext_print(sr_shm_t *shm_main, char *ext_shm_addr, size_t ext_shm_size printed = 0; for (i = 0; i < item_count; ++i) { if (items[i].start > cur_off) { - printed += sr_sprintf(&msg, &msg_len, printed, "%04ld-%04ld: (wasted %ld)\n", - cur_off, items[i].start, items[i].start - cur_off); + p...
Fix a couple nits in DEFINE_STACK_OF.pod Only the 'new' variant of sk_TYPE_new_reserve() deals with compression functions. Mention both new 'reserve' APIs as being added in OpenSSL 1.1.1.
@@ -109,7 +109,7 @@ sk_TYPE_new_reserve() allocates a new stack. The new stack will have additional memory allocated to hold B<n> elements if B<n> is positive. The next B<n> calls to sk_TYPE_insert(), sk_TYPE_push() or sk_TYPE_unshift() will not fail or cause memory to be allocated or reallocated. If B<n> is zero or le...
libtcmu: add dev and ring buffer cmd_tail update macro APIs This patch add two cmd_tail update APIs to simplify the code.
@@ -567,6 +567,12 @@ device_cmd_tail(struct tcmu_device *dev) return (struct tcmu_cmd_entry *) ((char *) mb + mb->cmdr_off + dev->cmd_tail); } +/* update the tcmu_device's tail */ +#define TCMU_UPDATE_DEV_TAIL(dev, mb, ent) \ +do { \ + dev->cmd_tail = (dev->cmd_tail + tcmu_hdr_get_len((ent)->hdr.len_op)) % mb->cmdr_siz...
Config: Removing USE_PRFLOW from snap_env (USE_PRFLOW is part of snap_config)
@@ -115,16 +115,9 @@ while [ -z "$SETUP_DONE" ]; do ####### settings for Partial Reconfiguration flow - echo "=====PR flow setup=====================================" - if [ -z "$USE_PRFLOW" ]; then - export USE_PRFLOW=FALSE - echo "Setting USE_PRFLOW to: \"$USE_PRFLOW\"" - else - echo "USE_PRFLOW is set to: \"$USE_PRF...
Fix sentinel acl change test. Timing issue.
@@ -126,7 +126,7 @@ test "Sentinels (re)connection following master ACL change" { wait_for_condition 100 50 { [string match "*disconnected*" [dict get [S $sent2re SENTINEL MASTER mymaster] flags]] != 0 } else { - fail "Expected: Sentinel to be disconnected from master due to wrong password" + fail "Expected: Restarted ...
Sensor: Check window size.
@@ -242,10 +242,13 @@ static mp_obj_t py_sensor_set_framesize(mp_obj_t framesize) { } static mp_obj_t py_sensor_set_windowing(mp_obj_t roi_obj) { - mp_uint_t array_len; + int x, y, w, h; + int res_w = resolution[sensor.framesize][0]; + int res_h = resolution[sensor.framesize][1]; + mp_obj_t *array; + mp_uint_t array_le...
set m_axi_awcache to 4'b1111 in axis_ram_writer
@@ -139,7 +139,7 @@ module axis_ram_writer # assign m_axi_awlen = 4'd15; assign m_axi_awsize = ADDR_SIZE; assign m_axi_awburst = 2'b01; - assign m_axi_awcache = 4'b0011; + assign m_axi_awcache = 4'b1111; assign m_axi_awvalid = int_awvalid_reg; assign m_axi_wid = int_wid_reg; assign m_axi_wdata = int_wdata_wire[AXI_DATA...
add redpine to targets.json
"RX_FRSKY_D8": "", "DSHOT": "300" } + }, + { + "name": "dshot300.redpine", + "defines": { + "BRUSHLESS_TARGET": "", + "RX_REDPINE": "", + "DSHOT": "300" + } } ] }, "RX_FRSKY_D8": "" } }, + { + "name": "brushless.redpine", + "defines": { + "BRUSHLESS_TARGET": "", + "RX_REDPINE": "" + } + }, { "name": "brushless.serial",...
Fix argument representation for raw queue debug mesaage. vfprintf was segfaulting because it was trying to interpret the %s with a missing argument.
@@ -1105,7 +1105,7 @@ int main(int argc, char** argv) if (dontparse == 2) { /* Raw queue, simply pass the input into the postpipe (or to STDOUT when there is no postpipe) */ - _log("Raw printing, executing \"cat %s\"\n\n"); + _log("Raw printing, executing \"cat %%s\"\n\n"); snprintf(tmp, 1024, "cat %s", postpipe->data)...
stdioproc: add test to README
- infos/needs = - infos/provides = - infos/recommends = -- infos/placements = pregetstorage getstorage procgetstorage postgetstorage presetstorage setstorage +- infos/placements = postgetstorage presetstorage - infos/status = maintained unittest shelltest experimental - infos/metadata = - infos/description = one-line d...
hpet: fixing dependencies
build library { target = "hpet_module", cFiles = ["hpet.c" ], - addLibraries = libDeps["skb", "int_route_client" , "int_msix_ctrl"], + addLibraries = libDeps["int_route_client"], flounderDefs = [ "hpet" ], mackerelDevices = ["hpet"], architectures = [ "x86_64" ] target = "hpet", cFiles = [ "main.c"], addLinkFlags = ["-...
nimble/ll: Rename mempool used for AUX data in extended scan This is used for extended scanning only so name it appropriately.
@@ -169,15 +169,15 @@ static TAILQ_HEAD(ble_ll_scan_dup_list, ble_ll_scan_dup_entry) g_scan_dup_list; #if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_EXT_ADV) #if MYNEWT_VAL(BLE_LL_EXT_ADV_AUX_PTR_CNT) != 0 -static os_membuf_t ext_adv_mem[ OS_MEMPOOL_SIZE( +static os_membuf_t ext_scan_aux_mem[ OS_MEMPOOL_SIZE( MYNEWT_VAL(BLE_LL_EXT_...
Validate parser parameter to XML_SetUnknownEncodingHandler
@@ -1577,6 +1577,8 @@ XML_SetUnknownEncodingHandler(XML_Parser parser, XML_UnknownEncodingHandler handler, void *data) { + if (parser == NULL) + return; unknownEncodingHandler = handler; unknownEncodingHandlerData = data; }
Alarm systems return error if code0 can't be set This can happen when no usable OpenSSL library is found.
@@ -571,6 +571,11 @@ bool AlarmSystem::setCode(int index, const QString &code) sec.secret = CRYPTO_ScryptPassword(code0, CRYPTO_GenerateSalt()); sec.state = 1; + if (sec.secret.empty()) + { + return false; + } + if (DB_StoreSecret(sec)) { setValue(RConfigConfigured, true);
demo_cluster.sh: remove GPSEARCH Use GPHOME directly. There is no need for GPSEARCH. This enables demo_cluster.sh to handle symlinks which is useful when GPDB is installed using RPMs and a demo cluster is desired.
@@ -178,8 +178,6 @@ if [ -z "${GPHOME}" ]; then echo " file in your Greenplum installation directory." echo "" exit 1 -else - GPSEARCH=$GPHOME fi cat <<-EOF @@ -210,16 +208,16 @@ cat <<-EOF EOF -GPPATH=`find $GPSEARCH -name gpstart| tail -1` +GPPATH=`find -H $GPHOME -name gpstart| tail -1` RETVAL=$? if [ "$RETVAL" -ne ...
morphius: update cpu thermal protect point This patch update CPU temperature shut down point to 105. BRANCH=zork TEST=make BOARD=morphius
@@ -465,7 +465,7 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); const static struct ec_thermal_config thermal_cpu = { .temp_host = { [EC_TEMP_THRESH_HIGH] = C_TO_K(90), - [EC_TEMP_THRESH_HALT] = C_TO_K(99), + [EC_TEMP_THRESH_HALT] = C_TO_K(105), }, .temp_host_release = { [EC_TEMP_THRESH_HIGH] = C_TO_K(...
VERSION bump to version 1.4.45
@@ -37,7 +37,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 44) +set(SYSREPO_MICRO_VERSION 45) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
test_bpf_table: Re-add deletion of 'bpf' module This was removed in presumably because sanitizer complained.
@@ -26,13 +26,13 @@ TEST_CASE("test bpf table", ebpf::bpf_module_rw_engine_enabled() ? "[bpf_table]" BPF_TABLE("hash", int, int, myhash, 128); )"; - ebpf::BPF bpf; + auto bpf = std::make_unique<ebpf::BPF>(); ebpf::StatusTuple res(0); std::vector<std::pair<std::string, std::string>> elements; - res = bpf.init(BPF_PROGRA...
pyocf: implement test_attach_cleaner_disabled_non_default
@@ -150,7 +150,6 @@ def test_cleaner_disabled_nop(pyocf_ctx): cache.set_cleaning_policy(CleaningPolicy.NOP) -@pytest.mark.skip(reason="not implemented") def test_attach_cleaner_disabled_non_default(pyocf_ctx): """ title: Attach cache with default config does not set clener_disabled. @@ -169,4 +168,11 @@ def test_attach...
Fix theta tokens
@@ -351,8 +351,9 @@ tokenDefinition_t *getKnownToken(uint8_t *contractAddress) { break; case CHAIN_KIND_FLARE: currentToken = (tokenDefinition_t *) PIC(&TOKENS_FLARE[i]); - break case CHAIN_KIND_THETA : currentToken = - (tokenDefinition_t *) PIC(&TOKENS_THETA[i]); + break; + case CHAIN_KIND_THETA: + currentToken = (tok...
wapi: correct scan return value
@@ -1256,14 +1256,14 @@ int wapi_scan_stat(int sock, FAR const char *ifname) return 1; } - printf("err[%d]: %s\n", errno, strerror(errno)); - } - else - { int errcode = errno; WAPI_IOCTL_STRERROR(SIOCGIWSCAN, errcode); ret = -errcode; } + else + { + ret = 0; + } return ret; }
Test shorter long context URI with a failing reallocator One last code path to exercise
@@ -9264,6 +9264,37 @@ START_TEST(test_nsalloc_realloc_long_context_5) } END_TEST +START_TEST(test_nsalloc_realloc_long_context_6) +{ + const char *text = + "<!DOCTYPE doc SYSTEM 'foo' [\n" + " <!ENTITY en SYSTEM 'bar'>\n" + "]>\n" + "<doc xmlns='http://example.org/" + /* 64 characters per line */ + "ABCDEFGHIJKLMNO/AB...
graph-store lib: skip trip and crip, use rap
== :: ++ index - |= i=^index + |= ind=^index ^- json - ?: =(~ i) s+'/' - =/ j=^tape "" - |- - ?~ i [%s (crip j)] - =/ k=json (numb i.i) - ?> ?=(%n -.k) - %_ $ - i t.i - j (weld j (weld "/" (trip +.k))) - == + :- %s + ?: =(~ ind) + '/' + %+ roll ind + |= [cur=@ acc=@t] + ^- @t + =/ num (numb cur) + ?> ?=(%n -.num) + (ra...
out_es: remove unused variables
@@ -235,11 +235,7 @@ static int elasticsearch_format(struct flb_config *config, msgpack_sbuffer tmp_sbuf; msgpack_packer tmp_pck; uint16_t hash[8]; - const char *es_index_custom; int es_index_custom_len; - int i; - msgpack_object key; - msgpack_object val; struct flb_elasticsearch *ctx = plugin_context; /* Iterate the ...
phonon doesn't try to make a mesh if there are no vertices;
@@ -343,8 +343,10 @@ bool phonon_setGeometry(float* vertices, uint32_t* indices, uint32_t vertexCount status = phonon_iplCreateScene(state.context, NULL, IPL_SCENETYPE_PHONON, 1, materials, NULL, NULL, NULL, NULL, NULL, &state.scene); if (status != IPL_STATUS_SUCCESS) goto fail; + if (vertexCount > 0 && indexCount > 0)...
[protobuf] Fix invalid function call reported by ubsan contrib/libs/protobuf/python/google/protobuf/pyext/message.cc:1406:3: runtime error: call to function google::protobuf::python::extension_dict::dealloc(google::protobuf::python::ExtensionDict*) through pointer to incorrect function type 'void (*)(_object *)'
@@ -239,7 +239,8 @@ ExtensionDict* NewExtensionDict(CMessage *parent) { return self; } -void dealloc(ExtensionDict* self) { +void dealloc(PyObject* object) { + ExtensionDict* self = reinterpret_cast<ExtensionDict*>(object); Py_CLEAR(self->values); self->owner.reset(); Py_TYPE(self)->tp_free(reinterpret_cast<PyObject*>(...
[x86_64] Re-enable tick callback kickoffs
@@ -23,12 +23,11 @@ static int tick_callback(register_state_t* regs) { if (tick % 1000 == 0) { printf("tick %d\n", tick); } - // TODO(PT): x86_64 // Wake sleeping services befores ending EOI, or else we // might get interrupted by another tick while the AMC spinlock is held - //amc_wake_sleeping_services(); + amc_wake_...
warn about incorrectly scaled trajectories
@@ -98,6 +98,17 @@ int main_nufft(int argc, char* argv[argc]) assert(3 == traj_dims[0]); + long coilest_dims[DIMS]; + + estimate_im_dims(DIMS, FFT_FLAGS, coilest_dims, traj_dims, traj); + + if (8 >= md_calc_size(3, coilest_dims)) { + + debug_printf(DP_WARN, "\tThe estimated image size %ldx%ldx%ld is very small.\n" + "\...
Fix for algorithms other than hash-then-sign
@@ -2642,11 +2642,12 @@ psa_status_t psa_sign_message_internal( size_t *signature_length ) { psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; - size_t hash_length; - uint8_t hash[PSA_HASH_MAX_SIZE]; if ( PSA_ALG_IS_HASH_AND_SIGN( alg ) ) { + size_t hash_length; + uint8_t hash[PSA_HASH_MAX_SIZE]; + status = psa_driv...
record cache keeps only the variants of the current contig
@@ -47,7 +47,7 @@ namespace ebi * @param capacity: maximum amount of RecordCores that this instance can hold at any time. * A value of 0 disables the limit, thus storing every RecordCore received. Use with caution. */ - RecordCache(size_t capacity) : capacity{capacity}, unlimited{capacity == 0} { } + explicit RecordCac...
Support versioned lua executable file. Fixes CMake not looking for the Lua library when the executable's name is not "lua".
@@ -77,7 +77,7 @@ if (LUA) NAMES luajit libluajit PATHS ${LUA_LIBDIR} NO_DEFAULT_PATH) - ELSEIF(LUA_EXEC_NAME STREQUAL "lua") + ELSEIF(LUA_EXEC_NAME MATCHES "lua.*") FIND_LIBRARY(LUA_LIBRARIES NAMES lua lua53 lua52 lua51 liblua liblua53 liblua52 liblua51 PATHS ${LUA_LIBDIR}
print some final stats
@@ -260,5 +260,13 @@ int main(int argc, char** argv) { cleanupSocketFuzzer(); } + uint64_t exec_per_sec = 0; + uint64_t elapsed_sec = time(NULL) - hfuzz.timing.timeStart; + if (elapsed_sec) { + exec_per_sec = hfuzz.cnts.mutationsCnt / elapsed_sec; + } + LOG_I("Summary: iters:%zu time:%" PRIu64 " execs/s:%" PRIu64, hfuz...
Have build-example.sh build with -O3
@@ -21,13 +21,13 @@ for f in example/*; do echo "Building $f" if [ "$f" = "example/crc32" ]; then # example/crc32 is unusual in that it's C++, not C. - g++ -Wall -Werror $f/*.cc -o $f/a.out + g++ -O3 $f/*.cc -o $f/a.out elif [ "$f" = "example/library" ]; then # example/library is unusual in that it uses separately comp...
Web UI: Reformat for coding guidelines
@@ -413,7 +413,8 @@ static int elektraVersionGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, KeySet * info = elektraVersionKeySet (); keySetMeta(info->array[0], "restrict/write", "1"); keySetMeta(info->array[0], "restrict/remove", "1"); - for (size_t i = 1; i < info->size; i++) { + for (size_t i = 1; i < info->...
LICENSE file update. No changes in terms, just changed CartoDB to CARTO and minor formatting changes.
-Copyright (c) 2016, CartoDB, Inc. +BSD 3-Clause License + +Copyright (c) 2018, CARTO All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -1. Redistributions of source code must retain the above copyright not...
tcpci: tcpci_tcpm_set_polarity should not clobber Bits 1-7 were getting clobbered when we updated Bit 0 BRANCH=none TEST=verify tcpci still functions
@@ -353,8 +353,10 @@ int tcpci_enter_low_power_mode(int port) int tcpci_tcpm_set_polarity(int port, int polarity) { - return tcpc_write(port, TCPC_REG_TCPC_CTRL, - TCPC_REG_TCPC_CTRL_SET(polarity)); + return tcpc_update8(port, + TCPC_REG_TCPC_CTRL, + TCPC_REG_TCPC_CTRL_SET(1), + (polarity) ? MASK_SET : MASK_CLR); } #if...
ldns/net.c: Fix uninitialized variable usage. Windows was throwing an assertion failure in debug builds as a result of the src_len variable not being initialized. This commit fixes that issue.
@@ -461,7 +461,7 @@ ldns_send_buffer(ldns_pkt **result, ldns_resolver *r, ldns_buffer *qb, ldns_rdf uint8_t i; struct sockaddr_storage *src = NULL; - size_t src_len; + size_t src_len = 0; struct sockaddr_storage *ns; size_t ns_len; struct timeval tv_s;
config_tools: add the missing GUEST_FLAG_NVMX_ENABLED to common.py Without this, the GUEST_FLAG_NVMX_ENABLED doesn't show up in the drop-down list of "guest_flags" in the ACRN config GUI.
@@ -22,7 +22,8 @@ DATACHECK_SCHEMA_FILE = SOURCE_ROOT_DIR + 'misc/config_tools/schema/datachecks.x PY_CACHES = ["__pycache__", "../board_config/__pycache__", "../scenario_config/__pycache__"] GUEST_FLAG = ["0", "0UL", "GUEST_FLAG_SECURE_WORLD_ENABLED", "GUEST_FLAG_LAPIC_PASSTHROUGH", - "GUEST_FLAG_IO_COMPLETION_POLLING...
Remove openssh_server container on test exit
@@ -159,12 +159,14 @@ static int start_openssh_server(char **container_id_out) const char *container_host_port = openssh_server_port(); if(container_host_port != NULL) { return run_command(container_id_out, - "docker run -d -p %s:22 libssh2/openssh_server", + "docker run --rm -d -p %s:22 " + "libssh2/openssh_server", c...
i kno how 2 kode
@@ -242,8 +242,7 @@ static void print_usage(void) printf(" -t, --text - use with -o; write processed list to file in ascii format\n"); printf(" -l, --lite - walk file system without stat\n"); printf(" -s, --sort <fields> - sort output by comma-delimited fields\n"); - printf(" -d, --distribution <field>:<separators>\n -...
Don't use __builtin_unreachable on GCC < 4.5.
# else # if defined(HEDLEY_ASSUME) # define simde_assert(expr) HEDLEY_ASSUME(expr) -# elif defined(__GNUC__) +# elif HEDLEY_GCC_VERSION_CHECK(4,5,0) # define simde_assert(expr) ((void) (!!(expr) ? 1 : (__builtin_unreachable(), 1))) -# elif defined(_MSC_VER) +# elif HEDLEY_MSVC_VERSION_CHECK(13,10,0) # define simde_asse...
commander: static func naming
@@ -167,7 +167,7 @@ static commander_error_t _api_show_mnemonic(void) return COMMANDER_OK; } -static commander_error_t commander_check_sdcard(CheckSDCardResponse* response) +static commander_error_t _api_check_sdcard(CheckSDCardResponse* response) { response->inserted = sd_card_inserted(); return COMMANDER_OK; @@ -243,...
docs/ide-support.md: Run mdformat mdformat -w --compatibility docs/ide-support.md BRANCH=none TEST=Check in Gitiles
@@ -34,18 +34,24 @@ You can use the `ide-config.sh` tool to generate a VSCode configuration that includes selectable sub-configurations for every board/image pair. 1. From the root `ec` directory, do the following: + ```bash mkdir -p .vscode ./util/ide-config.sh vscode all:RW all:RO | tee .vscode/c_cpp_properties.json ...
Fix arm type
@@ -2447,7 +2447,7 @@ typedef struct _SYSTEM_GDI_DRIVER_INFORMATION PVOID ImageAddress; PVOID SectionPointer; PVOID EntryPoint; - PIMAGE_EXPORT_DIRECTORY ExportSectionPointer; + struct _IMAGE_EXPORT_DIRECTORY* ExportSectionPointer; ULONG ImageLength; } SYSTEM_GDI_DRIVER_INFORMATION, *PSYSTEM_GDI_DRIVER_INFORMATION;
Checking if source is null in memcpy_check
/* Check memcpy and memset's arguments, if these are not right, log an error */ -#define memcpy_check( d, s, n ) do { if ( (n) ) { notnull_check( (d) ); memcpy( (d), (s), (n)); } } while(0) +#define memcpy_check( d, s, n ) do { if ( (n) ) { notnull_check( (s) ); notnull_check( (d) ); memcpy( (d), (s), (n)); } } while(0...
Fix dshow compilation errors (conflicting declarations with qedit.h)
* * https://code.google.com/p/webm/source/browse/qedit.h?repo=udpsample */ -static const -IID IID_ISampleGrabber = { - 0x6b652fff, 0x11fe, 0x4fce, - { 0x92, 0xad, 0x02, 0x66, 0xb5, 0xd7, 0xc7, 0x8f } -}; -static const -IID IID_ISampleGrabberCB = { - 0x0579154a, 0x2b53, 0x4994, - { 0xb0, 0xd0, 0xe7, 0x73, 0x14, 0x8e, 0x...
Restore the brief FIB entry printing
@@ -118,8 +118,8 @@ format_fib_entry (u8 * s, va_list * args) s = format (s, "%U", format_fib_prefix, &fib_entry->fe_prefix); -// if (level >= FIB_ENTRY_FORMAT_DETAIL) -// { + if (level >= FIB_ENTRY_FORMAT_DETAIL) + { s = format (s, " fib:%d", fib_entry->fe_fib_index); s = format (s, " index:%d", fib_entry_get_index(fi...
Update version to v3.5.117
#define MAT_VERSION_HPP // WARNING: DO NOT MODIFY THIS FILE! // This file has been automatically generated, manual changes will be lost. -#define BUILD_VERSION_STR "3.5.113.1" -#define BUILD_VERSION 3,5,113,1 +#define BUILD_VERSION_STR "3.5.117.1" +#define BUILD_VERSION 3,5,117,1 #ifndef RESOURCE_COMPILER_INVOKED #incl...
Update ffxiv_idarename.py Added CountdownPointer
@@ -64,6 +64,7 @@ NameAddr(0x1401F2990, "Client::UI::Agent::AgentModule_ctor") NameAddr(0x1401F7840, "Client::UI::Agent::AgentModule::GetAgentByInternalID") NameAddr(0x1401F7850, "Client::UI::Agent::AgentModule::GetAgentByInternalID_2") # dupe? NameAddr(0x14020CD10, "Client::UI::Agent::AgentLobby_ctor") +NameAddr(0x140...
Fix environment tab memory leak
@@ -76,18 +76,21 @@ BOOLEAN PhIsProcessSuspended( _In_ HANDLE ProcessId ) { + BOOLEAN suspended = FALSE; PVOID processes; PSYSTEM_PROCESS_INFORMATION process; if (NT_SUCCESS(PhEnumProcesses(&processes))) { if (process = PhFindProcessInformation(processes, ProcessId)) - return PhGetProcessIsSuspended(process); + { + sus...
Windows yells at ode less;
@@ -153,7 +153,10 @@ if(LOVR_ENABLE_PHYSICS) set(ODE_BUILD_SHARED ON CACHE BOOL "") endif() add_subdirectory(deps/ode ode) - if(NOT WIN32) + if(MSVC) + set_target_properties(ode PROPERTIES COMPILE_FLAGS "/wd4244 /wd4267") + target_compile_definitions(ode PRIVATE _CRT_SECURE_NO_WARNINGS) + else() set_target_properties(o...
docs/fingerprint: Add Chrome OS Project Configuration details model.yaml files no longer have to be created by hand; instead the Chrome OS Project Configuration tools will generate it. BRANCH=none TEST=view in gitiles
@@ -481,7 +481,16 @@ that should be built as part of the build. See the [`model.yaml` for the Hatch board][hatch model.yaml] as an example. -You can test your changes by +Instead of crafting the `model.yaml` by hand, newer boards are moving to the +[Chrome OS Project Configuration] model, where the config is generated ...
Fix occurs check. If we had a cycle within a type, the occurs check would recurse infinitely: a -> b -> c -> b would never return, because `a` doesn't occur in that sequence.
@@ -281,43 +281,63 @@ static int isbound(Inferstate *st, Type *t) * Recursive types that contain themselves through * pointers or slices are fine, but any other self-inclusion * would lead to a value of infinite size */ -static int occurs(Inferstate *st, Type *t, Type *sub) +static int occurs_rec(Inferstate *st, Type *...
State is fixed.
@@ -1342,13 +1342,13 @@ static int bi_compar(const void *l, const void *r) static const char* xdag_get_block_state_info(struct block_internal *block) { - if(block->flags & (BI_REF | BI_MAIN_REF)) { - if(block->flags & BI_MAIN) { + if(block->flags == (BI_REF | BI_MAIN_REF | BI_APPLIED | BI_MAIN | BI_MAIN_CHAIN)) { //1F ...
[update] delete extra null string.
@@ -177,7 +177,6 @@ static void pclkx_doubler_get(rt_uint32_t *pclk1_doubler, rt_uint32_t *pclk2_dou *pclk2_doubler = 2; } #else - if (RCC_ClkInitStruct.APB1CLKDivider != RCC_HCLK_DIV1) { *pclk1_doubler = 2;
board/beadrix/led.c: Format with clang-format BRANCH=none TEST=none
#define BAT_LED_ON 0 #define BAT_LED_OFF 1 -const enum ec_led_id supported_led_ids[] = { - EC_LED_ID_BATTERY_LED -}; +const enum ec_led_id supported_led_ids[] = { EC_LED_ID_BATTERY_LED }; const int supported_led_ids_count = ARRAY_SIZE(supported_led_ids); enum led_color {
firdespm: removing redundant check in create()
@@ -240,8 +240,6 @@ firdespm firdespm_create(unsigned int _h_len, return liquid_error_config("firdespm_create(), invalid bands"); if (!weights_valid) return liquid_error_config("firdespm_create(), invalid weights (must be positive)"); - if (_num_bands == 0) - return liquid_error_config("firdespm_create(), number of ban...
Update Readme.md Running Section The path needed to be in quotes (for me at least) Added a '.' to step 2. See
@@ -227,8 +227,8 @@ need to link to those libraries. Murl is not supported in windows at this time. ## Running -1. `export LD_LIBRARY_PATH=<path to ssl lib;path to curl lib>` -2. Modify and run `scripts/nist_setup.sh` +1. `export LD_LIBRARY_PATH="<path to ssl lib;path to curl lib>"` +2. Modify and run `. 6scripts/nist_...
BugID:25749969: fix issue of missing arch optional components
@@ -65,17 +65,19 @@ def append_depends_config_in(board, mandatory_configs, optional_configs): board_config_in += 'source "$AOS_SDK_PATH/%s"\n' % config elif config.startswith("core/"): kernel_config_in += 'source "$AOS_SDK_PATH/%s"\n' % config - elif config.startswith("components/"): + else: component_config_in += 'sou...
BugID:16982987: Add BT mac storage support.
#include <stdlib.h> #include <hal/ais_ota.h> #include <aos/aos.h> +#include <bluetooth/bluetooth.h> +#include <bluetooth/storage.h> +#include <bluetooth/hci.h> static flash_event_handler_t flash_handler; static settings_event_handler_t settings_hanlder; @@ -121,8 +124,52 @@ void ais_ota_update_setting_after_xfer_finish...
mpu6xxx: add delay and run sync spi-transaction to ensure gyro is ready
@@ -44,6 +44,8 @@ static uint32_t mpu6xxx_fast_divider() { } uint8_t mpu6xxx_detect() { + time_delay_ms(100); + const uint8_t id = mpu6xxx_read(MPU_RA_WHO_AM_I); switch (id) { case MPU6000_ID: @@ -98,6 +100,7 @@ uint8_t mpu6xxx_read(uint8_t reg) { spi_txn_add_seg(txn, buffer, buffer, 2); spi_txn_submit(txn); + spi_txn_...
clean arch linux file, thanks
@@ -12,21 +12,22 @@ depends=('mbedtls') backup=('etc/kadnode/kadnode.conf' 'etc/kadnode/peers.txt') -#source=(https://github.com/mwarning/KadNode.git) #source=(https://github.com/mwarning/KadNode/archive/v${pkgver}.tar.gz) -source=(git+file:///home/mwarning/myProjects/KadNode) +#source=(git+file:///home/user/KadNode) +...
acrn-config: always generate .clos boilerplate code in vm_configurations.c so that vm_configurations.h/vm_configurations.c are consistent for different boards The boilerplate code is protected by #ifdef CONFIG_RDT_ENABLED/#endif, so it will not hurt if we always produce the .clos code.
@@ -187,7 +187,6 @@ def clos_output(scenario_items, i, config): """ hv_info = scenario_items['hv'] - if board_cfg_lib.is_rdt_supported(): print("#ifdef CONFIG_RDT_ENABLED", file=config) print("\t\t.clos = VM{}_VCPU_CLOS,".format(i), file=config) print("#endif", file=config)
nrf/main: Remove unnecessary repl_info(0) call. It's statically initialized to 0.
@@ -121,8 +121,6 @@ soft_reset: mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR_)); // current dir (or base dir of the script) mp_obj_list_init(mp_sys_argv, 0); - pyb_set_repl_info(MP_OBJ_NEW_SMALL_INT(0)); - readline_init0();
Extend text space in footer Allows longer translations for help and closing texts. See
@@ -386,8 +386,8 @@ render_screens (void) { wattron (stdscr, color->attr | COLOR_PAIR (color->pair->idx)); mvaddstr (row - 1, 1, T_HELP_ENTER); - mvprintw (row - 1, 30, "%d - %s", chg, time_str_buf); - mvaddstr (row - 1, col - 21, T_QUIT); + mvprintw (row - 1, col/2 - 10, "%d - %s", chg, time_str_buf); + mvaddstr (row ...
docs: update xCAT repo URL
@@ -15,7 +15,7 @@ enablement by downloading the latest \xCAT{} repo file. \begin{lstlisting}[language=bash,keywords={},basicstyle=\fontencoding{T1}\fontsize{8.0}{10}\ttfamily, literate={VER}{\OHPCVerTree{}}1 {OSREPO}{\OSTree{}}1 {TAG}{\OSTag{}}1 {ARCH}{\arch{}}1 {-}{-}1] [sms](*\#*) (*\install*) yum-utils -[sms](*\#*) ...
sse: use portable implementation to work around llvm bug Just disabling the warning doesn't work if you pass the fno-lax-vector-conversions flag, and clang should provide a good implementation of the protable versions anyways.
@@ -2549,17 +2549,8 @@ simde_mm_extract_pi16 (simde__m64 a, const int imm8) simde__m64_private a_ = simde__m64_to_private(a); return a_.i16[imm8]; } -#if defined(SIMDE_X86_SSE_NATIVE) && defined(SIMDE_X86_MMX_NATIVE) && !defined(HEDLEY_PGI_VERSION) -# if defined(SIMDE_BUG_CLANG_44589) -# define simde_mm_extract_pi16(a,...
GAMEPAD: add 8Bitdo support
@@ -14,6 +14,7 @@ int xbox_count = 0; int ds4_count = 0; int ds5_count = 0; int switch_count = 0; +int bitdo_count = 0; std::string xbox_paths [2]{"gip","xpadneo"}; bool operator<(const gamepad& a, const gamepad& b) @@ -29,6 +30,7 @@ void gamepad_update(){ ds4_count = 0; ds5_count = 0; switch_count = 0; + bitdo_count =...