message
stringlengths
6
474
diff
stringlengths
8
5.22k
Reactivate miniconda env in main travis script
@@ -40,12 +40,15 @@ matrix: install: - ./.travis/install.sh + - if ! [[ $TRAVIS_OS_NAME == "osx" ]]; then source $HOME/miniconda/bin/activate; fi + - if ! [[ $TRAVIS_OS_NAME == "osx" ]]; then hash -r ; fi + - if ! [[ $TRAVIS_OS_NAME == "osx" ]]; then source activate test-environment ; fi - export LD_LIBRARY_PATH=$LD_LI...
clock: always draw large arc
@@ -107,7 +107,7 @@ const SvgArc = ({ start, end, ...rest }) => { const d = [ 'M', CX, CY, 'L', x1, y1, - 'A', RADIUS, RADIUS, '0', (isLarge ? '1' : '0'), '1', x2, y2, 'z' + 'A', RADIUS, RADIUS, '0', '1', '1', x2, y2, 'z' ].join(' '); return <path d={d} {...rest} />;
Reformat the manual so each line fit in 80 chars
## Arrays -Array types in Titan have the form `{ t }`, where `t` is any Titan type (including other array types, so `{ { integer } }` -is the type for an array of arrays of integers, for example. +Array types in Titan have the form `{ t }`, where `t` is any Titan type +(including other array types, so `{ { integer } }`...
host: Add defines for Key Distribution settings Add key distribution masks defines. This can be used to initialize sm_our_key_dist and sm_their_key_dist fields in ble_hs_cfg struct.
@@ -165,6 +165,25 @@ extern "C" { /** KeyboardDisplay Only IO capability */ #define BLE_HS_IO_KEYBOARD_DISPLAY 0x04 +/** + * @} + */ + +/** + * @brief LE key distribution + * @defgroup bt_host_key_dist LE key distribution + * + * @{ + */ + +/** Distibute LTK */ +#define BLE_HS_KEY_DIST_ENC_KEY 0x01 + +/** Distribute IR...
Update qtwayland5 and remove from build package Fix qtwayland5 and remove from build package (only needed in stage)
@@ -165,7 +165,6 @@ parts: - qttools5-dev-tools - qt5-default - qtbase5-dev-tools - - qt5wayland stage-packages: - g++ - jq @@ -190,7 +189,7 @@ parts: - qttools5-dev-tools - qt5-default - qtbase5-dev-tools - - qt5wayland + - qtwayland5 override-build: | set -x ARCH=$(uname -m)
refactor: improve clarity of bot-quiz.cpp
@@ -344,24 +344,25 @@ void on_reaction_add( /* get session associated with the user */ struct session *session=NULL; - struct question *question=NULL; for (size_t i=0; i < MAX_SESSIONS; ++i) { - if (channel_id != g_session.active_sessions[i].channel_id) - continue; - + if (channel_id == g_session.active_sessions[i].cha...
Restore OpenBLAS modifications to link line
@@ -98,7 +98,8 @@ set(ZEIGTST zchkee.F macro(add_eig_executable name) add_executable(${name} ${ARGN}) - target_link_libraries(${name} ${TMGLIB} ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES}) + target_link_libraries(${name} openblas${SUFFIX64_UNDERSCORE}) +#${TMGLIB} ../${LAPACK_LIBRARIES} ${BLAS_LIBRARIES}) endmacro() if(BUILD...
"Included a distance modulus function. I have not fully solved python integration. I believe someone more knowledgeable than me just needs to re-run swig and recompile the outputs."
@@ -713,6 +713,7 @@ double ccl_distance_modulus(ccl_cosmology * cosmo, double a, int* status) return 5*(log10(ccl_luminosity_distance(cosmo, a, status))*6-1); } + void ccl_distance_moduli(ccl_cosmology * cosmo, int na, double a[na], double output[na], int * status) { if (!cosmo->computed_distances){
nimble/ll: Fix regression in chained scan response Regression after nimble/ll: Simplify aux_data ref counter usage Setting BLE_LL_AUX_INCOMPLETE_BIT has been incorrectly moved in mentioned patch. This fixes LL/DDI/SCN/BV-24-C
@@ -1944,12 +1944,12 @@ ble_ll_scan_get_aux_data(struct ble_mbuf_hdr *ble_hdr, uint8_t *rxbuf) } BLE_LL_AUX_SET_FLAG(new_aux, BLE_LL_AUX_CHAIN_BIT); + BLE_LL_AUX_SET_FLAG(new_aux, BLE_LL_AUX_INCOMPLETE_BIT); } else { if (ble_ll_scan_ext_adv_init(&new_aux) < 0) { /* Out of memory */ return -1; } - BLE_LL_AUX_SET_FLAG(ne...
Remove s2n_map_offer from s2n_map.h
@@ -25,7 +25,6 @@ struct s2n_map; extern struct s2n_map *s2n_map_new(); extern int s2n_map_add(struct s2n_map *map, struct s2n_blob *key, struct s2n_blob *value); extern int s2n_map_put(struct s2n_map *map, struct s2n_blob *key, struct s2n_blob *value); -extern int s2n_map_offer(struct s2n_map *map, struct s2n_blob *ke...
do_body: fix heap-use-after-free. The memory pointed to by the 'push' is freed by the X509_NAME_ENTRY_free() in do_body(). The second time it is referenced to (indirectly) in certify_cert:X509_REQ_free().
@@ -1556,7 +1556,6 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, if (push != NULL) { if (!X509_NAME_add_entry(subject, push, -1, 0)) { - X509_NAME_ENTRY_free(push); BIO_printf(bio_err, "Memory allocation failure\n"); goto end; }
fix: return error when malloc fails in inplace_cb_register_wrapped()
@@ -242,6 +242,8 @@ int inplace_cb_register_wrapped(void* cb, enum inplace_cb_list_type type, void* cbarg, struct module_env* env, int id) { struct cb_pair* cb_pair = malloc(sizeof(struct cb_pair)); + if(cb_pair == NULL) + return 0; cb_pair->cb = cb; cb_pair->cb_arg = cbarg; if(type >= inplace_cb_reply && type <= inpla...
gtkui: make list info more readable..
@@ -261,7 +261,6 @@ report_list_info(gftp_window_data * wdata) char files_str[50] = ""; char links_str[50] = ""; char dirs_str[50] = ""; - char size_str[50] = ""; if(!wdata || !wdata->files) return NULL; @@ -285,21 +284,18 @@ report_list_info(gftp_window_data * wdata) return NULL; } if(filenum) { - snprintf(files_str, ...
fio_str_s length error should be signed
@@ -1146,7 +1146,7 @@ FIO_FUNC inline void fio_str_test(void) { (ssize_t)pos, len); TEST_ASSERT( len == 10, /* 3 UTF-8 chars: 4 byte + 4 byte + 2 byte codes == 10 */ - "`fio_str_utf8_select` error, length invalid on UTF-8 data! (%zu)", + "`fio_str_utf8_select` error, length invalid on UTF-8 data! (%zd)", (ssize_t)len);...
LISP: fix negative mapping timeout,
@@ -3872,7 +3872,8 @@ process_map_reply (map_records_arg_t * a) } if ((u32) ~ 0 != m->ttl) - mapping_start_expiration_timer (lcm, dst_map_index, MAPPING_TIMEOUT); + mapping_start_expiration_timer (lcm, dst_map_index, + (m->ttl == 0) ? 0 : MAPPING_TIMEOUT); } /* remove pending map request entry */
Clarify the return value of ngtcp2_conn_write_connection_close variants
@@ -4254,6 +4254,9 @@ NGTCP2_EXTERN ngtcp2_ssize ngtcp2_conn_writev_datagram_versioned( * close. We may change this behaviour in the future to allow * graceful shutdown. * + * This function returns the number of bytes written in |dest| if it + * succeeds, or one of the following negative error codes: + * * :macro:`NGTC...
appveyor - some little fix
@@ -140,7 +140,7 @@ test_script: - copy %target_artefact_path%%target_artefact_file_name% C:\TAU\rhodes\target\ - cd C:\TAU\rhodes\target\ - dir - - echo %APPVEYOR_REPO_NAME%/%APPVEYOR_REPO_BRANCH%/%APPVEYOR_REPO_COMMIT%/appveyor-%APPVEYOR_JOB_NUMBER%-win32-%target_os%-%app_name% + - echo %APPVEYOR_REPO_NAME%/%APPVEYOR...
fix(boards): Remove dup `uart0` overrides for nano
status = "okay"; }; -&uart0 { - compatible = "nordic,nrf-uart"; - current-speed = <115200>; - tx-pin = <6>; - rx-pin = <8>; -}; - &i2c0 { compatible = "nordic,nrf-twi"; sda-pin = <17>;
components/bt: fix spp memory leak closes
@@ -546,6 +546,11 @@ static void btc_spp_uninit(void) osi_mutex_unlock(&spp_local_param.spp_slot_mutex); } while(0); + if (spp_local_param.tx_event_group) { + vEventGroupDelete(spp_local_param.tx_event_group); + spp_local_param.tx_event_group = NULL; + } + if (ret != ESP_SPP_SUCCESS) { esp_spp_cb_param_t param; param.u...
Removed the remote port portion from the host format. This should adddress CADDY's v2.5.0 change where the remote port has its own JSON property. Fixes
@@ -78,7 +78,7 @@ static const GPreConfLog logs = { "%^ %v [%d:%t %^] %h %^\"%r\" %s %^ %b %^ %L %^ \"%R\" \"%u\"", /* Amazon S3 */ /* Caddy JSON */ - "{ \"ts\": \"%x.%^\", \"request\": { \"remote_addr\": \"%h:%^\", \"proto\":" + "{ \"ts\": \"%x.%^\", \"request\": { \"remote_addr\": \"%h\", \"proto\":" "\"%H\", \"metho...
hdata/vpd: Improve vpd node find logic Use dt_find_by_name_addr() instead of dt_find_by_name(). That way we can avoid unnecessary memory allocation/cleanup. CC: Ananth N Mavinakayanahalli
@@ -435,8 +435,6 @@ struct dt_node *dt_add_vpd_node(const struct HDIF_common_hdr *hdr, const void *fruvpd; const char *name; uint64_t addr; - char *lname; - int len; fru_id = HDIF_get_idata(hdr, indx_fru, &fru_id_sz); if (!fru_id) @@ -455,19 +453,9 @@ struct dt_node *dt_add_vpd_node(const struct HDIF_common_hdr *hdr, r...
Updated packaging configuration.
MAKE_DIST="cmake -DCMAKE_INSTALL_PREFIX=/usr -DSOCKET_API=1 -DUSRSCTP_SUPPORT=0 -DSCTP_MULTISTREAMING=1 -DFLOW_GROUPS=1 . && make dist" NOT_TARGET_DISTRIBUTIONS="lucid precise trusty" # <<-- Distrubutions which are *not* supported! MAINTAINER="Thomas Dreibholz <dreibh@iem.uni-due.de>" +MAINTAINER_KEY="21412672518D8B2D1...
Disable PQ fuzz tests when in FIPS mode
@@ -57,8 +57,13 @@ fi FIPS_TEST_MSG="" if [ -n "${S2N_TEST_IN_FIPS_MODE}" ]; then + if [[ $TEST_NAME == *bike* ]] || [[ $TEST_NAME == *sike* ]]; then + printf "Skipping %s because PQ crypto is not supported in FIPS mode...\n" ${TEST_NAME} + exit 0 + else FIPS_TEST_MSG=" FIPS test" fi +fi # Make directory if it doesn't ...
Update LICENSE.txt for 2019.
The MIT License (MIT) -Portions Copyright (c) 2015-2018, The PostgreSQL Global Development Group -Portions Copyright (c) 2013-2018, David Steele +Portions Copyright (c) 2015-2019, The PostgreSQL Global Development Group +Portions Copyright (c) 2013-2019, David Steele Permission is hereby granted, free of charge, to any...
Fix use-after-release issue in PL/Sample Introduced in Per buildfarm member prion, when using RELCACHE_FORCE_RELEASE.
@@ -97,6 +97,7 @@ plsample_func_handler(PG_FUNCTION_ARGS) char *proname; Form_pg_type pg_type_entry; Oid result_typioparam; + Oid prorettype; FmgrInfo result_in_func; int numargs; @@ -117,7 +118,6 @@ plsample_func_handler(PG_FUNCTION_ARGS) if (isnull) elog(ERROR, "could not find source text of function \"%s\"", proname...
+on-wegh compiles
:: %memo: message to vane from peer :: %send: packet to unix :: %done: notify vane that peer (n)acked our message +:: %mass: memory usage report :: +$ gift $% [%memo =message] [%send =lane =blob] [%done error=(unit error)] + [%mass mass] == :: $note: request to other vane :: %init !! %sunk !! %vega !! - %wegh !! + %weg...
Fix build for boards without voltage divider
LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL); +#if DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT) + struct io_channel_config { const char *label; uint8_t channel; @@ -203,3 +205,5 @@ static const struct bvd_config bvd_cfg = { DEVICE_AND_API_INIT(bvd_dev, DT_INST_LABEL(0), &bvd_init, &bvd_data, &bvd_cfg, POST_KERNEL, CONFIG_...
Fix shift by negative value when reading blocksize.
@@ -203,6 +203,7 @@ void vorbis_info_clear(vorbis_info *vi){ static int _vorbis_unpack_info(vorbis_info *vi,oggpack_buffer *opb){ codec_setup_info *ci=vi->codec_setup; + int bs; if(!ci)return(OV_EFAULT); vi->version=oggpack_read(opb,32); @@ -215,8 +216,12 @@ static int _vorbis_unpack_info(vorbis_info *vi,oggpack_buffer...
vagrant: use cooja script from docker
@@ -54,12 +54,13 @@ sudo usermod -aG dialout,plugdev,sudo vagrant # Environment variables echo "export CONTIKI_NG=${HOME}/contiki-ng" >> ${HOME}/.bashrc echo "export COOJA=${CONTIKI_NG}/tools/cooja" >> ${HOME}/.bashrc -echo "export PATH=${HOME}:${PATH}" >> ${HOME}/.bashrc +echo "export PATH=${HOME}/.local/bin:${PATH}" ...
pbio/servo: set state on stop This fixes a bug where background maneuvers would not be stopped
@@ -497,15 +497,18 @@ pbio_error_t pbio_servo_set_duty_cycle(pbio_servo_t *srv, int32_t duty_steps) { return pbio_hbridge_set_duty_cycle_usr(srv->hbridge, duty_steps); } +// FIXME: re-use control_update_actuate to save on code size pbio_error_t pbio_servo_stop(pbio_servo_t *srv, pbio_actuation_t after_stop) { int32_t a...
updates api comments
/** * @struct token_response api.h - * @brief a struct holding an access token and the associated issuer + * @brief a struct holding an access token, the associated issuer, and the + * expiration time of the token */ struct token_response { char* token; @@ -13,11 +14,10 @@ struct token_response { time_t expires_at; }; ...
ble: Fix host-based SPS null pointer crash on disconnect The remote device may send a notification with a NULL data pointer on disconnect.
@@ -578,7 +578,7 @@ static uPortGattIter_t onCreditsNotified(int32_t gapConnHandle, (void)pParams; (void)length; - if (spsConnHandle != U_BLE_DATA_INVALID_HANDLE) { + if ((spsConnHandle != U_BLE_DATA_INVALID_HANDLE) && pData && (length > 0)) { addLocalTxCredits(spsConnHandle, *(const uint8_t *)pData); } @@ -591,7 +591,...
[bsp][ls1c] add ls1c_hw_spi_init
#include <rtthread.h> #include <drivers/spi.h> #include "drv_spi.h" +#include "../libraries/ls1c_pin.h" +#ifdef RT_USING_SPI //#define DEBUG @@ -226,4 +228,66 @@ rt_err_t ls1c_spi_bus_register(rt_uint8_t SPI, const char *spi_bus_name) return rt_spi_bus_register(spi_bus, spi_bus_name, &ls1c_spi_ops); } +int ls1c_hw_spi_...
Fix Ubuntu compile error in udp_proxy.c
@@ -73,9 +73,10 @@ int main( void ) #endif #endif /* _MSC_VER */ #else /* ( _WIN32 || _WIN32_WCE ) && !EFIX64 && !EFI32 */ -#if defined(MBEDTLS_HAVE_TIME) +#if defined(MBEDTLS_HAVE_TIME) || (defined(MBEDTLS_TIMING_C) && !defined(MBEDTLS_TIMING_ALT)) #include <sys/time.h> #endif +#include <sys/select.h> #include <sys/ty...
extract price from libmarket
#pragma once #include "defaults.h" +#include "yassert.h" #include <string.h> @@ -35,6 +36,7 @@ public: } inline T Cur() const noexcept { + Y_ASSERT(C_ < L_); return ::ReadUnaligned<T>(C_); }
build: don't overwrite quicly build/install logs append make output to quicly build & install logs Type: make
@@ -21,16 +21,17 @@ picotls_build_dir := $(B)/build-picotls define quicly_build_cmds @cd $(quicly_build_dir) && \ + rm -f $(quicly_build_log) && \ $(CMAKE) -DWITH_DTRACE=OFF \ -DCMAKE_INSTALL_PREFIX:PATH=$(quicly_install_dir) \ - $(quicly_src_dir) > $(quicly_build_log) - @$(MAKE) quicly $(MAKE_ARGS) -C $(quicly_build_d...
Fix `make distcheck` due to missing coredump header A recent change missed adding a new header to the dist list. `make distckeck` now runs successfully once again. Fixes
@@ -71,7 +71,9 @@ libunwind_coredump_la_SOURCES = \ libunwind_coredump_la_LDFLAGS = $(COMMON_SO_LDFLAGS) \ -version-info $(COREDUMP_SO_VERSION) libunwind_coredump_la_LIBADD = $(LIBLZMA) $(LIBZ) -noinst_HEADERS += coredump/_UCD_internal.h coredump/_UCD_lib.h +noinst_HEADERS += coredump/_UCD_internal.h \ + coredump/_UCD_...
Add defensive length checks for 6LoWPAN fragment reassembly.
@@ -306,16 +306,25 @@ static int store_fragment(uint8_t index, uint8_t offset) { int i; + int len; + + len = packetbuf_datalen() - packetbuf_hdr_len; + + if(len < 0 || len > SICSLOWPAN_FRAGMENT_SIZE) { + /* Unacceptable fragment size. */ + return -1; + } + for(i = 0; i < SICSLOWPAN_FRAGMENT_BUFFERS; i++) { if(frag_buf[...
docs: rephrase one sentence Fix
@@ -73,7 +73,7 @@ There are no special requirements concerning the operating system. Generally, Bo (3) MQTT <br> (4) TCP <br> -If the device can only connect to the IoT platform of a specific operator or service provider (such as OneNET, OceanConnect), the communication protocol follows the operator's requirements. +Th...
zephyr/shim/include/cros_cbi.h: Format with clang-format BRANCH=none TEST=none
enum cbi_ssfc_value_id { LISTIFY(DT_NUM_INST_STATUS_OKAY(CBI_SSFC_VALUE_COMPAT), - CBI_SSFC_VALUE_INST_ENUM, ()) - CBI_SSFC_VALUE_COUNT + CBI_SSFC_VALUE_INST_ENUM, ()) CBI_SSFC_VALUE_COUNT }; #undef DT_DRV_COMPAT @@ -45,8 +44,7 @@ enum cbi_ssfc_value_id { /* * Create an enum entry without a value (an enum with a follow...
Build System: Don't track dependencies.lock
@@ -434,9 +434,8 @@ function(idf_component_register) __component_check_target() __component_add_sources(sources) - # Add component manifest and lock files to list of dependencies + # Add component manifest to the list of dependencies set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${COMPONENT_DIR}/idf_c...
[tools] The output directory of "scons --dist-strip" is changed from current-bsp/dist to current-bsp/dist-strip
@@ -142,10 +142,10 @@ def bs_update_ide_project(bsp_root, rtt_root): if child.returncode == 0: print('update %s project' % item) -def zip_dist(bsp_root, dist_dir, dist_name): +def zip_dist(dist_dir, dist_name): import zipfile - zip_filename = os.path.join(bsp_root, 'dist', dist_name) + zip_filename = os.path.join(dist_...
sort inputs to enable reproducible builds
@@ -183,7 +183,7 @@ CONFIG_AFTER_INST_PATH ?=$(CONFIG_PATH) endif # Define sources -SRC_SOURCES := $(shell find $(SRCDIR) -name "*.c") +SRC_SOURCES := $(sort $(shell find $(SRCDIR) -name "*.c")) ifneq ($(USE_CJSON_SO),1) LIB_SOURCES += $(LIBDIR)/cJSON/cJSON.c endif @@ -192,21 +192,21 @@ ifneq ($(USE_LIST_SO),1) endif S...
awm will skip drawing fully occluded windows
@@ -450,40 +450,28 @@ int main(int argc, char** argv) { // splits lower windows into visible regions, then blits those for (int i = window_count-1; i >= 0; i--) { user_window_t* window = &windows[i]; + // As an optimization until we have visible-region splitting, skip drawing + // fully occluded windows + bool fully_oc...
Disable VexCL if building without OCL-ICD. VexCL expects a system OpenCL, and will fail to configure or pick up some other OpenCL implmenetation without OCL-ICD.
@@ -28,8 +28,12 @@ set(TS_BASEDIR "${TESTSUITE_BASEDIR}/${TS_NAME}") set(TS_BUILDDIR "${TS_BASEDIR}/src/${TS_NAME}-build") set(TS_SRCDIR "${TESTSUITE_SOURCE_BASEDIR}/${TS_NAME}") -if(HAVE_GIT) +if(HAVE_GIT==false) + message(STATUS "Disabling testsuite ${TS_NAME}, requires git to checkout sources") +elseif(NOT TESTS_USE...
framework/ble_manager: fix minor bug in BLE manager check mq_receive return value
@@ -113,7 +113,18 @@ static void *_autocon_process(void *param) } } memset(buf, 0, sizeof(buf)); + for (;;) { nbytes = mq_receive(ctx->mqfd, buf, sizeof(buf), 0); + if (nbytes < 0) { + int err_no = get_errno(); + if (err_no == EINTR || err_no == EAGAIN) { + continue; + } + BLE_LOG_ERROR("[BLEMGR] mq_receive fail(fd : %...
I updated the release notes in the web site to describe the changes to build_visit with respect to building Qt.
@@ -96,7 +96,8 @@ enhancements and bug-fixes that were added to this release.</p> <h2>Build changes in version 2.13</h2> <ul> - <li>Enhanced build_visit to support OpenSWR. OpenSWR is an Intel software renderer that is now part of Mesa. OpenSWR should not be enabled with mesa. To enable OpenSWR add the following flags ...
OpenCoreMisc: Show "Reset NVRAM" boot entry when allowed
@@ -482,6 +482,7 @@ OcMiscBoot ( OcLoadPickerHotKeys (Context); + Context->ShowNvramReset = Config->Misc.Security.AllowNvramReset; if (!Config->Misc.Security.AllowNvramReset && Context->PickerCommand == OcPickerResetNvram) { Context->PickerCommand = PickerCommand; }
fix warning on freebsd
@@ -311,7 +311,7 @@ static bool mi_os_mem_free(void* addr, size_t size, bool was_committed, mi_stats } } -#if !defined(MI_USE_SBRK) && !defined(__wasi__) +#if !(defined(__wasi__) || defined(MI_USE_SBRK) || defined(MAP_ALIGNED)) static void* mi_os_get_aligned_hint(size_t try_alignment, size_t size); #endif @@ -662,7 +66...
Disallow private outside of classes and abstract classes
@@ -1192,6 +1192,16 @@ static void this_(Compiler *compiler, bool canAssign) { } } +static void private_(Compiler *compiler, bool canAssign) { + UNUSED(canAssign); + + if (compiler->class == NULL) { + error(compiler->parser, "Cannot utilise 'private' outside of a class."); + } else if (compiler->class->abstractClass) {...
Note bugfixes in 1.7.1 fix CVE-2017-1000231 and CVE-2017-1000232
Thanks Bill Parker * bugfix #1260: Anticipate strchr returning NULL on unfound char Thanks Stephan Zeisberg - * bugfix #1257: Free after reallocing to 0 size + * bugfix #1257: Free after reallocing to 0 size (CVE-2017-1000232) Thanks Stephan Zeisberg - * bugfix #1256: Check parse limit before t increment + * bugfix #12...
CLEANUP: refactored the _prefix_scan_direct() function.
@@ -890,18 +890,15 @@ ENGINE_ERROR_CODE prefix_get_stats(const char *prefix, const int nprefix, #ifdef SCAN_PREFIX_COMMAND static int _prefix_scan_direct(const char *cursor, int req_count, void **item_array, int item_arrsz) { - uint32_t csnum; uint32_t prefix_hsize = hashsize(DEFAULT_PREFIX_HASHPOWER); - if (!safe_strt...
board/kinox/pwm.c: Format with clang-format BRANCH=none TEST=none Tricium: disable
#include "pwm_chip.h" const struct pwm_t pwm_channels[] = { - [PWM_CH_LED_GREEN] = { - .channel = 0, - .flags = PWM_CONFIG_ACTIVE_LOW | PWM_CONFIG_DSLEEP | + [PWM_CH_LED_GREEN] = { .channel = 0, + .flags = PWM_CONFIG_ACTIVE_LOW | + PWM_CONFIG_DSLEEP | PWM_CONFIG_OPEN_DRAIN, - .freq = 2000 - }, - [PWM_CH_FAN] = { - .cha...
atlas: remove dead BMI160 code atlas does not have a BMI160, so remove legacy references to it. BRANCH=none TEST=compiles.
#include "charge_state.h" #include "chipset.h" #include "console.h" -#include "driver/accelgyro_bmi160.h" #include "driver/als_opt3001.h" #include "driver/pmic_bd99992gw.h" #include "driver/tcpm/ps8xxx.h" @@ -577,13 +576,6 @@ static struct opt3001_drv_data_t g_opt3001_data = { .offset = 0, }; -/* Matrix to rotate accel...
inertial_updates: python test_table num messages
@@ -41,7 +41,7 @@ def test_table_count(): Test number of available messages to deserialize. """ - number_of_messages = 137 + number_of_messages = 138 assert len(_SBP_TABLE) == number_of_messages def test_table_unqiue_count():
Fix copy-paste errors (POWER8/9 and extraneous return)
@@ -156,7 +156,7 @@ int detect(void){ if (!strncasecmp(p, "POWER6", 6)) return CPUTYPE_POWER6; if (!strncasecmp(p, "POWER7", 6)) return CPUTYPE_POWER6; if (!strncasecmp(p, "POWER8", 6)) return CPUTYPE_POWER8; - if (!strncasecmp(p, "POWER8", 6)) return CPUTYPE_POWER8; + if (!strncasecmp(p, "POWER9", 6)) return CPUTYPE_P...
Don't run a legacy specific PKCS12 test if no legacy provider
@@ -92,7 +92,7 @@ ok(run(app(["openssl", "pkcs12", "-export", SKIP: { skip "Skipping legacy PKCS#12 test because RC2 is disabled in this build", 1 - if disabled("rc2"); + if disabled("rc2") || disabled("legacy"); # Test reading legacy PKCS#12 file ok(run(app(["openssl", "pkcs12", "-export", "-in", srctop_file(@path, "v...
Add cmake build to gitlab ci. Add an additional build job to the gitlab ci pipeline to do a cmake build. This doesn't run tests, but gives us a little bit of converage.
# Image from https://hub.docker.com/_/gcc/ based on Debian image: gcc -build: +autoconf: stage: build before_script: - apt-get update && @@ -17,3 +17,16 @@ build: - "lib/.libs/*.o" tags: - docker + +cmake: + stage: build + before_script: + - apt-get update && + apt-get install -y libogg-dev zip doxygen + cmake ninja-bu...
Fix stack based memory disclosure in FTP client Function ftp_pasvmode that parses FTP server response to PASV command goes outside data buffer - ptr is increased and checked only using !isdigit function.
@@ -143,7 +143,7 @@ static int ftp_pasvmode(struct ftpc_session_s *session, uint8_t addrport[6]) /* Skip over any leading stuff before address begins */ ptr = session->reply + 4; - while (!isdigit((int)*ptr)) { + while (*ptr && !isdigit((int)*ptr)) { ptr++; }
rnndb: document more pci regs with the help of nvgpu
<bitfield pos="27" name="UNK27"/> </reg32> <reg32 offset="0x150" name="UNK150" variants="G80-"> + <bitfield pos="7" name="FORCE_DISABLE_ASPM_L0S"/> + <bitfield pos="8" name="FORCE_DISABLE_ASPM_L1"/> <bitfield pos="31" name="NO_SOFT_RESET"/> <!-- toggle for PM_CTRL.NO_SOFT_RESET --> </reg32> <!-- PWR_BDGT underlying sto...
HV: acpi_parser: fix violations of coding guideline C-CU-02 The coding guideline rule C-CU-02 requires that 'only one return statement shall be in a function'. This patch refactors handle_dmar_devscope() which has multiple return statements today. This patch has no semantic changes. Acked-by: Eddie Dong
@@ -57,17 +57,13 @@ static union pci_bdf dmar_path_bdf(int32_t path_len, int32_t busno, const struct static int32_t handle_dmar_devscope(struct dmar_dev_scope *dev_scope, void *addr, int32_t remaining) { - int32_t path_len; + int32_t path_len, ret = -1; union pci_bdf dmar_bdf; struct acpi_dmar_pci_path *path; struct ac...
[software] Use `NUM_CORES` instead of config register if available
@@ -18,10 +18,7 @@ typedef uint32_t mempool_id_t; typedef uint32_t mempool_timer_t; /// Obtain the number of cores in the current cluster. -static inline mempool_id_t mempool_get_core_count() { - extern uint32_t nr_cores_address_reg; - return nr_cores_address_reg; -} +static inline mempool_id_t mempool_get_core_count()...
extmod/modlwip: Use correct listening socket object in accept callback. Since commit the tcp_arg() that is set for the new connection is the new connection itself, and the parent listening socket is found in the pcb->connected entry.
@@ -447,7 +447,8 @@ STATIC err_t _lwip_tcp_recv_unaccepted(void *arg, struct tcp_pcb *pcb, struct pb // from accept callback itself. STATIC err_t _lwip_tcp_accept_finished(void *arg, struct tcp_pcb *pcb) { - lwip_socket_obj_t *socket = (lwip_socket_obj_t*)arg; + // The ->connected entry of the pcb holds the listening s...
docs: Detail the merging process of patches sent through the mailing list
@@ -86,6 +86,10 @@ Then, for sending patches to the mailing list, you may use this command: git send-email --to yocto@lists.yoctoproject.org <generated patch> +When patches are sent through the mailing list, the maintainer will include +them in a GitHub pull request that will take the patches through the CI +workflows....
input: release instance when init failed and fix typo
@@ -454,8 +454,9 @@ int flb_input_instance_init(struct flb_input_instance *ins, */ config_map = flb_config_map_create(config, p->config_map); if (!config_map) { - flb_error("[filter] error loading config map for '%s' plugin", + flb_error("[input] error loading config map for '%s' plugin", p->name); + flb_input_instance...
doc BUGFIX remove description of non-existing parameter
@@ -58,7 +58,6 @@ void *ly_realloc(void *ptr, size_t size); * @param[in] CTX libyang context for logging. * @param[in,out] ARRAY Pointer to the array to allocate/resize. The size of the allocated * space is counted from the type of the ARRAY, so do not provide placeholder void pointers. - * @param[out] NEW_ITEM Returni...
Completions: Format file with `fish_indent`
-function __fish_kdb_no_subcommand \ --d 'Check if the current commandline buffer does not contain a subcommand' +function __fish_kdb_no_subcommand -d 'Check if the current commandline buffer does not contain a subcommand' set subcommands (__fish_kdb_print_subcommands) for input in (commandline -opc) if contains -- $in...
[core] http_response_send_file() mark cold paths
@@ -307,7 +307,7 @@ handler_t http_response_reqbody_read_error (request_st * const r, int http_statu void http_response_send_file (request_st * const r, buffer * const path, stat_cache_entry *sce) { if (NULL == sce - || (sce->fd < 0 && 0 != sce->st.st_size)) { + || (sce->fd < 0 && __builtin_expect( (0 != sce->st.st_siz...
libtcmu: fix max unmap definition The comment says we wanted to limit the max UNMAP size to 32M but we were setting the number of bytes instead of blocks, so we were setting it to 16 GB.
@@ -71,7 +71,7 @@ enum { #define CFGFS_MOD_PARAM CFGFS_TARGET_MOD"/parameters" /* Temporarily limit this to 32M */ -#define VPD_MAX_UNMAP_LBA_COUNT (32 * 1024 * 1024) +#define VPD_MAX_UNMAP_LBA_COUNT 65536 #define VPD_MAX_UNMAP_BLOCK_DESC_COUNT 0x04 /* Temporarily limit this is 0x1 */ #define MAX_CAW_LENGTH 0x01
power/host_sleep.c: Format with clang-format BRANCH=none TEST=none
/* Track last reported sleep event */ static enum host_sleep_event host_sleep_state; -__overridable void power_chipset_handle_host_sleep_event( - enum host_sleep_event state, +__overridable void +power_chipset_handle_host_sleep_event(enum host_sleep_event state, struct host_sleep_event_context *ctx) { /* Default weak i...
Updater: Add certificate workaround
@@ -361,6 +361,9 @@ BOOLEAN QueryUpdateData( Context->ErrorCode = GetLastError(); goto CleanupExit; } + + // HACK workaround wj32.org certificate issues. (dmex) + PhHttpSocketSetSecurity(httpContext, PH_HTTP_SECURITY_IGNORE_CERT_DATE_INVALID); } {
cache: use XDG_CACHE_HOME
#include <ftw.h> // nftw() #include <stdint.h> // nftw() #include <stdio.h> // rename(), sprintf() -#include <stdlib.h> // nftw() +#include <stdlib.h> // nftw(), getenv() #include <string.h> // nftw() #include <sys/stat.h> // elektraMkdirParents #include <sys/time.h> // gettimeofday() @@ -52,9 +52,29 @@ struct _cacheHa...
Fixed typos in hkdf documentation.
@@ -68,12 +68,12 @@ error occurs. =back -EVP_PKEY_set_hkdf_md() sets the message digest associated with the HKDF. +EVP_PKEY_CTX_set_hkdf_md() sets the message digest associated with the HKDF. EVP_PKEY_CTX_set1_hkdf_salt() sets the salt to B<saltlen> bytes of the buffer B<salt>. Any existing value is replaced. -EVP_PKEY...
Fix packet length parsin and add check if packet bigger than memory buffer
@@ -63,6 +63,7 @@ typedef struct esp_mqtt_client { uint8_t parser_state; /*!< Incoming data parser state */ uint8_t msg_hdr_byte; /*!< Incoming message header byte */ uint32_t msg_rem_len; /*!< Remaining length value of current message */ + uint8_t msg_rem_len_mult; /*!< Multiplier for remaining length */ uint32_t msg_...
[mod_deflate] use brotli quality 5 by default BROTLI_DEFAULT_QUALITY is 11, which may lead to a higher compression ratio, but potentially at a cost of taking *many* multiples of the time taken to compress at quality level 5. x-ref:
@@ -452,7 +452,8 @@ static encparms * mod_deflate_parse_params(const array * const a, log_error_st * params->gzip.strategy = Z_DEFAULT_STRATEGY; #endif #ifdef USE_BROTLI - params->brotli.quality = BROTLI_DEFAULT_QUALITY; + /* BROTLI_DEFAULT_QUALITY is 11 and can be *very* time-consuming */ + params->brotli.quality = 5;...
tls: psa_pake: fix missing casting in mbedtls_psa_ecjpake_write_round
@@ -8272,7 +8272,7 @@ int mbedtls_psa_ecjpake_write_round( return( psa_ssl_status_to_mbedtls( status ) ); } - *(buf + output_offset) = output_len; + *(buf + output_offset) = (uint8_t) output_len; output_offset += output_len + 1; }
ci: only run check_docs_gh_links job once per pipeline Job simply walks all .rst files and check links. No need to run for multiple targets/languages
@@ -70,9 +70,11 @@ check_docs_lang_sync: DOCTGT: ["esp32", "esp32s2", "esp32c3"] check_docs_gh_links: + image: $ESP_IDF_DOC_ENV_IMAGE + variables: + PYTHON_VER: 3.6.13 extends: - .pre_check_job_template - - .build_docs_template - .doc-rules:build:docs script: - cd docs
dev-tools/hwloc: update to v2.0.3
%define pname hwloc Name: %{pname}%{PROJ_DELIM} -Version: 1.11.10 +Version: 2.0.3 Release: 1%{?dist} Summary: Portable Hardware Locality License: BSD-3-Clause
integration: Add test for capabilities.
@@ -104,6 +104,28 @@ func TestMain(m *testing.M) { os.Exit(ret) } +func TestCapabilities(t *testing.T) { + capabilitiesCmd := &command{ + name: "Start capabilities gadget", + cmd: "$KUBECTL_GADGET capabilities -n test-ns", + expectedRegexp: `test-ns\s+test-pod.*nice.*CAP_SYS_NICE`, + startAndStop: true, + } + + command...
for arm replace b/c clang does not like '-fstack-clash-protection'
@@ -74,6 +74,7 @@ cp SLmake.inc.example SLmake.inc %if "%{compiler_family}" == "arm1" %{__sed} -i -e 's#-lblas#-armpl#g' SLmake.inc %{__sed} -i -e 's#-llapack#-armpl#g' SLmake.inc +%{__sed} -i -e 's#$(RPM_OPT_FLAGS)#-O3 -fsimdmath#g' SLmake.inc %{__cat} SLmake.inc %else module load openblas
doc: explain how to run manual tests
@@ -88,6 +88,20 @@ You have some options to avoid running them as root: 4. Use the XDG resolver (see `scripts/configure-xdg`) and set the environment variable `XDG_CONFIG_DIRS`, currently lacks `spec` namespaces, see #734. +## Manual Testing + +Running executables in the build directory needs some preparation. +Here we...
Typo fix for the variable name.
@@ -19,7 +19,7 @@ build:dockerimage: image: docker:stable variables: - CI_BUILD_IMAGE: CI_REGISTRY_IMAGE/zmk-build + CI_BUILD_IMAGE: $CI_REGISTRY_IMAGE/zmk-build before_script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
Add comment about JTAG ID [ci skip]
@@ -28,7 +28,7 @@ import test_harness DEBUG = False CONTROL_PORT = 8541 INSTRUCTION_LENGTH = 4 -EXPECTED_IDCODE = 0x20e129f4 +EXPECTED_IDCODE = 0x20e129f4 # Matches value in hardware/core/config.sv # JTAG instructions INST_IDCODE = 0
stm32/mpbthciport: Fix initial baudrate to use provided value. Fixes bug introduced in the recent
@@ -196,7 +196,7 @@ int mp_bluetooth_hci_uart_init(uint32_t port, uint32_t baudrate) { MP_STATE_PORT(pyb_uart_obj_all)[mp_bluetooth_hci_uart_obj.uart_id - 1] = &mp_bluetooth_hci_uart_obj; // Initialise the UART. - uart_init(&mp_bluetooth_hci_uart_obj, 115200, UART_WORDLENGTH_8B, UART_PARITY_NONE, UART_STOPBITS_1, UART_...
some optimizations for (buffer overflow in onHelp_api)
@@ -2942,6 +2942,8 @@ static void printApi(Console* console, const char* param) } } +#define STRBUF_SIZE(name, ...) + STRLEN(#name) + STRLEN(Sep) + static void onHelp_api(Console* console) { consolePrint(console, "\nAPI functions:\n", tic_color_blue); @@ -2949,15 +2951,7 @@ static void onHelp_api(Console* console) cons...
Address - Call waitpid on waiter thread with WNOWAIT. This doesn't destory the pid until the original thread decides to call waitpid again. Since the pid is exposed in the C API and now in the Janet API, we don't want to destroy it until we are ready.
@@ -415,17 +415,8 @@ static JanetEVGenericMessage janet_proc_wait_subr(JanetEVGenericMessage args) { pid_t result; int status = 0; do { - result = waitpid(proc->pid, &status, 0); + result = waitpid(proc->pid, &status, WNOWAIT); } while (result == -1 && errno == EINTR); - /* Use POSIX shell semantics for interpreting si...
DM: virtio-gpio: export GPIO ACPI device Add dsdt for virtio-gpio device. Acked-by: Yu Wang
@@ -1372,12 +1372,30 @@ virtio_gpio_deinit(struct vmctx *ctx, struct pci_vdev *dev, char *opts) VIRTIO_GPIO_LOG_DEINIT; } +static void +virtio_gpio_write_dsdt(struct pci_vdev *dev) +{ + dsdt_line(""); + dsdt_line("Device (AGPI)"); + dsdt_line("{"); + dsdt_line(" Name (_ADR, 0x%04X%04X)", dev->slot, dev->func); + dsdt_l...
updates +brass to produce a 3-tuple of event-lists also removes /neo and adds /tests
:: /gen :dojo generators :: /lib %ford libraries :: /mar %ford marks - :: /sur %ford structures :: /ren %ford renderers - :: /web %eyre web content + :: /sec %eyre security drivers + :: /sur %ford structures :: /sys system files - :: /neo new system files + :: /tests unit tests + :: /web %eyre web content :: - %. [/app...
Add badges for Travis and LGTM builds.
PAPPL - Printer Application Framework ===================================== +[![Build Status](https://travis-ci.org/michaelrsweet/pappl.svg?branch=master)](https://travis-ci.org/github/michaelrsweet/pappl) +[![LGTM Grade](https://img.shields.io/lgtm/grade/cpp/github/michaelrsweet/pappl)](https://lgtm.com/projects/g/mic...
base64: fix buffer overrun The `token_decode()` function accepts a string, but the caller was only passing it a byte array without a null terminator. The fix is to change `token_decode()` so that it accepts a second `len` argument. The first argument is now considered a byte array, not a string.
@@ -126,12 +126,12 @@ base64_pad(char *buf, int len) #define DECODE_ERROR -1 static unsigned int -token_decode(const char *token) +token_decode(const char *token, int len) { int i; unsigned int val = 0; int marker = 0; - if (strlen(token) < 4) + if (len < 4) return DECODE_ERROR; for (i = 0; i < 4; i++) { val *= 64; @@ ...
docs/esp32: Add SDCard to quickref.
@@ -424,6 +424,21 @@ Notes: p1 = Pin(4, Pin.OUT, None) +SD card +------- + +See :ref:`machine.SDCard <machine.SDCard>`. :: + + import machine, uos + + # Slot 2 uses pins sck=18, cs=5, miso=19, mosi=23 + sd = machine.SDCard(slot=2) + uos.mount(sd, "/sd") # mount + + uos.listdir('/sd') # list directory contents + + uos.u...
HOTFIX disable presence reporting
:: ++ pa-report-group :: update presence |= vew/(set bone) + ?: [no-presence=&] +>.$ %^ pa-report vew %group :- %- ~(run by locals) |=({@ a/status} a)
TMP: adds ivory-pill boot-timing printfs
@@ -762,8 +762,17 @@ u3_king_commence() // boot the ivory pill // + { + struct timeval b4, f2, d0; + gettimeofday(&b4, 0); + _king_boot_ivory(); + gettimeofday(&f2, 0); + timersub(&f2, &b4, &d0); + fprintf(stderr, "lite: boot %lu ms\r\n", (d0.tv_sec * 1000) + (d0.tv_usec / 1000)); + } + // disable core dumps (due to lm...
clay: break out ford memory usage in more detail Instead of reporting a single memory size for built files, marks and conversions, we now report memory size per path, mark name and mark pair, respectively.
%+ turn (sort ~(tap by dos.rom.ruf) aor) |= [=desk =dojo] :+ desk %| + |^ :~ ankh+&+ank.dom.dojo mime+&+mim.dom.dojo - ford-files+&+files.fod.dom.dojo - ford-naves+&+naves.fod.dom.dojo - ford-marks+&+marks.fod.dom.dojo - ford-casts+&+casts.fod.dom.dojo - ford-tubes+&+tubes.fod.dom.dojo + ford-files+|+files + ford-naves...
Disable nonportable system include paths for Windows + Clang
@@ -139,6 +139,9 @@ macro(astcenc_set_properties NAME) # Force DWARF4 for Valgrind profiling $<$<AND:$<PLATFORM_ID:Linux,Darwin>,$<CXX_COMPILER_ID:Clang>>:-gdwarf-4> + # Disable non-portable Windows.h warning (fixing it fails builds on MinGW) + $<$<AND:$<PLATFORM_ID:Windows>,$<CXX_COMPILER_ID:Clang>>:-Wno-nonportable-s...
fix bug in modtap bahavior which cleared the wrong keycode events
@@ -193,8 +193,8 @@ static int on_keymap_binding_released(struct device *dev, u32_t position, u32_t } struct keycode_state_changed *ev = data->captured_keycode_events[j].event; - data->captured_keycode_events[i].event = NULL; - data->captured_keycode_events[i].active_mods = 0; + data->captured_keycode_events[j].event =...
Removed unused field from nxt_conf_op_s.
@@ -87,7 +87,6 @@ struct nxt_conf_op_s { uint32_t index; uint32_t action; /* nxt_conf_op_action_t */ void *ctx; - nxt_conf_op_t *next; }; @@ -1015,7 +1014,7 @@ nxt_conf_copy_object(nxt_mp_t *mp, nxt_conf_op_t *op, nxt_conf_value_t *dst, break; } - op = op->next; + op = NULL; } } while (d != count);
not anymore needed
@@ -465,12 +465,6 @@ void _start_entry() // initialize "initialized variables" memcpyU16(dst, FAR(src), len); -#if (ENABLE_BANK_SWITCH != 0) - // reset banks as we variable initialization may have modified them - len = 8; - while(--len) SYS_setBank(len, len); -#endif - // initialize random number generator setRandomSee...
[lib][cpp] add a auto_call class useful for calling routines at the exit of a function.
// found in the LICENSE file. #pragma once +#include <type_traits> + // Helper routines used in C++ code in LK // Macro used to simplify the task of deleting all of the default copy static void* operator new(size_t) = delete; \ static void* operator new[](size_t) = delete +// TODO: find a better place for this +namespa...
switch to bidirectional scan pattern in scanner.py
@@ -204,9 +204,12 @@ class Scanner(QMainWindow, Ui_Scanner): def set_coordinates(self): if self.idle: return self.socket.write(struct.pack('<I', 9<<28)) - for i in range(512): + for i in range(256): for j in range(512): - value = (i << 18) | (j << 4) + value = (i * 2 + 0 << 18) | (j << 4) + self.socket.write(struct.pac...