message
stringlengths
6
474
diff
stringlengths
8
5.22k
docs: add chainmaker docs official website
+ [Hyperledger Fabric](https://www.hyperledger.org/use/fabric) + [Hyperledger Fabric Docs](https://hyperledger-fabric.readthedocs.io/) + [ChainMaker](https://chainmaker.org.cn/) ++ [ChainMaker Docs](https://docs.chainmaker.org.cn/) # Supported Module List
commander/btc: translate invalid_input error
@@ -187,6 +187,8 @@ static commander_error_t _api_register_script_config(const BTCRegisterScriptConf return COMMANDER_OK; case APP_BTC_ERR_USER_ABORT: return COMMANDER_ERR_USER_ABORT; + case APP_BTC_ERR_INVALID_INPUT: + return COMMANDER_ERR_INVALID_INPUT; default: return COMMANDER_ERR_GENERIC; }
decrease DTLS min timeout to 1s, as recommended by DTLS spec
@@ -1347,7 +1347,7 @@ oc_tls_populate_ssl_config(mbedtls_ssl_config *conf, size_t device, int role, if (transport_type == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { mbedtls_ssl_conf_dtls_cookies(conf, mbedtls_ssl_cookie_write, mbedtls_ssl_cookie_check, &cookie_ctx); - mbedtls_ssl_conf_handshake_timeout(conf, 2500, 20000); + mbe...
fpgad-vc: adjust sensor trip points Pull the high/low temperature trip points down/up by 5 degrees. Pull the high/low power trip points down/up by 5%. This is done to enable catching overages before the BMC takes action.
@@ -228,9 +228,18 @@ STATIC fpga_result vc_sensor_get_u64(vc_sensor *sensor, return res; } +// The percentage by which we adjust the power trip +// points so that we catch anomolies before the hw does. +#define VC_PERCENT_ADJUST_PWR 5 +// The number of degrees by which we adjust the +// temperature trip points so that ...
landscape: update glob, again
:~ title+'Landscape' info+'A suite of applications to communicate on Urbit' color+0xee.5432 - glob-http+'https://bootstrap.urbit.orgglob-0v5.14rna.n61v9.bm5g1.5mcdr.u2uba.glob' + glob-http+'https://bootstrap.urbit.org/glob-0v5.14rna.n61v9.bm5g1.5mcdr.u2uba.glob' base+'landscape' version+[1 3 5] website+'https://tlon.io...
fixed bug, if len PSK == length
@@ -131,7 +131,7 @@ static void printstraigthsweep(FILE *fh_out, int slen, int len, char *linein) static int l; static char lineout[LINEIN_MAX] = {}; -if(len > slen) +if(len >= slen) { for(l = 0; l <= len -slen; l++) { @@ -273,7 +273,7 @@ static void printxdigitsweep(FILE *fh_out, int slen, int len, char *linein) stati...
options/rtdl: fix static build
@@ -110,6 +110,8 @@ extern "C" void *interpreterMain(uintptr_t *entry_stack) { size_t phdr_count = 0; void *entry_pointer = 0; + const char *execfn = "(executable)"; + #ifndef MLIBC_STATIC_BUILD auto ldso_base = reinterpret_cast<uintptr_t>(_DYNAMIC) - reinterpret_cast<uintptr_t>(_GLOBAL_OFFSET_TABLE_[0]); @@ -158,8 +16...
industry/foc/fixed16/foc_ang_hall.c: fix warning
@@ -462,7 +462,9 @@ static int foc_angle_hl_run_b16(FAR foc_angle_b16_t *h, FAR struct foc_hall_b16_s *hl = NULL; int ret = OK; int8_t sector = -1; +#ifdef CONFIG_INDUSTRY_FOC_ANGLE_HALL_EST b16_t tmp1 = 0; +#endif DEBUGASSERT(h);
CLEANUP: tagged arcus_check_domain_name() with ENABLE_ZK_RECONFIG.
@@ -1366,7 +1366,9 @@ static void sm_reload_ZK_config(zhandle_t *zh, int *retry_ms) } #endif -static int arcus_check_domain_name(char *ensemble_list) { +#ifdef ENABLE_ZK_RECONFIG +static int arcus_check_domain_name(char *ensemble_list) +{ char *copy, *token, *save_ptr; struct hostent *zkhost; int ret; @@ -1401,6 +1403,...
Do not build tests for Ubuntu 16.04 because it requires python3.6 which Ubuntu 16.04 does not have
@@ -51,7 +51,10 @@ else fi # When building from release source (no git), turn off test items that are not distributed -if [ "$AOMP_CHECK_GIT_BRANCH" == 1 ] ; then +# also ubuntu 16.04 only has python 3.5 and lit testing needs 3.6 minimum, so turn off +# testing with ubuntu 16.04 which goes EOL in April 2021. +PN=$(cat ...
Move class compiler definition in gray roots as compiler may not be defined
@@ -2375,9 +2375,10 @@ ObjFunction *compile(DictuVM *vm, ObjModule *module, const char *source) { void grayCompilerRoots(DictuVM *vm) { Compiler *compiler = vm->compiler; - ClassCompiler *classCompiler = vm->compiler->class; while (compiler != NULL) { + ClassCompiler *classCompiler = vm->compiler->class; + while (class...
don't load CPU pool if we don't have cat features (thus we don't need to compute ctrs)
@@ -436,6 +436,8 @@ namespace NCatboostCuda { } TVector<TTargetClassifier> targetClassifiers; + //will be set to skip if pool without categorical features + EFinalCtrComputationMode ctrComputationMode = outputOptions.GetFinalCtrComputationMode(); { TBinarizedFeaturesManager featuresManager(catBoostOptions.CatFeaturePar...
Update .gitignore Add path for test results to be ignored.
-current/ -diff/ -html/ -json/ -_run/ -*.pyc -results.json -tests.json +/src/test/current/ +/src/test/diff/ +/src/test/html/ +/src/test/json/ +/src/test/_run/ +/src/test/*.pyc +/src/test/results.json +/src/test/tests.json +
HLS: Adding 1sec polling instead of high frequency polling
@@ -508,7 +508,13 @@ int dnut_kernel_sync_execute_job(struct dnut_kernel *kernel, t_start = tget_ms(); do { dnut_trace("%s: CHECK COMPLETION\n", __func__); + + /* Every second do ... */ + if (poll_trace_enabled()) { + t_now = tget_ms(); + if ((t_now - t_start) % 1000 == 0) dnut_poll_results(card); + } completed = dnut_...
Update readme with latest monkey patch API for NodeJS.
# Abstract -**METACALL** is a library that allows calling functions, methods or procedures between programming languages. With **METACALL** you can transparently execute code from / to any programming language, for example, call Python code from JavaScript code. +**METACALL** is a library that allows calling functions,...
fixed wording, because the first packet not necessarily has the lowest time stamp
@@ -542,8 +542,8 @@ printf( " \n" "network type.....................: %s (%d)\n" "endianness.......................: %s\n" "read errors......................: %s\n" - "first packet.....................: %s\n" - "last packet......................: %s\n" + "minimum time stamp...............: %s\n" + "maximum time stamp.....
CI: clarify file patterns in sonar_exclude_list.txt
# exclude list for sonarqube # Here're some examples: (relative with the idf_path) -# - test/** -# - test/*/*.c -# - test.c +# test/** +# test/*/*.c +# test.c +# # lines start with # will be ignored # FreeRTOS upstream code (don't include our port files here) -- components/freertos/*.c -- components/freertos/include/fr...
IMU->ATT and BMP->ALT on UI indicators.
<div class="row" style="margin-bottom: 4px;"> <div class="col-xs-3 text-center indicator off" id="status-calibrating">Ready</div> <div class="col-xs-2 text-center indicator off" id="status-gps">GPS</div> - <div class="col-xs-2 text-center indicator off" id="status-imu">IMU</div> - <div class="col-xs-2 text-center indic...
update ya tool arc store blob with conflicts marker print blobid of a file with conflicts marker fix header for hash calculation fix blob format for huge merge result print 'No newline at end of file'
}, "arc": { "formula": { - "sandbox_id": [335402615], + "sandbox_id": [337180803], "match": "arc" }, "executable": {
Enhance pool/blocks API with block state parameter support
@@ -166,12 +166,15 @@ namespace Miningcore.Api.Controllers [HttpGet("{poolId}/blocks")] public async Task<Responses.Block[]> PagePoolBlocksPagedAsync( - string poolId, [FromQuery] int page, [FromQuery] int pageSize) + string poolId, [FromQuery] int page, [FromQuery] int pageSize, [FromQuery] BlockStatus[] state) { var ...
Travis: Do not install CMake CMake is already part of the Travis default installation.
@@ -24,7 +24,6 @@ before_install: export PATH=/usr/local/bin:/usr/local/sbin:$PATH; brew update; brew tap caskroom/cask; - brew install cmake; brew install swig; brew install gobject-introspection; brew install python3;
parallel-libs/mumps: use correct gnu family for all mpis
@@ -96,7 +96,7 @@ cp -f %{S:5} Makefile.inc %if "%{mpi_family}" == "mpich" %global MUMPS_MPI $OHPC_MPI_FAMILY export LIBS="-L$MPI_DIR/lib -lmpi" -%if "%{compiler_family}" == "gnu" +%if "%{compiler_family}" == "%{gnu_family}" cp -f %{S:2} Makefile.inc %endif %if "%{compiler_family}" == "intel" @@ -110,7 +110,7 @@ cp -f ...
Elektra: Core: KeySet: fix warning when ENABLE_OPTIMIZATIONS=OFF
* * @param ks the KeySet */ -static void elektraOpmphmInvalidate (KeySet * ks) +static void elektraOpmphmInvalidate (KeySet * ks ELEKTRA_UNUSED) { #ifdef ELEKTRA_ENABLE_OPTIMIZATIONS if (ks && ks->opmphm) opmphmClear (ks->opmphm); @@ -62,7 +62,7 @@ static void elektraOpmphmInvalidate (KeySet * ks) * @param dest the des...
README: include WASM SIMD128 in list of completed extensions This is complete in terms of parity with LLVM's implementation, which (AFAICT) is where the C API is defined. The actual WebAssembly SIMD proposal has some more stuff (and possibly removals and/or changes), but there is no C API yet.
@@ -62,8 +62,9 @@ If you have any questions, please feel free to use the ## Current Status There are currently complete implementations of the following instruction -sets: +set extensions: +* x86 / x86_64 * [MMX](https://en.wikipedia.org/wiki/MMX_(instruction_set)) * [SSE](https://en.wikipedia.org/wiki/Streaming_SIMD_E...
Add a summary of the problem with the naive defines of "_s" functions
/* Secure versions of functions */ #if 0 + /* + * The current issues with those 4 defines: + * - strncpy redefinition is wrong + * - Theses functions assume they are being called on C arrays + * only. Using `countof` on a heap allocated pointer is + * undefined behavior and `sizeof` will only return the byte + * size o...
zuse: adds |base16 hex $oct en/decoder
:::: ++mimes:html :: (2e1) MIME :: :::: ++ mimes ^? + ~% %mimes ..is ~ |% :: :: ++as-octs:mimes:html ++ as-octs :: atom to octstream ?~ myn ~ ?: =(~ t.myn) (trip i.myn) (weld (trip i.myn) `tape`['/' $(myn t.myn)]) + :: + :: |base16: en/decode arbitrary MSB-first hex strings + :: + ++ base16 + ~% %base16 + ~ + |% + ++ e...
libbpf-tools: fix uprobe helper get_elf_func_offset get_elf_func_offset didn't work properly when use with statically linked binary. It seems like not subtract the base load address cause the problem. This commits fixes that like BCC does. see [0] and [1]. [0]: [1]:
@@ -228,13 +228,18 @@ off_t get_elf_func_offset(const char *path, const char *func) Elf *e; Elf_Scn *scn; Elf_Data *data; + GElf_Ehdr ehdr; GElf_Shdr shdr[1]; + GElf_Phdr phdr; GElf_Sym sym[1]; - size_t shstrndx; + size_t shstrndx, nhdrs; char *n; e = open_elf(path, &fd); + if (!gelf_getehdr(e, &ehdr)) + goto out; + if...
Work CI-CD Fix condition to archive artifacts on PR build for develop branches. ***NO_CI***
@@ -52,7 +52,7 @@ steps: eq(variables['System.PullRequest.PullRequestId'], ''), or( eq(variables['ForceUpload'], true), - startsWith(variables['Build.SourceBranchName'], 'main') + startsWith(variables['Build.SourceBranchName'], 'develop') ) ) displayName: Zip binary files (preview)
Fix bug that ACK after getting 1-RTT is still in Handshake packet
@@ -1447,6 +1447,9 @@ static ssize_t conn_write_client_handshake(ngtcp2_conn *conn, uint8_t *dest, tx_buf, ts); } +static ssize_t conn_write_protected_ack_pkt(ngtcp2_conn *conn, uint8_t *dest, + size_t destlen, ngtcp2_tstamp ts); + /* * conn_write_server_handshake writes Handshake packet in the buffer * pointed by |des...
Remove unused wifi database code
@@ -741,32 +741,7 @@ void DeRestPluginPrivate::loadWifiInformationFromDb() } { - QString sql = QLatin1String("SELECT * FROM config2 WHERE key='availablewifi'"); - - DBG_Printf(DBG_INFO_L2, "sql exec %s\n", qPrintable(sql)); - rc = sqlite3_exec(db, qPrintable(sql), sqliteLoadConfigCallback, this, &errmsg); - - if (rc !=...
Shell Recorder: Fix number of executed tests Before this update we used the global variable `nbTest` and `nbError` to count the number of tests and errors. Unfortunately the library file `include_common.sh` also uses these variables. As a consequence the Markdown Shell Recorder counted uninteresting test, such as succe...
@@ -166,6 +166,7 @@ Many problems were resolved with the following fixes: - We now disable the [Xerces plugin](http://libelektra.org/plugins/xerces) if you use GCC with enabled ASAN to build Elektra. This update makes sure that you do not build the plugin with compilation settings that are known to [cause problems](htt...
Work CI-CD Fix publishing to Cloudsmith for community targets. ***NO_CI***
@@ -60,7 +60,7 @@ steps: # execute on 'ForceUpload' parameter - task: PowerShell@2 - condition: or( eq(variables['ForceUpload'], true), and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), or( eq(variables['Build.SourceBranchName'], 'develop'), eq(variables['Build.SourceBranchName'], 'master'), contains(vari...
nimble/ll: Fix updating advertiser RPA on AUX_CONNECT_RSP In adv_addr there is an address we shall use and not to try to decoded it from rxbuf. This patch fixes that. This fixes HCI/CM/BV-04-C
@@ -3040,7 +3040,7 @@ ble_ll_init_rx_pkt_in(uint8_t pdu_type, uint8_t *rxbuf, } if (connsm->rpa_index >= 0) { - ble_ll_scan_set_peer_rpa(rxbuf + BLE_LL_PDU_HDR_LEN); + ble_ll_scan_set_peer_rpa(adv_addr); #if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_PRIVACY) /* Update resolving list with current peer RPA */
include/config_std_internal_flash.h: Format with clang-format BRANCH=none TEST=none
* This is NOT a globally defined config, and is only used in this file * for convenience. */ -#define _IMAGE_SIZE ((CONFIG_FLASH_SIZE_BYTES - \ - CONFIG_SHAREDLIB_SIZE) / 2) +#define _IMAGE_SIZE ((CONFIG_FLASH_SIZE_BYTES - CONFIG_SHAREDLIB_SIZE) / 2) /* * The EC uses the one bank of flash to emulate a SPI-like write pr...
remove eth group cmake flags
@@ -109,11 +109,7 @@ set_property(DIRECTORY PROPERTY "${CMAKE_CURRENT_SOURCE_DIR}/dist" ) -if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0) - set_source_files_properties(src/eth_group.cpp PROPERTIES COMPILE_FLAGS -fno-lto) -endif() set_target_properties(opaeuio PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE) -#target_inclu...
Added normalizeHistogram and computeAsCDF to requires recalculation call
@@ -1457,6 +1457,10 @@ HistogramAttributes::FieldsEqual(int index_, const AttributeGroup *rhs) const bool HistogramAttributes::ChangesRequireRecalculation(const HistogramAttributes &obj) const { + if (minFlag != obj.GetMinFlag()) + return true; + if (maxFlag != obj.GetMaxFlag()) + return true; if (minFlag && (min != ob...
examples: fix the RS485 line driver in the readme Closes
@@ -13,7 +13,7 @@ The approach demonstrated in this example can be used in user application to tra ### Hardware Required PC + USB Serial adapter connected to USB port + RS485 line drivers + Espressif development board. -The MAX485 line driver is used for example below but other similar chips can be used as well. +The M...
Restore compatibility with GOST2001 implementations.
@@ -623,7 +623,12 @@ int tls_collect_extensions(SSL *s, PACKET *packet, unsigned int context, && type != TLSEXT_TYPE_cookie && type != TLSEXT_TYPE_renegotiate && type != TLSEXT_TYPE_signed_certificate_timestamp - && (s->ext.extflags[idx] & SSL_EXT_FLAG_SENT) == 0) { + && (s->ext.extflags[idx] & SSL_EXT_FLAG_SENT) == 0 ...
Update the comments in makeHashAggEntryForInput() The code doesn't call ExecCopySlotMemTupleTo() as the comments was speaking, and the two times of memtuple_form_to() are confusing, at least to me, update it.
@@ -298,10 +298,12 @@ makeHashAggEntryForInput(AggState *aggstate, TupleTableSlot *inputslot, uint32 h entry->next = NULL; /* - * Copy memtuple into group_buf. Remember to always allocate - * enough space before calling ExecCopySlotMemTupleTo() because - * this function will call palloc() to allocate bigger space if - ...
Testcase for regression by PPC64 fixed length montgomery multiplication
@@ -97,6 +97,18 @@ Key = P-256-PUBLIC Input = "Hello World" Output = 3046022100e7515177ec3817b77a4a94066ab3070817b7aa9d44a8a09f040da250116e8972022100ba59b0f631258e59a9026be5d84f60685f4cf22b9165a0c2736d5c21c8ec1862 +PublicKey=P-384-PUBLIC +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAES/TlL5WEJ+u1kV+4yVlVU...
Bumped ImGui version and updated mode-specific settings in xmake.lua
@@ -3,16 +3,20 @@ set_xmakever("2.5.1") set_languages("cxx20") set_arch("x64") -add_requires("spdlog", "nlohmann_json", "hopscotch-map", "minhook", "mem", "imgui 1.81", "sol2", "tiltedcore 0.2.0", "sqlite3", "luajit") -add_requireconfs("imgui", { configs = { cxflags = "/DNDEBUG" } }) +add_requires("spdlog", "nlohmann_j...
Update README.md .\ required to execute vcpkg.exe in Powershell (default for Windows Terminal).
@@ -285,7 +285,7 @@ cd vcpkg # build vcpkg (remove .bat on Linux/Mac) .\bootstrap-vcpkg.bat # install dependencies (remove .exe in Linux/Mac) and update triplet -vcpkg.exe install --triplet x64-windows-static curl[winssl] cmocka paho-mqtt +.\vcpkg.exe install --triplet x64-windows-static curl[winssl] cmocka paho-mqtt #...
cups-browsed: Fixed bug in local queue naming for IPP printers.
@@ -4898,7 +4898,7 @@ examine_discovered_printer_record(const char *host, /* This is an IPP-based network printer */ is_cups_queue = 0; /* Determine the queue name */ - if (LocalQueueNamingRemoteCUPS == LOCAL_QUEUE_NAMING_MAKE_MODEL && + if (LocalQueueNamingIPPPrinter == LOCAL_QUEUE_NAMING_MAKE_MODEL && make_model) /* ...
Prepare to generalize a raczlib.Reader
@@ -106,7 +106,7 @@ type Reader struct { // Calling Seek may reset the state machine to "State A". // // The initial state is "State A". - zlibReader io.ReadCloser + zlibReader io.Reader inImplicitZeroes bool // buf is a scratch buffer. @@ -249,13 +249,15 @@ func (r *Reader) readExplicitData(p []byte) (int, error) { } ...
Add Avast to "Who's using YARA". Avast is using YARA e.g. in via
@@ -50,6 +50,7 @@ helpful extension to YARA developed and open-sourced by Bayshore Networks. * [ActiveCanopy](https://activecanopy.com/) * [Adlice](http://www.adlice.com/) * [AlienVault](https://otx.alienvault.com/) +* [Avast](https://www.avast.com/) * [BAE Systems](http://www.baesystems.com/home?r=ai) * [Bayshore Netw...
Fixed ReadBankedUWORD, now pulls out two bytes and multiplies them, not sure why this didn't work before...
@@ -45,8 +45,11 @@ UBYTE ReadBankedUBYTE(UBYTE bank, unsigned char *ptr) UWORD ReadBankedUWORD(UBYTE bank, unsigned char *ptr) { UWORD value; + UBYTE hi, lo; PUSH_BANK(bank); - value = *(UWORD *) ptr; + hi = *(UBYTE *) ptr; + lo = *(UBYTE *) (ptr+1); + value = (hi*0xFFu) + lo; POP_BANK; return value; }
compilation on Red Hat/CentOS
@@ -63,6 +63,12 @@ else ARFLAGS ?= rs endif +ifeq ($(BUILDTYPE), Linux) +ifneq (,$(findstring Red Hat,$(shell gcc --version))) + CPPFLAGS+=-I/usr/include/lapacke/ + LDFLAGS+=-L/usr/lib64/atlas -ltatlas +endif +endif ifeq ($(UNAME),Cygwin) BUILDTYPE = Cygwin
Update mod_auth_openidc.c fixes
@@ -464,7 +464,7 @@ apr_byte_t oidc_post_preserve_javascript(request_rec *r, const char *location, apr_psprintf(r->pool, " <script type=\"text/javascript\">\n" " function %s() {\n" - " localStorage.setItem('mod_auth_openidc_preserve_post_params', JSON.stringify(%s));\n" + " sessionStorage.setItem('mod_auth_openidc_pres...
Fix string size calculation Related to Previous PR, I had cleaned up at the end of creating it, but I forgot to edit a part.
@@ -180,8 +180,7 @@ inline static long rails_xss_friendly_size(const uint8_t *str, size_t len) { } inline static size_t rails_friendly_size(const uint8_t *str, size_t len) { - size_t size = calculate_string_size(str, len, rails_friendly_chars); - return size - len * (size_t)'0'; + return calculate_string_size(str, len,...
Fix sensor.read_reg
@@ -482,17 +482,19 @@ __weak int sensor_shutdown(int enable) __weak int sensor_read_reg(uint16_t reg_addr) { + int ret; + // Check if the control is supported. if (sensor.read_reg == NULL) { return SENSOR_ERROR_CTL_UNSUPPORTED; } // Call the sensor specific function. - if (sensor.read_reg(&sensor, reg_addr) == -1) { + ...
Assert that server does not exceed amplification limit
@@ -7275,6 +7275,8 @@ static size_t conn_server_hs_tx_left(ngtcp2_conn *conn) { /* From QUIC spec: Prior to validating the client address, servers MUST NOT send more than three times as many bytes as the number of bytes they have received. */ + assert(conn->cstat.bytes_recv * 3 >= conn->cstat.bytes_sent); + return conn...
groups: add margin to mobile invite popover
@@ -90,7 +90,9 @@ export function InvitePopover(props: InvitePopoverProps) { borderColor="washedGray" borderRadius={1} maxHeight="472px" - width="380px" + width="100%" + maxWidth="380px" + mx={[4,0]} bg="white" > <Formik
Update live dump parameters for Win11
@@ -81,7 +81,7 @@ NTSTATUS PhpCreateLiveKernelDump( status = NtSystemDebugControl( SysDbgGetLiveKernelDump, &liveDumpControl, - sizeof(SYSDBG_LIVEDUMP_CONTROL), + RTL_SIZEOF_THROUGH_FIELD(SYSDBG_LIVEDUMP_CONTROL, AddPagesControl), NULL, 0, NULL
Enable buiding ASE by default Enable buiding ASE by default
@@ -130,7 +130,7 @@ add_subdirectory(tools/fpgaport) add_subdirectory(tools/hssi) add_subdirectory(tools/packager) -option(BUILD_ASE "Enable ASE compilation" OFF) +option(BUILD_ASE "Enable ASE compilation" ON) mark_as_advanced(BUILD_ASE) if(BUILD_ASE) add_subdirectory(ase/api)
tcpretrans: use user-space PID displayed to the user PID collected in tcpretrans' trace_event() is displayed under the label of "PID" to the user so it would seem more appropriate to use TGID as PID not kernel's PID.
@@ -98,7 +98,7 @@ static int trace_event(struct pt_regs *ctx, struct sock *skp, int type) { if (skp == NULL) return 0; - u32 pid = bpf_get_current_pid_tgid(); + u32 pid = bpf_get_current_pid_tgid() >> 32; // pull in details u16 family = skp->__sk_common.skc_family;
help for l1-Fourier
@@ -57,6 +57,7 @@ void help_reg(void) "-R N:A:B:C\tNormalized Iterative Hard Thresholding (NIHT), image domain\n" "\t\tC is an integer percentage, i.e. from 0-100\n" "-R H:A:B:C\tNIHT, wavelet domain\n" + "-R F:A:B:C\tl1-Fourier\n" "-R T:A:B:C\ttotal variation\n" "-R T:7:0:.01\t3D isotropic total variation with 0.01 re...
Add sceNpCommerce2GetDrmContentCreateReq nid Update SceNpCommerce2.yml
@@ -27,6 +27,7 @@ modules: sceNpCommerce2GetContentRatingDescriptor: 0x315B9BD0 sceNpCommerce2GetContentRatingInfoFromCategoryInfo: 0xD6A5B200 sceNpCommerce2GetContentRatingInfoFromGameProductInfo: 0x7894DCDF + sceNpCommerce2GetDrmContentCreateReq: 0x9DF3CBCC sceNpCommerce2GetGameProductInfo: 0xA308B496 sceNpCommerce2G...
examples/module: Fix error: unused variable 'desc'
@@ -151,6 +151,10 @@ int main(int argc, FAR char *argv[]) #ifdef CONFIG_BUILD_FLAT struct boardioc_symtab_s symdesc; #endif +#if defined(CONFIG_EXAMPLES_MODULE_BUILTINFS) && \ + defined(CONFIG_EXAMPLES_MODULE_ROMFS) + struct boardioc_romdisk_s desc; +#endif #if defined(CONFIG_EXAMPLES_MODULE_FSMOUNT) && \ defined(CONFI...
Clean up some annoying uses of atoi Just use crummy old sscanf for now.
@@ -2218,6 +2218,15 @@ void push_portmidi_output_device_menu(Midi_mode const* midi_mode) { // Misc utils // +bool read_int(char const* str, int* out) { + int a; + int res = sscanf(str, "%d", &a); + if (res != 1) + return false; + *out = a; + return true; +} + // Reads something like '5x3' or '5'. Writes the same value ...
[OpenGL] Don't set display size to scissor box if its size is just 1 by 1
@@ -190,15 +190,18 @@ void imgui_render() GLVec vp; glGetIntegerv (GL_VIEWPORT, vp.v); GLVec sb; glGetIntegerv (GL_SCISSOR_BOX, sb.v); - if (vp != last_vp) { + bool invalid_scissor = (sb[2] == 1 && sb[3] == 1); + + if (vp != last_vp || invalid_scissor) { #ifndef NDEBUG printf("viewport: %d %d %d %d\n", vp[0], vp[1], vp...
Simplify PING frame handling for probe packet Simplify PING frame handling for probe packet by removing additional conditions which is considered to be a legacy of early implementation.
@@ -2506,12 +2506,8 @@ conn_write_handshake_pkt(ngtcp2_conn *conn, ngtcp2_pkt_info *pi, uint8_t *dest, } } - /* Don't send any PING frame if client Initial has not been - acknowledged yet. */ if (!(rtb_entry_flags & NGTCP2_RTB_ENTRY_FLAG_ACK_ELICITING) && - pktns->rtb.probe_pkt_left && - (type != NGTCP2_PKT_INITIAL || ...
Fix bug that conn_call_recv_version_negotiation always returns 0
@@ -457,7 +457,7 @@ static int conn_call_recv_version_negotiation(ngtcp2_conn *conn, rv = conn->callbacks.recv_version_negotiation(conn, hd, sv, nsv, conn->user_data); if (rv != 0) { - rv = NGTCP2_ERR_CALLBACK_FAILURE; + return NGTCP2_ERR_CALLBACK_FAILURE; } return 0;
Fixed open mode in ftrace test
@@ -69,7 +69,7 @@ open_and_write(const char * fname, const char * str) ssize_t bytes; int fd; - fd = open(fname, O_RDONLY); + fd = open(fname, O_RDWR); if (fd < 0) { fprintf(stderr, "Failed to open %s: %s\n", fname, strerror(errno)); exit(EXIT_FAILURE);
use 'install' replace 'cp'
@@ -28,10 +28,5 @@ install: chmod 777 -R $(GRADIR) install -m 755 test/bpf/collect.py $(COLLECTDIR) install -m 640 test/bpf/collect.c $(COLLECTDIR) -# install -m 640 test/grafana/'hardirq && hardirq-1587457361065.json' $(DASHDIR) -# install -m 640 test/prometheus/'--net=bridge' $(PRODIR) -# install -m 640 test/promethe...
espressif: Fix ESP32-C3 support for booting signed apps
MEMORY { - iram_seg (RWX) : org = 0x403CA000, len = 0x6000 - iram_loader_seg (RWX) : org = 0x403D0000, len = 0x2000 - dram_seg (RW) : org = 0x3FCD6000, len = 0x6000 + iram_seg (RWX) : org = 0x403CB000, len = 0x5000 + iram_loader_seg (RWX) : org = 0x403D0000, len = 0x6000 + dram_seg (RW) : org = 0x3FCD6000, len = 0x7000...
CMakeLists: bump version to v9.8.0
@@ -89,8 +89,8 @@ endif() # # Versions MUST contain three parts and start with lowercase 'v'. # Example 'v1.0.0'. They MUST not contain a pre-release label such as '-beta'. -set(FIRMWARE_VERSION "v9.7.0") -set(FIRMWARE_BTC_ONLY_VERSION "v9.7.0") +set(FIRMWARE_VERSION "v9.8.0") +set(FIRMWARE_BTC_ONLY_VERSION "v9.8.0") s...
Nimble: Disable RPA before BLE disable
@@ -626,7 +626,16 @@ BTStatus_t prvBTDisable() BTStatus_t xStatus = eBTStatusFail; int rc; + rc = ble_hs_pvcy_rpa_config( 0 ); + if( rc != 0 ) + { + ESP_LOGE( TAG, "Failed to disable RPA config, reason = %d\n", rc ); + } + + if( rc == 0 ) + { rc = nimble_port_stop(); + } if( rc == 0 ) {
nimble/ll/css: Always enable css if vs hci is disabled Without vs hci there's nothing else to enable css...
@@ -1204,6 +1204,9 @@ ble_ll_sched_init(void) g_ble_ll_sched_css.slot_us = MYNEWT_VAL(BLE_LL_CONN_STRICT_SCHED_SLOT_US); g_ble_ll_sched_css.period_slots = MYNEWT_VAL(BLE_LL_CONN_STRICT_SCHED_PERIOD_SLOTS); #endif +#if !MYNEWT_VAL(BLE_LL_HCI_VS_CONN_STRICT_SCHED) + g_ble_ll_sched_css.enabled = 1; +#endif #endif return 0...
Update Readme file with details on HW crypto acceleration
@@ -23,6 +23,14 @@ Size of slots `0x10000` - 64kb MCUBootApp checks image integrity with SHA256, image authenticity with EC256 digital signature verification and uses completely SW implementation of cryptographic functions based on mbedTLS Library. +**Hardware cryptography acceleration:** + +Cypress PSOC6 MCU family su...
Check if file read is completed
@@ -35,7 +35,9 @@ M3Result repl_load (IM3Runtime runtime, const char* fn) return "cannot allocate memory for wasm binary"; } - fread (wasm, 1, fsize, f); + if (fread (wasm, 1, fsize, f) != fsize) { + return "cannot read file"; + } fclose (f); IM3Module module; @@ -250,7 +252,7 @@ int main (int i_argc, const char* i_arg...
Add Widget_UnbindEventByHandlerId()
@@ -459,6 +459,11 @@ int Widget_UnbindEventById( LCUI_Widget widget, int event_id, CompareEventHandlerKey, func ); } +int Widget_UnbindEventByHandlerId( LCUI_Widget widget, int handler_id ) +{ + return EventTrigger_Unbind2( widget->trigger, handler_id ); +} + int Widget_UnbindEvent( LCUI_Widget widget, const char *even...
clear sixtop state if ack is not received after max retries reached
@@ -931,8 +931,18 @@ void sixtop_six2six_sendDone(OpenQueueEntry_t* msg, owerror_t error){ // if this is a request send done if (msg->l2_sixtop_messageType == SIXTOP_CELL_REQUEST){ if(error == E_FAIL) { + // max retries, without ack + switch (sixtop_vars.six2six_state) { + + case SIX_STATE_WAIT_CLEARREQUEST_SENDDONE: +...
Fix PRNG code returning negative array offsets
@@ -690,7 +690,8 @@ static void construct_block_size_descriptor_2d( int arr_elements_set = 0; while (arr_elements_set < 64) { - int idx = ((int)astc::rand(rng_state)) % (xdim * ydim); + unsigned int idx = (unsigned int)astc::rand(rng_state); + idx %= xdim * ydim; if (arr[idx] == 0) { arr_elements_set++; @@ -855,7 +856,...
tools: acrnd: the acrnd work list Acrnd can and put delayed work functions in a work list.
#include "acrn_mngr.h" #include "ioc.h" +/* acrnd worker timer */ + +struct work_arg { + char name[VMNAME_LEN]; +}; + +struct acrnd_work { + void (*func) (struct work_arg *arg); + time_t expire; /* when execute this work */ + + struct work_arg arg; + + LIST_ENTRY(acrnd_work) list; +}; + +static LIST_HEAD(acrnd_work_lis...
Remove reference to missing image Image missing due to README update
<a href="https://comma.ai/shop/products/panda-obd-ii-dongle"><img src="https://github.com/commaai/panda/blob/master/panda.png"> -<img src="https://github.com/commaai/panda/blob/master/buy.png"></a> - It supports 3x CAN, 2x LIN, and 1x GMLAN. It also charges a phone. On the computer side, it has USB. It uses an [STM32F4...
abis/mlibc: Define additional network constants
@@ -131,6 +131,9 @@ struct group_source_req { #define MCAST_JOIN_SOURCE_GROUP 46 #define MCAST_LEAVE_SOURCE_GROUP 47 +#define IP_PMTUDISC_DONT 0 +#define IP_PMTUDISC_DO 2 + #define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP #define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
Fixes an issue with custom rules tracking files. Using 'Build Rules' would sometimes cause the tracker ignore changes in a source file, because of the tracker file being in the wrong directory.
p.w('<WriteLinesToFile') p.w(' Condition="\'@(%s_tlog)\' != \'\' and \'%%(%s_tlog.ExcludedFromBuild)\' != \'true\'"', r.name, r.name) - p.w(' File="$(IntDir)$(ProjectName).read.1.tlog"') + p.w(' File="$(TLogLocation)%s.read.1.tlog"', r.name) p.w(' Lines="^%%(%s_tlog.Inputs);%s$(MSBuildProjectFullPath);%%(%s_tlog.Fullpa...
Test CDATA is passed correctly from little-endian input
@@ -2189,6 +2189,31 @@ START_TEST(test_good_cdata_utf16) } END_TEST +START_TEST(test_good_cdata_utf16_le) +{ + /* Test data is: + * <?xml version='1.0' encoding='utf-16'?> + * <a><![CDATA[hello]]></a> + */ + const char text[] = + "<\0?\0x\0m\0l\0" + " \0v\0e\0r\0s\0i\0o\0n\0=\0'\0\x31\0.\0\x30\0'\0" + " \0e\0n\0c\0o\0d...
Makefile.include: replaced CONTIKIDIRS with MODULES and removed APPS
@@ -72,7 +72,7 @@ TARGET_BOARD_UPPERCASE := ${strip ${shell echo $(BOARD) | sed y!$(LOWERCASE)!$(U CFLAGS += -DCONTIKI_BOARD_$(TARGET_BOARD_UPPERCASE)=1 endif -MODULES += os/sys os/dev os/lib +MODULES += os os/sys os/dev os/lib # Include IPv6, RPL @@ -104,10 +104,7 @@ else CFLAGS += -DUIP_CONF_IPV6_RPL=0 endif -CONTIKI...
removed unnecessary debug printf
@@ -1511,10 +1511,6 @@ if(eapauth->type == EAPOL_KEY) if(disassociationflag == false) { send_disassociation(macfrx->addr2, macfrx->addr1, WLAN_REASON_DISASSOC_AP_BUSY); - if((statusout & STATUS_EAPOL) == STATUS_EAPOL) - { - printtimenet(macfrx->addr1, macfrx->addr2); - } } } memset(&laststam2, 0, 6);
groups: removing spammy log
@@ -25,7 +25,6 @@ const getGraphUnreads = (associations: Associations) => { const selUnread = (graph: string) => { const { count, each } = selHarkGraph(graph)(state); const result = count + each.length; - console.log(graph, result); return result; }; return (path: string) =>
nissa: remove obsolete TODO USB retimers are configured as needed now, so the TODO to configure them was obsolete. TEST=builds BRANCH=none
@@ -114,7 +114,6 @@ CONFIG_PLATFORM_EC_USB_PID=0x505a CONFIG_PLATFORM_EC_USB_PD_USB4=n CONFIG_PLATFORM_EC_USB_PD_TBT_COMPAT_MODE=n -# TODO(b/216085548): configure USB retimers CONFIG_PLATFORM_EC_USB_MUX_RUNTIME_CONFIG=y CONFIG_PLATFORM_EC_USB_MUX_VIRTUAL=y # ADL integrated muxes are slow: unblock PD
sysrepo BUGFIX expected atomic value is not atomic variable Refs
@@ -3490,15 +3490,14 @@ sr_unsubscribe_sub(sr_subscription_ctx_t *subscription, uint32_t sub_id) static int _sr_subscription_thread_suspend(sr_subscription_ctx_t *subscription) { - ATOMIC_T exp; + uint_fast32_t exp; int result; - ATOMIC_STORE_RELAXED(exp, 1); - /* expect 1 and set to 2 */ + exp = 1; ATOMIC_COMPARE_EXCH...
kernel/os: Allow stacks without "static" This commit introduces a new macro: OS_TASK_STACK_DEFINE_NOSTATIC. This macro defines a task stack, but without a leading "static" and trailing ";". This macro is needed to to create an array of stacks.
extern "C" { #endif +#define OS_TASK_STACK_DEFINE_NOSTATIC(__name, __size) \ + os_stack_t __name [OS_STACK_ALIGN(__size)] \ + __attribute__((aligned(OS_STACK_ALIGNMENT))) + #define OS_TASK_STACK_DEFINE(__name, __size) \ - static os_stack_t __name [OS_STACK_ALIGN(__size)] \ - __attribute__((aligned(OS_STACK_ALIGNMENT)))...
Updated documentation for real-time HTML report through Docker.
@@ -201,6 +201,10 @@ A Docker image has been updated, capable of directing output from an access log. cat access.log | docker run --rm -i -e LANG=$LANG allinurl/goaccess -a -o html --log-format COMBINED - > report.html +OR real-time + + cat access.log | docker run -p 7890:7890 --rm -i -e LANG=$LANG allinurl/goaccess -a...
BugID:17132113: [WhiteScan] [587450] [STRING_OVERFLOW] /home/iot/WhiteScan/network/sal/athost/atcmd/at_tcp_udp.c [WhiteScan] [587531] [UNREACHABLE] /home/iot/WhiteScan/network/sal/athost/atcmd/at_tcp_udp.c [WhiteScan] [587322] [STRING_OVERFLOW] /home/iot/WhiteScan/network/sal/athost/atcmd/at_tcp_udp.c
@@ -570,7 +570,7 @@ static int notify_cip_data_recv_event(int sockid, char *databuf, int datalen, type_str = "UDP_BROADCAST"; remoteip = inet_ntoa(remote->sin_addr); - memcpy(addr_str, remoteip, strlen(remoteip)); + strncpy(addr_str, remoteip, sizeof(addr_str)); port = ntohs(remote->sin_port); } else { type_str = "SOCK...
allow netlink interface in driver check
@@ -4958,7 +4958,7 @@ if(ioctl(fd_socket, SIOCGIWMODE, &iwr_old) < 0) return false; } -if((iwr.u.mode & IW_MODE_MONITOR) != IW_MODE_MONITOR) +if((iwr_old.u.mode & IW_MODE_MONITOR) != IW_MODE_MONITOR) { memset(&ifr, 0, sizeof(ifr)); strncpy( ifr.ifr_name, interfacename, IFNAMSIZ -1); @@ -5008,7 +5008,7 @@ if((iwr.u.mode...
Fix uninitialized POD member
@@ -26,7 +26,7 @@ namespace NCB { struct TSrcData { TStringBuf CdFileData; TStringBuf DsvFileData; - bool DsvFileHasHeader; + bool DsvFileHasHeader = false; TStringBuf PairsFileData; TStringBuf GroupWeightsFileData; TVector<ui32> IgnoredFeatures;
Windows File Attribute Fixes
#define VER_COMPANYNAME_STR "Microsoft Corporation" #define VER_FILEDESCRIPTION_STR "Microsoft\256 QUIC Library" #define VER_INTERNALNAME_STR "msquic" -#define VER_LEGALCOPYRIGHT_STR "\251 Microsoft Corporation." +#define VER_LEGALCOPYRIGHT_STR "\251 Microsoft Corporation. All rights reserved." #define VER_PRODUCTNAME_...
SoapyLMS:set bandwidth to sample rate if bandwidth is not set
@@ -439,6 +439,17 @@ void SoapyLMS7::setSampleRate(const int direction, const size_t channel, const d SoapySDR::logf(SOAPY_SDR_DEBUG, "setSampleRate(%s, %d, %g MHz)", dirName, int(channel), rate/1e6); auto ret = lms7Device->SetRate(direction == SOAPY_SDR_TX, rate, oversampling); + + //if bandwidth is not explicitly sel...
BugID:21512518:reduce MAC AT query frequnce
@@ -101,14 +101,17 @@ static void mac_str_to_hex(char *str, uint8_t *mac) // mac - hex[6] static void wifi_get_mac_addr(hal_wifi_module_t *m, uint8_t *mac) { - char mac_str[MAC_STR_LEN+1] = {0}; + static char mac_str[MAC_STR_LEN+1] = {0}; if (!mac) return; (void)m; LOGD(TAG, "wifi_get_mac_addr!!\n"); + // reduce AT sen...
Remove quotes around string when converting string object to cstring
@@ -617,8 +617,9 @@ char *objectToString(Value value) { case OBJ_STRING: { ObjString *stringObj = AS_STRING(value); - char *string = malloc(sizeof(char) * stringObj->length + 3); - snprintf(string, stringObj->length + 3, "'%s'", stringObj->chars); + char *string = malloc(sizeof(char) * stringObj->length + 1); + memcpy(...
Improve dpkg-query performance
@@ -157,6 +157,8 @@ BOOLEAN PhInitializeLxssImageVersionInfo( _In_ PPH_STRING FileName ) { + static PH_STRINGREF lxssDpkgCommandLine = PH_STRINGREF_INIT(L"dpkg -S "); + static PH_STRINGREF lxssDpkgQueryCommandLine = PH_STRINGREF_INIT(L"dpkg-query -W -f=${Version}|${Maintainer}|${binary:Summary} "); BOOLEAN success = FA...
ocvalidate: Fix alphabetical order
@@ -30,9 +30,9 @@ KEXT_PRECEDENCE mKextPrecedence[] = { { "AirportBrcmFixup.kext", "Lilu.kext" }, { "BrightnessKeys.kext", "Lilu.kext" }, { "CpuTscSync.kext", "Lilu.kext" }, - { "CryptexFixup.kext", "Lilu.kext" }, { "CPUFriend.kext", "Lilu.kext" }, { "CPUFriendDataProvider.kext", "CPUFriend.kext" }, + { "CryptexFixup.k...
Fix wrong counting logline when flashing
@@ -2016,7 +2016,7 @@ int stlink_write_flash(stlink_t *sl, stm32_addr_t addr, uint8_t* base, uint32_t if (sl->verbose >= 1) { /* show progress. writing procedure is slow and previous errors are misleading */ - fprintf(stdout, "\r%3u/%lu pages written", write_block_count++, (unsigned long)(len/sl->flash_pgsz)); + fprint...
Fix modules callback return. When a modules callback returns we should return that status, not always return ERROR_SUCCESS, because if the module callback failed for whatever reason we should honor that.
@@ -183,12 +183,10 @@ int yr_modules_load( } } - result = context->callback( + return context->callback( CALLBACK_MSG_MODULE_IMPORTED, module_structure, context->user_data); - - return ERROR_SUCCESS; }
bq25710: Replace some macros with functions This replaces the IIN_DPM_REG_TO_CURRENT and IIN_HOST_CURRENT_TO_REG macros with equivalent functions to make the implementation more robust. BRANCH=none TEST=buildall passes
#define INPUT_RESISTOR_RATIO \ ((CONFIG_CHARGER_SENSE_RESISTOR_AC) / DEFAULT_SENSE_RESISTOR) -#define IIN_DPM_REG_TO_CURRENT(REG) (((REG) + 1) * \ - BQ25710_IIN_DPM_CURRENT_STEP_MA / \ - INPUT_RESISTOR_RATIO) -#define IIN_HOST_CURRENT_TO_REG(CUR) (((CUR) * \ - INPUT_RESISTOR_RATIO / \ - BQ25710_IIN_HOST_CURRENT_STEP_MA...
Use elektraFreeError in test
@@ -55,6 +55,7 @@ static void test_getters () if (error) { yield_error ("elektraOpen failed"); printf ("ElektraError: %s\n", elektraErrorDescription(error)); + elektraErrorFree(error); } succeed_if (!elektraStrCmp(elektraGetString(elektra, "stringKey"), "A string"), "Wrong key value.");
py/modio: resource_stream: Update for explicit frozen module vpath.
@@ -229,7 +229,9 @@ STATIC mp_obj_t resource_stream(mp_obj_t package_in, mp_obj_t path_in) { vstr_add_strn(&path_buf, path, len); len = path_buf.len; - const char *data = mp_find_frozen_str(path_buf.buf, &len); + if (*path_buf.buf == FROZEN_VPATH_CHAR) { + len--; + const char *data = mp_find_frozen_str(path_buf.buf + 1...
BugID:17624932:[build-rules] fix second make failed on macOS
@@ -8,7 +8,7 @@ sub-mods: toolchain JOBS_NUM=32; \ if [ "$${CORE_NUM}" != "" ]; then JOBS_NUM=$${CORE_NUM}; fi; \ if [ "$(Q)" != "@" ]; then JOBS_NUM=0; fi; \ - rm -f $(OUTPUT_DIR)${bindir}/* && \ + rm -rf $(OUTPUT_DIR)${bindir}/* && \ if [ -f $(STAMP_LCOV) ] && [ "$(WITH_LCOV)" != "1" ]; then \ $(MAKE) --no-print-dire...