message
stringlengths
6
474
diff
stringlengths
8
5.22k
Clarify the status of bundled external perl modules
@@ -3,8 +3,9 @@ Intro If we find a useful Perl module that isn't one of the core Perl modules, we may choose to bundle it with the OpenSSL source. +They remain unmodified and retain their copyright and license. -Here, we simply list those modules and where we downloaded them from. +Here, we simply list those modules an...
[CUDA] Fix build for LLVM 7.0 The `addPassesToEmitFile` function has an additional argument.
@@ -135,6 +135,9 @@ int pocl_ptx_gen(const char *BitcodeFilename, const char *PTXFilename, llvm::SmallVector<char, 4096> Data; llvm::raw_svector_ostream PTXStream(Data); if (Machine->addPassesToEmitFile(Passes, PTXStream, +#if ! LLVM_OLDER_THAN_7_0 + nullptr, +#endif llvm::TargetMachine::CGFT_AssemblyFile)) { POCL_MSG_...
Makefile: remove newline in link rule The newline makes it difficult to cut and paste the link command in a teriminal when debugging link issues. Make it a long line instead.
@@ -482,8 +482,7 @@ TARGET_LIBEXTRAS = $(LD_START_GROUP) $(TARGET_LIBFILES) $(LD_END_GROUP) $(BUILD_DIR_BOARD)/%.$(TARGET): LIBNAME ?= $@ $(BUILD_DIR_BOARD)/%.$(TARGET): $(OBJECTDIR)/%.o $(LDSCRIPT) $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) $(CONTIKI_OBJECTFILES) $(TRACE_LD) - $(Q)$(LD) $(LDFLAGS) $(TARGET_STARTFILES...
adc: skip linking static functions when not COMPILER_OPTIMIZATION_DEFAULT
@@ -30,6 +30,7 @@ entries: lcd_hal: lcd_hal_cal_pclk_freq (noflash) if ADC_ONESHOT_CTRL_FUNC_IN_IRAM = y: adc_oneshot_hal (noflash) + if COMPILER_OPTIMIZATION_DEFAULT = y: adc_hal_common: get_controller (noflash) adc_hal_common: adc_hal_set_controller (noflash) if SOC_ADC_ARBITER_SUPPORTED = y: @@ -40,6 +41,7 @@ entrie...
bn/bn_exp.c: harmonize BN_mod_exp_mont_consttime with negative input. All exponentiation subroutines but BN_mod_exp_mont_consttime produce non-negative result for negative input, which is confusing for fuzzer.
@@ -651,6 +651,7 @@ int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, } #ifdef RSAZ_ENABLED + if (!a->neg) { /* * If the size of the operands allow it, perform the optimized * RSAZ exponentiation. For further information see @@ -677,6 +678,7 @@ int BN_mod_exp_mont_consttime(BIGNUM *rr, const B...
doc: fix vhm_request doxygen comment Table contents weren't rendered correctly in developer-guides/hld/hv-io-emulation.html, so fix the doxygen comments.
@@ -196,46 +196,46 @@ union vhm_io_request { * +-----------------------+-------------------------+----------------------+ * | SOS vCPU 0 | SOS vCPU x | UOS vCPU y | * +=======================+=========================+======================+ - * | | | **Hypervisor**: | + * | | | Hypervisor: | * | | | | * | | | - Fill i...
fix test/syscall/fs stat and fstat for fd_file_system
@@ -131,12 +131,12 @@ class oe_fd_file_system return oe_rmdir(pathname); } - int stat(const char* pathname, struct oe_stat_t* buf) + int stat(const char* pathname, stat_type* buf) { return oe_stat(pathname, buf); } - int fstat(file_handle file, struct oe_stat_t* buf) + int fstat(file_handle file, stat_type* buf) { retu...
stm32/main: Fix passing state.reset_mode to init_flash_fs. state.reset_mode is updated by `MICROPY_BOARD_BEFORE_SOFT_RESET_LOOP` but not passed to `init_flash_fs`, and so factory reset is not executed on boards that do not have a bootloader. This bug was introduced by Fixes
@@ -531,7 +531,7 @@ soft_reset: // Create it if needed, mount in on /flash, and set it as current dir. bool mounted_flash = false; #if MICROPY_HW_FLASH_MOUNT_AT_BOOT - mounted_flash = init_flash_fs(reset_mode); + mounted_flash = init_flash_fs(state.reset_mode); #endif bool mounted_sdcard = false;
Fixed building without debug.
@@ -779,7 +779,7 @@ nxt_controller_conf_apply(nxt_task_t *task, nxt_controller_request_t *req) void nxt_port_controller_data_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg) { - size_t size, dump_size; + size_t size; nxt_buf_t *b; nxt_controller_request_t *req; nxt_controller_response_t resp; @@ -787,9 +787,7 @@ nxt...
fix bug in getMacAddr
@@ -317,40 +317,44 @@ getMacAddr(char *string) DIR *d; struct dirent *dir; struct stat buf; - char path_buf[256]; char mac_buf[MAC_ADDR_LEN]; - char *physical_if_name; + char dir_path[256]; + char link_path[256]; + char addr_path[256]; + bool found = FALSE; - d = scope_opendir("/sys/class/net"); + d = scope_opendir("/s...
Fix H09 header test.
@@ -960,6 +960,7 @@ int picoquic_h09_server_process_data_header( } else { /* Too much data */ + stream_ctx->method = -1; ret = -1; break; }
magolor: add thermal table Add setup_thermal for setting thermal table BRANCH=master TEST=thermal team verify value on AP Tested-by: Henry Sun
@@ -187,10 +187,23 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); const static struct ec_thermal_config thermal_a = { + .temp_host = { + [EC_TEMP_THRESH_WARN] = 0, + [EC_TEMP_THRESH_HIGH] = C_TO_K(70), + [EC_TEMP_THRESH_HALT] = C_TO_K(85), + }, + .temp_host_release = { + [EC_TEMP_THRESH_WARN] = 0, + [E...
STORE: Stop the flood of errors The old 'file:' loader was recently changed to stop the flood of repeated nested ASN.1 errors when trying to decode a DER blob in diverse ways. That is now reproduced in ossl_store_handle_load_result()
@@ -83,6 +83,23 @@ static int try_crl(struct extracted_param_data_st *, OSSL_STORE_INFO **, static int try_pkcs12(struct extracted_param_data_st *, OSSL_STORE_INFO **, OSSL_STORE_CTX *, OPENSSL_CTX *, const char *); +#define SET_ERR_MARK() ERR_set_mark() +#define CLEAR_ERR_MARK() \ + do { \ + int err = ERR_peek_last_er...
Eliminate usage of rand().
@@ -4697,10 +4697,10 @@ process_job(ipp3d_job_t *job) /* I - Job */ else { /* - * Sleep for a random amount of time to simulate job processing. + * Sleep for a semi-random amount of time to simulate job processing. */ - sleep((unsigned)(5 + (rand() % 11))); + sleep((unsigned)(5 + (time(NULL) % 11))); } if (job->cancel)...
hv:Revise sanitized page size now the size of sanitized_page is 32KB, revise it to 4KB. Acked-by: Anthony Xu
#include <reloc.h> static void *ppt_mmu_pml4_addr; -static void *sanitized_page[CPU_PAGE_SIZE]; +static uint8_t sanitized_page[PAGE_SIZE] __aligned(PAGE_SIZE); static struct vmx_capability { uint32_t ept;
Prevent doxygen generation
#include "esp/esp_mem.h" #include "esp/esp_input.h" +#if !__DOXYGEN__ + static uint8_t initialized = 0; DWORD thread_id; @@ -226,3 +228,5 @@ esp_ll_deinit(esp_ll_t* ll) { initialized = 0; /* Clear initialized flag */ return espOK; } + +#endif /* !__DOXYGEN__ */
Updating package version in requirements-dev.txt
@@ -7,7 +7,7 @@ crcmod<=1.7 fasteners<=0.15 gcs-oauth2-boto-plugin<=2.5 google_apitools<=0.5.30 -httplib2<=0.16.0 +httplib2<=0.19.0 google_reauth<=0.1.0 mock<=2.0.0 monotonic<=1.5 @@ -25,7 +25,7 @@ boto<=2.49.0 pyu2f<=0.1.4 funcsigs<=1.0.2 pbr<=5.4.4 -rsa<=4.0 +rsa<=4.7 pyasn1<=0.4.8 pyasn1_modules<=0.2.8 cryptography<...
Renable :source argument to dofile. Allows for some more interesting usage of loaders.
[path &keys {:exit exit :env env + :source src :expander expander :evaluator evaluator}] (def f (if (= (type path) :core/file) (def path-is-file (= f path)) (default env (make-env)) (def spath (string path)) - (put env :current-file (if-not path-is-file spath)) - (put env :source (if-not path-is-file spath path)) + (pu...
Array: Fix minor spelling mistakes
@@ -127,7 +127,7 @@ int elektraReadArrayNumber (const char * baseName, kdb_long_long_t * oldIndex) * * @param key which base name will be incremented * - * @retval -1 on error (e.g. too large array, not validated array) + * @retval -1 on error (e.g. array too large, non-valid array) * @retval 0 on success */ int elektr...
honggfuzz: increase size of a report
#define _HF_VERIFIER_ITER 5 /* Size (in bytes) for report data to be stored in stack before written to file */ -#define _HF_REPORT_SIZE 8192 +#define _HF_REPORT_SIZE 32768 /* Perf bitmap size */ #define _HF_PERF_BITMAP_SIZE_16M (1024U * 1024U * 16U)
interface: fix new channel redirect
@@ -8,7 +8,7 @@ import { addTag, createManagedGraph, createUnmanagedGraph } from '@urbit/api'; import { Form, Formik } from 'formik'; import _ from 'lodash'; import React, { ReactElement } from 'react'; -import { useHistory } from 'react-router-dom'; +import { useHistory, useRouteMatch } from 'react-router-dom'; import...
error: fix example
@@ -57,7 +57,7 @@ if (FOUND_NAME GREATER -1) target_link_elektra (${EXAMPLE} elektra-kdb elektra-notification) - # TODO resolve issues.libelektra.org/2007 + # TODO resolve https://issues.libelektra.org/2007 check_binding_was_added ("io_uv" IS_INCLUDED) if (IS_INCLUDED) @@ -85,6 +85,7 @@ if (FOUND_NAME GREATER -1) else ...
path REFACTOR error handling
@@ -414,22 +414,23 @@ ly_path_compile_prefix(const struct ly_ctx *ctx, const struct lysc_node *cur_nod /* find next node module */ if (pref) { - ret = LY_EVALID; - LOG_LOCSET(cur_node, NULL, NULL, NULL); *mod = ly_resolve_prefix(ctx, pref, len, format, prefix_data); if (!*mod) { LOGVAL(ctx, LYVE_XPATH, "No module conne...
docs: fix bihash doc bugs Change hash -> hash_table in the pro forma main_t structure. Remove trailing whitespace. Type: docs
@@ -123,9 +123,9 @@ Add an instance of the selected bihash data structure to e.g. a typedef struct { ... - BVT (clib_bihash) hash; + BVT (clib_bihash) hash_table; or - clib_bihash_8_8_t hash; + clib_bihash_8_8_t hash_table; ... } my_main_t; ```
Fix regression. With changes introduced in issue came back.
@@ -442,6 +442,9 @@ uint32_t load_encoded_field( int64_t name_idx = dex_get_integer( dex->object, "field_ids[%i].name_idx", *previous_field_idx); + if (name_idx == UNDEFINED) + return 0; + SIZED_STRING* field_name = dex_get_string( dex->object, "string_ids[%i].value", name_idx); @@ -579,6 +582,9 @@ uint32_t load_encode...
misc: update extras/scripts/lsnet Type: improvement
#!/bin/bash -echo "PCI Address MAC address Device Name Driver State Speed Port Type" -echo "============ ================= ============== ========== ======== ========== ====================" +declare -A IDS +IDS["8086:10fb"]="82599ES PF" +IDS["8086:1583"]="XL710 PF" +IDS["8086:158b"]="XXV710 PF" +IDS["8086:154c"]="XXV7...
DSA_generate_parameters_ex: use the old method for all small keys Fixes
@@ -58,7 +58,7 @@ int DSA_generate_parameters_ex(DSA *dsa, int bits, return 0; /* The old code used FIPS 186-2 DSA Parameter generation */ - if (bits <= 1024 && seed_len == 20) { + if (bits < 2048 && seed_len <= 20) { if (!ossl_dsa_generate_ffc_parameters(dsa, DSA_PARAMGEN_TYPE_FIPS_186_2, bits, 160, cb)) return 0;
arm/tlsr82: Fix warning: "IC_TAG_CACHE_ADDR_EQU_EN" is not defined
#define FLL_STK_EN 1 #define ZERO_IC_TAG_EN 1 -#define IC_TAG_CACEH_ADDR_EQU_EN 0 +#define IC_TAG_CACHE_ADDR_EQU_EN 0 #define FLASH_WAKEUP_EN 1 #define COPY_DATA_EN 1 #define MULTI_ADDRESS_START 1
Mirror fix for IPP attribute validation.
@@ -580,10 +580,7 @@ ipp_create_job(server_client_t *client) /* I - Client */ */ if (!valid_job_attributes(client)) - { - httpFlush(client->http); return; - } /* * Do we have a file to print? @@ -1626,10 +1623,7 @@ ipp_print_job(server_client_t *client) /* I - Client */ */ if (!valid_job_attributes(client)) - { - httpF...
tracef: ensure output hits the screen this slows down, but when tracing performance isn't the primary objective, seeing all things is...
extern unsigned char mode; #ifdef ENABLE_TRACE -#define tracef(...) if (mode & MODE_TRACE) fprintf(stdout, __VA_ARGS__) +#define tracef(...) if (mode & MODE_TRACE) { fprintf(stdout, __VA_ARGS__); fflush(stdout); } #else #define tracef(...) /* noop */ #endif
parallel-libs/petsc: Revert "parallel-libs/petsc: latest petsc build not finding MPI, specify wrappers directly" This reverts commit
@@ -108,16 +108,9 @@ unset FCFLAGS --with-f77=mpiifort \ %else %if "%{compiler_family}" == "gnu" - --with-cc=mpicc \ - --with-cxx=mpicxx \ - --with-fc=mpif90 \ --FFLAGS=-I$I_MPI_ROOT/include64/gfortran/4.9.0/ \ %endif %endif -%else - --with-cc=mpicc \ - --with-cxx=mpicxx \ - --with-fc=mpif90 \ %endif %if 0%{?OHPC_BUILD...
Generate a descriptive error message in case cc26xxware/cc13xxware does not exist
CPU_ABS_PATH = arch/cpu/cc26xx-cc13xx TI_XXWARE = $(CONTIKI_CPU)/$(TI_XXWARE_PATH) +ifeq (,$(wildcard $(TI_XXWARE))) + $(warning $(TI_XXWARE) does not exist.) + $(warning Did you run 'git submodule update --init' ?) + $(error "") +endif + ### cc26xxware sources under driverlib will be added to the MODULES list TI_XXWAR...
fix compilation with cuda 9.2 nvcc on Windows
@@ -1920,13 +1920,8 @@ std::ostream& operator<<(std::ostream&, const TString&); namespace NPrivate { template <class Char> struct TCharToString { - class TDerivedString : public TBasicString<TDerivedString, Char, TCharTraits<Char>> { - using TBase = TBasicString<TDerivedString, Char, TCharTraits<Char>>; - public: - usi...
Tests: added test for "procfs" option.
@@ -88,3 +88,26 @@ class TestPythonIsolation(TestApplicationPython): self.conf({"listeners": {}, "applications": {}}) assert waitforunmount(temp_dir), 'language_deps unmount' + + def test_python_isolation_procfs(self, is_su, temp_dir): + isolation_features = option.available['features']['isolation'].keys() + + if not i...
linux/bfd: cover #include <diagnostics.h> with __has_include, because it appeared in 2018 only
#include "linux/bfd.h" #include <bfd.h> +#if defined __has_include +#if __has_include(<diagnostics.h>) #include <diagnostics.h> +#endif /* __has_include(<diagnostics.h>) */ +#endif /* defined __has_include */ #include <dis-asm.h> #include <inttypes.h> #include <pthread.h>
part_strategy does not need its very own keyword classification. This should be plain old ColId. Making it so makes the grammar less complicated, and makes the compiled tables a kilobyte or so smaller (likely because they don't have to deal with a keyword classification that's not used anyplace else).
@@ -595,7 +595,6 @@ static Node *makeRecursiveViewSelect(char *relname, List *aliases, Node *query); %type <boolean> opt_if_not_exists %type <ival> generated_when override_kind %type <partspec> PartitionSpec OptPartitionSpec -%type <str> part_strategy %type <partelem> part_elem %type <list> part_params %type <partbound...
publish: remove scrolling overflow from skeleton
@@ -33,7 +33,7 @@ export class Skeleton extends Component { path={props.path} invites={props.invites} /> - <div className={"h-100 w-100 overflow-container " + rightPanelHide} style={{ + <div className={"h-100 w-100 " + rightPanelHide} style={{ flexGrow: 1, }}> {props.children}
[core] default chunk size 8k (was 4k)
#define DEFAULT_TEMPFILE_SIZE (1 * 1024 * 1024) #define MAX_TEMPFILE_SIZE (128 * 1024 * 1024) -static size_t chunk_buf_sz = 4096; +static size_t chunk_buf_sz = 8192; static chunk *chunks, *chunks_oversized; static chunk *chunk_buffers; static const array *chunkqueue_default_tempdirs = NULL; @@ -33,7 +33,7 @@ static off...
Implement CodeLite workspace folders
-- -- Header -- - _p('<?xml version="1.0" encoding="UTF-8"?>') + p.w('<?xml version="1.0" encoding="UTF-8"?>') local tagsdb = "" -- local tagsdb = "./" .. wks.name .. ".tags" - _p('<CodeLite_Workspace Name="%s" Database="%s" SWTLW="No">', wks.name, tagsdb) + p.push('<CodeLite_Workspace Name="%s" Database="%s" SWTLW="No...
Fix old defines in uac2_headset
@@ -72,8 +72,8 @@ static uint32_t blink_interval_ms = BLINK_NOT_MOUNTED; // Audio controls // Current states -int8_t mute[CFG_TUD_AUDIO_N_CHANNELS_TX + 1]; // +1 for master channel 0 -int16_t volume[CFG_TUD_AUDIO_N_CHANNELS_TX + 1]; // +1 for master channel 0 +int8_t mute[CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX + 1]; // +1 ...
fixes missing full authentication for device_authorization endpoint
@@ -35,8 +35,9 @@ struct oidc_device_code* initDeviceFlow(struct oidc_account* account) { return NULL; } syslog(LOG_AUTHPRIV | LOG_DEBUG, "Data to send: %s", data); - char* res = sendPostDataWithoutBasicAuth(device_authorization_endpoint, data, - account_getCertPath(*account)); + char* res = sendPostDataWithBasicAuth( ...
tests: fix test-checkstyle-diff if no .py changed Type: fix
@@ -271,8 +271,8 @@ checkstyle-diff: $(PIP_INSTALL_DONE) @bash -c "source $(VENV_PATH)/bin/activate &&\ python3 -m pip install pycodestyle" @bash -c "source $(VENV_PATH)/bin/activate &&\ - cd $(WS_ROOT) && git diff --name-only --no-color --relative HEAD~1 ':!*.patch' | grep '.py$$' | xargs -n 1 \ - pycodestyle --show-s...
Stop enabling codegen in PR pipeline
@@ -47,8 +47,7 @@ function build_gpdb() { pushd gpdb_src source /opt/gcc_env.sh CC=$(which gcc) CXX=$(which g++) ./configure --enable-mapreduce --with-perl --with-libxml \ - --disable-orca --with-python --disable-gpfdist --prefix=${GREENPLUM_INSTALL_DIR} \ - --enable-codegen --with-codegen-prefix=/opt/llvm-3.7.1 ${CONF...
board/helios/board.h: Format with clang-format BRANCH=none TEST=none
@@ -117,11 +117,7 @@ enum sensor_id { SENSOR_COUNT, }; -enum pwm_channel { - PWM_CH_KBLIGHT, - PWM_CH_FAN, - PWM_CH_COUNT -}; +enum pwm_channel { PWM_CH_KBLIGHT, PWM_CH_FAN, PWM_CH_COUNT }; enum fan_channel { FAN_CH_0 = 0,
const ngtcp2_path *path must not be NULL
@@ -1533,11 +1533,11 @@ NGTCP2_EXTERN int ngtcp2_accept(ngtcp2_pkt_hd *dest, const uint8_t *pkt, * initializes it as client. |dcid| is randomized destination * connection ID. |scid| is source connection ID. |version| is a * QUIC version to use. |path| is the network path where this QUIC - * connection is being establis...
feat : delet file_path in .ignore_format.yml
# If you need to exclude an entire folder, add the folder path in dir_path; # If you need to exclude a file, add the path to the file in file_path. -file_path: - dir_path: - Libraries/N32_Std_Driver
Travis: Use POSIX Shell syntax for `if`-statements
@@ -210,11 +210,11 @@ matrix: before_install: - | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then + if [ "$TRAVIS_OS_NAME" = 'osx' ]; then rvm install 2.5.1 rvm use 2.5.1 gem install test-unit --no-document - if [[ "$CC" == "gcc" ]]; then + if [ "$CC" = 'gcc' ]; then brew upgrade gcc@9 export CC=gcc-9 export CXX=g++-9 @@ -...
Fix an issue found with constant folding
@@ -545,7 +545,7 @@ static void binary(Compiler *compiler, Token previousToken, bool canAssign) { TokenType currentToken = compiler->parser->previous.type; // Attempt constant fold. - if ((previousToken.type == TOKEN_NUMBER || previousToken.type == TOKEN_RIGHT_PAREN) && + if ((previousToken.type == TOKEN_NUMBER) && (cu...
Improve FLS-PP3 DDF multi endpoint handling
{ "schema": "devcap1.schema.json", - "manufacturername": "dresden elektronik", - "modelid": "FLS-PP3", + "manufacturername": ["dresden elektronik", "dresden elektronik"], + "modelid": ["FLS-PP3", "FLS-PP3 White"], "product": "FLS-PP lp", "sleeper": false, - "status": "Draft", - "path": "/devices/dresden_elektronik/fls_...
added weak Fibertel candidates
@@ -32,6 +32,7 @@ static bool wpsflag = false; static bool eudateflag = false; static bool usdateflag = false; static bool ngflag = false; +static bool ftflag = false; static FILE *fhpsk; @@ -128,6 +129,21 @@ if(fileflag == true) return; } /*===========================================================================*/ ...
Clipping doesn't work with tri() api
@@ -939,8 +939,9 @@ static void api_tri(tic_mem* memory, s32 x1, s32 y1, s32 x2, s32 y2, s32 x3, s32 ticLine(memory, x3, y3, x1, y1, color, triPixelFunc); u8 final_color = mapColor(&machine->memory, color); - s32 yt = max(0, min(y1, min(y2, y3))); - s32 yb = min(TIC80_HEIGHT, max(y1, max(y2, y3)) + 1); + s32 yt = max(m...
changed printf with xdag_fatal. finish
@@ -77,7 +77,7 @@ int xdag_mem_init(size_t size) size_t wrote = snprintf(g_tmpfile_to_remove, TMPFILE_PATH_LEN + TMPFILE_TEMPLATE_LEN,"%s%s", g_tmpfile_path, TMPFILE_TEMPLATE); if (wrote >= TMPFILE_PATH_LEN + TMPFILE_TEMPLATE_LEN){ - printf("Error: Temporary file path exceed the max length that is 1024 characters"); + ...
tneat: number of flows via commandline argument
@@ -102,6 +102,7 @@ print_usage() printf("tneat [OPTIONS] [HOST]\n"); printf("\t- c \tpath to server certificate (%s)\n", cert_file); + printf("\t- c \tnumber of outgoing flows (%d)\n", config_num_flows); printf("\t- k \tpath to server key (%s)\n", key_file); printf("\t- l \tsize for each message in byte (%d)\n", confi...
Initialize file_size function as NULL for process scans.
@@ -54,6 +54,9 @@ YR_API int yr_process_open_iterator(int pid, YR_MEMORY_BLOCK_ITERATOR* iterator) iterator->context = context; iterator->first = yr_process_get_first_memory_block; iterator->next = yr_process_get_next_memory_block; + // In a process scan file size is undefined, when the file_size function is + // set t...
test: fix: remove invalid comment
@@ -393,7 +393,6 @@ void x509_crt_check(char *subject_key_file, char *subject_pwd, } #if defined(MBEDTLS_TEST_DEPRECATED) && defined(MBEDTLS_BIGNUM_C) - /* Try to set an invalid */ TEST_ASSERT(mbedtls_mpi_read_binary(&serial_mpi, serial_arg->x, serial_arg->len) == 0); TEST_ASSERT(mbedtls_x509write_crt_set_serial(&crt, ...
Flesh out specs for Image#chop
RSpec.describe Magick::Image, "#chop" do - it "works" do - image = described_class.new(20, 20) + def build_gray_image + image = Magick::Image.new(3, 3) + pixels = [ + [gray(1), gray(2), gray(3)], + [gray(4), gray(5), gray(6)], + [gray(7), gray(8), gray(9)] + ] + image.import_pixels(0, 0, 3, 3, "RGB", pixels.flatten) + ...
Update install_dependencies.sh
@@ -149,7 +149,7 @@ cd .. if [[ "$OS_NAME" == "linux" ]] then echo "installing boost" - wget https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.gz -O ./boost.tar.gz + wget https://boostorg.jfrog.io/artifactory/main/release/1.72.0/source/boost_1_72_0.tar.gz -O ./boost.tar.gz tar zxf ./boost.tar.gz mv...
output_thread: added extra argument to flb_sched_timer_cb_create call
@@ -214,7 +214,7 @@ static void output_thread(void *data) */ ret = flb_sched_timer_cb_create(sched, FLB_SCHED_TIMER_CB_PERM, - 1500, cb_thread_sched_timer, ins); + 1500, cb_thread_sched_timer, ins, NULL); if (ret == -1) { flb_plg_error(ins, "could not schedule permanent callback"); return;
[core] perf: simpler buffer_string_space() (fixed)
@@ -194,7 +194,7 @@ static inline size_t buffer_string_length(const buffer *b) { } static inline size_t buffer_string_space(const buffer *b) { - return NULL != b ? b->size - (0 != b->used) : 0; + return NULL != b ? b->size - b->used - (0 == b->used) : 0; } static inline void buffer_append_string_buffer(buffer *b, const...
s32k3xx:LPSPI register usage cleanup
@@ -517,32 +517,6 @@ static struct s32k3xx_lpspidev_s g_lpspi5dev = * Private Functions ****************************************************************************/ -/**************************************************************************** - * Name: spi_modifyreg - * - * Description: - * Atomic modification of the...
doc: update code to "losetup -r"
@@ -126,7 +126,7 @@ Start the User OS (UOS) .. code-block:: none - # losetup -f -P --show ~/uos.img + # losetup -r -f -P --show ~/uos.img # mount /dev/loop0p3 /mnt # ls -l /mnt/usr/lib/kernel/
Fix bug in configure 'pcap drop trace on file xx.cap' command
@@ -1392,8 +1392,8 @@ pcap_drop_trace_command_fn (vlib_main_t * vm, if (im->pcap_filename) vec_free (im->pcap_filename); - vec_add1 (filename, 0); im->pcap_filename = chroot_filename; + im->pcap_main.file_name = (char *) im->pcap_filename; matched = 1; } else if (unformat (input, "status"))
options/posix: implement sem_timedwait as sem_wait
@@ -48,9 +48,9 @@ int sem_wait(sem_t *sem) { } } -int sem_timedwait(sem_t *, const struct timespec *) { - __ensure(!"sem_timedwait() is unimplemented"); - __builtin_unreachable(); +int sem_timedwait(sem_t *sem, const struct timespec *) { + mlibc::infoLogger() << "\e[31mmlibc: sem_timedwait is implemented as sem_wait\e[...
Fix path for in-tree builds [ci skip]
}, "type" : "shell", "command" : "make", - "options" : { - "cwd" : "${workspaceRoot}/build" - }, + // Uncomment for out-of-tree build + //"options" : { + // "cwd" : "${workspaceRoot}/build" + //}, "problemMatcher": [ // Clang {
Corrected revision history. Moved the configuration file update from general RTOS2 rev. hist. to RTX 5 specific one.
@@ -80,9 +80,6 @@ File/Folder | Content <tr> <td>V2.1.0</td> <td> - Updated configuration files: RTX_Config.h for the configuration settings and RTX_config.c for - implementing the \ref rtx5_specific. - Support for critical and uncritical sections (nesting safe): - updated: \ref osKernelLock, \ref osKernelUnlock - adde...
Support Xiaomi Aquara wall switch QBKG03LM (experimental) Issue
@@ -114,6 +114,7 @@ static const SupportedDevice supportedDevices[] = { { VENDOR_JENNIC, "lumi.sensor_cube", jennicMacPrefix }, { VENDOR_JENNIC, "lumi.sensor_86sw1", jennicMacPrefix }, { VENDOR_JENNIC, "lumi.sensor_86sw2", jennicMacPrefix }, + { VENDOR_JENNIC, "lumi.ctrl_neural2", jennicMacPrefix }, { VENDOR_UBISYS, "D...
Add tests for empty and default ChordLenghts
@@ -146,6 +146,34 @@ chordlengths_default_ctor(CuTest *tc) delete defaultCtor; } +void +chordlengths_empty_map(CuTest *tc) +{ + // Given + BSpline spline; + ChordLengths empty = spline.chordLenghts({}); + + // When/Then + try { + empty.tToKnot((real) 0.0); + CuFail(tc, "expected exception"); + } catch(std::exception &e...
BugID:18444986:[utils memstatus]fix coredump:add mutex init before use
@@ -355,7 +355,9 @@ void *LITE_malloc_internal(const char *f, const int l, int size, ...) if (!ptr) { return NULL; } - + if (mutex_mem_stats == NULL) { + mutex_mem_stats = HAL_MutexCreate(); + } HAL_MutexLock(mutex_mem_stats); iterations_allocated += 1; @@ -450,6 +452,9 @@ void LITE_free_internal(void *ptr) return; } +...
snmp: remove double typedef This is already typedefed in snmp-mib.h.
* This group contains all the functions that can be used outside the OS level. */ -/** - * @brief The MIB Resource struct - */ -typedef struct snmp_mib_resource_s snmp_mib_resource_t; - /** * @brief Initializes statically an oid with the "null" terminator *
VERSION bump to version 1.1.25
@@ -42,7 +42,7 @@ set(CMAKE_C_FLAGS_PACKAGE "-g -O2 -DNDEBUG") # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(LIBNETCONF2_MAJOR_VERSION 1) set(LIBNETCONF2_MINOR_VERSION 1) -set(LIBNETCONF2_MICRO_VERSION 24) +set(LIBNETCONF2_MICRO_VERSION 25) set(LIBNETCONF2_VERSION ${LIB...
YAML CPP: Add limitation about metadata to ReadMe
@@ -224,5 +224,6 @@ level 1: - Adding and removing keys does remove **comments** inside the configuration file - The plugin currently lacks proper **type support** for scalars +- The plugin does not support **metadata** [yaml-cpp]: https://github.com/jbeder/yaml-cpp
apps/s_server.c: Avoid unused variable due to 'no-dtls' Fixes
@@ -2189,9 +2189,7 @@ static int sv_body(int s, int stype, int prot, unsigned char *context) SSL *con = NULL; BIO *sbio; struct timeval timeout; -#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS) - struct timeval tv; -#else +#if !(defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS)) struct timeval *...
Update Sky130-OpenROAD-Tutorial.rst
@@ -72,18 +72,6 @@ Pull the Hammer environment into the shell: export HAMMER_HOME=$PWD/hammer source $HAMMER_HOME/sourceme.sh -Building the Design --------------------- -To elaborate the ``TinyRocketConfig`` and set up all prerequisites for the build system to push the design and SRAM macros through the flow: - -.. cod...
build: consistent use of CMAKE_INSTALL_LIBDIR Set the RPATH to based on CMAKE_INSTALL_LIBDIR so that libraries are correctly found. Type: make
@@ -152,7 +152,7 @@ endif() ############################################################################## option(VPP_SET_RPATH "Set rpath for resulting binaries and libraries." ON) if(VPP_SET_RPATH) - set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") + set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INST...
fix: nanosp version sdk in conftest
@@ -10,7 +10,7 @@ from ethereum_client.ethereum_cmd import EthereumCommand SCRIPT_DIR = Path(__file__).absolute().parent API_URL = "http://127.0.0.1:5000" -VERSION = {"nanos": "2.1", "nanox": "2.0.2", "nanosp": "1.0"} +VERSION = {"nanos": "2.1", "nanox": "2.0.2", "nanosp": "1.0.3"} def pytest_addoption(parser):
ci: fix redundant key `variables` under `.deploy_docs_template`
@@ -152,13 +152,12 @@ build_docs_pdf: image: $ESP_IDF_DOC_ENV_IMAGE variables: PYTHON_VER: 3.6.13 + DOCS_BUILD_DIR: "${IDF_PATH}/docs/_build/" + PYTHONUNBUFFERED: 1 stage: test_deploy tags: - deploy - shiny - variables: - DOCS_BUILD_DIR: "${IDF_PATH}/docs/_build/" - PYTHONUNBUFFERED: 1 dependencies: [] script: - add_do...
Fix lc823450_i2s.c:277:7: error: variable 'n' is used uninitialized whenever switch default is taken
@@ -257,10 +257,10 @@ extern unsigned int XT1OSC_CLK; static void _setup_audio_pll(uint32_t freq) { - DEBUGASSERT(24000000 == XT1OSC_CLK); + uint32_t m = 0; + uint32_t n = 0; - uint32_t m; - uint32_t n; + DEBUGASSERT(24000000 == XT1OSC_CLK); switch (freq) {
nat: fix deleting nat ei out interface feature Type: fix Set is_add function argument to 0 when deleting interface role.
@@ -1064,8 +1064,8 @@ nat44_ei_del_output_interface (u32 sw_if_index) } } - nat44_ei_add_del_addr_to_fib_foreach_addr (sw_if_index, 1); - nat44_ei_add_del_addr_to_fib_foreach_addr_only_sm (sw_if_index, 1); + nat44_ei_add_del_addr_to_fib_foreach_addr (sw_if_index, 0); + nat44_ei_add_del_addr_to_fib_foreach_addr_only_sm ...
common: improve memcpy/memset code The initial goal here was just to prefer __builtin_memcpy/memset if they're available, but I ended up making some additional changes which I think make the code a bit cleaner, too.
@@ -645,23 +645,28 @@ typedef SIMDE_FLOAT64_TYPE simde_float64; #endif /* Try to deal with environments without a standard library. */ -#if !defined(simde_memcpy) || !defined(simde_memset) - #if !defined(SIMDE_NO_STRING_H) && defined(__has_include) - #if __has_include(<string.h>) - #include <string.h> #if !defined(simd...
Job management change
@@ -661,12 +661,18 @@ namespace MiningCore.Blockchain.Bitcoin lock (jobLock) { + if(isNew) + validJobs.Clear(); + validJobs.Add(job); + if (!isNew) + { // trim active jobs while(validJobs.Count > maxActiveJobs) validJobs.RemoveAt(0); } + } currentJob = job; }
sysdeps/managarm: Implement FIONREAD ioctl
@@ -1771,6 +1771,41 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) { } return 0; } + case FIONREAD: { + auto argp = reinterpret_cast<int *>(arg); + + auto handle = getHandleForFd(fd); + if (!handle) + return EBADF; + + if(!argp) + return EINVAL; + + managarm::fs::CntRequest<MemoryAllocator> req...
Fix incorrect parameter name in mbedtls_mpi_core_add_if() doc comment
@@ -256,7 +256,7 @@ mbedtls_mpi_uint mbedtls_mpi_core_sub( mbedtls_mpi_uint *X, * \param cond Condition bit dictating whether addition should * happen or not. This must be \c 0 or \c 1. * - * \warning If \p assign is neither 0 nor 1, the result of this function + * \warning If \p cond is neither 0 nor 1, the result of ...
py/mkrules.cmake: Add MICROPY_QSTRDEFS_PORT to qstr build process. This allows a port to specify a custom qstrdefsport.h file, the same as the QSTR_DEFS variable in a Makefile.
@@ -95,8 +95,10 @@ add_custom_command( add_custom_command( OUTPUT ${MICROPY_QSTRDEFS_PREPROCESSED} - COMMAND cat ${MICROPY_QSTRDEFS_PY} ${MICROPY_QSTRDEFS_COLLECTED} | sed "s/^Q(.*)/\"&\"/" | ${CMAKE_C_COMPILER} -E ${MICROPY_CPP_FLAGS} - | sed "s/^\\\"\\(Q(.*)\\)\\\"/\\1/" > ${MICROPY_QSTRDEFS_PREPROCESSED} - DEPENDS $...
sa: translate lut level back for v2.1
@@ -91,7 +91,7 @@ vtx_detect_status_t vtx_smart_audio_update(vtx_settings_t *actual) { actual->channel = channel_index % VTX_CHANNEL_MAX; } - if (smart_audio_settings.version >= 2) { + if (smart_audio_settings.version == 2) { actual->power_level = smart_audio_settings.power; } else { actual->power_level = smart_audio_d...
Updated a comment for __register_atfork().
@@ -4692,7 +4692,16 @@ __register_atfork(void (*prepare) (void), void (*parent) (void), void (*child) ( return g_fn.__register_atfork(prepare, parent, child, __dso_handle); } - // what do we do if we can't resolve a symbol for __register_atfork? - // glibc returns ENOMEM on error. + /* + * What do we do if we can't res...
add ubisys J1 { "bri_inc": 0 } translates to stop command.
@@ -934,6 +934,28 @@ int DeRestPluginPrivate::setLightState(const ApiRequest &req, ApiResponse &rsp) { rsp.list.append(errorToMap(ERR_PARAMETER_NOT_AVAILABLE, QString("/lights/%1").arg(id), QString("parameter, /lights/%1/bri_inc, is not available.").arg(id))); } + //FIXME workaround ubisys J1 + else if (taskRef.lightNo...
Update appveyor.yml Adding conditions to post test tasks
@@ -81,15 +81,21 @@ test_script: - cd %BUILD_HOME%\tests - ctest -C %BUILD_CONFIG% --output-on-failure # run regression tests + - cd %EPANET_HOME% - IF "%BUILD_CONFIG%" == "Release" ( - cd %EPANET_HOME% & tools\run-nrtest.cmd %REF_BUILD_ID% %SUT_BUILD_ID% + tools\run-nrtest.cmd %REF_BUILD_ID% %SUT_BUILD_ID% ) on_succes...
Update requires for MBEDTLS_PSA_CRYPTO_DRIVERS In order to test various PSA crypto settings the Requires section needed updating to require MBEDTLS_PSA_CRYPTO_C or MBEDTLS_PSA_CRYPTO_CONFIG.
* * Enable support for the experimental PSA crypto driver interface. * - * Requires: MBEDTLS_PSA_CRYPTO_C. + * Requires: MBEDTLS_PSA_CRYPTO_C or MBEDTLS_PSA_CRYPTO_CONFIG * * \warning This interface is experimental and may change or be removed * without notice.
Fix construction of pattern variable bindings Previously, inserting the variable bindings would make the Oasn nodes appear before the decl nodes in a block.
@@ -158,19 +158,22 @@ structmemb(Node *n, Node *name, Type *ty) static Node * addcapture(Node *n, Node **cap, size_t ncap) { - Node **blk; - size_t nblk, i; - - nblk = 0; - blk = NULL; - - for (i = 0; i < ncap; i++) - lappend(&blk, &nblk, cap[i]); - for (i = 0; i < n->block.nstmts; i++) - lappend(&blk, &nblk, n->block....
tests: runtime: in_tail: remove unused var
@@ -287,7 +287,6 @@ void wait_with_timeout(uint32_t timeout_ms, struct tail_test_result *result, int struct flb_time end_time; struct flb_time diff_time; uint64_t elapsed_time_flb = 0; - int64_t ret = 0; flb_time_get(&start_time);
doc: tn13: more updates to ch6
@@ -1521,14 +1521,18 @@ delete_transferred_cap_reply(struct data *data) { \note{Caching NYI} \subsection{Two phase commit} -\note{NYI} -Use 2pc. +Use two-phase commit to synchronize operations that would otherwise conflict. +We do not discuss this solution in detail, as we incorporate two-phase commit +into the delete ...
rtl8721csm: fix g_scan_list initialization fix g_scan_list initialization
@@ -393,7 +393,7 @@ trwifi_result_e wifi_netmgr_utils_deinit(struct netdev *dev) trwifi_result_e wifi_netmgr_utils_scan_ap(struct netdev *dev, trwifi_scan_config_s *config) { g_scan_num = 0; - g_scan_num = NULL; + g_scan_list = NULL; if (config) { if (config->ssid_length > 0) { int scan_buf_len = 500;
SLW: Configure self-restore for HRMOR Make a stop api call using libpore to restore HRMOR register. HRMOR needs to be cleared so that when thread exits stop, they arrives at linux system_reset vector (0x100).
@@ -1254,12 +1254,41 @@ static void slw_patch_regs(struct proc_chip *chip) static void slw_init_chip_p9(struct proc_chip *chip) { struct cpu_thread *c; + int rc; prlog(PR_DEBUG, "SLW: Init chip 0x%x\n", chip->id); /* At power ON setup inits for power-mgt */ for_each_available_core_in_chip(c, chip->id) slw_set_overrides...
readme: +crashes
@@ -94,6 +94,7 @@ Honggfuzz has been used to find a few interesting security problems in major sof * panic() in sleep-parser [#1](https://github.com/datrs/sleep-parser/issues/3) * panic() in lewton [#1](https://github.com/RustAudio/lewton/issues/27) * panic()/DoS in Ethereum-Parity [#1](https://srlabs.de/bites/ethereum...
Fix write after free with printing to files.
@@ -243,6 +243,13 @@ JANET_CORE_FN(cfun_io_fwrite, return argv[0]; } +static void io_assert_writeable(JanetFile *iof) { + if (iof->flags & JANET_FILE_CLOSED) + janet_panic("file is closed"); + if (!(iof->flags & (JANET_FILE_WRITE | JANET_FILE_APPEND | JANET_FILE_UPDATE))) + janet_panic("file is not writeable"); +} + /*...
record in ChangeLog
+05/28/2018 +- send Basic header in OAuth www-authenticate response if that's the only accepted method; thanks @puiterwijk + 05/28/2018 - refactor Redis cache backend to solve issues on AUTH errors: a) memory leak and b) redisGetReply lagging behind - adjust copyright year/org
docs: dark-mode friendly logo
<div align="center"> <br /> <p> - <a href="https://cee-studio.github.io/orca"><img src="https://raw.githubusercontent.com/cee-studio/orca-docs/079bbbc5f2a27f457c324b1334b3644095db31ff/docs/source/images/logo-light.svg" width="546" alt="orca" style="background-color:red;" /></a> + <a href="https://cee-studio.github.io/o...
Fix: Time-zone is not reflected
@@ -40,12 +40,10 @@ RUN autoreconf -fiv RUN CC="clang" CFLAGS="-O3 -static" LIBS="$(pkg-config --libs openssl)" ./configure --prefix="" --enable-utf8 --with-openssl --enable-geoip=mmdb RUN make && make DESTDIR=/dist install -# Time Zone -RUN tar Jcf /dist/tzdata.tar.xz -C /usr/share/zoneinfo/right . - # Container FROM ...
Update site URLs in README.md
The Dagger (XDAG) cryptocurrency ================================ -- Official site: http://xdag.me +- Community site: https://xdag.io - Developer's site: http://xdag.me - Main net is launched January 5, 2018 at 22:45 GMT. @@ -10,7 +10,7 @@ Principles: - Directed acyclic graph (DAG), not blockchain - Block = transaction...
cmake - Add tools [ci skip]
@@ -390,3 +390,22 @@ macro(get_subdirectories result current_dir) endforeach() set(${result} ${dirs}) endmacro() + + +# Replacement for list(FILTER ...) (see cmake doc) +# when current cmake version < 3.6) +# Usage : +# list_filter(<listname> <matching expr>) +# example: +# set(mylist name src plugin) +# list_filter(my...