message
stringlengths
6
474
diff
stringlengths
8
5.22k
llvm: update Requires on gcc
@@ -48,7 +48,7 @@ BuildRequires: binutils-devel BuildRequires: libstdc++-devel Requires: binutils Requires: gcc-c++ -Requires: gnu7-compilers%{PROJ_DELIM} = %{gnuver} +Requires: gnu7-compilers%{PROJ_DELIM} %if 0%{?rhel_version} || 0%{?centos_version} || 0%{?rhel} BuildRequires: perl-Data-Dumper %endif
Update sal_socket.c
@@ -489,8 +489,7 @@ int sal_shutdown(int socket, int how) if (sock->ops->shutdown((int) sock->user_data, how) == 0) { rt_free(sock); - sock = RT_NULL; - + socket_table.sockets[socket] = RT_NULL; return 0; }
add exception handling for iperf example's scan when no ap was found
@@ -63,6 +63,11 @@ static void scan_done_handler(void* arg, esp_event_base_t event_base, wifi_ap_record_t *ap_list_buffer; esp_wifi_scan_get_ap_num(&sta_number); + if (!sta_number) { + ESP_LOGE(TAG, "No AP found"); + return; + } + ap_list_buffer = malloc(sta_number * sizeof(wifi_ap_record_t)); if (ap_list_buffer == NUL...
Tests: graceful shutdown.
@@ -102,7 +102,7 @@ class TestUnit(unittest.TestCase): with open(self.testdir + '/unit.pid', 'r') as f: pid = f.read().rstrip() - call(['kill', pid]) + call(['kill', '-s', 'QUIT', pid]) for i in range(50): if not os.path.exists(self.testdir + '/unit.pid'):
Update: Encode.h: Comment from minimal Narsese to expanded Narsese.
@@ -30,7 +30,7 @@ Atom atoms[TERMS_MAX][ATOMIC_TERM_LEN_MAX]; void Encode_INIT(); //Expands Narsese into by strtok(str," ") tokenizable string with canonical copulas char* Encode_Expand(char *narsese); -//Tokenize minimal Narsese in prefix copula order +//Tokenize expanded Narsese in prefix copula order char** Encode_P...
Disable complete rsa stack, because of inter dependencies
@@ -64,12 +64,12 @@ before_script: - cd - - mkdir build install - export BUILD_OPTIONS=" \ + -DBUILD_REMOTE_SERVICE_ADMIN=OFF \ -DBUILD_RSA_REMOTE_SERVICE_ADMIN_DFI=OFF \ -DBUILD_DEPLOYMENT_ADMIN=ON \ -DBUILD_DEPENDENCY_MANAGER=ON \ -DBUILD_EXAMPLES=ON -DBUILD_LOG_SERVICE=ON \ -DBUILD_LOG_WRITER=ON \ - -DBUILD_REMOTE_S...
Fixup duplicate p9 entries in spira/xscom Fixes:
@@ -276,10 +276,6 @@ static struct dt_node *add_xscom_node(uint64_t base, uint32_t hw_id, dt_add_property_strings(node, "compatible", "ibm,xscom", "ibm,power9-xscom"); break; - case proc_gen_p9: - dt_add_property_strings(node, "compatible", - "ibm,xscom", "ibm,power9-xscom"); - break; default: dt_add_property_strings(n...
Simplify ffmpeg dependencies Makefile The fact that the current prebuilt FFmpeg is split into two separate zipfiles is an implementation detail. Use a single Makefile recipe for both files. PR <https://github.com/Genymobile/scrcpy/pull/2952>
.PHONY: prepare-win32 prepare-win64 \ - prepare-ffmpeg-shared-win32 \ - prepare-ffmpeg-dev-win32 \ - prepare-ffmpeg-shared-win64 \ - prepare-ffmpeg-dev-win64 \ + prepare-ffmpeg-win32 \ + prepare-ffmpeg-win64 \ prepare-sdl2 \ prepare-adb -prepare-win32: prepare-sdl2 prepare-ffmpeg-shared-win32 prepare-ffmpeg-dev-win32 p...
change order of candidates
#include "common.h" - /*===========================================================================*/ /* globale Variablen */ @@ -114,6 +113,7 @@ char *weakword[] = { "12345678", "01234567", "123456789", "987654321", "0123456789", "0987654321", "87654321", "76543210", "12344321", "00000000", +"1357924680", "1q2w3e4r", ...
improved broken packet detection
@@ -3967,13 +3967,13 @@ if(memcmp(&nullnonce, wpak->nonce, 32) == 0) return; } -if(memcmp(&fakeanonce1, wpak->nonce, 32) == 0) +if((rc == 17) && (memcmp(&fakeanonce1, wpak->nonce, 32) == 0)) { skippedpacketcount++; return; } -if(memcmp(&fakesnonce1, wpak->nonce, 32) == 0) +if((rc == 17) && (memcmp(&fakesnonce1, wpak->n...
build: specify shell for cram tests This is an attempt to fix cram tests in non-POSIX-compliant environment.
@@ -18,7 +18,6 @@ if sh.found() and cram.found() test('cram tests', cram, timeout: 240, - args: [meson.current_source_dir()], + args: ['--shell=' + sh.path(), meson.current_source_dir()], env: env) endif -
groups: new buttons made consistent, dark mode
@@ -115,11 +115,11 @@ export class NewScreen extends Component { </div> <button onClick={this.onClickCreate.bind(this)} - className="f8 ba pa2 b--green2 green2 pointer"> + className="f9 ba pa2 b--green2 green2 pointer bg-transparent"> Start Group </button> <Link to="/~groups"> - <button className="f8 ml3 ba pa2 b--blac...
fix openssl detection on macOS since brew --prefix FORMULA returns a path even if the formula is not installed.
@@ -57,7 +57,7 @@ IF ((CMAKE_SYSTEM_NAME STREQUAL "Darwin") AND NOT (DEFINED OPENSSL_ROOT_DIR OR D OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET ) - IF (OPENSSL_ROOT_DIR STREQUAL "") + IF (NOT EXISTS ${OPENSSL_ROOT_DIR}) MESSAGE(STATUS "*************************************************************************\n" " * Set...
Add back dynlibs in usefiles.
@@ -186,7 +186,7 @@ const myrdeps = {b, name, mt if mt.islib arcmd(b, go, mt, to) - musecmd(b, gu, mt, tu) + musecmd(b, gu, mt, tu, dynlibs) builtlib(b, mt, libs, dynlibs) else linkcmd(b, go, mt, to, libs, dynlibs, false) @@ -400,11 +400,14 @@ const checkloop = {g, n, visited, looped, stk std.htdel(looped, n) } -const ...
disables unused _sist_text()
@@ -345,6 +345,9 @@ _sist_cask(c3_c* dir_c, u3_noun nun) return key; } +// XX unused, but may be needed for brainwallet +// +#if 0 /* _sist_text(): ask for a name string. */ static u3_noun @@ -378,7 +381,6 @@ _sist_text(c3_c* pom_c) return say; } -#if 0 /* _sist_bask(): ask a yes or no question. */ static u3_noun
make sure channel is set, than start channel test
@@ -3014,12 +3014,25 @@ static struct iwreq pwrq; static int frequency; static int testchannel; +memset(&pwrq, 0, sizeof(pwrq)); +strncpy(pwrq.ifr_name, interfacename, IFNAMSIZ -1); +pwrq.u.freq.e = 0; +pwrq.u.freq.flags = IW_FREQ_FIXED; +res = ioctl(fd_socket, SIOCGIWFREQ, &pwrq); + memset(&pwrq, 0, sizeof(pwrq)); str...
Analysis workflow, use matrix parameters.
@@ -14,17 +14,15 @@ jobs: strategy: matrix: include: - - os: ubuntu-latest - name: GCC on Linux - env: - - CONFIG_OPTS: '--enable-debug --disable-flto' - - MAKE_TEST: 'yes' - - os: ubuntu-latest - name: Clang on Linux, clang-analysis - env: - - CONFIG_OPTS: 'CC=clang --enable-debug --disable-flto' - - MAKE_TEST: 'yes' ...
prov: use new MAC_init arguments in signature legacy code
@@ -117,11 +117,11 @@ static int mac_digest_sign_init(void *vpmacctx, const char *mdname, void *vkey) (char *)mdname, (char *)engine, pmacctx->key->properties, - pmacctx->key->priv_key, - pmacctx->key->priv_key_len)) + NULL, 0)) return 0; - if (!EVP_MAC_init(pmacctx->macctx)) + if (!EVP_MAC_init(pmacctx->macctx, pmacct...
cpu: Add parentheses around assigment in if check
@@ -231,7 +231,7 @@ bool CPUStats::UpdateCoreMhz() { for (size_t i = 0; i < m_cpuData.size(); i++) { std::string path = "/sys/devices/system/cpu/cpu" + std::to_string(i) + "/cpufreq/scaling_cur_freq"; - if (fp = fopen(path.c_str(), "r")){ + if ((fp = fopen(path.c_str(), "r"))){ fscanf(fp, "%s", str); m_cpuData[i].mhz =...
Squashed commit of the following: apps/system/nxplayer: Release buffer before session and release semaphore in nxplayer_setvolume system/nxplayer/nxplayer.c: Remove & for apb->samp reference. It is already a pointer.
@@ -642,7 +642,7 @@ static int nxplayer_readbuffer(FAR struct nxplayer_s *pPlayer, /* Read data into the buffer. */ - apb->nbytes = read(pPlayer->fd, &apb->samp, apb->nmaxbytes); + apb->nbytes = read(pPlayer->fd, apb->samp, apb->nmaxbytes); apb->curbyte = 0; apb->flags = 0; @@ -1131,20 +1131,6 @@ static void *nxplayer_...
Add install of npm before deploying in travis.
@@ -77,6 +77,12 @@ after_script: -n "MetaCall ${TRAVIS_TAG} [${RELEASE_DATE}]" -b "${GIT_HISTORY}" -replace \ $TRAVIS_TAG $ARTIFACTS_PATH/packages/ +# Install NPM for deploy +before_deploy: + - sudo apt-get install curl + - curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - + - sudo apt-get install nodejs ...
Fix IV length caching in EVP encryption code The IV length cache value was being invalidated excessively, causing IV length caching to be ineffective. Related to
@@ -62,13 +62,20 @@ int EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx) ENGINE_finish(ctx->engine); #endif memset(ctx, 0, sizeof(*ctx)); - ctx->iv_len = 0; + ctx->iv_len = -1; return 1; } EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void) { - return OPENSSL_zalloc(sizeof(EVP_CIPHER_CTX)); + EVP_CIPHER_CTX *ctx; + + ctx = OPENSSL_zallo...
fixup! build CHANGE detect libyang version
@@ -200,7 +200,7 @@ find_package(YANG REQUIRED) target_link_libraries(sysrepo ${LIBYANG_LIBRARIES}) include_directories(${LIBYANG_INCLUDE_DIRS}) -find_path(LY_HEADER_PATH "libyang/libyang.h") +find_path(LY_HEADER_PATH "libyang/libyang.h" HINTS ${LIBYANG_INCLUDE_DIR}) file(READ "${LY_HEADER_PATH}/libyang/libyang.h" LY_H...
Add beta5 changelog
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.0.0-beta5] + +### Added + +- Add new Splash screen with an...
dm: virtio-net: apply new mevent API to avoid race issue Teardown callback is provided when mevent_add is called and it is used to free the virtio-net resources. Acked-by: Yin Fengwei
@@ -180,6 +180,7 @@ static int virtio_net_cfgwrite(void *vdev, int offset, int size, uint32_t value); static void virtio_net_neg_features(void *vdev, uint64_t negotiated_features); static void virtio_net_set_status(void *vdev, uint64_t status); +static void virtio_net_teardown(void *param); static struct vhost_net *vho...
travis-ci: TEMPORARY remove lz4 tests on MacOS (broken lz4 package)
@@ -22,7 +22,7 @@ script: - | if [ $TRAVIS_OS_NAME = osx ]; then brew update > /dev/null - brew install openssl oniguruma pcre pcre2 lz4 snappy + brew install openssl oniguruma pcre pcre2 snappy else sudo apt-get install libonig-dev libpcre3-dev libssl-dev zlib1g-dev liblz4-dev libsnappy-dev fi
bootloader: add note about secure download mode for ESP32 target Closes Closes
@@ -892,6 +892,8 @@ menu "Security features" It is also possible to enable secure download mode at runtime by calling esp_efuse_enable_rom_secure_download_mode() + Note: Secure Download mode is not available for ESP32 (includes revisions till ECO3). + config SECURE_INSECURE_ALLOW_DL_MODE bool "UART ROM download mode (E...
Move NDEBUG from add_cxxflags to add_defines
@@ -8,7 +8,8 @@ add_cxflags("/bigobj") if is_mode("release") then add_ldflags("/LTCG", "/OPT:REF") - add_cxflags("/Ot", "/GL", "/Ob2", "/Oi", "/GS-", "/DNDEBUG") + add_cxflags("/Ot", "/GL", "/Ob2", "/Oi", "/GS-") + add_defines("NDEBUG") set_optimize("fastest") end
SOVERSION bump to version 4.2.6
@@ -39,7 +39,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 4) set(SYSREPO_MINOR_SOVERSION 2) -set(SYSREPO_MICRO_SOVERSION 5) +set(SYSREPO_MICRO_SO...
modified led param
@@ -122,6 +122,7 @@ float joint_states_eff[2] = {0.0, 0.0}; #define LED_RXD 1 #define LED_LOW_BATTERY 2 #define LED_ROS_CONNECT 3 +#define LED_WORKING_CHECK 13 /******************************************************************************* * Declaration for Battery @@ -225,7 +226,7 @@ void setup() prev_update_time = m...
Avoid adding envs repeatedly
@@ -90,7 +90,11 @@ function _on_run_target(target) end -- recursively target add env -function _add_target_pkgenvs(target, oldenvs) +function _add_target_pkgenvs(target, oldenvs, targets_added) + if targets_added[target:name()] then + return + end + targets_added[target:name()] = true for name, values in pairs(target:p...
[mod_extforward] simplify code: use light_isxdigit
@@ -425,19 +425,20 @@ static array *extract_forward_array(buffer *pbuffer) { array *result = array_init(); if (!buffer_string_is_empty(pbuffer)) { - char *base, *curr; + const char *base, *curr; /* state variable, 0 means not in string, 1 means in string */ int in_str = 0; for (base = pbuffer->ptr, curr = pbuffer->ptr;...
pbio/serial: drop linux includes These are not used by pbio, only by pbdrv.
// Copyright (c) 2019 Laurens Valk // Copyright (c) 2019 LEGO System A/S -#include <fcntl.h> -#include <errno.h> -#include <sys/ioctl.h> -#include <termios.h> -#include <unistd.h> - #include <pbio/port.h> #include <pbdrv/config.h> #include <pbio/error.h>
travis: do gcov builds on fedora30 We've fixed up gcov for newer GCC.
@@ -17,11 +17,9 @@ make -j${MAKE_J} all make -j${MAKE_J} check (make clean; cd external/gard && CROSS= make -j${MAKE_J}) (cd external/pflash; make -j${MAKE_J}) -# GCOV build disabled for GCC 8.2 -# https://github.com/open-power/skiboot/issues/206 -#make clean -#SKIBOOT_GCOV=1 make -j${MAKE_J} -#SKIBOOT_GCOV=1 make -j${...
Add omp_cpu option to run_baelstream.sh, not run by default - yet
@@ -42,6 +42,7 @@ setaompgpu RUN_OPTIONS=${RUN_OPTIONS:-"omp_default openmp hip"} omp_flags="-O3 -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=$AOMP_GPU -DOMP -DOMP_TARGET_GPU" +omp_cpu_flags="-O3 -fopenmp -DOMP" hip_flags="-O3 --offload-arch=$AOMP_GPU -DHIP -x hip" omp_src="main....
BugID: update jsengine README
NAME := jsengine $(NAME)_MBINS_TYPE := kernel -$(NAME)_VERSION := 1.0.1 +$(NAME)_VERSION := 1.0.1.1 $(NAME)_SUMMARY := an engine for javascript application development $(NAME)_COMPONENTS-y += mbedtls libiot_mqtt ota cjson cli spiffs netmgr
usdt: Use uprobe refcnt if available in usdt C++ API
#include <cstdio> #include <cstring> #include <exception> +#include <fcntl.h> #include <iostream> #include <memory> #include <sstream> +#include <sys/stat.h> +#include <sys/types.h> #include <utility> #include <vector> #include "BPF.h" +namespace { +/* + * Kernels ~4.20 and later support specifying the ref_ctr_offset a...
pybricks.pupdevices.PFMotor: use hue enum This takes less space than reading the hue from the color constants.
@@ -47,10 +47,10 @@ STATIC mp_obj_t pupdevices_PFMotor_make_new(const mp_obj_type_t *type, size_t n_ // Get port color indicator (blue or red) uint16_t hue = pb_type_Color_get_hsv(color_in)->h; - if (hue != pb_Color_BLUE_obj.hsv.h && hue != pb_Color_RED_obj.hsv.h) { + if (hue != PBIO_COLOR_HUE_BLUE && hue != PBIO_COLOR...
[CI] skip profiling in CI
@@ -6,7 +6,7 @@ var Urbit = runner.Urbit; var ERROR = runner.ERROR; var actions = runner.actions -var args = ['-cgPSF', 'zod', '-B', 'brass.pill', 'zod']; +var args = ['-cgSF', 'zod', '-B', 'brass.pill', 'zod']; var urbit = new Urbit(args); // vere hangs (always?) with run in travis-ci with -P
process: fix error in output_warnings when having multiple warnings in tests
@@ -406,11 +406,11 @@ int output_warnings (Key * warningKey) if (!metaWarnings) return 1; /* There are no current warnings */ int nrWarnings = atoi (keyString (metaWarnings)); - char buffer[] = "warnings/#00\0description"; printf ("There are %d warnings\n", nrWarnings + 1); for (int i = 0; i <= nrWarnings; ++i) { + cha...
Init fpga-shells submod in CI
@@ -19,6 +19,7 @@ trap clean EXIT cd $LOCAL_CHIPYARD_DIR ./scripts/init-submodules-no-riscv-tools.sh +./scripts/init-fpga.sh # set stricthostkeychecking to no (must happen before rsync) run "echo \"Ping $SERVER\""
tests/motors: Plot loop time
@@ -69,7 +69,12 @@ def gradient(data, time, smooth=8): def plot_servo_data(time, data, build_dir, subtitle=None): """Plots data for a servo motor.""" - # First column not currently used + # Get loop time. + wall_time = data[:, 1] + wall_time_shifted = numpy.append(2 * wall_time[0] - wall_time[1], wall_time[0:-1]) + loo...
Use path variables: platform nrf52dk
@@ -3,7 +3,7 @@ ifndef CONTIKI endif ### Include the board-specific makefile -PLATFORM_ROOT_DIR = $(ARCH_PATH)/platform/$(TARGET) +PLATFORM_ROOT_DIR = $(CONTIKI_NG_RELOC_PLATFORM_DIR)/$(TARGET) CONTIKI_TARGET_DIRS += . dev config CONTIKI_SOURCEFILES += platform.c leds-arch.c nrf52dk-sensors.c button-sensor.c temperatur...
toml: Basic array writing done
@@ -39,7 +39,6 @@ static char * getRelativeKeyName (const Key * parent, const Key * key); static KeyType getKeyType (Key * key); static const Key * findMetaKey (Key * key, const char * metakeyName); - int tomlWrite (KeySet * keys, Key * rootKey) { Writer * w = createWriter (rootKey, keys); @@ -100,21 +99,25 @@ static i...
Fix: strsadd() will return fail if string length < 2
@@ -288,14 +288,14 @@ int strsadd( char ***strlist, const char *str ) if( str[i] != ' ' ) { continue; } - if( i - 1 > head ) { + if( i > head ) { strncpy( buff, &str[head], i - head ); buff[i - head] = 0; count += strsaddone( strlist, buff ); } head = i + 1; } - if( i - 1 > head ) { + if( i > head ) { strncpy( buff, &s...
error: improved message to add filepath for insufficient permissions
if (errno == EACCES) \ ELEKTRA_SET_RESOURCE_ERRORF ( \ parentKey, \ - "Insufficient permissions to open configuration file for reading. Reason: %s. You might want " \ + "Insufficient permissions to open configuration file %s for reading. Reason: %s. You might want " \ "to retry as root or change access using chmod.", \...
Added missing 'extern' qualifier to tsch_timing_us
@@ -158,7 +158,7 @@ extern uint8_t tsch_current_channel; extern uint8_t tsch_hopping_sequence[TSCH_HOPPING_SEQUENCE_MAX_LEN]; extern struct tsch_asn_divisor_t tsch_hopping_sequence_length; /* TSCH timeslot timing (in micro-second) */ -uint16_t tsch_timing_us[tsch_ts_elements_count]; +extern uint16_t tsch_timing_us[tsch...
ieee802154: Add linkage target library
@@ -7,6 +7,7 @@ idf_component_register( if(CONFIG_IEEE802154_ENABLED) idf_component_get_property(esp_phy_lib esp_phy COMPONENT_LIB) + idf_component_get_property(esp_system_lib esp_system COMPONENT_LIB) if($ENV{IEEE802154_LIB_FROM_INTERNAL_SRC}) idf_component_get_property(ieee802154_lib ieee802154_driver COMPONENT_LIB) ...
hfuzz-cc: move var declaration to for loop, and try to use clang-(++)-7.0 first
@@ -120,6 +120,7 @@ static int execCC(int argc, char** argv) } else { if (isCXX) { execvp("clang++-devel", argv); + execvp("clang++-7.0", argv); execvp("clang++-6.0", argv); execvp("clang++-5.0", argv); execvp("clang++-4.0", argv); @@ -127,6 +128,7 @@ static int execCC(int argc, char** argv) execvp("clang", argv); } el...
Add validation for texture creation;
@@ -99,6 +99,9 @@ Texture* lovrTextureCreate(TextureType type, TextureData** slices, int sliceCoun lovrTextureSetFilter(texture, lovrGraphicsGetDefaultFilter()); lovrTextureSetWrap(texture, (TextureWrap) { .s = wrap, .t = wrap, .r = wrap }); + lovrAssert(type != TEXTURE_CUBE || sliceCount == 6, "6 images are required f...
Fix to update DIMM location correctly when PMTT table is missing.
@@ -307,21 +307,21 @@ GeneratePcdConfInput( pIdentInfo->DimmLocation.AsUint64 = 0; // Update the DIMM location field pPmttModuleInfo = GetDimmModuleByPidFromPmtt(pDimm->pRegionsGoal[Index]->pDimms[Index2]->DimmID, gNvmDimmData->PMEMDev.pPmttHead); - if (pPmttModuleInfo == NULL) { - NVDIMM_ERR("DIMM Module with pid: %d ...
Invert gate on printf attribute Inverted the logic without thinking.
* This module provides debugging functions. */ #if defined(__GNUC__) -#define MBEDTLS_PRINTF_ATTRIBUTE(string_index, first_to_check) -#else #define MBEDTLS_PRINTF_ATTRIBUTE(string_index, first_to_check) \ __attribute__((format (printf, string_index, first_to_check))) +#else +#define MBEDTLS_PRINTF_ATTRIBUTE(string_inde...
Add mcuboot to travis downloads Also clone only depth=1 since we don't need history.
@@ -120,7 +120,8 @@ before_script: - cp -R $HOME/ci/mynewt-nimble-targets targets - $HOME/ci/prepare_test.sh $VM_AMOUNT - mkdir -p repos && pushd repos/ - - git clone https://github.com/apache/mynewt-core apache-mynewt-core + - git clone --depth=1 https://github.com/apache/mynewt-core apache-mynewt-core + - git clone -...
zephyr/shim/src/pwm_hc.c: Format with clang-format BRANCH=none TEST=none
LOG_MODULE_REGISTER(pwm_shim, LOG_LEVEL_ERR); -#define PWM_RAW_TO_PERCENT(v) \ - DIV_ROUND_NEAREST((uint32_t)(v) * 100, UINT16_MAX) +#define PWM_RAW_TO_PERCENT(v) DIV_ROUND_NEAREST((uint32_t)(v)*100, UINT16_MAX) #define PWM_PERCENT_TO_RAW(v) ((uint32_t)(v)*UINT16_MAX / 100) #define HAS_PWM_GENERIC_CHANNEL(compat) \ @@ ...
replace libretro-common 32
NP2_PATH := $(CORE_DIR) -INCFLAGS := -I$(NP2_PATH) \ +INCFLAGS += -I$(NP2_PATH) \ -I$(NP2_PATH)/cbus \ -I$(NP2_PATH)/common \ -I$(NP2_PATH)/diskimage \ @@ -25,7 +25,7 @@ INCFLAGS := -I$(NP2_PATH) \ -I$(NP2_PATH)/sdl2 \ -I$(NP2_PATH)/zlib -SOURCES_C := $(NP2_PATH)/calendar.c \ +SOURCES_C += $(NP2_PATH)/calendar.c \ $(NP...
dispatcher: use separate read/close strategy for UDP connections Prepare for getting source IP for UDP connections. Use recvfrom(2) such that we can extract the sender address. The code doesn't use this information yet.
@@ -134,6 +134,30 @@ sockclose(void *strm) return ret; } +/* udp variant (in order to receive info about sender) */ +struct udp_strm { + int sock; + struct sockaddr saddr; + char *srcaddr[24]; +}; + +static inline ssize_t +udpsockread(void *strm, void *buf, size_t sze) +{ + struct udp_strm *s = (struct udp_strm *)strm;...
update tm1637 update tm1637 in the advance page
@@ -1321,24 +1321,26 @@ function init() { <block type="display_TM1637_init" > <value name="PIN1"> <shadow type="pins_digital"> - <field name="PIN">3</field> + <field name="PIN">5</field> </shadow> </value> <value name="PIN2"> <shadow type="pins_digital"> - <field name="PIN">2</field> + <field name="PIN">4</field> </sha...
updated text and disabled old search on main page
@@ -34,17 +34,6 @@ module.exports = function ($rootScope, $scope, Logger, $state, $anchorScroll, we // // } - this.goSearch = function () { - - Logger.log('Go to search'); - $state.go('main.entries.search'); - - }; - - this.goMySnippets = function () { - $rootScope.entriesSearchString = $rootScope.currentUser.username;...
sysdeps/managarm: Update .proto locations
@@ -4,12 +4,18 @@ pb2frigg = find_program('pb2frigg') proto_gen = generator(protoc, arguments: [ '--plugin=protoc-gen-frigg=' + pb2frigg.path(), '--frigg_out=@BUILD_DIR@', - '--proto_path=@CURRENT_SOURCE_DIR@/../../subprojects/managarm/bragi/proto', + '@EXTRA_ARGS@', '@INPUT@' ], output: '@BASENAME@.frigg_pb.hpp') -fs_...
different saw version
@@ -32,7 +32,7 @@ mkdir -p "$DOWNLOAD_DIR" cd "$DOWNLOAD_DIR" #download saw binaries -curl --retry 3 https://s3-us-west-2.amazonaws.com/s2n-public-test-dependencies/saw-0.2-2018-01-21-Ubuntu14.04-64.tar.gz --output saw.tar.gz; +curl --retry 3 https://s3-us-west-2.amazonaws.com/s2n-public-test-dependencies/saw-0.2-2017-...
complete options
@@ -121,13 +121,15 @@ function _complete_option_kv_v(options, current, completing, name, value) end -- match values starts with value first + local found_candidates = {} for _, v in ipairs(_find_candidates(values, value)) do if no_key then - _print_candidate(true, "%s", v) + table.insert(found_candidates, { value = v, ...
Added sin,cos,tan in math package
@@ -29,9 +29,11 @@ assert(Math.sqrt(25) == 5); assert(Math.sqrt(100) == 10); assert(Math.sqrt(20) == 4.47213595499958); assert(Math.sqrt(100_00) == 1_00); -assert(Math.sin( 1.5707963268) == 1); +assert(Math.sin(1) > 0.84); +assert(Math.sin(1) < 0.845); assert(Math.cos(0) == 1); -assert(Math.tan(0.7853981634) == 1); +as...
vlib: fix memory leak in load_one_plugin Type: fix Fixes:
@@ -194,6 +194,8 @@ load_one_plugin (plugin_main_t * pm, plugin_info_t * pi, int from_early_init) reread_reg = 0; goto process_reg; } + else + clib_error_free (error); error = elf_get_section_by_name (&em, ".vlib_plugin_registration", &section);
fix jet discrepancies in ++fond
[(fork p.q.p.p.hax p.q.p.p.yor ~) q.q.p.p.hax] ?> ?=($& -.yor) ?> =(p.q.p.hax p.q.p.yor) - :^ %& - (join p.p.hax p.p.yor) - p.q.p.hax ?: &(?=($& -.q.q.p.hax) ?=($& -.q.q.p.yor)) + :^ %& (join p.p.hax p.p.yor) p.q.p.hax [%& (fork p.q.q.p.hax p.q.q.p.yor ~)] ?> &(?=($| -.q.q.p.hax) ?=($| -.q.q.p.yor)) ?> =(p.q.q.p.hax p....
Add missing WMI provider tab settings from commit
@@ -231,7 +231,9 @@ VOID PhAddDefaultSettings( PhpAddIntegerSetting(L"TreeListEnableHeaderTotals", L"1"); PhpAddIntegerSetting(L"UpdateInterval", L"3e8"); // 1000ms PhpAddIntegerSetting(L"WmiProviderEnableHiddenMenu", L"0"); - PhpAddStringSetting(L"WmiProviderListViewColumns", L""); + PhpAddStringSetting(L"WmiProviderT...
check of empty input size is not required
@@ -761,11 +761,9 @@ void reqread_on_read(h2o_socket_t *sock, const char *err) static void close_idle_connection(h2o_conn_t *_conn) { struct st_h2o_http1_conn_t *conn = (void *)_conn; - if (conn->sock->input->size == 0) { conn->req.http1_is_persistent = 0; close_connection(conn, 1); } -} static void on_timeout(struct s...
replace allow by support on frequency scan
@@ -7748,7 +7748,7 @@ for(c = 2412; c <= 2484; c++) } else { - fprintf(stderr, "driver doesn't allow frequency scan\n"); + fprintf(stderr, "driver doesn't support frequency scan\n"); continue; } memset(&pwrq, 0, sizeof(pwrq)); @@ -7795,7 +7795,7 @@ for(c = 5180; c <= 5905; c++) } else { - fprintf(stderr, "driver doesn'...
fix rounded-ending arc
@@ -243,8 +243,8 @@ static lv_design_res_t lv_arc_design(lv_obj_t * arc, const lv_area_t * clip_area /*Draw circle on the ends if enabled */ if(style->line.rounded) { lv_coord_t thick_half = style->line.width / 2; - lv_coord_t cir_x = ((r - thick_half) * lv_trigo_sin(ext->angle_start) >> LV_TRIGO_SHIFT); - lv_coord_t c...
fix my confused port numbers
@@ -17,27 +17,26 @@ To see the TLS-related environment variables, run the command: ldscope --help configuration | grep TLS ``` - ## Using TLS in Cribl.Cloud AppScope uses TLS by default to communicate with LogStream in Cribl.Cloud. LogStream has an AppScope Source ready to use out-of-the-box. Within Cribl.Cloud, a fron...
Fix package script.
@@ -38,14 +38,7 @@ find "${MACOSX_X86_64}" -name '*.nupkg' -print0 | \ xargs -0 -I{} unzip -d "${NUPKG_TMP_DIR}" -o {} find "${LINUX_X86_64}" -name '*.nupkg' -print0 | \ xargs -0 -I{} unzip -d "${NUPKG_TMP_DIR}" -o {} -# Remove 'lib' prefix from the native library of the Windows DLL. -find "${SCRIPT_DIR}/nuget/runtimes...
[catboost] Add eval_metric docs Note: mandatory check (NEED_CHECK) was skipped
@@ -63,6 +63,34 @@ def create_cd( def eval_metric(label, approx, metric, weight=None, group_id=None, thread_count=-1): + """ + Evaluate metrics with raw approxes and labels. + + Parameters + ---------- + label : list or numpy.arrays or pandas.DataFrame or pandas.Series + Object labels. + + approx : list or numpy.arrays...
Trembyle: Adjust fan speeds and temps Reduce fan speeds and increase temperature limits. BRANCH=none TEST=check fan speed
@@ -329,9 +329,9 @@ const struct fan_conf fan_conf_0 = { .enable_gpio = -1, }; const struct fan_rpm fan_rpm_0 = { - .rpm_min = 3100, - .rpm_start = 3100, - .rpm_max = 6900, + .rpm_min = 3000, + .rpm_start = 3000, + .rpm_max = 4900, }; const struct fan_t fans[] = { [FAN_CH_0] = { @@ -343,26 +343,26 @@ BUILD_ASSERT(ARRAY...
Ensure that we performed the embedding before replying
@@ -133,6 +133,7 @@ void Application::onMessage(const clap::RemoteChannel::Message &msg) { #ifdef Q_OS_LINUX hostWindow_.reset(QWindow::fromWinId(rq.window)); quickView_->setParent(hostWindow_.get()); + sync(); rp.succeed = true; #endif
LICENSE: Update copyright year.
The MIT License (MIT) Copyright (c) 2013-2020 Damien P. George -Copyright (c) 2014-2019 Paul Sokolovsky +Copyright (c) 2014-2021 Paul Sokolovsky Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
prevent overlay from becoming tiled
@@ -4766,7 +4766,7 @@ applysize(Client *c) { void togglefloating(const Arg *arg) { - if (!selmon->sel) + if (!selmon->sel || selmon->sel == selmon->overlay) return; if (selmon->sel->isfullscreen && !selmon->sel->isfakefullscreen) /* no support for fullscreen windows */ return;
Print test suite logs in case of failure.
@@ -34,7 +34,8 @@ jobs: run: make clean && make - name: Run tests run: make check - - name: Show tests results + - name: Print test logs + if: ${{ failure() }} run: cat test-suite.log mingw-build:
tidy JSON output
@@ -404,7 +404,7 @@ def main(): for i, event in enumerate(source_events): handler = QLOG_EVENT_HANDLERS.get(event["type"]) if handler: - print(json.dumps(handler(source_events, i))) + print(json.dumps(handler(source_events, i), separators=(',', ':'))) if __name__ == "__main__": main()
Avoid using undefined value in generate_stateless_cookie_callback
@@ -823,6 +823,7 @@ int generate_cookie_callback(SSL *ssl, unsigned char *cookie, size_t temp = 0; int res = generate_stateless_cookie_callback(ssl, cookie, &temp); + if (res != 0) *cookie_len = (unsigned int)temp; return res; }
Fixed a warning that could appear when starting the plugin.
@@ -1112,6 +1112,8 @@ getHarsPath(std::string &harsPath) { char *hHarsLocation = getenv("HOUDINI_HARS_LOCATION"); const MString path = MGlobal::executeCommandStringResult("getenv PATH;"); + + MGlobal::executeCommand("source \"houdiniEngineUtils.mel\";"); const MString hfsPath = MGlobal::executeCommandStringResult("houd...
updated dcp.1.md
@@ -6,8 +6,7 @@ dcp - distributed file copy program # SYNOPSIS -dcp [cCdfhpRrUv] [--] source_file target_file -dcp [cCdfhpRrUv] [--] source_file ... target_directory +**dcp [OPTION] SOURCE DEST** # DESCRIPTION @@ -20,16 +19,6 @@ termination. # OPTIONS --c, \--conditional -: When copying a source directory to a destinat...
Build: Simplify code for Haskell find module
@@ -48,27 +48,17 @@ mark_as_advanced (GHC_EXECUTABLE if (NOT GHC_EXECUTABLE) set (HASKELL_NOTFOUND_INFO "GHC not found") -endif (NOT GHC_EXECUTABLE) - -if (NOT CABAL_EXECUTABLE) +elseif (NOT CABAL_EXECUTABLE) set (HASKELL_NOTFOUND_INFO "cabal not found") -endif (NOT CABAL_EXECUTABLE) - -if (NOT ALEX_EXECUTABLE) +elseif...
fix: the generated function types for callbacks
@@ -650,11 +650,11 @@ static void gen_wrapper(FILE *fp, struct jc_struct *s) " %s_list_free((struct %s**)p);\n" "}\n", t, t, t); - fprintf(fp, "void %s_list_from_json_v(char *str, size_t len, void ***p) {\n" + fprintf(fp, "void %s_list_from_json_v(char *str, size_t len, void *p) {\n" " %s_list_from_json(str, len, (stru...
GRIB2: Prevent error when setting localDefinitionNumber
@@ -333,8 +333,8 @@ static int pack_long(grib_accessor* a, const long* val, size_t* len) break; default: - grib_context_log(a->context, GRIB_LOG_ERROR, "Invalid localDefinitionNumber %d", localDefinitionNumber); - return GRIB_ENCODING_ERROR; + grib_context_log(a->context, GRIB_LOG_WARNING, "Set localDefinitionNumber: k...
check the return value of OSSL_PARAM_BLD_new in dsa_kmgmt.c:195
@@ -210,12 +210,16 @@ static int dsa_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, void *cbarg) { DSA *dsa = keydata; - OSSL_PARAM_BLD *tmpl = OSSL_PARAM_BLD_new(); + OSSL_PARAM_BLD *tmpl; OSSL_PARAM *params = NULL; int ok = 1; if (!ossl_prov_is_running() || dsa == NULL) - goto err; + return 0; + + tmpl...
SOVERSION bump to version 4.3.3
@@ -39,7 +39,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 4) set(SYSREPO_MINOR_SOVERSION 3) -set(SYSREPO_MICRO_SOVERSION 2) +set(SYSREPO_MICRO_SO...
replay BUGFIX timeout units Fixes
@@ -374,7 +374,7 @@ sr_notif_write(const struct lys_module *ly_mod, sr_mod_t *shm_mod, char *notif_l SR_CHECK_INT_GOTO(notif_lyb_len == -1, err_info, cleanup); /* REPLAY WRITE LOCK */ - if ((err_info = sr_rwlock(&shm_mod->replay_lock, SR_MOD_LOCK_TIMEOUT, SR_LOCK_WRITE, __func__))) { + if ((err_info = sr_rwlock(&shm_mo...
grid: fix loop caused by useEffect in tilegrid
@@ -46,11 +46,7 @@ export const TileGrid = ({ menu }: TileGridProps) => { } else if (order.length > chargeKeys.length && chargeKeys.length !== 0) { useSettingsState .getState() - .putEntry( - 'tiles', - 'order', - uniq(order.filter((key) => !(key in charges)).concat(chargeKeys)) - ); + .putEntry('tiles', 'order', uniq(...
Solve bugs from node port.
@@ -214,23 +214,6 @@ mod.prototype.require = function (name) { // /* Continue loading */ // } - /* Try to load it with NodeJS first */ - try { - return node_require.apply(this, [ name ]); - } catch (e) { - if (e.code !== 'MODULE_NOT_FOUND') { - throw e; - } - } - - try { - return node_require.apply(this, [ require.reso...
null-terminates (and strips port from) Host header
@@ -1465,12 +1465,19 @@ _proxy_parse_host(const uv_buf_t* buf_u, c3_c** hot_c) if ( 0 != (tok_t = h2o_lookup_token(hed_u[i].name, hed_u[i].name_len)) ) { if ( tok_t->is_init_header_special && H2O_TOKEN_HOST == tok_t ) { + c3_c* val_c; + c3_c* por_c; - *hot_c = c3_malloc(1 + hed_u[i].value_len); - // XX cores??? - // *h...
libhfuzz: avoid bus locking in instrumentLimitEvery()
@@ -173,8 +173,8 @@ __attribute__((weak)) size_t instrumentReserveGuard(size_t cnt) { /* Used to limit certain expensive actions, like adding values to dictionaries */ static inline bool instrumentLimitEvery(uint64_t step) { - static uint64_t staticCnt = 0; - if ((ATOMIC_POST_INC(staticCnt) % step) == 0) { + static __t...
Fix a copy&paste error in the TLSv1.3 server side PSK documentation The introductory paragraph for the TLSv1.3 server side PSK documentation is a copy & paste of the client side documentation which has not been updated with the server side equivalent information.
@@ -39,9 +39,9 @@ SSL_set_psk_find_session_callback =head1 DESCRIPTION -A client application wishing to use TLSv1.3 PSKs should set a callback -using either SSL_CTX_set_psk_use_session_callback() or -SSL_set_psk_use_session_callback() as appropriate. +A server application wishing to use TLSv1.3 PSKs should set a callba...
Test that we ignore a bad record version in a plaintext TLSv1.3 record The RFC requires us to ignore this field in plaintext records - so even if it is set incorrectly we should tolerate it.
@@ -44,7 +44,7 @@ my $inject_recs_num = 1; $proxy->serverflags("-tls1_2"); $proxy->clientflags("-no_tls1_3"); $proxy->start() or plan skip_all => "Unable to start up Proxy for tests"; -plan tests => 20; +plan tests => 21; ok($fatal_alert, "Out of context empty records test"); #Test 2: Injecting in context empty records...
tests: runtime: out_splunk: add test for 'Splunk_Send_Raw'
@@ -32,11 +32,76 @@ static void cb_check_basic(void *ctx, int ffd, char *index_line = "\"event\":{\"key\":\"value\"}"; p = strstr(out_js, index_line); - TEST_CHECK(p != NULL); + if (!TEST_CHECK(p != NULL)) { + TEST_MSG("Given:%s", out_js); + } + + flb_sds_destroy(out_js); +} + +static void cb_check_send_raw(void *ctx, ...
Delete duplicates in device_descriptors table Issue
@@ -123,15 +123,19 @@ void DeRestPluginPrivate::cleanUpDb() "DELETE from sensors " " WHERE modelid like 'RWL02%' " " AND type = 'ZHAPresence'", - NULL + + // delete duplicates in device_descriptors + "DELETE FROM device_descriptors WHERE rowid NOT IN" + " (SELECT max(rowid) FROM device_descriptors GROUP BY device_id,ty...
hv: virq: fix wrong coding style hypervisor/arch/x86/virq.c missed a new line at: if (bitmap_test_and_clear_lock(...)) { vioapic_update_tmr(vcpu); Acked-by: Eddie Dong
@@ -402,7 +402,8 @@ int32_t acrn_handle_pending_request(struct acrn_vcpu *vcpu) flush_vpid_single(arch->vpid); } - if (bitmap_test_and_clear_lock(ACRN_REQUEST_TMR_UPDATE, pending_req_bits)) { vioapic_update_tmr(vcpu); + if (bitmap_test_and_clear_lock(ACRN_REQUEST_TMR_UPDATE, pending_req_bits)) { + vioapic_update_tmr(vc...
Same call params as the game
@@ -230,7 +230,7 @@ struct ResourcesList char workingMemory[0x80000]; auto size = OodleLZ_Decompress(content.data() + headerSize, content.size() - headerSize, buffer.data(), - buffer.size(), 0, 0, 0, 0, 0, 0, 0, workingMemory, std::size(workingMemory), 0); + buffer.size(), 1, 1, 0, 0, 0, 0, 0, workingMemory, std::size(...
Fix PhGetCapabilitySidName assert
@@ -593,12 +593,12 @@ PPH_STRING PhGetCapabilitySidName( if (RtlEqualSid(entry->CapabilitySid, CapabilitySid)) { - return entry->Name; + return PhReferenceObject(entry->Name); } if (RtlEqualSid(entry->CapabilityGroupSid, CapabilitySid)) { - return entry->Name; + return PhReferenceObject(entry->Name); } }
jni: fix memleak
@@ -321,8 +321,14 @@ int elektraJniClose (Plugin * handle, Key * errorKey) { Data * data = elektraPluginGetData (handle); - if (!data || data->module == 1) + if (!data) + { + return 0; + } + + if (data->module == 1) { + elektraFree (data); return 0; }
diff BUGFIX handle first array allocation correctly
@@ -370,8 +370,7 @@ lyd_diff_userord_attrs(const struct lyd_node *first, const struct lyd_node *seco */ if (*op == LYD_DIFF_OP_CREATE) { /* insert the instance */ - LY_ARRAY_RESIZE_ERR_RET(schema->module->ctx, userord_item->inst, LY_ARRAY_COUNT(userord_item->inst) + 1, - ; , LY_EMEM); + LY_ARRAY_CREATE_RET(schema->modu...
tools/metrics.py: Add option to diff to error if delta above threshold. Useful for things like CI where the size check is automated.
@@ -121,13 +121,20 @@ def read_build_log(filename): def do_diff(args): """Compute the difference between firmware sizes.""" + # Parse arguments. + error_threshold = None + if len(args) >= 2 and args[0] == "--error-threshold": + args.pop(0) + error_threshold = int(args.pop(0)) + if len(args) != 2: - print("usage: %s dif...