message
stringlengths
6
474
diff
stringlengths
8
5.22k
fix single doc multiclass
@@ -420,10 +420,9 @@ inline void CalcTreesSingleDocImpl( if (IsSingleClassModel) { // single class model result += treeLeafPtr[index]; } else { // mutliclass model - auto docResultPtr = &results[model.ObliviousTrees.ApproxDimension]; auto leafValuePtr = treeLeafPtr + index * model.ObliviousTrees.ApproxDimension; for (i...
Drop tasks to unknown groups
@@ -6241,6 +6241,12 @@ void DeRestPluginPrivate::processTasks() DBG_Printf(DBG_INFO, "delayed group sending\n"); } } + else + { + DBG_Printf(DBG_INFO, "drop request to unknown group\n"); + tasks.erase(i); + return; + } } // unicast/broadcast tasks else
Testing: remove unused BUFR files
@@ -39,7 +39,6 @@ bufr_files_zero_leaks=" aeolus_wmo_26.bufr delayed_repl_01.bufr goes16_nm.bufr - good_j2eo.bufr israel_observations_2017041010.bufr mhen_55.bufr modw_87.bufr @@ -173,10 +172,7 @@ bufr_files_known_leaks=" s4kn_165.bufr sb19_206.bufr sbu8_206.bufr - ship_11.bufr - ship_12.bufr ship_13.bufr - ship_14.buf...
Update README.md Add POWER 8 to the list of additional architectures.
@@ -106,6 +106,9 @@ Please read GotoBLAS_01Readme.txt - **ARMV8**: Experimental - **ARM Cortex-A57**: Experimental +#### PPC/PPC64 +- **POWER8**: Optmized Level-3 BLAS and some Level-1, only with USE_OPENMP=1 + #### IBM zEnterprise System: - **Z13**: Optimized Level-3 BLAS and Level-1,2 (double precision)
groups: add invite count to tile
@@ -8,13 +8,36 @@ export default class ContactTile extends Component { render() { const { props } = this; + let data = _.get(props.data, "invites", false); + let inviteNum = 0; + + if (data && "/contacts" in data) { + inviteNum = Object.keys(data["/contacts"]).length; + } + + let numNotificationsElem = + inviteNum > 0 ...
opae-sdk: fix fpaginfo image info typo
@@ -648,7 +648,7 @@ fpga_result fpga_image_info(fpga_token token) const char *image_info_label[IMAGE_INFO_COUNT] = { "User1 Image Info", "User2 Image Info", - "User2 ImFactory Info" + "Factory Image Info" }; fpga_object fpga_object;
Peek: add function pushKeyValuePairs
@@ -85,6 +85,13 @@ pushRealFloat f = then pushnumber (realToFrac f :: Lua.Number) else pushString (showGFloat Nothing f "") +-- | Push list of pairs as default key-value Lua table. +pushKeyValuePairs :: Pusher a -> Pusher b -> Pusher [(a,b)] +pushKeyValuePairs pushKey pushValue m = do + let addValue (k, v) = pushKey k ...
OpenCanopy: Remove pointless clipping code
@@ -76,10 +76,8 @@ InternalAppleEventNotification ( // NewX = Information->PointerPosition.Horizontal; - if (NewX == 0 || (UINT32) NewX == Context->MaxX) { - Context->CurState.X = (UINT32) NewX; - } else { - NewCoord = (INT64) Context->CurState.X + 2 * ((INT64) NewX - Context->RawX); + + NewCoord = (INT64) Context->Cur...
Tweak timing of enabling transport parameters
@@ -2575,6 +2575,8 @@ static size_t conn_required_num_new_connection_id(ngtcp2_conn *conn) { return 0; } + assert(conn->remote.transport_params.active_connection_id_limit); + /* len includes retired CID. We don't provide extra CID if doing so exceeds NGTCP2_MAX_SCID_POOL_SIZE. */ @@ -9123,6 +9125,12 @@ int ngtcp2_conn_...
SVE-enabled ARM64 targets in DYNAMIC_ARCH require a recent compiler
@@ -44,7 +44,10 @@ endif () if (DYNAMIC_ARCH) if (ARM64) - set(DYNAMIC_CORE ARMV8 CORTEXA53 CORTEXA55 CORTEXA57 CORTEXA72 CORTEXA73 FALKOR THUNDERX THUNDERX2T99 TSV110 EMAG8180 NEOVERSEN1 NEOVERSEV1 NEOVERSEN2 THUNDERX3T110) + set(DYNAMIC_CORE ARMV8 CORTEXA53 CORTEXA55 CORTEXA57 CORTEXA72 CORTEXA73 FALKOR THUNDERX THUN...
Fixes enable hash cap memory leak
@@ -281,6 +281,7 @@ ACVP_RESULT acvp_free_test_session(ACVP_CTX *ctx) cap_entry = cap_e2; break; case ACVP_HASH_TYPE: + free(cap_entry->cap.hash_cap); free(cap_entry); cap_entry = cap_e2; break; @@ -294,6 +295,7 @@ ACVP_RESULT acvp_free_test_session(ACVP_CTX *ctx) acvp_free_prereqs(cap_entry); } acvp_cap_free_sl(cap_en...
flash_ec: Always define ACTIVE_DEVICE. This will be used in CL:2441395. BRANCH=none TEST=With servo_v4 Type-A + servo_micro + ampton DUT: $ util/flash_ec --board=ampton --verbose --read="$HOME"/ampton-ec-read0.bin
@@ -399,12 +399,18 @@ case "${CHIP}" in esac SERVO_TYPE="$(dut_control_get servo_type || :)" -if [[ ${SERVO_TYPE} =~ servo_v4_with_.*_and_.* ]] ; then + +if [[ "${SERVO_TYPE}" =~ ^servo_v4_with_.*$ ]]; then + ACTIVE_DEVICE="$(dut_control_get active_v4_device)" +else + ACTIVE_DEVICE="${SERVO_TYPE}" +fi + +if [[ "${SERVO...
peview: Fix Microsoft reparse tag check
@@ -107,7 +107,10 @@ PPH_STRING PvResolveReparsePointTarget( reparseLength ))) { - if (reparseBuffer->ReparseTag == IO_REPARSE_TAG_APPEXECLINK) + if ( + IsReparseTagMicrosoft(reparseBuffer->ReparseTag) && + reparseBuffer->ReparseTag == IO_REPARSE_TAG_APPEXECLINK + ) { typedef struct _AppExecLinkReparseBuffer {
drivers/mbox: Don't reference the nonexistent CONFIG_MBOX
#ifndef __INCLUDE_NUTTX_MBOX_MBOX_H #define __INCLUDE_NUTTX_MBOX_MBOX_H -#ifdef CONFIG_MBOX - /**************************************************************************** * Included Files ****************************************************************************/ -#include <nuttx/config.h> +#include <nuttx/compiler....
arping: coverity woe on COPY_PASTE_ERROR coverity is trying to outsmart human by guessing on COPY_PASTE_ERROR. Have it your way. Type: fix
@@ -178,7 +178,7 @@ VLIB_NODE_FN (arping_input_node) aif1->recv.from4.ip4.as_u32 = arp1->ip4_over_ethernet[0].ip4.as_u32; clib_memcpy_fast (&aif1->recv.from4.mac, - &arp0->ip4_over_ethernet[0].mac, 6); + &arp1->ip4_over_ethernet[0].mac, 6); aif1->reply_count++; } }
SOVERSION bump to version 1.1.5
@@ -54,7 +54,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION # with backward compatible change and micro version is connected with any internal change of the library. set(LIBNETCONF2_MAJOR_SOVERSION 1) set(LIBNETCONF2_MINOR_SOVERSION 1) -set(LIBNETCONF2_MICRO_SOVERSION 4) +set(LIBN...
ViewProfile: restore nickname calmengine
@@ -18,10 +18,14 @@ import {GroupSummary} from "~/views/landscape/components/GroupSummary"; import {MetadataUpdatePreview} from "~/types"; import {GroupLink} from "~/views/components/GroupLink"; import {lengthOrder} from "~/logic/lib/util"; +import useLocalState from "~/logic/state/local"; export function ViewProfile(p...
naive: double-spawn is no-op, not crash
=/ marbud-sproxy [marbud-own %set-spawn-proxy (addr %marbud-skey)] =/ lt-spawn-0 [marbud-own %spawn ~linnup-torsyx (addr %lt-key-0)] =/ lt-spawn-1 [marbud-spn %spawn ~linnup-torsyx (addr %lt-key-1)] - :: - %- expect-fail - |. =| =^state:naive =^ f state (init-marbud state) =^ f state (n state %bat q:(gen-tx 0 marbud-sp...
VERSION bump to version 2.0.191
@@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 190) +set(LIBYANG_MICRO_VERSION 191) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}...
gpperfmon: remove unused variable to quiet warnings
@@ -1509,7 +1509,7 @@ apr_status_t gpdb_check_partitions(mmon_options_t *opt) { // health is not a full table and needs to be added to the list - apr_status_t r1, r2, r3, r4; + apr_status_t r1, r3, r4; // open a connection PGconn* conn = NULL;
chip/mt_scp: enable mt8195 cache on shared DRAM BRANCH=none TEST=make BOARD=cherry_scp
@@ -23,7 +23,11 @@ struct mpu_entry mpu_entries[NR_MPU_ENTRIES] = { #endif /* For SCP sys */ {0x70000000, 0x80000000, MPU_ATTR_W | MPU_ATTR_R}, +#ifdef CHIP_VARIANT_MT8195 + {0x10000000, 0x11400000, MPU_ATTR_C | MPU_ATTR_W | MPU_ATTR_R}, +#else {0x10000000, 0x11400000, MPU_ATTR_W | MPU_ATTR_R}, +#endif }; #include "gpi...
corrected travis file
@@ -36,7 +36,7 @@ script: - make coverage after_success: - # - if [ "$TRAVIS_BRANCH" = "master" ]; then source .ci/build-docs.sh; fi + - if [ "$TRAVIS_BRANCH" = "master" ]; then source .ci/build-docs.sh; fi - if [ "$TRAVIS_BRANCH" = "master" ]; then bash <(curl -s https://codecov.io/bash); fi - - source .ci/build-docs....
Docs: Clarify Vault config setting documentation
@@ -4066,10 +4066,11 @@ rm vault.pub can be found in the \href{https://habr.com/post/273497/}{Taming UEFI SecureBoot} paper (in Russian). - \emph{Note 2}: \texttt{vault.plist} and \texttt{vault.sig} are used regardless of - this option when \texttt{vault.plist} is present or a public key is embedded into - \texttt{Open...
Add MIDI CC to opers guide message
@@ -2160,7 +2160,7 @@ void push_opers_guide_msg(void) { {'#', "comment", "Halts line."}, // {'*', "self", "Sends ORCA command."}, {':', "midi", "Sends MIDI note."}, - // {'!', "cc", "Sends MIDI control change."}, + {'!', "cc", "Sends MIDI control change."}, // {'?', "pb", "Sends MIDI pitch bend."}, // {'%', "mono", "Se...
doc: improved next_release documentation for the path plugin
@@ -105,7 +105,15 @@ The following section lists news about the [modules](https://www.libelektra.org/ ### path -Enhanced the plugin to also check for concrete file or directory permissions such as `rwx`. *(Michael Zronek)* +Enhanced the plugin to also check for concrete file or directory permissions such as `rwx`. +It ...
Fix the name of basic-build-test.sh within the file
#!/bin/sh -# basic-build-tests.sh +# basic-build-test.sh # # Copyright The Mbed TLS Contributors # SPDX-License-Identifier: Apache-2.0 # # This script has been written to be generic and should work on any shell. # -# Usage: basic-build-tests.sh +# Usage: basic-build-test.sh # # Abort on errors (and uninitiliased variab...
Fix speed gauge
@@ -140,7 +140,7 @@ while True: elif mode == SPEED: speed += count speed = min(100, max(0, speed)) - speed_gauge(brightness, 100) + speed_gauge(speed, 100) sw_pressed = user_sw.read() a_pressed = button_a.read()
libflash/mbox-flash: only wait for MBOX_DEFAULT_POLL_MS if busy This makes the mbox unit test run 300x quicker and seems to shave about 6 seconds from boot time on Witherspoon.
@@ -348,8 +348,9 @@ static int wait_for_bmc(struct mbox_flash_data *mbox_flash, unsigned int timeout * Both functions are important. * Well time_wait_ms() relaxes the spin... so... its nice */ - time_wait_ms(MBOX_DEFAULT_POLL_MS); check_timers(false); + if (mbox_flash->busy) + time_wait_ms(MBOX_DEFAULT_POLL_MS); asm vo...
porting/linux: Fix ble_npl_time_delay implementation Previous implementation was inaccurate due to use of sleep() function which uses seconds as a time parameter.
@@ -68,5 +68,13 @@ uint32_t ble_npl_time_ticks_to_ms32(ble_npl_time_t ticks) void ble_npl_time_delay(ble_npl_time_t ticks) { - sleep(ble_npl_time_ticks_to_ms32(ticks)/1000); + struct timespec sleep_time; + long ms = ble_npl_time_ticks_to_ms32(ticks); + uint32_t s = ms / 1000; + + ms -= s * 1000; + sleep_time.tv_sec = s...
Add CPUIDs for Alder Lake and other recent Intel cpus
@@ -624,7 +624,7 @@ static gotoblas_t *get_coretype(void){ return &gotoblas_NEHALEM; } } - if (model == 10) { + if (model == 10 || model == 12){ // Ice Lake SP if(support_avx512_bf16()) return &gotoblas_COOPERLAKE; @@ -644,7 +644,7 @@ static gotoblas_t *get_coretype(void){ case 7: if (model == 10) // Goldmont Plus retu...
board/poppy/base_detect_poppy.c: Format with clang-format BRANCH=none TEST=none
@@ -101,7 +101,6 @@ static void base_detect_change(enum base_status status) acpi_dptf_set_profile_num(DPTF_PROFILE_BASE_ATTACHED); else acpi_dptf_set_profile_num(DPTF_PROFILE_BASE_DETACHED); - } /* Measure detection pin pulse duration (used to wake AP from deep S3). */ @@ -110,8 +109,8 @@ static uint32_t pulse_width; s...
conn_get_loss_time_and_pktns: Do not consider num_pto_eliciting
@@ -12603,8 +12603,7 @@ static void conn_get_loss_time_and_pktns(ngtcp2_conn *conn, size_t i; for (i = 0; i < sizeof(ns) / sizeof(ns[0]); ++i) { - if (ns[i] == NULL || ns[i]->rtb.num_pto_eliciting == 0 || - loss_time[i] >= earliest_loss_time) { + if (ns[i] == NULL || loss_time[i] >= earliest_loss_time) { continue; }
Remove session checks from SSL_clear() We now allow a different protocol version when reusing a session so we can unconditionally reset the SSL_METHOD if it has changed.
@@ -566,12 +566,9 @@ int SSL_clear(SSL *s) /* * Check to see if we were changed into a different method, if so, revert - * back. We always do this in TLSv1.3. Below that we only do it if we are - * not doing session-id reuse. + * back. */ - if (s->method != s->ctx->method - && (SSL_IS_TLS13(s) - || (!ossl_statem_get_in...
BugID:18712794:xr871 codesize overlap bugfix
@@ -17,6 +17,8 @@ GLOBAL_DEFINES += CONFIG_AOS_FATFS_SUPPORT_MMC GLOBAL_DEFINES += CONFIG_AOS_FATFS_SUPPORT GLOBAL_DEFINES += RHINO_CONFIG_TICKS_PER_SECOND=1000 +GLOBAL_DEFINES += DEBUG_CONFIG_ERRDUMP=0 + $(NAME)_SOURCES += config/k_config.c \ config/partition_conf.c \ drivers/oled.c \
software keyboard fix
@@ -757,7 +757,11 @@ static bool isKbdVisible() SDL_Rect rect; calcTextureRect(&rect); - return h - rect.h - KBD_ROWS * w / KBD_COLS >= 0 && !SDL_IsTextInputActive(); + return h - rect.h - KBD_ROWS * w / KBD_COLS >= 0 +#if defined(__TIC_ANDROID__) + && !SDL_IsTextInputActive() +#endif + ; } static const tic_key KbdLayo...
fix din port in shift_register.v
@@ -8,7 +8,7 @@ module shift_register # ( input wire aclk, - inout wire [DATA_WIDTH-1:0] din, + input wire [DATA_WIDTH-1:0] din, output wire [DATA_WIDTH-1:0] dout );
Update ethereum_pool.json Minor example config typo for ethereum_pool.json
"perPoolLogFile": false }, "banning": { - "manager": "integrated", + "manager": "Integrated", "banOnJunkReceive": false, "banOnInvalidShares": false },
in_systemd: do extra validation on sql query result
@@ -115,6 +115,9 @@ char *flb_systemd_db_get_cursor(struct flb_systemd_config *ctx) memset(&qs, '\0', sizeof(qs)); ret = flb_sqldb_query(ctx->db, SQL_GET_CURSOR, cb_cursor_check, &qs); + if (ret != FLB_OK) { + return NULL; + } if (qs.rows > 0) { /* cursor must be freed by the caller */
le_tc/sched: Modify wrong param for pid in waitpid Line 399 in tc_sched.c is for checking wrong pid, so change to -1 which is not valid for pid
@@ -396,8 +396,7 @@ static void tc_sched_waitpid(void) int status; /* Check for The TCB corresponding to this PID is not our child. */ - - ret_chk = waitpid(0, &status, 0); + ret_chk = waitpid(-1, &status, 0); TC_ASSERT_EQ("waitpid", ret_chk, ERROR); TC_ASSERT_EQ("waitpid", errno, ECHILD);
build: Raise timeout gen-html for coverage generation needs more than 2 minutes to finish running and does not generate any logging output.
@@ -445,7 +445,7 @@ def dockerize(test_name, image, cl) { return [(test_name): { stage(test_name) { node(docker_node_label) { - timeout(activity: true, time: 2, unit: 'MINUTES') { + timeout(activity: true, time: 5, unit: 'MINUTES') { def cpu_count = cpuCount() withEnv(["MAKEFLAGS='-j${cpu_count+2} -l${cpu_count*2}'", "...
Release: Fix old news entry
@@ -139,8 +139,6 @@ We updated the behavior, since otherwise the plugin will report memory leaks at ### Yan LR -A new plugin parsing YAML files using Yan LR. - - The plugin does not modify the (original) parent key. As a consequence, setting values at the root of a mountpoint: ```sh
Fix location of test log.
@@ -64,4 +64,4 @@ jobs: - name: msbuild run: cd vcnet; msbuild pappl.sln - name: test - run: cd vcnet; ./copy-dlls.bat x64\Debug; cd x64\Debug; ./testpappl -c -l testpappl.log -L debug -o testpappl.output -t all || type ..\..\testsuite\testpappl.log + run: cd vcnet; ./copy-dlls.bat x64\Debug; cd x64\Debug; ./testpappl ...
src/CMakeLists: extend list of removed symbols for device tests Based on device tests compilation error. We still don't understand really what this is, but it only affects device tests.
@@ -540,7 +540,7 @@ foreach(type ${RUST_LIBS}) # Linking C executable ../../bin/fw_test_usb_cmd_process.elf # /usr/local/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld: /usr/local/bin/../lib/gcc/arm-none-eabi/8.2.1/thumb/v7e-m+fp/softfp/libgcc.a(_arm_addsubdf3.o): in function `__aeabi_dsub': # (.te...
apps/netutils/dhcpd/dhcpd.c: Correct backward conditional logic in dhcpd_leaseexpired(). Noted by surya prakash
@@ -336,7 +336,7 @@ static time_t dhcpd_time(void) #ifdef HAVE_LEASE_TIME static inline bool dhcpd_leaseexpired(struct lease_s *lease) { - if (lease->expiry < dhcpd_time()) + if (lease->expiry > dhcpd_time()) { return false; }
Support mesh / raytracing shaders
-- -- rule("utils.glsl2spv") - set_extensions(".vert", ".frag", ".tesc", ".tese", ".geom", ".comp", ".glsl") + set_extensions(".vert", ".tesc", ".tese", ".geom", ".comp", ".frag", ".comp", ".mesh", ".task", ".rgen", ".rint", ".rahit", ".rchit", ".rmiss", ".rcall", ".glsl") on_load(function (target) local is_bin2c = tar...
TestsUser: Allow injecting passed Info.plist
@@ -310,6 +310,7 @@ ApplyKextPatches ( PRELINKED_CONTEXT *Context ) { +#if 0 EFI_STATUS Status; PATCHER_CONTEXT Patcher; @@ -380,6 +381,7 @@ ApplyKextPatches ( } else { DEBUG ((DEBUG_WARN, "Failed to find com.apple.driver.AppleHDAController - %r\n", Status)); } +#endif } VOID @@ -456,11 +458,21 @@ int main(int argc, ch...
Fix unsiggned typo introduced in commit Fix unsiggned typo introduced in tp_frontend_action.cc
@@ -114,7 +114,7 @@ static inline field_kind_t _get_field_kind(string const& line, if (field_type == "char" || field_type == "short" || field_type == "int8_t" || field_type == "int16_t") field_type = "s32"; - if (field_type == "unsigned char" || field_type == "unsiggned short" || + if (field_type == "unsigned char" || ...
api: avoid sigpipe for unruly api client if the api client didn't wait for the last message, we'd get a SIGPIPE from Unix and VPP would crash. Type: fix
@@ -220,6 +220,12 @@ static void socket_cleanup_pending_remove_registration_cb (u32 *preg_index) { vl_api_registration_t *rp = vl_socket_get_registration (*preg_index); + if (!rp) + { + /* Might already have gone */ + return; + } + clib_file_main_t *fm = &file_main; u32 pending_remove_file_index = vl_api_registration_f...
Restore J2M cursor speed up method to hold R button, and Add speed up ratio setting 2
@@ -142,7 +142,7 @@ Switch Joy2Mouse mode in config. D-UP/DOWN/LEFT/RIGHT: mouse move B button: left click A button: right click -R button: toggle mouse speed +R button: mouse speed up durling hold Keyboard is able to control with joypad when Joy2Key mode. Switch Joy2Key mode in config.
Add comments to u32_from_BE in header file
@@ -31,7 +31,8 @@ int local_strchr(char* string, char ch); // `itoa` for uint32_t. void u32_to_str(char* dest, uint8_t dest_size, uint32_t in); -// Converts a list of bytes (in BE) of length `size` to a uint32_t. +// Converts a list of bytes (in BE) of length `size` to a uint32_t. `strict` will make the function +// th...
[firesim] generate rocket-chip based artefacts
@@ -9,7 +9,7 @@ import chisel3.internal.firrtl.{Circuit, Port} import freechips.rocketchip.diplomacy.{ValName, AutoBundle} import freechips.rocketchip.devices.debug.DebugIO -import midas.rocketchip.util.{HasGeneratorUtilities, ParsedInputNames, ElaborationArtefacts} +import freechips.rocketchip.util.{ElaborationArtefac...
userland: RPROVIDES is missing libegl userland package is the Raspberry Pi provider for the openGL stack. If selected, it shall provide the gles2 and egl stacks in conjunction with mesa-gl. libegl was missing in the RPROVIDES variable, thus some run-time dependencies were not met when using userland as provider.
@@ -10,7 +10,7 @@ PR = "r5" PROVIDES = "virtual/libgles2 \ virtual/egl" -RPROVIDES_${PN} += "libgles2 egl" +RPROVIDES_${PN} += "libgles2 egl libegl" COMPATIBLE_MACHINE = "^rpi$"
Fix CID 168611
@@ -145,12 +145,24 @@ struct rtcweb_datachannel_ack { #undef SCTP_PACKED +static void +lock_peer_connection(struct peer_connection *); + +static void +unlock_peer_connection(struct peer_connection *); + static void init_peer_connection(struct peer_connection *pc) { uint32_t i; struct channel *channel; +#ifdef _WIN32 + ...
firpfbch/example: using root-Nyquist filter for flat noise response
@@ -10,7 +10,6 @@ int main() { // options unsigned int M = 5; // number of channels unsigned int m = 12; // filter delay - float As = 60; // stop-band attenuation unsigned int num_samples= 512000; // number of samples to generate unsigned int nfft = 1200; // FFT size for analysis @@ -20,7 +19,8 @@ int main() { float co...
Documentation change only: Doxygen tidy in u_ringbuffer.h.
@@ -218,7 +218,7 @@ size_t uRingBufferDataSize(const uRingBuffer_t *pRingBuffer); /** Get the free space available in a ring buffer, that is what uRingBufferAdd() * would be able to store; see also uRingBufferAvailableSizeMax() for - * what uRingBufferForcedAdd() would be able to store. + * what uRingBufferForceAdd() w...
sdl/mouse: add SDL_GetGlobalMouseState()
@@ -43,6 +43,16 @@ static int SDL_WarpMouseGlobal(int x, int y) { return -1; } + +#if defined(WARN_OUTDATED) +#pragma message("SDL_GetGlobalMouseState is not supported before SDL 2.0.4") +#endif + +static Uint32 SDL_GetGlobalMouseState(int *x, int *y) +{ + return 0; +} + #endif */ import "C" @@ -100,6 +110,14 @@ func G...
filter_modify: check if key exists for not conditions
@@ -681,6 +681,9 @@ bool evaluate_condition_KEY_VALUE_DOES_NOT_EQUAL(struct filter_modify_ctx *ctx, modify_condition *condition) { + if (!evaluate_condition_KEY_EXISTS(map, condition)) { + return false; + } return !evaluate_condition_KEY_VALUE_EQUALS(ctx, map, condition); } @@ -715,6 +718,9 @@ bool evaluate_condition_K...
open: fix inadverent breakage of opening directories
@@ -472,6 +472,11 @@ static boolean file_check(file f, u32 eventmask, u32 * last, event_handler eh) return true; } +static boolean is_dir(tuple n) +{ + return children(n) ? true : false; +} + sysreturn open_internal(tuple root, char *name, int flags, int mode) { tuple n; @@ -483,7 +488,7 @@ sysreturn open_internal(tupl...
vxlan:decap caching error
@@ -91,7 +91,7 @@ vxlan4_find_tunnel (vxlan_main_t * vxm, last_tunnel_cache4 * cache, }; if (PREDICT_TRUE - (key4.key[0] == cache->key[0] || key4.key[1] == cache->key[1])) + (key4.key[0] == cache->key[0] && key4.key[1] == cache->key[1])) { /* cache hit */ vxlan_decap_info_t di = {.as_u64 = cache->value };
fs/procfs: Add missing conditional check Adds missed conditional check and config dependency
@@ -477,8 +477,10 @@ static ssize_t proc_cmdline(FAR struct proc_file_s *procfile, FAR struct tcb_s * buffer += copysize; remaining -= copysize; + if (totalsize >= buflen) { return totalsize; } + } #endif /* Show the task argument list (skipping over the name) */ @@ -576,10 +578,11 @@ static ssize_t proc_stack(FAR stru...
Replaced variable-time GCD with consttime inversion to avoid side-channel attacks on RSA key generation
@@ -71,6 +71,7 @@ static int rsa_builtin_keygen(RSA *rsa, int bits, int primes, BIGNUM *e_value, STACK_OF(RSA_PRIME_INFO) *prime_infos = NULL; BN_CTX *ctx = NULL; BN_ULONG bitst = 0; + unsigned long error = 0; if (bits < RSA_MIN_MODULUS_BITS) { ok = 0; /* we set our own err */ @@ -186,10 +187,20 @@ static int rsa_built...
UT for Markbits bits allocation.
@@ -70,6 +70,7 @@ func (mc *MarkBitsManager) AvailableMarkBitCount() int { // Allocate a block of bits given a requested size. // Return allocated mark and how many bits allocated. +// It is up to the caller to check the result. func (mc *MarkBitsManager) NextBlockBitsMark(size int) (uint32, int) { mark := uint32(0) nu...
[sbp] add Trie Root information to logger
@@ -11,6 +11,7 @@ import ( "github.com/aergoio/aergo/consensus" "github.com/aergoio/aergo/consensus/chain" "github.com/aergoio/aergo/contract" + "github.com/aergoio/aergo/internal/enc" "github.com/aergoio/aergo/pkg/component" "github.com/aergoio/aergo/state" "github.com/aergoio/aergo/types" @@ -179,6 +180,7 @@ func (s ...
Fixed minor crash in calibrate app
@@ -413,7 +413,6 @@ void * SurviveThread(void *jnk) //Do stuff. } - survive_close( ctx ); return 0; } @@ -436,6 +435,9 @@ int main( int argc, char ** argv ) // Run the GUI in the main thread GuiThread(0); + + survive_close(ctx); + printf( "Returned\n" ); return 0; }
docs/pyboard: Emphasize the instructions for making a USB mouse. It wasn't clear why that element was `10` instead of `0`. Also bumped the `10` to `100` to make the mouse movement more obvious.
@@ -39,14 +39,15 @@ Sending mouse events by hand To get the py-mouse to do anything we need to send mouse events to the PC. We will first do this manually using the REPL prompt. Connect to your -pyboard using your serial program and type the following:: +pyboard using your serial program and type the following (no need...
Standard shader: Tonemap by default;
@@ -212,7 +212,7 @@ const char* lovrStandardFragmentShader = "" "#endif \n" // Tonemap -"#ifdef FLAG_tonemap \n" +"#ifndef FLAG_skipTonemap \n" " result = tonemap_ACES(result * lovrExposure); \n" "#endif \n"
[CUDA] Implement device to device copy
@@ -78,7 +78,7 @@ pocl_cuda_init_device_ops(struct pocl_device_ops *ops) //ops->read_rect = pocl_basic_read_rect; ops->write = pocl_cuda_write; //ops->write_rect = pocl_basic_write_rect; - //ops->copy = pocl_cuda_copy; + ops->copy = pocl_cuda_copy; //ops->copy_rect = pocl_basic_copy_rect; //ops->get_timer_value = pocl_...
nimble/ll: Remove unused adv_sm member This is leftover after some code was removed in
@@ -110,7 +110,6 @@ struct ble_ll_adv_sm uint32_t adv_event_start_time; uint32_t adv_pdu_start_time; uint32_t adv_end_time; - uint32_t adv_rpa_timer; uint8_t adva[BLE_DEV_ADDR_LEN]; uint8_t adv_rpa[BLE_DEV_ADDR_LEN]; uint8_t peer_addr[BLE_DEV_ADDR_LEN];
Initialise status_message to prevent weird artifacts from appearing
@@ -146,6 +146,7 @@ ccl_cosmology * ccl_cosmology_create(ccl_parameters params, ccl_configuration co cosmo->computed_sigma = false; cosmo->computed_hmfparams = false; cosmo->status = 0; + strcpy(cosmo->status_message, ""); return cosmo; }
thread-safe to write oecert_enc_pubkey.h
# Copyright (c) Open Enclave SDK contributors. # Licensed under the MIT License. +lock="/var/tmp/oecert_lock" destfile="$1" pubkey_file="$2" +# Check if the lock exists +if [ -f "$lock" ]; then + echo "oecert_enc_pubkey.h is being written" + exit 1 +fi + +# Create the lock +touch "$lock" cat > "$destfile" << EOF // Cop...
Remove the FIELD_OFFSET macro and use the offsetof() operator instead. The FIELD_OFFSET was dereferencing a null pointer in order to compute the offset of a field within the structure, but dereferencing a null pointer is considered undefined behavior in C and triggers the undefined behavior sanitizer (UBSAN).
@@ -67,9 +67,6 @@ typedef int32_t LONG; typedef uint32_t ULONG; typedef uint64_t ULONGLONG; - -#define FIELD_OFFSET(type, field) ((size_t)&(((type *)0)->field)) - #ifndef _MAC #define IMAGE_DOS_SIGNATURE 0x5A4D // MZ @@ -318,7 +315,7 @@ typedef struct _IMAGE_NT_HEADERS64 { #define IMAGE_FIRST_SECTION( ntheader ) ((PIMA...
dpdk plugin depends on numactl-libs dpdk_plugin.so depends on libnuma.so.1
@@ -91,7 +91,7 @@ vppinfra %package plugins Summary: Vector Packet Processing--runtime plugins Group: System Environment/Libraries -Requires: vpp = %{_version}-%{_release} +Requires: vpp = %{_version}-%{_release} numactl-libs %description plugins This package contains VPP plugins
Fix image tile caching when switching to/from Logo scene type
@@ -44,16 +44,19 @@ const compileImages = async ( const imageModifiedTime = await getFileModifiedTime(filename); + const is360 = generate360Ids.includes(img.id); + const cacheKey = `${img.id}${is360 ? "_360" : ""}`; + if ( - imageBuildCache[img.id] && - imageBuildCache[img.id].timestamp >= imageModifiedTime + imageBuil...
OpenCoreNvram: Initialize version array with constant expressions Closes
@@ -39,25 +39,13 @@ OC_GLOBAL_STATIC_ASSERT ( ); STATIC CHAR8 mOpenCoreVersion[] = { - /* [0] = */ OPEN_CORE_TARGET[0], - /* [1] = */ OPEN_CORE_TARGET[1], - /* [2] = */ OPEN_CORE_TARGET[2], - /* [3] = */ '-', - /* [4] = */ OPEN_CORE_VERSION[0], - /* [5] = */ OPEN_CORE_VERSION[2], - /* [6] = */ OPEN_CORE_VERSION[4], - /...
Correct AddonActionMenuReplaceList address
@@ -5217,7 +5217,7 @@ classes: 0x1410CDDF0: _SetAddonScale Client::UI::AddonActionMenuReplaceList: vtbls: - - ea: 0x14105EBB6 + - ea: 0x1419E1B58 base: Component::GUI::AtkUnitBase Client::Game::Fate::FateDirector: vtbls:
fix attackbackwards
@@ -2351,7 +2351,7 @@ typedef struct u64 newkeys; u64 playkeys; u64 releasekeys; - u64 combokey[MAX_SPECIAL_INPUTS]; + u32 combokey[MAX_SPECIAL_INPUTS]; u32 inputtime[MAX_SPECIAL_INPUTS]; u64 disablekeys; u64 prevkeys; // used for play/rec mode
SOVERSION bump to version 3.5.4
@@ -67,7 +67,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION # with backward compatible change and micro version is connected with any internal change of the library. set(LIBNETCONF2_MAJOR_SOVERSION 3) set(LIBNETCONF2_MINOR_SOVERSION 5) -set(LIBNETCONF2_MICRO_SOVERSION 3) +set(LIBN...
Add back the CI badge to our README To advertise that we are a fancy project that takes our test suite seriously :)
# Pallene +[![Actions Status](https://github.com/pallene-lang/pallene/workflows/Github%20Actions%20CI/badge.svg)](https://github.com/pallene-lang/pallene/actions) Pallene is a statically typed, ahead-of-time-compiled sister language to [Lua](https://www.lua.org), with a focus on performance. It is also a
Mesh:setVertices accepts VertexData;
@@ -88,19 +88,36 @@ int l_lovrMeshSetVertexAttribute(lua_State* L) { int l_lovrMeshSetVertices(lua_State* L) { Mesh* mesh = luax_checktype(L, 1, Mesh); VertexFormat* format = lovrMeshGetVertexFormat(mesh); - luaL_checktype(L, 2, LUA_TTABLE); - int vertexCount = lua_objlen(L, 2); - int start = luaL_optnumber(L, 3, 1) - ...
hv:Fix violation "Cyclomatic complexity greater than 20" in instr_emul.c Split decode_prefixes() to 2 small APIs v1-->v2: split decode_prefixes to 2 APIs Acked-by: Eddie Dong
@@ -1698,6 +1698,35 @@ static bool segment_override(uint8_t x, enum cpu_reg_name *seg) return override; } +static void decode_op_and_addr_size(struct instr_emul_vie *vie, enum vm_cpu_mode cpu_mode, bool cs_d) +{ + /* + * Section "Operand-Size And Address-Size Attributes", Intel SDM, Vol 1 + */ + if (cpu_mode == CPU_MOD...
sa subs/intro update.
@@ -789,20 +789,31 @@ void VideoPlayerShowHook() { pvVideoWindow->get_Width(&r); pvVideoWindow->get_Height(&b); - float w, h; - if (*CDraw::pfScreenAspectRatio < (float)(r) / b) { - w = RsGlobal->MaximumWidth; - h = RsGlobal->MaximumHeight * *CDraw::pfScreenAspectRatio / ((float)(r) / b); + float fMiddleScrCoord = (flo...
integrationtest/TestAuditSeccomp: Validate json output
@@ -27,6 +27,7 @@ import ( "time" . "github.com/inspektor-gadget/inspektor-gadget/integration" + seccompauditTypes "github.com/inspektor-gadget/inspektor-gadget/pkg/gadgets/audit/seccomp/types" bioprofileTypes "github.com/inspektor-gadget/inspektor-gadget/pkg/gadgets/profile/block-io/types" cpuprofileTypes "github.com/...
remove double chdir twice in doc
@@ -237,14 +237,6 @@ Changes the current working directory to the given path. System.chdir("/usr/local/share"); ``` -### System.chdir(string) - -Changes the current working directory to the given path. - -```cs -System.chdir("/usr/local/share"); -``` - ### System.chmod(string, string) Set the permissions on a file or d...
Consistent header capitalization.
@@ -24,7 +24,7 @@ Windows, then install the x64-mingw32 gem or build it yourself using Devkit (http://rubyinstaller.org/add-ons/devkit/) or msys2 (https://msys2.github.io/). -== INSTALLATION +== Installation The easiest way to install libxml-ruby is via Ruby Gems. To install: <tt>gem install libxml-ruby</tt>
Use new OpenSSL v1.1+ initialization API
@@ -371,6 +371,11 @@ static apr_status_t ssl_init_cleanup(void *data) #endif free_dh_params(); +#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) + /* Openssl v1.1+ handles all termination automatically. Do + * nothing in this case. + */ +#else /* * Try to kill the internals of the SSL libr...
enforce -max when generating bedgraph output.
@@ -476,6 +476,10 @@ void BedGenomeCoverage::ReportChromCoverageBedGraph(const vector<DEPTH> &chromCo // (1) depth>0 (the default running mode), // (2) depth==0 and the user requested to print zero covered regions (_bedGraphAll) if ( (lastDepth != -1) && (lastDepth > 0 || _bedGraphAll) ) { + + if (lastDepth >= _max) { ...
psa_generate_key(): return PSA_ERROR_INVALID_ARGUMENT for public key
@@ -5703,6 +5703,10 @@ psa_status_t psa_generate_key( const psa_key_attributes_t *attributes, if( psa_get_key_bits( attributes ) == 0 ) return( PSA_ERROR_INVALID_ARGUMENT ); + /* Reject any attempt to create a public key. */ + if( PSA_KEY_TYPE_IS_PUBLIC_KEY(attributes->core.type) ) + return( PSA_ERROR_INVALID_ARGUMENT ...
Disabled chunked transfer encoding for 304 responses as well. According to RFC 7232: | A 304 response cannot contain a message-body; it is always terminated | by the first empty line after the header fields.
@@ -969,7 +969,7 @@ nxt_h1p_request_header_send(nxt_task_t *task, nxt_http_request_t *r) if (r->resp.content_length == NULL || r->resp.content_length->skip) { if (http11) { - if (n != NXT_HTTP_NO_CONTENT) { + if (n != NXT_HTTP_NOT_MODIFIED && n != NXT_HTTP_NO_CONTENT) { h1p->chunked = 1; size += nxt_length(chunked); /*...
gsettings: do not force sync
@@ -441,14 +441,14 @@ static void elektra_settings_key_changed (GDBusConnection * connection G_GNUC_UN g_variant_unref (variant); - g_mutex_lock (&elektra_settings_kdb_lock); - // TODO: mpranj check if sync needed here - esb->gks = gelektra_keyset_new (0, GELEKTRA_KEYSET_END); - if (gelektra_kdb_get (esb->gkdb, esb->gk...
Added additional date minute specificity to the CLI help.
@@ -239,7 +239,7 @@ cmd_help (void) " --anonymize-ip - Anonymize IP addresses before outputting to report.\n" " --anonymize-level=<1|2|3> - Anonymization levels: 1 => default, 2 => strong, 3 => pedantic.\n" " --crawlers-only - Parse and display only crawlers.\n" - " --date-spec=<date|hr> - Date specificity. Possible va...
add sitemap creation
@@ -130,6 +130,7 @@ module APP # Converts templates to static pages and saves the pages to the static location. def self.bake_all + @sitemap.clear # things that need to be rendered @extensions.keys.each do |k| Dir[File.join SOURCE_ROOT, '**', "*#{k}"].each do |pt| @@ -138,6 +139,7 @@ module APP env = {PATH_INFO => pt[S...
enable prometheus middleware in the mruby example
@@ -17,6 +17,11 @@ hosts: /: file.dir: examples/doc_root mruby.handler-file: examples/h2o_mruby/hello.rb + /status: + - mruby.handler: | + require 'prometheus.rb' + H2O::Prometheus.new(H2O.next) + - status: ON access-log: /dev/stdout "alternate.127.0.0.1.xip.io:8081": listen:
fix(docs) consider an example to be visible over a wider area
@@ -70,7 +70,7 @@ document.addEventListener('DOMContentLoaded', (event) => { }); } const config = { - rootMargin: '50px 0px', + rootMargin: '600px 0px', threshold: 0.01 }; let observer = new IntersectionObserver(onIntersection, config);
libc: abort should always call exit not pthread_exit since pthread_exit just exit the calling thread not the whole process
@@ -63,21 +63,8 @@ void abort(void) * a conformant version of abort() at this time. This version does not * signal the calling thread all. * - * Note that pthread_exit() is called instead of exit(). That is because - * we do no know if abort was called from a pthread or a normal thread - * (we could find out, of course...
Add full console example to console documentation Added example of event queue handling for full console.
@@ -256,6 +256,9 @@ is received. The two event queues are used as follows: pointers to the callback and the :c:data:`console_input` buffer, must be added to the avail_queue. +Minimal Console Example +""""""""""""""""""""""" + Here is a code excerpt that shows how to use the :c:func:`console_set_queues()` function. The ...
fixed parameter names documentation
@@ -737,7 +737,7 @@ typedef void * MessageBufferHandle_t; * message_buffer.h * * <pre> - * BaseType_t xMessageBufferSendCompletedFromISR( MessageBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken ); + * BaseType_t xMessageBufferSendCompletedFromISR( MessageBufferHandle_t xMessageBuffer, BaseType_t *pxH...
Update OpenSSL to v1.1.1h
Param( [string]$GitURL = 'https://github.com/git-for-windows/git/releases/download/v2.19.1.windows.1/Git-2.19.1-64-bit.exe', [string]$GitHash = '5E11205840937DD4DFA4A2A7943D08DA7443FAA41D92CCC5DAFBB4F82E724793', - [string]$OpenSSLURL = 'https://slproweb.com/download/Win64OpenSSL-1_1_1g.exe', - [string]$OpenSSLHash = 'c...
Fix missing merge on report utility
@@ -235,9 +235,9 @@ def print_result_set(imageSet, quality, encoders, results, printHeader): dr = DeltaRecord(imageSet, quality, encoders, recordSet) - if first: + if printHeader: print(dr.get_full_row_header_csv()) - first = False + printHeader = False print(dr.get_full_row_csv()) @@ -260,7 +260,7 @@ def main(): quali...
gzipread: consider output on end of stream
@@ -171,7 +171,7 @@ gzipread(void *strm, void *buf, size_t sze) } break; case Z_STREAM_END: /* everything uncompressed, nothing pending */ - iret = 0; + iret = sze - zstrm->avail_out; break; case Z_DATA_ERROR: /* corrupt input */ inflateSync(zstrm);
Denoting package names and global variable names as code This restores consistency, as it's also done like this in line 119
@@ -224,15 +224,15 @@ You can find the generated packages in the `package` directory of the build dire #### Debian/Ubuntu -First make sure you have debhelper and d-shlibs installed: +First make sure you have `debhelper` and `d-shlibs` installed: ```sh apt-get install debhelper d-shlibs ``` -(Otherwise you'll see an err...