message
stringlengths
6
474
diff
stringlengths
8
5.22k
Add Nozomi Networks to "who's using YARA" list
@@ -73,6 +73,7 @@ helpful extension to YARA developed and open-sourced by Bayshore Networks. * [McAfee Advanced Threat Defense](http://mcafee.com/atd) * [Metaflows](http://www.metaflows.com) * [NBS System](https://www.nbs-system.com/) +* [Nozomi Networks](https://www.nozominetworks.com) * [osquery](http://www.osquery.i...
SOVERSION bump to version 1.3.19
@@ -48,7 +48,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 3) -set(LIBNETCONF2_MICRO_SOVERSION 18) +set(LIB...
add_assignment: don't crash if assignment isn't found add_assignment previously didn't handle the case where an existing config assignment was not found, and segfaulted. Fix that by inserting brand-new assignments at the end of the config list.
@@ -385,6 +385,12 @@ add_assignment(char **lines, const char *varname, const char *fmt, ...) iinsert = isrc; } + if (iinsert < 0) + { + /* No assignment found? Insert at the end. */ + iinsert = isrc; + } + /* Build assignment. */ va_start(args, fmt); if (superseded)
component/bt: Fix a potential double free error.
@@ -306,8 +306,11 @@ void bta_gattc_clcb_dealloc(tBTA_GATTC_CLCB *p_clcb) p_srcb->p_srvc_cache = NULL; } } + + if ( p_clcb->p_q_cmd != NULL && !list_contains(p_clcb->p_cmd_list, p_clcb->p_q_cmd)){ osi_free(p_clcb->p_q_cmd); p_clcb->p_q_cmd = NULL; + } // don't forget to clear the command queue before dealloc the clcb. ...
Use MEM_CONTEXT_NEW_BEGIN() block. This pattern makes more sense. The prior code was probably copy-pasted from code with slightly different requirements.
@@ -34,12 +34,10 @@ userInitInternal(void) MEM_CONTEXT_BEGIN(memContextTop()) { - userLocalData.memContext = memContextNew("UserLocalData"); - } - MEM_CONTEXT_END(); - - MEM_CONTEXT_BEGIN(userLocalData.memContext) + MEM_CONTEXT_NEW_BEGIN("UserLocalData") { + userLocalData.memContext = MEM_CONTEXT_NEW(); + userLocalData...
gh-actions: add check to verify NEON includes
@@ -20,6 +20,8 @@ jobs: run: grep -PR '(?<=[^a-zA-Z0-9_])simde_assert_u?int(8|16|32|64)(?>[^a-zA-Z0-9_])' test/ && exit 1 || exit 0 - name: Executable sources run: find \( -name '*.c' -o -name '*.h' \) -executable | grep -q '.' && exit 1 || exit 0 + - name: Missing NEON includes + run: for f in simde/arm/neon/*.h; do g...
calls map/set treap-order validation arms in molds with $|
:: +* jar [key value] (map key (list value)) :: map of lists +* jug [key value] (map key (set value)) :: map of sets -+* map [key value] (tree (pair key value)) :: table +:: ++* map [key value] :: table + $| (tree (pair key value)) + |=(a=(tree (pair)) ~(apt by a)) +:: +* qeu [item] (tree item) :: queue -+* set [item] ...
Fix null pointer dereference in ssl_module_init CLA: Trivial
@@ -78,6 +78,8 @@ static int ssl_module_init(CONF_IMODULE *md, const CONF *cnf) cnt = sk_CONF_VALUE_num(cmd_lists); ssl_module_free(md); ssl_names = OPENSSL_zalloc(sizeof(*ssl_names) * cnt); + if (ssl_names == NULL) + goto err; ssl_names_count = cnt; for (i = 0; i < ssl_names_count; i++) { struct ssl_conf_name_st *ssl_...
framework/wifi_manager: change return value to avoid unreachable code Make a return variable to prevent scan callback function in slsi interface always returning SLSI_STATUS_SUCCESS, which causes unreachable code problem
@@ -3448,14 +3448,21 @@ int8_t WiFiRegisterLinkCallback(slsi_network_link_callback_t link_up, slsi_netwo int8_t WiFiRegisterScanCallback(network_scan_result_handler_t scan_result_handler) { - ENTER_CRITICAL; + int8_t result = SLSI_STATUS_SUCCESS; + + if (!scan_result_handler) { + result = SLSI_STATUS_ERROR; + return re...
INTERNAL: consider maximum key length has increased in do_lqdetect_write().
@@ -130,8 +130,14 @@ static void do_lqdetect_write(char client_ip[], char *key, uint32_t offset = buffer->offset; uint32_t nsaved = buffer->nsaved; char *bufptr = buffer->data + buffer->offset; - uint32_t nwrite; - uint32_t length; + uint32_t nwrite, length, keylen = strlen(key); + char keybuf[251]; + + if (keylen > 25...
Check fnv1a hash for unprotected packets only
@@ -891,10 +891,18 @@ int ngtcp2_conn_recv(ngtcp2_conn *conn, uint8_t *pkt, size_t pktlen, } if (pkt[0] & NGTCP2_HEADER_FORM_BIT) { + switch (pkt[0] & NGTCP2_LONG_TYPE_MASK) { + case NGTCP2_PKT_CLIENT_INITIAL: + case NGTCP2_PKT_SERVER_STATELESS_RETRY: + case NGTCP2_PKT_SERVER_CLEARTEXT: + case NGTCP2_PKT_CLIENT_CLEARTE...
netutils/websocket: adds websocket status update function This commit updates missing status change. Websocket server can't establishes the websocket_handler thread without changing status.
@@ -396,6 +396,8 @@ TLS_HS_RETRY: return r; } + websocket_update_state(client, WEBSOCKET_RUNNING); + if (websocket_make_block(client->fd) != WEBSOCKET_SUCCESS) { websocket_socket_free(client); return WEBSOCKET_SOCKET_ERROR; @@ -856,6 +858,8 @@ websocket_return_t websocket_server_init(websocket_t *server) return WEBSOCK...
downgrade the requirement of libcurl
@@ -18,7 +18,7 @@ make bot deployment deadly simple. The primary design goals are: ## Build ### Install dependencies: -The only dependencies that is needed is curl-7.66.0 or higher built with openssl +The only dependencies that is needed is curl-7.64.0 or higher built with openssl For Ubuntu and Debian ```
taeko: modify for G sensor second source modify for G sensor second source BRANCH=main TEST=make -j BOARD=taeko
@@ -68,7 +68,7 @@ static struct lsm6dso_data lsm6dso_data; static struct lsm6dsm_data lsm6dsm_data = LSM6DSM_DATA; /* The matrix for new DB */ -static const mat33_fp_t lid_standard_ref_for_new_DB = { +static const mat33_fp_t lid_ref_for_new_DB = { { FLOAT_TO_FP(-1), 0, 0}, { 0, FLOAT_TO_FP(1), 0}, { 0, 0, FLOAT_TO_FP(-...
Freeing some more memory
@@ -138,13 +138,16 @@ static void testAddressesNumber (void) static void testRestoreValue (void) { - const char * val = "00:11:55:AA:FF:CC"; + char * val = "00:11:55:AA:FF:CC"; Key * key = keyNew ("user/tests/mac/addr", KEY_VALUE, val, KEY_META, META, "", KEY_END); KeySet * testKs = ksNew (10, key, KS_END); setKey (tes...
add support of clang-scan-deps
-- imports import("core.base.option") import("core.base.json") +import("core.base.semver") import("core.tool.compiler") import("core.project.project") import("core.project.depend") import("core.project.config") +import("lib.detect.find_tool") import("utils.progress") import("private.action.build.object", {alias = "obje...
doc: update the statement of "tag"
@@ -110,7 +110,7 @@ Clone the source code of ``acrn-hypervisor`` for building and use $ git checkout v0.5 .. note:: - You can switch to other release with the command ``git checkout v0.x`` if needed. + You can switch to other version with the command ``git checkout`` if needed. Build SOS and LaaG image:
Add retry logic to s2n Client Endpoint Integration Test
@@ -73,9 +73,17 @@ def well_known_endpoints_test(): print("\n\tTesting s2n Client with Well Known Endpoints:") + maxRetries = 5; failed = 0 for endpoint in well_known_endpoints: + # Retry handshake in case there are any problems going over the internet + for i in range(1, maxRetries): ret = try_client_handshake(endpoin...
doc: Further improve guidelines in DESIGN.md
@@ -293,13 +293,9 @@ following 2 checklists: ## Checklist for overall API -### Naming - -- [ ] Inconsistent naming of functions or variables - ### Consistency -- [ ] Consistent naming schemes +- [ ] Consistent naming schemes for enums, macros, typedefs and functions - [ ] Similar things are named similarly - [ ] Differ...
HardwareDevices: Ignore windows store xbox virtual disk device (vxdd)
@@ -355,13 +355,23 @@ VOID FindDiskDrives( for (deviceInterface = deviceInterfaceList; *deviceInterface; deviceInterface += PhCountStringZ(deviceInterface) + 1) { DEVINST deviceInstanceHandle; - PPH_STRING deviceDescription = NULL; + PPH_STRING deviceDescription; HANDLE deviceHandle; PDISK_ENUM_ENTRY diskEntry; if (!Qu...
envydis: there is a ie2 flag as well
@@ -228,6 +228,7 @@ static struct insn tabfl[] = { { 0x000b0000, 0x001f0000, N("z") }, { 0x00100000, 0x001f0000, N("ie0") }, { 0x00110000, 0x001f0000, N("ie1") }, + { 0x00120000, 0x001f0000, N("ie2") }, { 0x00140000, 0x001f0000, N("is0") }, { 0x00150000, 0x001f0000, N("is1") }, { 0x00180000, 0x001f0000, N("ta") },
hoon: remove face/type syntax
== :- ['a' 'z'] ;~ pose - (stag %bcts ;~(plug sym ;~(pfix ;~(pose fas tis) wyde))) + (stag %bcts ;~(plug sym ;~(pfix tis wyde))) (stag %like (most col rope)) == ==
Reproducible builds (3)
@@ -60,8 +60,17 @@ QT += network INCLUDEPATH += ../.. \ ../../common -GIT_COMMIT = $$system("git rev-list HEAD --max-count=1") -GIT_COMMIT_DATE = $$system("git show -s --format=%ct HEAD") +# TAG is specified by auto build system +# this is needed since non head versions which are checkedout and build +# will have a rev...
OcAppleKernelLib: Fix incorrect debug print statements
@@ -1254,7 +1254,7 @@ OcKernelFileOpen ( && ((MaxCacheTypeAllowed == CacheTypeNone && mOcDarwinVersion <= KERNEL_VERSION_LEOPARD_MAX) || (MaxCacheTypeAllowed == CacheTypeMkext && mOcDarwinVersion <= KERNEL_VERSION_SNOW_LEOPARD_MAX) || (MaxCacheTypeAllowed == CacheTypeCacheless && mOcDarwinVersion <= KERNEL_VERSION_MAVE...
simplifies :acme initialization
:: +acme: complete app state :: += acme - $: :: bas: ACME service root url - :: - bas=purl - :: dir: ACME service directory + $: :: dir: ACME service directory :: dir=directory :: act: ACME service account :: ++ directory ^+ this - :: XX now? + =/ url + =- (need (de-purl:html -)) + 'https://acme-staging-v02.api.letsenc...
Add wcsdup2()
@@ -54,6 +54,17 @@ char *strdup2( const char *str ) return out; } +wchar_t *wcsdup2( const wchar_t *str ) +{ + size_t len = wcslen( str ) + 1; + wchar_t *out = malloc( sizeof( wchar_t ) * len ); + if( !out ) { + return NULL; + } + wcsncpy( out, str, len ); + return out; +} + int strtrim( char *outstr, const char *instr...
NetworkTools: Patch manminddb.c and disable unused winsock functionality
@@ -248,8 +248,8 @@ int MMDB_open(const wchar_t* const filename, uint32_t flags, MMDB_s *const mmdb) } #ifdef _WIN32 - WSADATA wsa; - WSAStartup(MAKEWORD(2, 2), &wsa); + //WSADATA wsa; // dmex: disabled since hostname lookup is not used. + //WSAStartup(MAKEWORD(2, 2), &wsa); #endif uint32_t metadata_size = 0; @@ -1845,...
improved warning if a user try to run hcxdumptool on a virtual (iw) interface
@@ -5441,7 +5441,7 @@ memset(&drivername, 0, 34); memset(&driverversion, 0, 34); memset(&driverfwversion, 0, 34); checkallunwanted(); -if(checkmonitorinterface(interfacename) == true) fprintf(stderr, "warning: %s is probably a virtual monitor interface\n", interfacename); +if(checkmonitorinterface(interfacename) == tru...
Put the 1.10.1 release on README.md
@@ -25,6 +25,7 @@ See LICENSE for details. Release Number | Date | History ---------------|------|-------- +1.10.1 | 2019-11-20 | [Portable UPnP SDK][Portable UPnP SDK] 1.10.0 | 2019-11-01 | [Portable UPnP SDK][Portable UPnP SDK] 1.8.6 | 2019-11-20 | [Portable UPnP SDK][Portable UPnP SDK] 1.8.5 | 2019-11-01 | [Portable...
disable http1 req timeout after upgrade
@@ -177,19 +177,27 @@ static void set_req_timeout(struct st_h2o_http1_conn_t *conn, uint64_t timeout, { if (conn->_timeout_entry.cb != NULL) h2o_timer_unlink(&conn->_timeout_entry); + if (conn->req.is_tunnel_req) { + conn->_timeout_entry.cb = NULL; + } else { conn->_timeout_entry.cb = cb; if (cb != NULL) h2o_timer_link...
clearing the ecx private key memory
@@ -195,7 +195,7 @@ static int ecx_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) } rv = ecx_key_op(pkey, pkey->ameth->pkey_id, palg, p, plen, KEY_OP_PRIVATE); - ASN1_OCTET_STRING_free(oct); + ASN1_STRING_clear_free(oct); return rv; }
[voting] Fix using base58 library
@@ -13,7 +13,7 @@ import ( "github.com/aergoio/aergo/state" "github.com/aergoio/aergo/types" - "github.com/btcsuite/btcutil/base58" + "github.com/mr-tron/base58" ) var votingkey = []byte("voting") @@ -147,7 +147,7 @@ func InitVoteResult(scs *state.ContractState, voteResult *map[string]uint64) err func syncVoteResult(sc...
u3: make the fault handler robust against initialization reorder
@@ -1003,10 +1003,19 @@ u3m_flog(c3_w gof_w) void u3m_water(u3_post* low_p, u3_post* hig_p) { + // allow the segfault handler to fire before the road is set + // + // while not explicitly possible in the codebase, + // compiler optimizations can reorder stores + // + if ( !u3R ) { + *low_p = 0; + *hig_p = u3C.wor_i - 1...
issued_cid: Expand unit test to cover reduced-sized array
@@ -207,4 +207,20 @@ void test_issued_cid(void) quicly_issued_cid_init(&empty_set, NULL, NULL); ok(quicly_issued_cid_set_size(&empty_set, NUM_CIDS) == 0); ok(quicly_issued_cid_is_empty(&empty_set)); + + /* create a set with a size smaller than QUICLY_LOCAL_ACTIVE_CONNECTION_LIMIT */ + PTLS_BUILD_ASSERT(NUM_CIDS >= 2); ...
testcase/le_tc: AF_LOCAL domain tests fixes add checking that AF_LOCAL is set, before test AF_LOCAL network tests
@@ -1057,6 +1057,7 @@ static void tc_net_socket_af_unspec_sock_dgram_p(void) close(fd); } +#ifdef AF_LOCAL /** * @testcase tc_net_socket_af_local_sock_dgram_p * @brief @@ -1074,6 +1075,8 @@ static void tc_net_socket_af_local_sock_dgram_p(void) close(fd); } +#endif + #ifdef AF_X25 /** * @testcase tc_net_socket_af_x25_so...
Java: fixing ClassGraph deprecated API call. The issue (deprecated API warning) introduced by ClassGraph upgrade in commit.
@@ -443,7 +443,7 @@ public class Context implements ServletContext, InitParams .enableClassInfo() .enableAnnotationInfo() //.enableSystemPackages() - .whitelistModules("javax.*") + .acceptModules("javax.*") //.enableAllInfo() ;
Docs: Sync README
@@ -2,6 +2,9 @@ OpenCore Changelog ================== #### v0.8.1 - Improved `ExtendBTFeatureFlags` quirk on newer macOS versions, thx @lvs1974 +- Added notes about DMAR table and `ForceAquantiaEthernet`, thx @kokowski +- Added System option in `LauncherOption` property, thx @stevezhengshiqi +- Updated note about `Cust...
param bld: avoid freeing the param builder structure on error paths. The param builder was recently modified so that it doesn't free the passed in param builder structure. Some of the error paths didn't get synced up with this change and resulted in double frees.
@@ -361,14 +361,12 @@ OSSL_PARAM *OSSL_PARAM_BLD_to_param(OSSL_PARAM_BLD *bld) if (s == NULL) { CRYPTOerr(CRYPTO_F_OSSL_PARAM_BLD_TO_PARAM, CRYPTO_R_SECURE_MALLOC_FAILURE); - OPENSSL_free(bld); return NULL; } } params = OPENSSL_malloc(total); if (params == NULL) { CRYPTOerr(CRYPTO_F_OSSL_PARAM_BLD_TO_PARAM, ERR_R_MALLO...
Indentation fixes. The PR left some indentation slightly off. This fixes it.
@@ -213,8 +213,8 @@ static int test_builtin(void) EC_KEY *eckey = NULL, *wrong_eckey = NULL; EC_GROUP *group; ECDSA_SIG *ecdsa_sig = NULL, *modified_sig = NULL; - unsigned char digest[SHA512_DIGEST_LENGTH], - wrong_digest[SHA512_DIGEST_LENGTH]; + unsigned char digest[SHA512_DIGEST_LENGTH]; + unsigned char wrong_digest[...
rsu: allow uppercase ssss:bb:dd.f Convert the sbdf to lowercase when comparing the two values to allow both uppercase and lowercase.
@@ -264,7 +264,7 @@ def main(): Path(RSU_LOCK_DIR).mkdir(parents=True, exist_ok=True) for device in compatible: - if device.pci_node.pci_address == bdf: + if device.pci_node.pci_address.lower() == bdf.lower(): exit_code = os.EX_IOERR with open(RSU_LOCK_FILE, 'w') as flock: fcntl.flock(flock.fileno(), fcntl.LOCK_EX)
Give up if ln fail.
@@ -283,7 +283,7 @@ install: $(JANET_TARGET) $(JANET_LIBRARY) $(JANET_STATIC_LIBRARY) build/janet.pc cp $(JANET_TARGET) '$(DESTDIR)$(BINDIR)/janet' mkdir -p '$(DESTDIR)$(INCLUDEDIR)/janet' cp -r build/janet.h '$(DESTDIR)$(INCLUDEDIR)/janet' - ln -sf -T ./janet/janet.h '$(DESTDIR)$(INCLUDEDIR)/janet.h' + ln -sf -T ./jan...
toml: Fixed array indices not getting updated The array metakey was not updated to the apropriate index when adding array elements via the kdb set command, resulting array elements after thge first getting discarded.
@@ -90,10 +90,7 @@ static void addMissingArrayKeys (KeySet * keys, Key * parent) else { const Key * meta = findMetaKey (arrayRoot, "array"); - if (meta == NULL) - { keyUpdateArrayMetakey (arrayRoot, arrays->maxIndex); - } keyDel (arrays->name); } ArrayInfo * next = arrays->next;
sixtop: remove faulty return doxygen
@@ -80,7 +80,6 @@ typedef void (*sixp_sent_callback_t)(void *arg, uint16_t arg_len, * \param buf The pointer to a buffer pointing the head of 6top IE Content * \param len The lengh of 6top IE Content * \param src_addr The Source address of an incoming packet - * \return 0 if , -1 on failure */ void sixp_input(const uin...
Fix check light.type attribute is initialized Since LightNode::type() returns a reference to a QString the length() or isEmpty() should be checked. Might be related to
@@ -351,7 +351,7 @@ void LightNode::setHaEndpoint(const deCONZ::SimpleDescriptor &endpoint) { return; // wait until known } - isInitialized = type() != nullptr; + isInitialized = type().length() > 0; } // initial setup
blocklevel: smart_write: Terminate line for debug output in no-change case
@@ -588,6 +588,8 @@ int blocklevel_smart_write(struct blocklevel_device *bl, uint64_t pos, const voi rc = bl->write(bl, erase_block, erase_buf, erase_size); if (rc) goto out; + } else { + FL_DBG("clean\n"); } len -= size; pos += size;
Replace strcmp -> scope_strcmp
@@ -408,7 +408,7 @@ patch_return_addrs(funchook_t *funchook, void *pre_patch_addr = (void*)asm_inst[i-1].address; void *patch_addr = (void*)asm_inst[i-1].address; // we aren't dealing with a ret, we must patch the xorps instruction exactly - if (!strcmp((const char*)asm_inst[i].mnemonic, "xorps")) { + if (!scope_strcmp...
Fix ODCIL in Retry per draft 22
@@ -930,8 +930,14 @@ void picoquic_queue_stateless_retry(picoquic_cnx_t* cnx, 0, &cnx->path[0]->remote_cnxid, &cnx->path[0]->local_cnxid, bytes, &pn_offset, &pn_length); + + if (picoquic_supported_versions[cnx->version_index].version == PICOQUIC_TWELFTH_INTEROP_VERSION) { /* Encode ODCIL in bottom 4 bits of first byte ...
input: fix logically dead code (CID 161084)
@@ -214,7 +214,7 @@ int flb_input_set_property(struct flb_input_instance *in, char *k, char *v) else if (prop_key_check("host", k, len) == 0) { in->host.name = tmp; } - else if (prop_key_check("port", k, len) == 0 && tmp) { + else if (prop_key_check("port", k, len) == 0) { if (tmp) { in->host.port = atoi(tmp); }
Fixed codecov link was linking to the old develop branch. [skip ci]
@@ -6,7 +6,7 @@ Status: [![Build status](https://ci.appveyor.com/api/projects/status/pemepxo2221f8heo/branch/master?svg=true)](https://ci.appveyor.com/project/HexDecimal/libtcod-6e1jk/branch/master) [![Build Status](https://travis-ci.org/libtcod/libtcod.svg?branch=master)](https://travis-ci.org/libtcod/libtcod) [![Docu...
Doc: correct nitpicky mistakes in array_position/array_positions examples. Daniel Gustafsson and Erik Rijkers, per report from nick@cleaton Discussion:
@@ -669,14 +669,16 @@ SELECT * FROM sal_emp WHERE pay_by_quarter &amp;&amp; ARRAY[10000]; <programlisting> SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon'); - array_positions ------------------ + array_position +---------------- 2 +(1 row) SELECT array_positions(ARRAY[1, 4, 3, 1, 3, 4, 2, ...
components/bt: Support low duty cycle directed advertising
@@ -108,7 +108,7 @@ const UINT8 btm_le_state_combo_tbl[BTM_BLE_STATE_MAX][BTM_BLE_STATE_MAX][2] = { {HCI_SUPP_LE_STATES_INIT_MASK, HCI_SUPP_LE_STATES_INIT_OFF}, /* init */ {HCI_SUPP_LE_STATES_INIT_MASK, HCI_SUPP_LE_STATES_INIT_OFF}, /* master */ {HCI_SUPP_LE_STATES_SLAVE_MASK, HCI_SUPP_LE_STATES_SLAVE_OFF}, /* slave */...
rtl8721csm/download: Support erasing secure storage in dbuild Add option to support erasing secure storage in dbuild.
<option desc="Flash TizenRT ota">OTA</option> <option desc="Erase TizenRT kernel">ERASE KERNEL</option> <option desc="Erase TizenRT ota">ERASE OTA</option> + <option desc="Erase TizenRT Secure Storage">ERASE SS</option> <option desc="Erase TizenRT userfs">ERASE USERFS</option> <option desc="Erase all binaries and image...
Fix ts_internal_bspline_derive.
@@ -821,36 +821,30 @@ tsError ts_bspline_eval(const tsBSpline *spline, tsReal u, void ts_internal_bspline_derive(const tsBSpline *spline, tsBSpline *_derivative_, jmp_buf buf) { - const size_t sof_f = sizeof(tsReal); + const size_t sof_real = sizeof(tsReal); const size_t dim = ts_bspline_dimension(spline); const size_t...
fix(kscan): Proper direct wire warning message.
@@ -83,7 +83,7 @@ static int kscan_gpio_config_interrupts(const struct device *dev, gpio_flags_t f int err = gpio_pin_interrupt_configure(dev, cfg->pin, flags); if (err) { - LOG_ERR("Unable to enable matrix GPIO interrupt"); + LOG_ERR("Unable to enable direct GPIO interrupt"); return err; } }
Remove duplicated library contrib_libs in `extract_symbols.sh`
@@ -28,7 +28,7 @@ declare -a stdlib_ignore_syms=('/_GLOBAL_OFFSET_TABLE_/d' ) # List of contrib libraries used by the libscope.so -declare -a conrib_libs=("./contrib/build/ls-hpack/libls-hpack.a" +declare -a conrib_libs=( "./contrib/cJSON/libcjson.a" "./contrib/build/funchook/libfunchook.a" "./contrib/build/funchook/ca...
ci: fix isort py37 incompatible issue
@@ -36,7 +36,7 @@ repos: - id: flake8 args: ['--config=.flake8', '--tee', '--benchmark'] - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.11.5 # python 3.7 compatible hooks: - id: isort name: isort (python)
Always attempt to resubscribe on ++quit.
:: |= wir/wire ^- (quip move _+>) - :_ +> - ?. =(src.bol our.bol) - ~& [%kicked-by src.bol wir] - ~ - ~& [%self-quit--resubbing wir] - [(wire-to-peer wir) ~] + [[(wire-to-peer wir) ~] +>] :: ++ quit-circle :> dropped circle sub %+ etch-circle [%circle wir] |= {nom/naem src/source} %- pre-bake - :: when we got kicked, d...
core: rconf: disable the wildcard feature on Windows Windows does not support Unix-like glob feature, and we need to jump through several hoops to emulate it. We'll return to this point later and add some implementation for it, but for now, let's leave the feature disabled.
#include <string.h> #include <sys/types.h> #include <sys/stat.h> +#ifndef _MSC_VER #include <glob.h> +#endif #include <mk_core/mk_rconf.h> #include <mk_core/mk_utils.h> @@ -396,6 +398,7 @@ static int mk_rconf_read(struct mk_rconf *conf, const char *path) return 0; } +#ifndef _MSC_VER static int mk_rconf_read_glob(struc...
Add maintenance_io_concurrency to postgresql.conf.sample. New GUC from commit
# - Asynchronous Behavior - #effective_io_concurrency = 1 # 1-1000; 0 disables prefetching +#maintenance_io_concurrency = 10 # 1-1000; 0 disables prefetching #max_worker_processes = 8 # (change requires restart) #max_parallel_maintenance_workers = 2 # taken from max_parallel_workers #max_parallel_workers_per_gather = 2...
[kernel] NewtonEulerDS::resetNonSmoothPart modify test to know if _p[level] exists
@@ -1272,7 +1272,7 @@ void NewtonEulerDS::resetAllNonSmoothParts() } void NewtonEulerDS::resetNonSmoothPart(unsigned int level) { - if(_p[level]->size() > 0) + if(_p[level]) _p[level]->zero(); }
configs/imxrt1050-evk/messaging_sample : Set SDRAM 32MB as primary heap and Enable heapinfo 1. SDRAM is 32MB, so set to primary RAM. 2. Enable heapinfo for debugging.
@@ -182,7 +182,7 @@ CONFIG_IMXRT_LPSPI1=y CONFIG_IMXRT_I2S=y CONFIG_IMXRT_I2S_TX=y CONFIG_IMXRT_I2S_RX=y -# CONFIG_IMXRT_SEMC is not set +CONFIG_IMXRT_SEMC=y # CONFIG_IMXRT_SNVS_LPSRTC is not set # CONFIG_IMXRT_SNVS_HPRTC is not set # CONFIG_IMXRT_USDHC is not set @@ -191,12 +191,20 @@ CONFIG_IMXRT_I2S_RX=y # # Memory ...
Prefer USB serial number over 1284 serial number
@@ -1260,9 +1260,10 @@ make_device_uri( const char *mfg, /* Manufacturer */ *mdl, /* Model */ *des = NULL, /* Description */ - *sern; /* Serial number */ + *sern = NULL; /* Serial number */ size_t mfglen; /* Length of manufacturer string */ - char tempmfg[256], /* Temporary manufacturer string */ + char tempmdl[256], /...
Remove "Not Yet RFC Text"
@@ -4,8 +4,6 @@ MsQuic MsQuic is a Microsoft implementation of the [IETF QUIC](https://datatracker.ietf.org/wg/quic/about/) protocol. It is cross platform, written in C and designed to be a general purpose QUIC library. -> **Important** The QUIC protocol is not an official RFC yet. It has been approved by the IESG and ...
Fix properties for client_http_run_once
@@ -38,9 +38,9 @@ static const char *request_tail = "HTTP/1.0\r\nUser-agent: libneat\r\nConnection static char *config_property_sctp_tcp = QUOTE( { "transport": { - "value": ["TCP", "SCTP", "SCTP/UDP"] + "value": ["TCP","SCTP","SCTP/UDP"], "precedence": 1 - }, + } }); static char *config_property_tcp = QUOTE({ "transpo...
esp-tls: socket will be set to -1 and will not be closed Closes
@@ -270,8 +270,11 @@ void esp_mbedtls_conn_delete(esp_tls_t *tls) if (tls != NULL) { esp_mbedtls_cleanup(tls); if (tls->is_tls) { + if (tls->server_fd.fd != -1) { mbedtls_net_free(&tls->server_fd); - tls->sockfd = tls->server_fd.fd; + /* Socket is already closed by `mbedtls_net_free` and hence also change assignment of...
EC: Removing an unused i2cm_init function signature TEST=built several boards BRANCH=none
@@ -506,12 +506,6 @@ int i2c_set_response(int port, uint8_t *buf, int len); */ void i2c_init(void); -/** - * Initialize i2c controller ports. This function can be called for cases where - * i2c ports are not initialized by default from main.c. - */ -void i2cm_init(void); - /** * Board-level function to determine whethe...
freertos: Move Espressif's specific esp_reent_init into collective ifdef
#define taskEXIT_CRITICAL( ) portEXIT_CRITICAL( taskCRITICAL_MUX ) #define taskENTER_CRITICAL_ISR( ) portENTER_CRITICAL_ISR( taskCRITICAL_MUX ) #define taskEXIT_CRITICAL_ISR( ) portEXIT_CRITICAL_ISR( taskCRITICAL_MUX ) +#undef _REENT_INIT_PTR +#define _REENT_INIT_PTR esp_reent_init #endif /* Lint e9021, e961 and e750 a...
Add missing header changes from previous commit
extern int s2n_hkdf(struct s2n_hmac_state *hmac, s2n_hmac_algorithm alg, const struct s2n_blob *salt, const struct s2n_blob *key, const struct s2n_blob *info, struct s2n_blob *output); + +extern int s2n_hkdf_extract(struct s2n_hmac_state *hmac, s2n_hmac_algorithm alg, const struct s2n_blob *salt, + const struct s2n_blo...
Allow applications to get send buffer level
@@ -564,7 +564,7 @@ struct sctp_event_subscribe { #define SCTP_TIMEOUTS 0x00000106 #define SCTP_PR_STREAM_STATUS 0x00000107 #define SCTP_PR_ASSOC_STATUS 0x00000108 - +#define SCTP_GET_SNDBUF_USE 0x00001101 /* * write-only options */ @@ -621,6 +621,12 @@ struct sctp_paddrparams { uint8_t spp_dscp; }; +struct sctp_sockst...
Missing resize hints invalidation
@@ -172,6 +172,10 @@ typedef struct clap_plugin_gui { } clap_plugin_gui_t; typedef struct clap_host_gui { + // The host should call get_resize_hints() again. + // [thread-safe] + void (*resize_hints_changed)(const clap_host_t *host); + /* Request the host to resize the client area to width, height. * Return true if the...
NSH: Extend ls command to show type of symbolic link.
@@ -178,6 +178,19 @@ static int ls_handler(FAR struct nsh_vtbl_s *vtbl, FAR const char *dirpath, if ((lsflags & LSFLAGS_LONG) != 0) { char details[] = "----------"; +#ifdef CONFIG_PSEUDOFS_SOFTLINKS + /* Temporary kludge: stat does not return link type because it + * follows the link and returns the type of the link ta...
Switch deprecation method for MD5
@@ -45,13 +45,14 @@ typedef struct MD5state_st { unsigned int num; } MD5_CTX; # endif - -DEPRECATEDIN_3_0(int MD5_Init(MD5_CTX *c)) -DEPRECATEDIN_3_0(int MD5_Update(MD5_CTX *c, const void *data, size_t len)) -DEPRECATEDIN_3_0(int MD5_Final(unsigned char *md, MD5_CTX *c)) -DEPRECATEDIN_3_0(unsigned char *MD5(const unsig...
Add Julia API documentation
Julia ===== -TODO + +The recommended way to use `SCS.jl <https://github.com/jump-dev/SCS.jl>`_ is via +`Convex.jl <https://github.com/jump-dev/Convex.jl>`_ or +`JuMP <https://github.com/jump-dev/JuMP.jl>`_. + +Read the `SCS.jl README <https://github.com/jump-dev/SCS.jl>`_ for more details.
docs: rocky 8.3 -> rocky 8.4
\input{vc.tex} % Define Base OS and other local macros -\newcommand{\baseOS}{Rocky 8.3} -\newcommand{\OSRepo}{Rocky\_8.3} +\newcommand{\baseOS}{Rocky 8.4} +\newcommand{\OSRepo}{Rocky\_8.4} \newcommand{\OSTree}{Rocky\_8} \newcommand{\OSTag}{el8} -\newcommand{\baseos}{rocky8.3} +\newcommand{\baseos}{rocky8.4} \newcommand...
Use string literals as labels in lexer As noticed by gligneul in PR
@@ -21,12 +21,6 @@ local P, R, S = lpeg.P, lpeg.R, lpeg.S local C, Cb, Cg, Ct, Cmt, Cc = lpeg.C, lpeg.Cb, lpeg.Cg, lpeg.Ct, lpeg.Cmt, lpeg.Cc local T = lpeg.T -local syntax_errors = require "titan-compiler.syntax_errors" -local labels = {} -for k, _ in pairs (syntax_errors.errors) do - labels[k] = k -end - local lexer ...
bugfix(nvs_flash): fixed potential memory leak in nvs::Storage::init()
@@ -116,12 +116,14 @@ esp_err_t Storage::init(uint32_t baseSector, uint32_t sectorCount) item.getKey(entry->mName, sizeof(entry->mName)); err = item.getValue(entry->mIndex); if (err != ESP_OK) { + delete entry; return err; } - mNamespaces.push_back(entry); if (mNamespaceUsage.set(entry->mIndex, true) != ESP_OK) { + del...
TextContent: handle linebreaks before feeding parsing Handling linebreaks outside of the parser allows us to preserve linebreaks, which goes against the markdown spec and is poorly supported by the parser library.
@@ -2,7 +2,6 @@ import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import ReactMarkdown from 'react-markdown'; import RemarkDisableTokenizers from 'remark-disable-tokenizers'; -import RemarkBreaks from 'remark-breaks'; import urbitOb from 'urbit-ob'; import { Text } from '@tlon/indigo-re...
tests/run-tests: Sort skipped/failed test names in summary output.
@@ -540,6 +540,9 @@ def run_tests(pyb, tests, args, base_path="."): print("{} tests performed ({} individual testcases)".format(test_count, testcase_count)) print("{} tests passed".format(passed_count)) + skipped_tests.sort() + failed_tests.sort() + if len(skipped_tests) > 0: print("{} tests skipped: {}".format(len(ski...
* Upgraded to iwkv v1.4.10
+ejdb2 (2.0.58) UNRELEASED; urgency=medium + + * Upgraded to iwkv v1.4.10 + + -- Anton Adamansky <adamansky@gmail.com> Sat, 19 Dec 2020 22:46:42 +0700 + ejdb2 (2.0.57) testing; urgency=medium * Added new non standard JSON `swap` operation.
set fosc div to 1 to make chip run stablly for C2
@@ -179,7 +179,7 @@ typedef struct { .fast_clk_src = SOC_RTC_FAST_CLK_SRC_RC_FAST, \ .slow_clk_src = SOC_RTC_SLOW_CLK_SRC_RC_SLOW, \ .clk_rtc_clk_div = 0, \ - .clk_8m_clk_div = 0, \ + .clk_8m_clk_div = 1, \ .slow_clk_dcap = RTC_CNTL_SCK_DCAP_DEFAULT, \ .clk_8m_dfreq = RTC_CNTL_CK8M_DFREQ_DEFAULT, \ }
remove not needed promiscuous mode
@@ -4331,7 +4331,6 @@ static inline bool opensocket() { static struct ifreq ifr; static struct iwreq iwr; -static struct packet_mreq mr; static struct sockaddr_ll ll; static struct ethtool_perm_addr *epmaddr; @@ -4431,22 +4430,12 @@ ll.sll_family = AF_PACKET; ll.sll_ifindex = ifr.ifr_ifindex; ll.sll_protocol = htons(ET...
fix constants.py
"""This file exposes constants present in CCL.""" -from .ccllib import ( # flake8: noqa +# flake8: noqa +from .ccllib import ( CCL_ERROR_CLASS, CCL_ERROR_INCONSISTENT, CCL_ERROR_INTEG, CCL_ERROR_LINSPACE, CCL_ERROR_MEMORY, CCL_ERROR_ROOT, CCL_ERROR_SPLINE, - CCL_ERROR_SPLINE_EV, CLIGHT_HMPC, CL_TRACER_NC, CL_TRACER_WL,...
Name at finished editting will be appended with an extra number if it conflicts with a name in the list already.
@@ -1294,6 +1294,21 @@ void QvisExpressionsWindow::UpdateExpressionBox() { std::cout << "The name has actually been changed." << std::endl; + // Need to make sure that the new name is not already taken. If it is, then append a number + // on the end. Increment that number however many times is necessary until we get a ...
oups ... fix ci
@@ -56,8 +56,8 @@ before_script: script: - if test "$TRAVIS" = true; then - ../CI/driver.py --run --root-dir=.. --task="$TASK" --packages-db=../CI/config/siconos.yml; + ../CI/driver.py --run --root-dir=.. --task="$TASK"; else - ../CI/driver.py --run --root-dir=.. --packages-db=../CI/config/siconos.yml; + ../CI/driver.p...
Remaining boilerplate change in doc/man3/OpenSSL_version.pod
@@ -183,7 +183,7 @@ with the exception of the L</BACKWARD COMPATIBILITY> ones. Copyright 2018 The OpenSSL Project Authors. All Rights Reserved. -Licensed under the OpenSSL license (the "License"). You may not use +Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with...
fixed tracer edges
@@ -403,12 +403,12 @@ ccl_cl_tracer_t *ccl_cl_tracer_t_new(ccl_cosmology *cosmo, } else { int ichi; - double w_max=w_w[0]; + double w_max=fabs(w_w[0]); //Find maximum of radial kernel for(ichi=0;ichi<n_w;ichi++) { - if(w_w[ichi]>=w_max) - w_max=w_w[ichi]; + if(fabs(w_w[ichi])>=w_max) + w_max=fabs(w_w[ichi]); } //Multip...
Suppress min/max definitions from Windows
@@ -95,6 +95,7 @@ if (LINUX OR OSX) include_directories (${Boost_INCLUDE_DIR} ) elseif (WINDOWS) add_definitions(-DCURL_STATICLIB) # Needed to statically link libcurl + add_definitions(-DNOMINMAX) # Needed to suppress min and max definitions by Windows endif ()
Regression tests are [3-5][0-9]
@@ -36,7 +36,7 @@ do TESTNR=`echo $TESTFN | sed 's/-.*$//g'` [ ! -z "$ONLY_TEST" -a x$ONLY_TEST != x$TESTNR ] && continue case $TESTNR in - [3-9][0-9]*) [ $NO_REGRESSION = 1 ] && continue + [3-5][0-9]*) [ $NO_REGRESSION = 1 ] && continue ;; esac case $TESTNR in
[bsp/wch/arm/ch32f103c8-core/board/board.h]: add macro definition. [bsp/wch/arm/ch32f10x_port_cn.md]: add ch32f10x_port_cn.md.
@@ -45,15 +45,33 @@ extern int __bss_end; rt_uint32_t ch32_get_sysclock_frequency(void); + +#ifdef BSP_USING_UART void ch32f1_usart_clock_and_io_init(USART_TypeDef* usartx); +#endif + +#ifdef BSP_USING_SPI void ch32f1_spi_clock_and_io_init(SPI_TypeDef* spix); rt_uint32_t ch32f1_spi_clock_get(SPI_TypeDef* spix); +#endif...
out_retry: refactor to use configmap.
@@ -39,8 +39,8 @@ static int cb_retry_init(struct flb_output_instance *ins, { (void) config; (void) data; - const char *tmp; struct retry_ctx *ctx; + int ret; ctx = flb_calloc(1, sizeof(struct retry_ctx)); if (!ctx) { @@ -49,12 +49,10 @@ static int cb_retry_init(struct flb_output_instance *ins, ctx->ins = ins; ctx->cou...
Add CMake configurations matrix.
@@ -12,6 +12,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04] + config: [Debug, Release] env: VCPKG_ROOT: ${{github.workspace}}/vcpkg @@ -42,10 +43,10 @@ jobs: --warn-uninitialized - name: CMake build run: | - cmake --build build + cmake --build build --config ${{matrix.config}} - name: Run tests run: | build/bin...
Secret renewal should be digest size
@@ -837,7 +837,7 @@ static int picoquic_rotate_app_secret(ptls_cipher_suite_t * cipher, uint8_t * se cipher->hash->digest_size, ptls_iovec_init(secret, cipher->hash->digest_size), PICOQUIC_LABEL_TRAFFIC_UPDATE, ptls_iovec_init(NULL, 0), PICOQUIC_LABEL_QUIC_BASE); if (ret == 0) { - memcpy(secret, new_secret, cipher->aea...
removed some redundancies from dockerfile
@@ -145,7 +145,7 @@ RUN apt-get update RUN apt-get install -y --no-install-recommends openjfx # Add build-essential -RUN apt-get install -y build-essential +#RUN apt-get install -y build-essential # Add RISCV toolchain necessary dependencies RUN apt-get update @@ -156,9 +156,7 @@ RUN apt-get install -y \ babeltrace \ b...
Made ++da-change-story cleaner.
|= {nom/knot dif/diff-story} ^+ +> ?+ -.dif - sa-done:(~(sa-change sa nom (fall (~(get by stories) nom) *story)) dif) + =< sa-done + %. dif + %~ sa-change sa nom + %+ fall + (~(get by stories) nom) + %*(. *story burden |) + == :: $new (da-create nom +.dif) $bear ~&(%unexpected-unsplit-bear +>)
WindowExplorer: Update properties text
@@ -116,7 +116,7 @@ END IDD_WNDPROPLIST DIALOGEX 0, 0, 271, 224 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU -CAPTION "Property List" +CAPTION "Properties" FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN CONTROL "",IDC_LIST,"SysListView32",LVS_REPORT | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT ...
modify download script for new structure of openocd in sidk_s5jt200
@@ -29,50 +29,24 @@ BOARD_NAME=${CONFIG_ARCH_BOARD} # ENV : Set to proper path's OS_DIR_PATH=${PWD} BUILD_DIR_PATH=${OS_DIR_PATH}/../build -OUTPUT_DIR_PATH=${BUILD_DIR_PATH}/output -OUTPUT_BIN_PATH=${OUTPUT_DIR_PATH}/bin +OUTPUT_BIN_PATH=${BUILD_DIR_PATH}/output/bin BOARD_DIR_PATH=${BUILD_DIR_PATH}/configs/${BOARD_NAME...
Don't toggle system menu in interrupt
@@ -48,6 +48,7 @@ extern Disk_drvTypeDef disk; static bool fs_mounted = false; bool exit_game = false; +bool toggle_menu = false; bool take_screenshot = false; const float volume_log_base = 2.0f; RunningAverage<float> battery_average(8); @@ -169,6 +170,10 @@ void blit_tick() { } } + if(toggle_menu) { + blit_menu(); + }...
mremap(): don't remove existing vmap when returning an error If mremap() returns error, it should keep the existing mapping as is, so rangemap_remove_node() should be called only after checking for all possible error conditions.
@@ -317,10 +317,6 @@ sysreturn mremap(void *old_address, u64 old_size, u64 new_size, int flags, void /* remove old mapping, preserving attributes */ u64 vmflags = old_vm->flags; - /* we're moving the vmap to a new address region, so we can safely remove - * the old node entirely */ - rangemap_remove_node(p->vmaps, &old...
mangle: typo in mangle_Move
@@ -57,7 +57,7 @@ static inline void mangle_Move(fuzzer_t * fuzzer, uint8_t * buf, size_t off_from } size_t len_from = fuzzer->dynamicFileSz - off_from - 1; - size_t len_to = fuzzer->dynamicFileSz - off_from - 1; + size_t len_to = fuzzer->dynamicFileSz - off_to - 1; if (len > len_from) { len = len_from; @@ -357,10 +357...
Doc: Update Launch Windows as the Guest VM To keep align with script, change Windows10.iso and winvirtio.iso image relative paths to full paths.
@@ -223,8 +223,8 @@ Boot Windows on ACRN With a Default Configuration .. code-block:: bash - -s 5,ahci,cd:./Windows10.iso \ - -s 6,ahci,cd:./winvirtio.iso \ + -s 5,ahci,cd:/home/acrn/work/Windows10.iso \ + -s 6,ahci,cd:/home/acrn/work/winvirtio.iso \ #. Launch WaaG