message
stringlengths
6
474
diff
stringlengths
8
5.22k
workflows: degrade to standard token if no PAT
@@ -30,13 +30,13 @@ jobs: persist-credentials: false - name: "Run analysis" - uses: ossf/scorecard-action@main + uses: ossf/scorecard-action@b614d455ee90608b5e36e3299cd50d457eb37d5f with: results_file: results.sarif results_format: sarif # Read-only PAT token. To create it, # follow the steps in https://github.com/ossf...
fix spin bit parse typo
@@ -91,7 +91,7 @@ int picoquic_parse_long_packet_header( /* If the version is supported now, the format field in the version table * describes the encoding. */ ph->spin = 0; - ph->has_spin_bit = 7; + ph->has_spin_bit = 0; ph->quic_bit_is_zero = (flags & 0x40) == 0; switch ((flags >> 4) & 3) {
cheza: Configure GPIO RCAM_VSYNC to operate at 1.8V This GPIO is connected to 1.8V devices (AP GPIO and camera connector). BRANCH=none TEST=Checked the schematic. Can't verify on real hardware, camera stack not ready yet.
@@ -73,7 +73,7 @@ GPIO(ENABLE_BACKLIGHT, PIN(B, 6), GPIO_OUT_LOW) /* EC_BL_DISABLE_L: Backl /* Sensors */ GPIO(ALS_INT_L, PIN(5, 0), GPIO_INPUT) /* ALS sensor interrupt */ GPIO(P_SENSOR_INT_L, PIN(F, 3), GPIO_INPUT | GPIO_SEL_1P8V) /* P-sensor interrupt */ -GPIO(RCAM_VSYNC, PIN(4, 0), GPIO_INPUT) /* VSYNC from rear cam...
withStorage: fix typings
import React from 'react'; -import useStorage from '~/logic/lib/useStorage'; +import useStorage, {IuseStorage} from '~/logic/lib/useStorage'; -const withStorage = (Component, params = {}) => { - return React.forwardRef((props: any, ref) => { +const withStorage = <P, C extends React.ComponentType<P>>(Component: C, param...
{AH} only return full range if neither tid/reference/region are given
@@ -704,7 +704,7 @@ cdef class AlignmentFile(HTSFile): cdef long long rstart cdef long long rend - if reference is None and tid is None: + if reference is None and tid is None and region is None: return 0, 0, 0, 0 rtid = -1
Handle empty data case correctly.
@@ -116,11 +116,11 @@ public: } char* GetRawPtr() { - return reinterpret_cast<char*>(&((*Storage)[0])); + return reinterpret_cast<char*>((*Storage).data()); } const char* GetRawPtr() const { - return reinterpret_cast<const char*>(&((*Storage)[0])); + return reinterpret_cast<const char*>((*Storage).data()); } private:
Add two more addons, fix for re-running script
@@ -567,7 +567,10 @@ class FfxivClass: else: print("Warning: qword in vtbl at 0x{0:X}, it may be an offset to undefined code".format(vfunc_offset)) - if current_func_name.startswith(self.SUB_PREFIX): + if current_func_name.startswith(self.name): + generic_full_func_name = current_func_name + generic_struct_member_name ...
Fix issue identified by checkers.
@@ -441,6 +441,7 @@ fpga_result get_bus_info(fpga_token tok, struct bus_info *finfo) ON_ERR_GOTO(res, out_destroy, "Reading bus from properties"); if (res != FPGA_OK) { + fpgaDestroyProperties(&props); return FPGA_EXCEPTION; }
reorder lists
@@ -16,15 +16,15 @@ title: Schema Reference **file system** +1. [event.fs.open](#eventfsopen) 1. [event.fs.close](#eventfsclose) -1. [event.fs.delete](#eventfsdelete) 1. [event.fs.duration](#eventfsduration) 1. [event.fs.error](#eventfserror) -1. [event.fs.open](#eventfsopen) 1. [event.fs.read](#eventfsread) +1. [event...
apps/wm_test: add missing argument add missing argument
@@ -797,7 +797,7 @@ int _wt_parse_scan(struct wt_options *opt, int argc, char *argv[]) opt->scan_specific = 1; if (strncmp("ssid", argv[3], strlen("ssid") + 1) == 0) { if (strlen(argv[4]) > WIFIMGR_SSID_LEN) { - WT_LOGE(TAG, "ssid length is too long\n", strlen(argv[4])); + WT_LOGE(TAG, "ssid length(%lu) is too long\n",...
options/posix: Semi implement strtof_l
@@ -452,9 +452,9 @@ long double strtold_l(const char *__restrict__, char ** __restrict__, locale_t) __builtin_unreachable(); } -float strtof_l(const char *__restrict__, char **__restrict__, locale_t) { - __ensure(!"Not implemented"); - __builtin_unreachable(); +float strtof_l(const char *__restrict__ nptr, char **__res...
soc: fix CPU frequency not updated in rtc_clk_init Add missing call to rtc_clk_cpu_freq_set_config Merges
@@ -119,6 +119,7 @@ void rtc_clk_init(rtc_clk_config_t cfg) bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); assert(res && "invalid CPU frequency value"); + rtc_clk_cpu_freq_set_config(&new_config); /* Configure REF_TICK */ REG_WRITE(APB_CTRL_XTAL_TICK_CONF_REG, xtal_freq - 1);
cmake: look for either static or dynamic libraries On some distro, static libraries are shipped in a separate package. Look for either a static or dynamic libbpf, and only fail if neither is found.
@@ -28,9 +28,9 @@ find_path (LIBBPF_INCLUDE_DIR /sw/include ENV CPATH) -find_library (LIBBPF_STATIC_LIBRARIES +find_library (LIBBPF_LIBRARIES NAMES - libbpf.a + bpf PATHS /usr/lib /usr/local/lib @@ -38,10 +38,13 @@ find_library (LIBBPF_STATIC_LIBRARIES /sw/lib ENV LIBRARY_PATH ENV LD_LIBRARY_PATH) +if(LIBBPF_LIBRARIES)...
Add arc32, adjust platform defaults
# define M3_ARCH "mips" # elif defined(__xtensa__) # define M3_ARCH "xtensa" +# elif defined(__arc__) +# define M3_ARCH "arc32" # elif defined(__riscv) # if defined(__riscv_32e) # define _M3_ARCH_RV "rv32e" @@ -211,23 +213,47 @@ typedef int8_t i8; */ # if defined (M3_COMPILER_MSVC) -# define vectorcall +# define vector...
minor code improvement for backpain
@@ -22818,21 +22818,6 @@ int set_riseattack(entity *iRiseattack, int type, int reset) return 1; } -#define painflags(iPain) \ - iPain->idling = 0;\ - iPain->falling = 0;\ - iPain->rising = 0;\ - iPain->riseattacking = 0;\ - iPain->projectile = 0;\ - iPain->drop = 0;\ - iPain->attacking = ATTACKING_INACTIVE;\ - iPain->g...
Improve GETSTARTED.md as suggested by
- Software requirements - We need to install some basic tools to run Elektra: cmake , git , and essential build tools (make, gcc, and some standard Unix tools; alternatively [ninja](https://ninja-build.org/) and [clang](https://clang.llvm.org/index.html) are also supported but not described here). Depending on your Lin...
change rsa_pss salt type
@@ -546,7 +546,7 @@ int mbedtls_pk_sign_ext( mbedtls_pk_type_t pk_type, } #if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT) && defined(MBEDTLS_USE_PSA_CRYPTO) - return( mbedtls_pk_psa_sign_ext( PSA_ALG_RSA_PSS_ANY_SALT( + return( mbedtls_pk_psa_sign_ext( PSA_ALG_RSA_PSS( mbedtls_psa_translate_md( md_alg ) ), ctx->pk_ctx, ha...
Add aarch64 getcontext functionality.
@@ -175,7 +175,30 @@ typedef ucontext_t unw_tdep_context_t; #include "libunwind-common.h" #include "libunwind-dynamic.h" -#define unw_tdep_getcontext(uc) (getcontext (uc), 0) +#define unw_tdep_getcontext(uc) (({ \ + unw_tdep_context_t *unw_ctx = (uc); \ + register uint64_t *unw_base asm ("x0") = (uint64_t*) unw_ctx->uc...
OcAudioLib: Exclude text output null terminator in OcAudioDump. Free HandleBuffer after loop finished.
@@ -627,15 +627,15 @@ OcAudioDump ( // if (FileBuffer != NULL) { UnicodeSPrint (TmpFileName, sizeof (TmpFileName), L"Controller%u.txt", Index); - Status = SetFileData (Root, TmpFileName, FileBuffer, (UINT32) AsciiStrSize (FileBuffer)); + Status = SetFileData (Root, TmpFileName, FileBuffer, (UINT32) AsciiStrLen (FileBuf...
added debug symbols
@@ -17,6 +17,7 @@ HOSTOS := $(shell uname -s) CC ?= gcc CFLAGS ?= -O3 -Wall -Wextra CFLAGS += -std=gnu99 +#CFLAGS += -ggdb -fsanitize=address DEFS = -DVERSION_TAG=\"$(VERSION_TAG)\" -DVERSION_YEAR=\"$(VERSION_YEAR)\" INSTALL ?= install
netutils/base64: correct the buffer type
* may be used to endorse or promote products derived from this software * without specific prior written permission. * - * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT...
leak/error logic cleanup
@@ -905,17 +905,18 @@ ACVP_RESULT acvp_json_serialize_to_file_pretty_a(const JSON_Value *value, const serialized_string = json_serialize_to_string_pretty(value, NULL); if (serialized_string == NULL) { + fclose(fp); return ACVP_JSON_ERR; } if (fputs(", ", fp) == EOF) { - json_free_serialized_string(serialized_string); r...
ci: deploy doc previews when .rst files are changed
- "tools/kconfig_new/**/*" - "CONTRIBUTING.rst" +.patterns-docs-preview: &patterns-docs-preview + - "docs/**/*" + .if-protected: &if-protected if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH =~ /^release\/v/ || $CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/)' @@ -170,6 +173,8 @@ deploy_docs_preview: rules: - <<...
Don't over-generate temporary variables.
@@ -960,14 +960,14 @@ func (g *gen) writeCallSuspendibles(n *a.Expr, depth uint32) error { return nil } + // TODO: delete these hacks that only matches "in.src.read_u8?()" etc. + if isInSrcReadU8(g.tm, n) { if g.perFunc.tempW > maxTemp { return fmt.Errorf("too many temporary variables required") } temp := g.perFunc.tem...
Adjust fd_recv() so that it can work without rx buffer
@@ -286,13 +286,15 @@ int dill_fd_recv(int s, struct dill_fd_rxbuf *rxbuf, struct dill_iolist *first, /* Skip all data until error occurs. */ if(dill_slow(!first && !last)) return dill_fd_skip(s, -1, deadline); /* Fill in data from the rxbuf. */ - size_t sz; + size_t sz = 0; + if(dill_fast(rxbuf)) { while(1) { sz = dil...
Allow easy-switch between tag versions for the cc26xx-web-demo
*/ #define CC26XX_WEB_DEMO_CONF_ADC_DEMO 0 /*---------------------------------------------------------------------------*/ +/* + * Change to 1 if you are using an older CC2650 Sensortag (look for Rev: 1.2 + * printed on the PCB, or for a sticker reading "HW Rev 1.2.0"). + * + * This may be the case if you are getting t...
Fix build error in legacy gcc
@@ -81,6 +81,11 @@ CCOMMON_OPT += -march=cooperlake ifneq ($(F_COMPILER), NAG) FCOMMON_OPT += -march=cooperlake endif +else # gcc not support, fallback to avx512 +CCOMMON_OPT += -march=skylake-avx512 +ifneq ($(F_COMPILER), NAG) +FCOMMON_OPT += -march=skylake-avx512 +endif endif endif ifeq ($(OSNAME), CYGWIN_NT) @@ -105...
chat: prevent input overflow offscreen Fixes urbit/landscape#632
@@ -168,6 +168,7 @@ blockquote { } .chat .react-codemirror2 { width: 100%; + height: 100%; } .chat .CodeMirror { @@ -186,6 +187,18 @@ blockquote { font-size: 14px; } +.chat .CodeMirror-scroll { + display: flex; + flex-direction: column; + justify-content: center; + height: 100%; +} + +.chat .CodeMirror-sizer { + min-he...
Update a README.txt file
@@ -1225,11 +1225,12 @@ Built-In Commands ^^^^^^^^^^^^^^^^^ In addition to the commands that are part of NSH listed above, there can be additional, external "built-in" applications that can be added to NSH. -These are separately excecuble programs but will appear much like the the -commands that are a part of NSH. The ...
Sync usb-darwin to upstream
@@ -359,6 +359,8 @@ print_device(const char *uri, /* I - Device URI */ (void)uri; + (void)argc; + (void)argv; /* * Catch SIGQUIT to determine who is sending it... @@ -1512,12 +1514,11 @@ static kern_return_t load_printerdriver(CFStringRef *driverBundlePath) SInt32 score; kern_return_t kr; printer_interface_t interface;...
debug: rename struct logmsg to struct acrn_logmsg_ctl For data structure types "struct logmsg", its name is identical with variable name in the same scope. This is a MISRA C violation. This patch fix it. Acked-by: Eddie Dong
* bsp/uefi/clearlinux/acrn.conf: hvlog=2M@0x1FE00000 */ -struct logmsg { +struct acrn_logmsg_ctl { uint32_t flags; int32_t seq; spinlock_t lock; }; -static struct logmsg logmsg; +static struct acrn_logmsg_ctl logmsg_ctl; void init_logmsg(uint32_t flags) { - logmsg.flags = flags; - logmsg.seq = 0; + logmsg_ctl.flags = f...
Change current directory for REPL
import UIKit /// A View controller with the REPL. -@objc class REPLViewController: EditorSplitViewController { +@objc class REPLViewController: EditorSplitViewController, UIDocumentPickerDelegate { /// The shared instance. @objc static var shared: REPLViewController? @@ -24,6 +24,12 @@ import UIKit } } + @objc private ...
modify libbpf.yml
@@ -28,6 +28,7 @@ jobs: - name: Run cs_delay run: | + cd eBPF_Supermarket/CPU_Subsystem/cs delay/libbpf_cs delay sudo bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h clang -g -O2 -target bpf -D__TARGET_ARCH_x86 -I/usr/include/x86_64-linux-gnu -I. -c cs_delay.bpf.c -o cs_delay.bpf.o sudo bpftool gen s...
eyre: include mark of fact in channel json This change greatly improves the ergonomics of working with channel JSON in statically typed languages, as the polymorphism is moved out of the actual diff and into the event framing.
== :: %fact - :~ ['response' [%s 'diff']] + :+ ['response' [%s 'diff']] :: :- 'json' ~| [%unexpected-fact-mark p.cage.sign] ?> =(%json p.cage.sign) !<(json q.cage.sign) + :: + ?~ from ~ + :~ ['mark' [%s mark.u.from]] + ['desk' [%s desk.u.from]] == :: %kick
in_docker_events: validate return value of read() (CID 304911)
*/ static int de_unix_create(struct flb_in_de_config *ctx) { + ssize_t bytes; unsigned long len; size_t address_length; struct sockaddr_un address; @@ -65,7 +66,11 @@ static int de_unix_create(struct flb_in_de_config *ctx) write(ctx->fd, request, strlen(request)); /* Read the initial http response */ - read(ctx->fd, ct...
Remove some code This commit removes the contribution of a user that we cannot trace to gain their consent for the licence change. I also cleaned up the return/error-return flow a bit.
@@ -610,6 +610,7 @@ int PEM_write_bio(BIO *bp, const char *name, const char *header, unsigned char *buf = NULL; EVP_ENCODE_CTX *ctx = EVP_ENCODE_CTX_new(); int reason = ERR_R_BUF_LIB; + int retval = 0; if (ctx == NULL) { reason = ERR_R_MALLOC_FAILURE; @@ -654,14 +655,14 @@ int PEM_write_bio(BIO *bp, const char *name, c...
chat-cli: clarify tab completion suggestions
++ tab-list ^- (list (option:auto tank)) :~ - [%join leaf+";join ~ship/chat-name"] + [%join leaf+";join ~ship/chat-name (glyph)"] [%leave leaf+";leave ~ship/chat-name"] :: - [%create leaf+";create [type] /chat-name [glyph]"] + [%create leaf+";create [type] /chat-name (glyph)"] [%delete leaf+";delete /chat-name"] - [%in...
Fix bad installation path default
@@ -130,9 +130,9 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON) set(SURVIVE_BUILT_PLUGINS) if(WIN32) - option(LIB_INSTALL_DIR "" bin/${CMAKE_GENERATOR_PLATFORM}) + SET(LIB_INSTALL_DIR "" CACHE STRING bin/${CMAKE_GENERATOR_PLATFORM}) else() - option(LIB_INSTALL_DIR "" lib) + SET(LIB_INSTALL_DIR "" CACHE STRING lib) end...
Replace os.rename with shutil.move The latter won't break if destination exists
@@ -192,7 +192,7 @@ def make_wheel(wheel_name, arc_root, cpu_so_path, gpu_so_path=None): # Create wheel shutil.make_archive(wheel_name, 'zip', dir_path) - os.rename(wheel_name + '.zip', wheel_name) + shutil.move(wheel_name + '.zip', wheel_name) shutil.rmtree(dir_path)
removed useless thing
@@ -84,43 +84,6 @@ project(ccl) include(UseSWIG) find_package(PythonInterp) - set(Python_ADDITIONAL_VERSIONS ${PYTHON_VERSION_STRING}) - # Introspect the python to get the correct environment - execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c" -"from distutils import sysconfig as s;import sys;import struct; -print('....
skate: extend parser to support fully qualified names
@@ -58,6 +58,16 @@ data Declaration = Fact String String [ FactAttrib ] | Section String [ Declaration ] | Text String +{--} +instance Show Declaration where + show de@(Fact i d _) = "Fact '" ++ i ++ "'" + show de@(Flags i d _ _) = "Flags '" ++ i ++ "'" + show de@(Enumeration i d _) = "Enumeration '" ++ i ++ "'" + show...
Keep sending if padding is required just in case
@@ -4145,7 +4145,8 @@ static ngtcp2_ssize conn_write_pkt(ngtcp2_conn *conn, ngtcp2_pkt_info *pi, keep_alive_expired = conn_keep_alive_expired(conn, ts); - if (conn->pktns.rtb.probe_pkt_left == 0 && !keep_alive_expired) { + if (conn->pktns.rtb.probe_pkt_left == 0 && !keep_alive_expired && + !require_padding) { return 0;...
test: update certificate rejection message
@@ -54,7 +54,7 @@ class OnlineFetchTest < Rugged::OnlineTestCase }) end - assert_equal "user cancelled certificate check", exception.message + assert_equal "user rejected certificate for github.com", exception.message end def test_fetch_over_https_with_certificate_callback_exception
Fix PACKET_equal test with BUF_LEN+1 on -Wstringop-overread Either suppress the error, or better make smbuf longer. Detected with -Werror. CLA: trivial
#define BUF_LEN 255 -static unsigned char smbuf[BUF_LEN]; +static unsigned char smbuf[BUF_LEN + 1]; static int test_PACKET_remaining(void) { PACKET pkt; - if (!TEST_true(PACKET_buf_init(&pkt, smbuf, sizeof(smbuf))) + if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) || !TEST_size_t_eq(PACKET_remaining(&pkt), BUF_LE...
Fix lily_load_library being extremely wrong. It was trying to load the resource handle as a shallow string (no idea why). It also wasn't copying the path over correctly.
@@ -613,6 +613,9 @@ int lily_load_library(lily_state *s, const char *path) char *loadname = loadname_from_path(path); + char *path_copy = lily_malloc((strlen(path) + 1) * sizeof(*path_copy)); + strcpy(path_copy, path); + const char **table = (const char **)lily_library_get(handle, lily_mb_sprintf(msgbuf, "lily_%s_table...
YAML CPP: Disable plugin on ASAN enabled GCC
@@ -4,6 +4,11 @@ if (DEPENDENCY_PHASE) remove_plugin (yamlcpp "yaml-cpp (libyaml-cpp-dev >= 0.5) not found") else (NOT YAML-CPP_FOUND) if (YAML-CPP_VERSION VERSION_LESS "0.6.0") + if (ENABLE_ASAN AND CMAKE_COMPILER_IS_GNUCXX) + remove_plugin (yamlcpp "yaml-cpp ${YAML-CPP_VERSION} reports runtime errors if you compile i...
Update ble docs.
@@ -31,8 +31,6 @@ digraph ble_dependencies node[fillcolor="#aed8a9ff"]; rank = same; linear_containers[label="List/Queue", URL="@ref linear_containers"]; - logging[label="Logging", URL="@ref logging"]; - static_memory[label="Static memory", URL="@ref static_memory"]; } subgraph { @@ -43,34 +41,16 @@ digraph ble_depende...
Added reset_all() to completely reset spgram object including window buffer
@@ -184,7 +184,7 @@ void SPGRAM(_destroy)(SPGRAM() _q) free(_q); } -// resets the internal state of the spgram object +// resets the internal state of the spgram object except for the window buffer void SPGRAM(_reset)(SPGRAM() _q) { // clear the window buffer @@ -205,6 +205,15 @@ void SPGRAM(_reset)(SPGRAM() _q) _q->ps...
Fix an error in Watch scripts
@@ -125,7 +125,7 @@ extension AppDelegate: WCSessionDelegate { delegate = ObjCClass("Pyto.AppDelegate").shared script = str(delegate.getWatchScript()) - dir = str(Python.shared.currentWorkingDirectory) + dir = str('\(directory(for: url).path.replacingOccurrences(of: "'", with: "\\'"))') os.chdir(dir) sys.path.append(di...
Fix memory leak (Issue
@@ -65,5 +65,6 @@ Changes in CUPS v2.3.3op1 - Fixed IPP backend crash bug with "printer-alert" values (Issue #43) - Removed old Solaris inetconv(1m) reference in cups-lpd man page (Issue #46) - Fixed default options that incorrectly use the "custom" prefix (Issue #48) +- Fixed a memory leak when resolving DNS-SD URIs (...
ual path update
@@ -10,7 +10,7 @@ if errorlevel 1 ( SET filepath=%%F SET dll=!filepath:.tmp=.dll! ECHO !dll! - copy "..\..\Ultimate-ASI-Loader\bin\Release\dinput8.dll" !dll! + copy "..\..\Ultimate-ASI-Loader\data\dinput8.dll" !dll! ) )
Pass:getClear returns correct value for dontcare/load actions;
@@ -76,6 +76,7 @@ static int l_lovrPassGetTarget(lua_State* L) { static int l_lovrPassGetClear(lua_State* L) { Pass* pass = luax_checktype(L, 1, Pass); + const PassInfo* info = lovrPassGetInfo(pass); uint32_t count = 0; float color[4][4]; @@ -86,15 +87,18 @@ static int l_lovrPassGetClear(lua_State* L) { lua_createtable...
print (GMT) in summary
@@ -540,8 +540,8 @@ printf( " \n" "network type.....................: %s (%d)\n" "endianness.......................: %s\n" "read errors......................: %s\n" - "minimum time stamp...............: %s\n" - "maximum time stamp...............: %s\n" + "minimum time stamp...............: %s (GMT)\n" + "maximum time s...
test-suite: temporarily disable scalasca/mv2; tracking does now work with this newer mv2 version
@@ -17,6 +17,10 @@ TASKS=8 ARGS=8 @test "[perf-tools/Scalasca] MPI C binary runs under resource manager ($rm/$LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" { + if [[ "$LMOD_FAMILY_MPI" == "mvapich2" ]]; then + skip "scorep not working with mvapich 2.3.4" + fi + if [ ! -s C_mpi_test ];then flunk "C_mpi_test binary does not ex...
FIXUP: sensor: Add flag for tight timestamping Add description for tight timestamp in ectool inventory. BRANCH=none TEST=ectool does not print "Unknown feature" anymore.
@@ -637,6 +637,8 @@ static const char * const ec_feature_names[] = { [EC_FEATURE_HOST_EVENT64] = "64-bit host events", [EC_FEATURE_EXEC_IN_RAM] = "Execute code in RAM", [EC_FEATURE_CEC] = "Consumer Electronics Control", + [EC_FEATURE_MOTION_SENSE_TIGHT_TIMESTAMPS] = + "Tight timestamp for sensors events", }; int cmd_in...
Fix monopath typo
@@ -522,10 +522,10 @@ typedef enum { monopath_test_basic = 0, monopath_test_hole, monopath_test_rotation -} multipath_test_enum_t; +} monopath_test_enum_t; /* Basic connection with the multicast option enabled. */ -int monopath_test_one(multipath_test_enum_t test_case) +int monopath_test_one(monopath_test_enum_t test_c...
Update: collect also pos evidence for relation order
@@ -99,10 +99,6 @@ def getNounRelNoun(words): EMPTY = (None, -1, (0.5,0.0), "") RELATION = (None, -1, (0.5,0.0), "") RELATIONS = [] - C1 = (None, -1, (0.5,0.0), "") - C2 = (None, -1, (0.5,0.0), "") - C1_MOD = (None, -1, (0.5,0.0), "") - C2_MOD = (None, -1, (0.5,0.0), "") REL_FOUND = False for i, word in enumerate(words...
Add qmc_data variable to build script of qmcpack
@@ -98,6 +98,7 @@ mixed="-DQMC_MIXED_PRECISION=" mpi="-DQMC_MPI=" cc="-DCMAKE_C_COMPILER=" cxx="-DCMAKE_CXX_COMPILER=" +qmc_data="-DQMC_DATA=" declare -A opts_array # Default to: @@ -108,6 +109,13 @@ opts_array[$mpi]=OFF opts_array[$cc]=$AOMP/bin/clang opts_array[$cxx]=$AOMP/bin/clang++ +if [[ -z "${QMC_DATA}" ]]; then...
remove unnecessary horizontal flip for HM-01b0
@@ -106,7 +106,7 @@ static const uint16_t default_regs[][2] = { {0x3011, 0x70}, {0x3059, 0x02}, {0x3060, 0x0B}, - {IMG_ORIENTATION, 0x01}, // change the orientation + {IMG_ORIENTATION, 0x00}, // change the orientation {0x0104, 0x01}, //============= End of regs marker ==================
lwip: add Kconfig knobs for adjusting debug level This patch adds LwIP debug level menu.
@@ -8,6 +8,16 @@ config NET_LWIP_DEBUG if NET_LWIP_DEBUG +config NET_LWIP_DEBUG_LEVEL + int "LWIP debug level" + default 1 + range 0 3 + ---help--- + Configure LwIP log level. + 0 : debug all + 1 : warning (bad checksums, dropped packets, ...) + 2 : serious (memory allocation failures, ... ) + 3 : severe config NET_API...
Ensure that partial builds from within visual studio pick up all needed components (they currently omit sqlite and zlib, so unit tests fail on link)
</Lib> </ItemDefinitionGroup> <ItemGroup> + <ProjectReference Include="..\..\sqliteUWP\sqliteUWP.vcxproj"> + <Project>{33798ca7-74c0-4bf3-8171-7e098a6ebaa5}</Project> + </ProjectReference> + <ProjectReference Include="..\..\sqlite\sqlite.vcxproj"> + <Project>{2ebc7b3c-2af1-442c-9285-cab39bbb8c00}</Project> + </ProjectR...
Chrysler safety: 3 sa max rate down for now
@@ -2,7 +2,7 @@ const int CHRYSLER_MAX_STEER = 230; const int CHRYSLER_MAX_RT_DELTA = 112; // max delta torque allowed for real time checks const int32_t CHRYSLER_RT_INTERVAL = 250000; // 250ms between real time checks const int CHRYSLER_MAX_RATE_UP = 3; -const int CHRYSLER_MAX_RATE_DOWN = 7; +const int CHRYSLER_MAX_RA...
Changelog: Include change from previous commit
@@ -8,6 +8,7 @@ OpenCore Changelog - Changed key repeat failsafes and sample values to Apple OEM values - Changed PointerSpeedMul failsafe to Apple OEM value - Updated docs to include configuration of key repeat settings on AMI KeySupport vs. V1 or V2 KeySupport vs. systems not using KeySupport +- Prevented 'set defaul...
README: Fix Getting Started URL
@@ -92,7 +92,7 @@ ACRN support systems: .. _Introduction: https://projectacrn.github.io/latest/introduction/ -.. _Getting Started Guide: https://projectacrn.github.io/latest/getting_started/ +.. _Getting Started Guide: https://projectacrn.github.io/latest/getting-started/ .. _Contribution Guide: https://projectacrn.git...
Can set parameters and specific cartridge through arguments option.
@@ -1528,15 +1528,21 @@ static void onEmscriptenWgetError(const char* error) {} static void emsStart(s32 argc, char **argv, const char* folder) { - if(argc == 2) + if (argc >= 2) + { + int pos = strlen(argv[1]) - strlen(".tic"); + if (pos >= 0 && strcmp(&argv[1][pos], ".tic") == 0) { startVars.argc = argc; startVars.ar...
Tweak the artifact name to include board.
@@ -58,5 +58,5 @@ jobs: uses: actions/upload-artifact@v2 if: ${{ matrix.board == 'nice_nano' }} with: - name: zmk-uf2 + name: "${{ matrix.board }}-zmk-uf2" path: build/zephyr/zmk.uf2
[libc] add LLONG_* to limits.h
+#pragma once + /* use the GCC builtins until we need something ourselves */ #if !defined(_GCC_LIMITS_H_) #include_next <limits.h> #endif + +#ifndef LLONG_MIN +#define LLONG_MIN (-__LONG_LONG_MAX__ - 1) +#endif + +#ifndef LLONG_MAX +#define LLONG_MAX __LONG_LONG_MAX__ +#endif + +#ifndef ULLONG_MAX +#define ULLONG_MAX (...
highlevel: add missing header
* @copyright BSD License (see doc/LICENSE.md or http://www.libelektra.org) */ +#include "elektra.h" #include "elektra/conversion.h" #include "elektra/errors.h" #include "elektra/errorsprivate.h" #include "kdbhelper.h" #include "kdbprivate.h" + +#include <stdlib.h> #include <string.h> #ifdef __cplusplus
some another using --add-export case
@@ -58,6 +58,8 @@ def fix_cmd(cmd): while i < len(cmd): if cmd[i] == '--add-exports': i += 1 + elif cmd[i].startswith('--add-exports='): + pass else: res.append(cmd[i]) i += 1
mesh: Fixes Config client send publish message When Config client model send publish message, app_idx will be need, however, currently code clear this value use `&`, this will be generate error when app_idx not zero.
@@ -1265,7 +1265,7 @@ static int mod_pub_set(u16_t net_idx, u16_t addr, u16_t elem_addr, net_buf_simple_add_le16(msg, elem_addr); net_buf_simple_add_le16(msg, pub->addr); - net_buf_simple_add_le16(msg, (pub->app_idx & (pub->cred_flag << 12))); + net_buf_simple_add_le16(msg, (pub->app_idx | (pub->cred_flag << 12))); net...
Fix merge error in nicoff
@@ -527,13 +527,12 @@ extern void init_async_data(struct lcore_data *data); struct lcore_data init_lcore_data() { t4p4s_init_global_stats(); - - return (struct lcore_data) { + struct lcore_data data = (struct lcore_data) { .conf = &lcore_conf[rte_lcore_id()], .is_valid = true, + .verify_idx = 0, .idx = 0, .pkt_idx = 0,...
add 'is_all_zero(x)' for NEON
#define u16x8_sub_saturate(a,b) vsubq_u16(a,b) #define i16x8_sub_saturate(a,b) vsubq_s16(a,b) +always_inline int +u8x16_is_all_zero (u8x16 x) +{ + return !(vaddvq_u8 (x)); +} + +always_inline int +u16x8_is_all_zero (u16x8 x) +{ + return !(vaddvq_u16 (x)); +} + +always_inline int +u32x4_is_all_zero (u32x4 x) +{ + return...
Fix edge case in quaternion slerp;
@@ -64,6 +64,14 @@ quat quat_slerp(quat q, quat r, float t) { return q; } + if (dot < 0) { + q[0] *= -1; + q[1] *= -1; + q[2] *= -1; + q[3] *= -1; + dot *= -1; + } + float halfTheta = acos(dot); float sinHalfTheta = sqrt(1.f - dot * dot);
use comment to force spaces between string literals to avoid being screwed by C++11 user-defined string literal feature
#define D_FMT_PREFIX "[%s:%d] %s()\n\t" #define D_FMT_ARGS __FILE__, __LINE__, __func__ -#define __ERROR(fmt, ...) fprintf(D_OUT, D_FMT_PREFIX "ERROR:\t" fmt "\n%s", D_FMT_ARGS, __VA_ARGS__) +#define __ERROR(fmt, ...) fprintf(D_OUT, D_FMT_PREFIX "ERROR:\t" \ + /* force spaces */ fmt /* force spaces */ \ + "\n%s", D_FMT...
Only add to the one time bucket it matches.
@@ -88,22 +88,21 @@ static double wsgi_application_time_total = 0; static int wsgi_application_time_buckets[16]; void wsgi_record_time_in_buckets(int* buckets, double duration) { - buckets[15] += 1; - if (duration <= 81.92) buckets[14] += 1; else return; - if (duration <= 40.96) buckets[13] += 1; else return; - if (dur...
Correctly setting ICID.
@@ -1500,7 +1500,7 @@ http_stress_client_context_t* http_stress_client_create(size_t client_id, uint64 } /* Create a client connection */ - ctx->cnx_client = picoquic_create_cnx(ctx->qclient, picoquic_null_connection_id, picoquic_null_connection_id, server_address, *simulated_time, 0, PICOQUIC_TEST_FILE_SERVER_CERT, al...
dm: expand default WaaG memory to 4G This patch is used to expand WaaG memory from 2G to 4G in launch script. Acked-by: Yu Wang
@@ -17,7 +17,7 @@ echo "8086:9d71" > /sys/bus/pci/drivers/pci-stub/new_id echo "0000:00:1f.3" > /sys/bus/pci/drivers/pci-stub/bind #for memsize setting -mem_size=2048M +mem_size=4096M acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \ -s 2,pci-gvt -G "$3" \
in_mqtt: fix incorrect MQTT length handling While parsing the length of a MQTT packet, the buf_pos is already incremented, making it no longer necessary to do it once more once the length is determined. Fixes
@@ -382,7 +382,6 @@ int mqtt_prot_parser(struct mqtt_conn *conn) } } while (1); - conn->buf_pos += bytes - 1; conn->packet_length = length; /* At this point we have a full control packet in place */
freertos: fix allocation order for stack and TCB per portSTACK_GROWTH This is as per FreeRTOS recommendation and allows to protect task TCB in case task stack has overflowed.
@@ -159,9 +159,24 @@ void vApplicationGetIdleTaskMemory(StaticTask_t **ppxIdleTaskTCBBuffer, { StaticTask_t *pxTCBBufferTemp; StackType_t *pxStackBufferTemp; + + /* If the stack grows down then allocate the stack then the TCB so the stack + * does not grow into the TCB. Likewise if the stack grows up then allocate + * ...
xtensa: Fix comparison result for up_fpucmp function
@@ -54,6 +54,6 @@ bool up_fpucmp(const void *saveregs1, const void *saveregs2) const uint32_t *regs2 = saveregs2; return memcmp(&regs1[XCPTCONTEXT_REGS], &regs2[XCPTCONTEXT_REGS], - XTENSA_CP_SA_SIZE); + XTENSA_CP_SA_SIZE) == 0; } #endif /* CONFIG_ARCH_FPU */
Fix pk_ec_test_vec() to use MBEDTLS_MD_NONE The pk_ec_test_vec() was incorrectly using MBEDTLS_MD_SHA1 for the parameter to mbedtls_pk_verify(). It should use MBEDTLS_MD_NONE since that parameter is ignored for this test case.
@@ -775,8 +775,8 @@ void pk_ec_test_vec( int type, int id, data_t * key, data_t * hash, TEST_ASSERT( mbedtls_ecp_point_read_binary( &eckey->grp, &eckey->Q, key->x, key->len ) == 0 ); - // MBEDTLS_MD_SHA1 is a dummy - it is ignored, but has to be other than MBEDTLS_MD_NONE. - TEST_ASSERT( mbedtls_pk_verify( &pk, MBEDTLS...
client WebSockets have no pub/sub optimization
@@ -542,6 +542,8 @@ static inline void websocket_on_pubsub_message_direct_internal(fio_msg_s *msg, } FIOBJ message = FIOBJ_INVALID; FIOBJ pre_wrapped = FIOBJ_INVALID; + if (!((ws_s *)pr)->is_client) { + /* pre-wrapping is only for client data */ switch (txt) { case 0: pre_wrapped = @@ -558,13 +560,16 @@ static inline v...
Fix copy-dlls.bat for current version of libcups.
:: Script to copy dependent DLLs to the named build directory -copy packages\libcups2_native.redist.2.4.0.2\build\native\bin\x64\Debug\*.dll %1 +copy packages\libcups2_native.redist.2.4.2.1\build\native\bin\x64\Debug\*.dll %1 copy packages\libjpeg-turbo-v142.2.0.4.3\build\native\bin\x64\v142\Debug\*.dll %1 copy package...
Work CD-CI Fix start release prep steps. ***NO_CI***
@@ -29,7 +29,7 @@ jobs: # get commint message - powershell: | - if($env:StartReleaseCandidate -eq "true") + if($env:StartReleaseCandidate -eq true) { # this is a release prep so NO build echo "##vso[task.setvariable variable=SKIP_BUILD;isOutput=true]true" @@ -93,8 +93,6 @@ jobs: git checkout develop - cd source - nbgv ...
OcMiscLib: Fix signed/unsigned comparison
@@ -30,7 +30,9 @@ FindPattern ( BOOLEAN Matches; UINT32 Index; - if (PatternSize == 0 || DataSize == 0 || DataOff >= DataSize || DataSize - DataOff < PatternSize) { + ASSERT (DataOff >= 0); + + if (PatternSize == 0 || DataSize == 0 || (DataOff < 0) || (UINT32)DataOff >= DataSize || DataSize - DataOff < PatternSize) { r...
Minor code-style in stack-check
@@ -107,7 +107,7 @@ stack_check_get_usage(void) p++; } - /* Skip the region of the memory reserved for the stack not used yet by the program */ + /* Skip memory-region reserved for the stack not used yet by the program */ while(*p == STACK_FILL && p < (uint8_t *)GET_STACK_ORIGIN()) { p++; } @@ -147,7 +147,8 @@ PROCESS_...
make sure memory is freed
@@ -56,31 +56,30 @@ int unix_create_unix_socket(const char path[], int *sock_out) { struct sockaddr_un addr; struct stat st; - char *dir; - int sock; + char *dir = NULL; + int sock = -1; if (path == NULL || strlen(path) == 0) { - return EXIT_FAILURE; + goto err; } dir = dirname(strdup(path)); if (stat(path, &st) != -1)...
Docs: fix second reference to gprestore -jobs not applying to metadata
<pt><b>-jobs</b> <varname>int</varname></pt> <pd>Optional. Specifies the number of parallel connections to use when restoring table - data and post-data metadata. By default, <codeph>gprestore</codeph> uses 1 connection. - Increasing this number can improve the speed of restoring data.</pd> + data. By default, <codeph>...
gtlsserver: Add client certificate authentication
@@ -278,6 +278,11 @@ int TLSServerSession::init(const TLSServerContext &tls_ctx, GNUTLS_ALPN_MANDATORY | GNUTLS_ALPN_SERVER_PRECEDENCE); + if (config.verify_client) { + gnutls_certificate_server_set_request(session_, GNUTLS_CERT_REQUIRE); + gnutls_certificate_send_x509_rdn_sequence(session_, 1); + } + return 0; }
Test skipped parameter entity in external DTD triggers handler
@@ -146,6 +146,7 @@ static unsigned long dummy_handler_flags = 0; #define DUMMY_END_NS_DECL_HANDLER_FLAG (1UL << 13) #define DUMMY_START_DOCTYPE_DECL_HANDLER_FLAG (1UL << 14) #define DUMMY_END_DOCTYPE_DECL_HANDLER_FLAG (1UL << 15) +#define DUMMY_SKIP_HANDLER_FLAG (1UL << 16) static void XMLCALL @@ -311,6 +312,14 @@ dum...
groups: strengthen the admin check on cards Before we saw if window.ship was in the path of the group. If you're a star or higher, you'll match many group paths that you don't own. This strengthens the check.
@@ -491,9 +491,9 @@ export class ContactCard extends Component { ? "dib" : "dn"; let adminOpt = - ( (props.path.includes(window.ship) || (props.ship === window.ship)) && - !(props.path.includes('/~/default')) - ) ? "dib" : "dn"; + ((props.path.includes(`~${window.ship}/`)) || ((props.ship === window.ship) && + !(props....
haas1000: disable some bsp log [Detail] Disable some haas1000 bsp log [Verified Cases] Build Pass: <py_engine_demo> Test Pass: <py_engine_demo>
@@ -250,7 +250,7 @@ void mcu_first_handshake(void) int WEAK do_ulog(const unsigned char s, const char *mod, const char *f, const unsigned long l, const char *fmt, va_list args) { - return 0; + return 1; } int aos_printf_hook(const char *tag, const char *fmt, enum PRINTF_FLAG_T flag, va_list ap) {
[chainmaker]remove chain_id and origin_id claim_contract_name from wallet
@@ -109,11 +109,8 @@ BoatHlchainmakerWallet *BoatHlchainmakerWalletInit(const BoatHlchainmakerWalletC wallet_ptr->node_info.org_tls_ca_cert.length = 0; wallet_ptr->http2Context_ptr = NULL; - wallet_ptr->node_info.org_Id = config_ptr->node_cfg.org_Id; - wallet_ptr->node_info.chain_Id = config_ptr->node_cfg.chain_Id; wal...
Follow the best practice when authenticating ghcr See
@@ -18,8 +18,8 @@ jobs: uses: docker/login-action@v2 with: registry: ghcr.io - username: ${{ secrets.GHCR_USERNAME }} - password: ${{ secrets.GHCR_PASSWORD }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and publish interop docker image uses: docker/build-push-action@v3 with:
[catboost] revert r3837740; everything is OK and I was right
#include <catboost/libs/options/enums.h> #include <catboost/libs/helpers/exception.h> +#include <util/generic/algorithm.h> #include <util/generic/array_ref.h> #include <util/generic/ymath.h> @@ -13,10 +14,14 @@ namespace NCB { return ENanMode::Min == nanMode ? 0 : borders.size(); } + if (borders.size() <= 50) { size_t ...
CMake: Build OpenXR as dll on windows;
@@ -219,6 +219,7 @@ if(LOVR_ENABLE_HEADSET AND LOVR_USE_OPENXR) include_directories(${OPENXR_INCLUDE_DIRS}) set(LOVR_OPENXR ${OPENXR_LIBRARIES}) else() + set(DYNAMIC_LOADER ON CACHE BOOL "") add_subdirectory(deps/openxr openxr) set(LOVR_OPENXR openxr_loader) endif() @@ -642,9 +643,7 @@ if(WIN32) move_dll(${LOVR_MSDF}) ...
LSA recovery flow is incomplete and may result in corrupt LSA under some scenarios. OSV's advise preference for UEFI to skip any automated recovery. Leave recovery to the OS. Remaining logic will still validate the labels are consistent
@@ -1910,7 +1910,8 @@ CompareDpaInRange( } } -#ifndef OS_BUILD +#if 0 +// This flow may not work properly under certain scenarios. /** Recover a partially updated namespace label set Clear the updating bit and use the name from label in pos 0 @@ -2039,7 +2040,8 @@ Finish: NVDIMM_EXIT_I64(ReturnCode); return ReturnCode;...
[kernel][memheap]fix RT_DEBUG_LOG errors.
@@ -553,7 +553,8 @@ void rt_memheap_free(void *ptr) /* check magic */ if (header_ptr->magic != (RT_MEMHEAP_MAGIC | RT_MEMHEAP_USED)) { - RT_DEBUG_LOG("bad magic:0x%08x @ memheap\n", header_ptr->magic); + RT_DEBUG_LOG(RT_DEBUG_MEMHEAP, ("bad magic:0x%08x @ memheap\n", + header_ptr->magic)); } RT_ASSERT(header_ptr->magic...
util/ck_errf.pl: add functionality that brings it closer to util/mkerr.pl There was no option to give other config files than the default crypto/err/openssl.ec, and yet it tried to check the errors generated in engines (and failing, of course). Also added the same '-internal' option as util/mkerr.pl.
use strict; use warnings; +my $config; my $err_strict = 0; -my $bad = 0; +my $debug = 0; +my $internal = 0; + +sub help +{ + print STDERR <<"EOF"; +mkerr.pl [options] [files...] + +Options: + + -conf FILE Use the named config file FILE instead of the default. + + -debug Verbose output debugging on stderr. + + -internal...
Add badges, link url Add coverity and travis-ci badges Link title to project url Remove version information from header text
-# mcuboot +# [mcuboot](http://mcuboot.com/) -This is mcuboot, version 0.9.0 +[![Coverity Scan Build Status](https://scan.coverity.com/projects/12307/badge.svg)][coverity] +[![Build/Test](https://img.shields.io/travis/runtimeco/mcuboot/master.svg?label=travis-ci)][travis] + +[coverity]: https://scan.coverity.com/projec...