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.io)
* [Payload Security](https://www.payload-security.com)
* [PhishMe](http://phishme.com/)
|
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(LIBNETCONF2_MICRO_SOVERSION 19)
set(LIBNETCONF2_SOVERSION_FULL ${LIBNETCONF2_MAJOR_SOVERSION}.${LIBNETCONF2_MINOR_SOVERSION}.${LIBNETCONF2_MICRO_SOVERSION})
set(LIBNETCONF2_SOVERSION ${LIBNETCONF2_MAJOR_SOVERSION})
|
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.
list_clear(p_clcb->p_cmd_list);
osi_free((void *)p_clcb->p_cmd_list);
|
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.userId = getuid();
userLocalData.userName = userNameFromId(userLocalData.userId);
userLocalData.userRoot = userLocalData.userId == 0;
@@ -47,6 +45,8 @@ userInitInternal(void)
userLocalData.groupId = getgid();
userLocalData.groupName = groupNameFromId(userLocalData.groupId);
}
+ MEM_CONTEXT_NEW_END();
+ }
MEM_CONTEXT_END();
FUNCTION_TEST_RETURN_VOID();
|
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 grep -q "include \"neon/$(basename "$f")\"" simde/arm/neon.h || (echo "Missing $f" && exit 1); done
x86:
runs-on: ubuntu-latest
|
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] (tree item) :: set
+::
++* set [item] :: set
+ $| (tree item)
+ |=(a=(tree) ~(apt in a))
::
:::: 2l: container from container ::
:: ::
|
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_name = ssl_names + i;
|
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 result;
+ }
+ ENTER_CRITICAL;
g_scan_result_handler = scan_result_handler;
#ifdef CONFIG_SCSC_WLAN_AUTO_RECOVERY
g_recovery_data.scan_result_handler = scan_result_handler;
#endif
LEAVE_CRITICAL;
- return SLSI_STATUS_SUCCESS;
+
+ return result;
}
int8_t WiFiNetworkJoin(uint8_t *ssid, uint8_t ssid_len, uint8_t *bssid, const slsi_security_config_t *security_config)
|
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 > 250) { /* long key string */
+ keylen = snprintf(keybuf, sizeof(keybuf), "%.*s...%.*s", 124, key, 123, (key+(keylen - 123)));
+ } else { /* short key string */
+ keylen = snprintf(keybuf, sizeof(keybuf), key);
+ }
gettimeofday(&val, NULL);
ptm = localtime(&val.tv_sec);
@@ -143,11 +149,11 @@ static void do_lqdetect_write(char client_ip[], char *key,
nwrite = strlen(bufptr);
buffer->keypos[nsaved] = offset + nwrite;
- buffer->keylen[nsaved] = strlen(key);
+ buffer->keylen[nsaved] = keylen;
length -= nwrite;
bufptr += nwrite;
- snprintf(bufptr, length, "%s %s\n", key, arg->query);
+ snprintf(bufptr, length, "%s %s\n", keybuf, arg->query);
nwrite += strlen(bufptr);
buffer->offset += nwrite;
lqdetect.arg[cmd][nsaved] = *arg;
|
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_CLEARTEXT:
+ case NGTCP2_PKT_PUBLIC_RESET:
if (ngtcp2_pkt_verify(pkt, pktlen) != 0) {
return NGTCP2_ERR_BAD_PKT_HASH;
}
pktlen -= NGTCP2_PKT_MDLEN;
+ break;
+ }
}
switch (conn->state) {
|
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 WEBSOCKET_ALLOCATION_ERROR;
}
+ websocket_update_state(server, WEBSOCKET_RUNNING);
+
socket_data = malloc(sizeof(struct websocket_info_t));
if (socket_data == NULL) {
WEBSOCKET_DEBUG("fail to allocate memory\n");
|
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(-1)}
@@ -280,6 +280,11 @@ static void board_detect_motionsensor(void)
* we don't use INT1. Keep this pin as input w/o enable
* interrupt.
*/
+ if (get_board_id() >= 2) {
+ /* Need to change matrix when board ID >= 2 */
+ bma422_lid_accel.rot_standard_ref =
+ &lid_ref_for_new_DB;
+ }
return;
}
@@ -318,7 +323,7 @@ static void baseboard_sensors_init(void)
if (get_board_id() >= 2) {
/* Need to change matrix when board ID >= 2 */
motion_sensors[LID_ACCEL].rot_standard_ref =
- &lid_standard_ref_for_new_DB;
+ &lid_ref_for_new_DB;
}
/* Enable gpio interrupt for base accelgyro sensor */
|
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 (testKs);
getKeyString (testKs, "user/tests/mac/addr");
setKey (testKs);
succeed_if (!strcmp (keyString (key), val), "error");
+ keyDel (key);
+ ksDel (testKs);
+ elektraFree (val);
}
static void testAll (void)
|
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 = "objectbuilder"})
import("common")
@@ -249,13 +251,24 @@ function generate_dependencies(target, sourcebatch, opt)
os.mkdir(outputdir)
end
- -- no support of p1689 atm
local jsonfile = path.translate(path.join(outputdir, path.filename(sourcefile) .. ".json"))
+ if has_clangscandepssupport(target) then
+ local clangscandeps = find_tool("clang-scan-deps")
+ local compinst = target:compiler("cxx")
+ local compflags = compinst:compflags({sourcefile = file, target = target})
+ local flags = table.join({"--format=p1689", "--", compinst:program(), "-x", "c++", "-c", sourcefile, "-o", target:objectfile(sourcefile)}, compflags)
+
+ vprint(table.concat(table.join(clangscandeps.program, flags), " "))
+ local outdata, errdata = os.iorunv(clangscandeps.program, flags)
+ assert(errdata, errdata)
+
+ io.writefile(jsonfile, outdata)
+ else
common.fallback_generate_dependencies(target, jsonfile, sourcefile, function(file)
local compinst = target:compiler("cxx")
local compflags = compinst:compflags({sourcefile = file, target = target})
local flags = {}
- for _, flag in ipairs(compflags) do
+ for _, flag in pairs(compflags) do
if flag:startswith("-stdlib") or (flag:startswith("-f") and not flag:startswith("-fmodules")) or flag:startswith("-D") or flag:startswith("-U") or flag:startswith("-I") or flag:startswith("-isystem") then
table.insert(flags, flag)
end
@@ -266,6 +279,7 @@ function generate_dependencies(target, sourcebatch, opt)
os.rm(ifile)
return content
end)
+ end
changed = true
local rawdependinfo = io.readfile(jsonfile)
@@ -777,6 +791,18 @@ function has_headerunitsupport(target)
return support_headerunits or nil
end
+function has_clangscandepssupport(target)
+ local support_clangscandeps = _g.support_clangscandeps
+ if support_clangscandeps == nil then
+ local clangscandeps = find_tool("clang-scan-deps", {version = true})
+ if clangscandeps and clangscandeps.version and semver.compare(clangscandeps.version, "16.0") >= 0 then
+ support_clangscandeps = true
+ end
+ _g.support_clangscandeps = support_clangscandeps or false
+ end
+ return support_clangscandeps or nil
+end
+
function get_requiresflags(target, requires)
local flags = {}
-- add deps required module flags
|
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(endpoint)
+ if ret is 0:
+ break
+ else:
+ time.sleep(i)
+
print_result("Endpoint: %-40s... " % endpoint, ret)
if ret != 0:
failed += 1
|
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
- [ ] Different things are named differently
- [ ] The order of arguments should be consistent across similar functions
@@ -320,18 +316,23 @@ following 2 checklists:
## Checklist for each function
+
### Documentation
-- [ ] Doxygen Documentation is complete
- (covers all parameters, brief/short summary, examples)
- [ ] Change is mentioned in the Compatibility section of the release notes
- [ ] Inconsistencies between documentation and code
- [ ] Inconsistencies between documentation and tests
-- [ ] Proper Documentation of all side effects
- [ ] Proper Documentation of thread-safety of function
- [ ] [Symbol versioning](/doc/dev/symbol-versioning.md)
is correct for breaking changes
+#### Doxygen
+
+- [ ] Return Value
+- [ ] Precondition / Postcondition / Invariant
+- [ ] `@see`
+- [ ] `@since`
+
### Naming
- [ ] Abbreviations should be avoided in function / parameter names
@@ -342,7 +343,6 @@ following 2 checklists:
- [ ] ABI/API forward-compatible (breaking backwards-compatibility
to add new symbols is fine)
-- [ ] #ifdef present for experimental features
### Parameter & Return Types
@@ -352,27 +352,25 @@ following 2 checklists:
- [ ] Functions should use constant types instead of boolean types
sensible
- [ ] Wherever possible, function parameters should be `const`
-- [ ] Functions should not have a long list of parameters (>8)
### Error Handling
- [ ] When an error occurs, a clear error message should be provided
- [ ] Errors of the same type should emit the same error message
- [ ] The error message informs the user of possible causes for the problem
-- [ ] All possible error messages are documented
+- [ ] All possible error categories are documented
- [ ] All possible errors states lead to an error
- [ ] Proper error codes are chosen
### Structural Clarity
-- [ ] Function does exactly one thing
+- [ ] Function should do exactly one thing
- [ ] Function should have no side effects
### Memory Management
- [ ] Memory Management should be handled by the function wherever possible
- [ ] Functions should not cause memory-leaks
-- [ ] Every Buffer should be accompanied by a max size limit
- [ ] Functions who require a large amount of memory to be allocated,
state so in their documentation
@@ -384,6 +382,6 @@ following 2 checklists:
- [ ] Added functions are fully covered by tests
- [ ] Tests cover edge-cases
-- [ ] Tests cover error-cases and check for proper error messages
+- [ ] Tests cover all categories of errors
- [ ] Inconsistencies between tests and code
- [ ] Inconsistencies between tests and documentation
|
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 (!QueryDiskDeviceInterfaceDescription(deviceInterface, &deviceInstanceHandle, &deviceDescription))
continue;
+ // Ignore Windows Store DRM installer spam (dmex)
+ if (
+ PhEndsWithStringRef2(&deviceDescription->sr, L"Xvd", TRUE) ||
+ PhEndsWithStringRef2(&deviceDescription->sr, L"Microsoft Virtual Disk", TRUE)
+ )
+ {
+ PhDereferenceObject(deviceDescription);
+ continue;
+ }
+
// Convert path now to avoid conversion during every interval update. (dmex)
if (deviceInterface[1] == OBJ_NAME_PATH_SEPARATOR)
deviceInterface[1] = L'?';
@@ -371,6 +381,17 @@ VOID FindDiskDrives(
diskEntry->DeviceName = PhCreateString2(&deviceDescription->sr);
diskEntry->DevicePath = PhCreateString(deviceInterface);
+ //if (
+ // PhFindStringInString(diskEntry->DevicePath, 0, L"Ven_MSFT&Prod_XVDD") != -1 ||
+ // PhFindStringInString(diskEntry->DevicePath, 0, L"Ven_Msft&Prod_Virtual_Disk") != -1
+ // )
+ //{
+ // PhDereferenceObject(diskEntry->DevicePath);
+ // PhDereferenceObject(diskEntry->DeviceName);
+ // PhFree(diskEntry);
+ // continue;
+ //}
+
if (NT_SUCCESS(PhCreateFile(
&deviceHandle,
PhGetString(diskEntry->DevicePath),
|
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 revision different to HEAD
+GIT_TAG=$$(TAG)
+
+isEmpty(GIT_TAG) {
+ GIT_TAG=HEAD # default
+}
+
+GIT_COMMIT = $$system("git rev-list $$GIT_TAG --max-count=1")
+GIT_COMMIT_DATE = $$system("git show -s --format=%ct $$GIT_TAG")
# Version Major.Minor.Build
# Important: don't change the format of this line since it's parsed by scripts!
|
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_MAVERICKS_MAX))) {
- DEBUG ((DEBUG_INFO, "OC: Blocking prelinked due to ForceKernelCache=%s: %a\n", FileName, ForceCacheType));
+ DEBUG ((DEBUG_INFO, "OC: Blocking prelinked due to ForceKernelCache=%a: %s\n", ForceCacheType, FileName));
FreePool (Kernel);
(*NewHandle)->Close (*NewHandle);
@@ -1326,7 +1326,7 @@ OcKernelFileOpen (
// Disable mkext booting if forcing cacheless.
//
if (MaxCacheTypeAllowed == CacheTypeCacheless) {
- DEBUG ((DEBUG_INFO, "OC: Blocking mkext due to ForceKernelCache=%s: %a\n", FileName, ForceCacheType));
+ DEBUG ((DEBUG_INFO, "OC: Blocking mkext due to ForceKernelCache=%a: %s\n", ForceCacheType, FileName));
(*NewHandle)->Close (*NewHandle);
*NewHandle = NULL;
|
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.letsencrypt.org/directory'
+ :: XX now in wire?
::
- (emit (request /acme/directory/(scot %p our.bow) bas %get ~ ~))
+ (emit (request /acme/directory/(scot %p our.bow) url %get ~ ~))
:: +nonce: get a new nonce for the next request
::
++ nonce
$(i +(i), eny +(eny))
:: +init: initialize :acme state
::
+:: We defer the initial request for independence from the causal event,
+:: which is necessary to init on the boot event. Which we no longer do,
+:: but we're preserving the pattern for future flexibility.
+::
++ init
- =/ url
- 'https://acme-staging-v02.api.letsencrypt.org/directory'
=< (retry:effect /directory +(now.bow))
%= this
- bas (need (de-purl:html url))
act [(rekey eny.bow) ~]
cey (rekey (mix eny.bow (shaz now.bow)))
==
|
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, const char *charlist )
{
LCUI_BOOL clear, clear_left = TRUE;
|
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,7 +1845,7 @@ LOCAL void free_mmdb_struct(MMDB_s *const mmdb)
UnmapViewOfFile(mmdb->file_content);
/* Winsock is only initialized if open was successful so we only have
* to cleanup then. */
- WSACleanup();
+ //WSACleanup(); // dmex: disabled since hostname lookup is not used.
#else
munmap((void *)mmdb->file_content, mmdb->file_size);
#endif
|
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) == true) fprintf(stderr, "warning: %s is probably a virtual monitor interface and some attack modes may not work as expected\n", interfacename);
if((fd_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL))) < 0)
{
perror("socket failed");
|
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 UPnP SDK][Portable UPnP SDK]
|
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(conn->super.ctx->loop, timeout, &conn->_timeout_entry);
}
+}
static void set_req_io_timeout(struct st_h2o_http1_conn_t *conn, uint64_t timeout, h2o_timer_cb cb)
{
if (conn->_io_timeout_entry.cb != NULL)
h2o_timer_unlink(&conn->_io_timeout_entry);
+ if (conn->req.is_tunnel_req) {
+ conn->_timeout_entry.cb = NULL;
+ } else {
conn->_io_timeout_entry.cb = cb;
if (cb != NULL)
h2o_timer_link(conn->super.ctx->loop, timeout, &conn->_io_timeout_entry);
}
+}
static void clear_timeouts(struct st_h2o_http1_conn_t *conn)
{
|
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(scs *state.ContractState, voteResult *map[string]uint64) error {
var voteList types.VoteList
for k, v := range *voteResult {
- c := base58.Decode(k)
+ c, _ := base58.Decode(k)
vote := &types.Vote{
Candidate: c,
Amount: v,
|
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;
+ }
// in a north road, hat points to the end of the heap + 1 word,
// while cap points to the top of the stack
//
- if ( c3y == u3a_is_north(u3R) ) {
+ else if ( c3y == u3a_is_north(u3R) ) {
*low_p = u3R->hat_p - 1;
*hig_p = u3R->cap_p;
}
|
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);
+ quicly_cid_plaintext_t cid_plaintext2 = {0};
+ quicly_issued_cid_set_t small_set;
+ quicly_issued_cid_init(&small_set, &test_encryptor, &cid_plaintext2);
+ cid_plaintext2.path_id = 1;
+ ok(quicly_issued_cid_set_size(&small_set, NUM_CIDS - 1) != 0);
+ ok(verify_array(&small_set) == 0);
+ ok(num_pending(&small_set) == NUM_CIDS - 2);
+ ok(exists_once(&small_set, 0, QUICLY_ISSUED_CID_STATE_DELIVERED));
+ ok(exists_once(&small_set, 1, QUICLY_ISSUED_CID_STATE_PENDING));
+ ok(exists_once(&small_set, 2, QUICLY_ISSUED_CID_STATE_PENDING));
+ ok(!exists_once(&small_set, 3, QUICLY_ISSUED_CID_STATE_PENDING)); /* seq=3 should not exist yet */
+ ok(quicly_issued_cid_retire(&small_set, 0) != 0);
+ ok(exists_once(&small_set, 3, QUICLY_ISSUED_CID_STATE_PENDING));
}
|
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_sock_dgram_n
@@ -1559,7 +1562,9 @@ int net_socket_main(void)
#endif
tc_net_socket_af_netlink_sock_dgram_p();
tc_net_socket_af_unspec_sock_dgram_p();
+#ifdef AF_LOCAL
tc_net_socket_af_local_sock_dgram_p();
+#endif
#ifdef AF_X25
tc_net_socket_af_x25_sock_dgram_n();
#endif
|
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 `CustomPciSerialDevice`, thx @joevt
#### v0.8.0
- Added support for early log preservation
|
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_MALLOC_FAILURE);
- OPENSSL_free(bld);
OPENSSL_secure_free(s);
return NULL;
}
|
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[SHA512_DIGEST_LENGTH];
unsigned char *signature = NULL;
const unsigned char *sig_ptr;
unsigned char *sig_ptr2;
|
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 ./janet/janet.h '$(DESTDIR)$(INCLUDEDIR)/janet.h' || true #fixme bsd
mkdir -p '$(DESTDIR)$(JANET_PATH)'
mkdir -p '$(DESTDIR)$(LIBDIR)'
if test $(UNAME) = Darwin ; then \
|
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 uint8_t *buf, uint16_t len,
const linkaddr_t *src_addr);
|
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((const char*)asm_inst[i].mnemonic, "xorps")) {
pre_patch_addr = (void*)asm_inst[i].address;
patch_addr = (void*)asm_inst[i].address;
}
@@ -428,7 +428,7 @@ patch_return_addrs(funchook_t *funchook,
tap->frame_size = add_arg;
// We need to force a break in the "xorps" case since the code won't be returning here
- if ((g_go_major_ver > 16) && !strcmp((const char*)asm_inst[i].mnemonic, "xorps")) break;
+ if ((g_go_major_ver > 16) && !scope_strcmp((const char*)asm_inst[i].mnemonic, "xorps")) break;
}
}
patchprint("\n\n");
|
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 */
bytes[0] |= picoquic_create_packet_header_cnxid_lengths(0, cnx->initial_cnxid.id_len);
+ }
+ else {
+ bytes[byte_index++] = cnx->initial_cnxid.id_len;
+ }
/* Encode DCIL */
byte_index += picoquic_format_connection_id(bytes + byte_index,
@@ -1148,8 +1154,12 @@ int picoquic_incoming_retry(
uint8_t odcil;
uint8_t unused_cil;
+ if (picoquic_supported_versions[cnx->version_index].version == PICOQUIC_TWELFTH_INTEROP_VERSION) {
picoquic_parse_packet_header_cnxid_lengths(bytes[0], &unused_cil, &odcil);
-
+ }
+ else {
+ odcil = bytes[byte_index++];
+ }
if (odcil != cnx->initial_cnxid.id_len || odcil + 1 > ph->payload_length ||
memcmp(cnx->initial_cnxid.id, &bytes[byte_index], odcil) != 0) {
|
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:
[](https://ci.appveyor.com/project/HexDecimal/libtcod-6e1jk/branch/master)
[](https://travis-ci.org/libtcod/libtcod)
[](https://libtcod.readthedocs.io/en/latest/?badge=latest)
-[](https://codecov.io/gh/libtcod/libtcod)
+[](https://codecov.io/gh/libtcod/libtcod)
# How do I get set up?
|
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 && 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, 1], 1);
array_positions
-----------------
{1,4,8}
+(1 row)
</programlisting>
</para>
|
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 */
- {0, 0}, /* todo: lo du dir adv, not covered ? */
+ {HCI_SUPP_LE_STATES_LO_DUTY_DIR_ADV_MASK, HCI_SUPP_LE_STATES_LO_DUTY_DIR_ADV_OFF}, /* lo du dir adv */
{HCI_SUPP_LE_STATES_HI_DUTY_DIR_ADV_MASK, HCI_SUPP_LE_STATES_HI_DUTY_DIR_ADV_OFF}, /* hi duty dir adv */
{HCI_SUPP_LE_STATES_NON_CONN_ADV_MASK, HCI_SUPP_LE_STATES_NON_CONN_ADV_OFF}, /* non connectable adv */
{HCI_SUPP_LE_STATES_PASS_SCAN_MASK, HCI_SUPP_LE_STATES_PASS_SCAN_OFF}, /* passive scan */
@@ -174,8 +174,8 @@ const UINT8 btm_le_state_combo_tbl[BTM_BLE_STATE_MAX][BTM_BLE_STATE_MAX][2] = {
{0, 0}, /* lo duty cycle adv 40 */
{0, 0}, /* hi duty cycle adv 39 */
{0, 0}, /* non connectable adv */
- {0, 0}, /* TODO: passive scan, not covered? */
- {0, 0}, /* TODO: active scan, not covered? */
+ {HCI_SUPP_LE_STATES_LO_DUTY_DIR_ADV_PASS_SCAN_MASK, HCI_SUPP_LE_STATES_LO_DUTY_DIR_ADV_PASS_SCAN_OFF}, /* passive scan */
+ {HCI_SUPP_LE_STATES_LO_DUTY_DIR_ADV_ACTIVE_SCAN_MASK, HCI_SUPP_LE_STATES_LO_DUTY_DIR_ADV_ACTIVE_SCAN_OFF}, /* active scan */
{0, 0} /* scanable adv */
},
{ /* hi duty cycle adv */
|
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 images">ERASE ALL</option>
</options>
|
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 deg = ts_bspline_degree(spline);
- const size_t nc = ts_bspline_num_control_points(spline);
- const size_t nk = ts_bspline_num_knots(spline);
+ const size_t num_ctrlp = ts_bspline_num_control_points(spline);
+ const size_t num_knots = ts_bspline_num_knots(spline);
+
+ tsBSpline tmp;
tsReal* from_ctrlp = spline->pImpl->ctrlp;
tsReal* from_knots = spline->pImpl->knots;
tsReal* to_ctrlp = NULL;
tsReal* to_knots = NULL;
size_t i, j, k;
- if (deg < 1 || nc < 2)
+ if (deg < 1 || num_ctrlp < 2)
longjmp(buf, TS_UNDERIVABLE);
- if (spline != _derivative_) {
- ts_internal_bspline_new(
- nc-1, dim, deg-1, TS_NONE, _derivative_, buf);
- to_ctrlp = _derivative_->pImpl->ctrlp;
- to_knots = _derivative_->pImpl->knots;
- } else {
- to_ctrlp = (tsReal*) malloc( ((nc-1)*dim + (nk-2)) * sof_f );
- if (to_ctrlp == NULL)
- longjmp(buf, TS_MALLOC);
- to_knots = to_ctrlp + (nc-1)*dim;
- }
+ ts_internal_bspline_new(num_ctrlp-1, dim, deg-1, TS_NONE, &tmp, buf);
+ to_ctrlp = tmp.pImpl->ctrlp;
+ to_knots = tmp.pImpl->knots;
- for (i = 0; i < nc-1; i++) {
+ for (i = 0; i < num_ctrlp-1; i++) {
for (j = 0; j < dim; j++) {
if (ts_fequals(from_knots[i+deg+1], from_knots[i+1])) {
- free(to_ctrlp);
+ ts_bspline_free(&tmp);
longjmp(buf, TS_UNDERIVABLE);
} else {
k = i*dim + j;
@@ -860,18 +854,11 @@ void ts_internal_bspline_derive(const tsBSpline *spline,
}
}
}
- memcpy(to_knots, from_knots+1, (nk-2)*sof_f);
+ memcpy(to_knots, from_knots+1, (num_knots-2)*sof_real);
- if (spline == _derivative_) {
- /* free old memory */
- free(from_ctrlp);
- /* assign new values */
- _derivative_->pImpl->deg = deg-1;
- _derivative_->pImpl->n_ctrlp = nc-1;
- _derivative_->pImpl->n_knots = nk-2;
- _derivative_->pImpl->ctrlp = to_ctrlp;
- _derivative_->pImpl->knots = to_knots;
- }
+ if (spline == _derivative_)
+ ts_bspline_free(_derivative_);
+ ts_bspline_move(&tmp, _derivative_);
}
tsError ts_bspline_derive(const tsBSpline *spline, tsBSpline *_derivative_)
|
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/capstone_src-prefix/src/capstone_src-build/libcapstone.a"
|
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, don't resub, remove source.
- ?. =(src.bol our.bol)
- ta-done:(ta-action:ta %source nom | [src ~ ~])
ta-done:(ta-resub:ta nom src)
::
++ coup-repeat
|
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(struct mk_rconf *conf, const char * path)
{
int ret = -1;
@@ -442,6 +445,14 @@ static int mk_rconf_read_glob(struct mk_rconf *conf, const char * path)
globfree(&glb);
return ret;
}
+#else
+static int mk_rconf_read_glob(struct mk_rconf *conf, const char * path)
+{
+ mk_err("[config] wildcard is not supported on Windows");
+ mk_err("[config] path: %s", path);
+ return -1;
+}
+#endif
static int mk_rconf_path_set(struct mk_rconf *conf, char *file)
{
|
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 # taken from max_parallel_workers
|
[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 Configuration
#
+CONFIG_IMXRT_SEMC_SDRAM=y
+CONFIG_IMXRT_SDRAM_START=0x80000000
+CONFIG_IMXRT_SDRAM_SIZE=33554432
+# CONFIG_IMXRT_SEMC_SRAM is not set
+# CONFIG_IMXRT_SEMC_NOR is not set
CONFIG_IMXRT_BOOT_OCRAM=y
-CONFIG_IMXRT_OCRAM_PRIMARY=y
+# CONFIG_IMXRT_BOOT_SDRAM is not set
+# CONFIG_IMXRT_OCRAM_PRIMARY is not set
+CONFIG_IMXRT_SDRAM_PRIMARY=y
#
# i.MX RT Heap Configuration
#
+# CONFIG_IMXRT_OCRAM_HEAP is not set
#
# eDMA Configuration
@@ -755,7 +763,8 @@ CONFIG_DEBUG_ERROR=y
#
# CONFIG_DEBUG_DMA is not set
# CONFIG_ARCH_HAVE_HEAPCHECK is not set
-# CONFIG_DEBUG_MM_HEAPINFO is not set
+CONFIG_DEBUG_MM_HEAPINFO=y
+# CONFIG_DEBUG_CHECK_FRAGMENTATION is not set
# CONFIG_DEBUG_IRQ is not set
#
@@ -875,7 +884,6 @@ CONFIG_C99_BOOL8=y
# Application entry point list
#
# CONFIG_ENTRY_MANUAL is not set
-# CONFIG_ENTRY_HELLO is not set
CONFIG_ENTRY_MESSAGING_SAMPLE=y
CONFIG_USER_ENTRYPOINT="messaging_main"
CONFIG_BUILTIN_APPS=y
@@ -950,6 +958,8 @@ CONFIG_ENABLE_ENV_GET=y
CONFIG_ENABLE_ENV_SET=y
CONFIG_ENABLE_ENV_UNSET=y
CONFIG_ENABLE_FREE=y
+CONFIG_ENABLE_HEAPINFO=y
+# CONFIG_HEAPINFO_USER_GROUP is not set
# CONFIG_ENABLE_IRQINFO is not set
CONFIG_ENABLE_KILL=y
CONFIG_ENABLE_KILLALL=y
|
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], /* Temporary model string */
+ tempmfg[256], /* Temporary manufacturer string */
tempsern[256], /* Temporary serial number string */
*tempptr; /* Pointer into temp string */
@@ -1273,16 +1274,11 @@ make_device_uri(
num_values = _cupsGet1284Values(device_id, &values);
- if ((sern = cupsGetOption("SERIALNUMBER", num_values, values)) == NULL)
- if ((sern = cupsGetOption("SERN", num_values, values)) == NULL)
- sern = cupsGetOption("SN", num_values, values);
+ memset(&devdesc, 0, sizeof(devdesc));
- if ((!sern || !*sern) && ((libusb_get_device_descriptor(printer->device, &devdesc) >= 0) && devdesc.iSerialNumber))
+ if (libusb_get_device_descriptor(printer->device, &devdesc) >= 0 && devdesc.iSerialNumber)
{
- /*
- * Try getting the serial number from the device itself...
- */
-
+ // Try getting the serial number from the device itself...
int length = libusb_get_string_descriptor_ascii(printer->handle, devdesc.iSerialNumber, (unsigned char *)tempsern, sizeof(tempsern) - 1);
if (length > 0)
{
@@ -1291,11 +1287,40 @@ make_device_uri(
}
}
+ if (!sern)
+ {
+ // Fall back on serial number from IEEE-1284 device ID, which on some
+ // printers (Issue #170) is a bogus hardcoded number.
+ if ((sern = cupsGetOption("SERIALNUMBER", num_values, values)) == NULL)
+ if ((sern = cupsGetOption("SERN", num_values, values)) == NULL)
+ sern = cupsGetOption("SN", num_values, values);
+ }
+
if ((mfg = cupsGetOption("MANUFACTURER", num_values, values)) == NULL)
- mfg = cupsGetOption("MFG", num_values, values);
+ {
+ if ((mfg = cupsGetOption("MFG", num_values, values)) == NULL && devdesc.iManufacturer)
+ {
+ int length = libusb_get_string_descriptor_ascii(printer->handle, devdesc.iManufacturer, (unsigned char *)tempmfg, sizeof(tempmfg) - 1);
+ if (length > 0)
+ {
+ tempmfg[length] = '\0';
+ mfg = tempmfg;
+ }
+ }
+ }
if ((mdl = cupsGetOption("MODEL", num_values, values)) == NULL)
- mdl = cupsGetOption("MDL", num_values, values);
+ {
+ if ((mdl = cupsGetOption("MDL", num_values, values)) == NULL && devdesc.iProduct)
+ {
+ int length = libusb_get_string_descriptor_ascii(printer->handle, devdesc.iProduct, (unsigned char *)tempmdl, sizeof(tempmdl) - 1);
+ if (length > 0)
+ {
+ tempmdl[length] = '\0';
+ mdl = tempmdl;
+ }
+ }
+ }
/*
* To maintain compatibility with the original character device backend on
|
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 now is in the RFC editor queue (final step).
-
IETF Drafts: [Transport](https://tools.ietf.org/html/draft-ietf-quic-transport), [TLS](https://tools.ietf.org/html/draft-ietf-quic-tls), [Recovery](https://tools.ietf.org/html/draft-ietf-quic-recovery), [Datagram](https://tools.ietf.org/html/draft-ietf-quic-datagram), [Load Balancing](https://tools.ietf.org/html/draft-ietf-quic-load-balancers), [Version Negotiation](https://tools.ietf.org/html/draft-ietf-quic-version-negotiation)
[](https://dev.azure.com/ms/msquic/_build/latest?definitionId=347&branchName=main) [](https://dev.azure.com/ms/msquic/_build/latest?definitionId=347&branchName=main) [](https://microsoft.github.io/msquic/) [](https://dev.azure.com/ms/msquic/_build/latest?definitionId=347&branchName=main)  [](https://lgtm.com/projects/g/microsoft/msquic/context:cpp) [](https://bestpractices.coreinfrastructure.org/projects/4846) [](https://discord.gg/YGAtCwTSsc)
|
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({
"transport": {
@@ -50,9 +50,9 @@ static char *config_property_tcp = QUOTE({
});
static char *config_property_sctp = QUOTE({
"transport": {
- "value": ["SCTP", "SCTP/UDP"]
+ "value": ["SCTP","SCTP/UDP"],
"precedence": 1
- },
+ }
});
static unsigned char *buffer = NULL;
static int streams_going = 0;
|
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 its copy to an invalid value */
+ tls->sockfd = -1;
+ }
}
}
}
|
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 whether i2c passthru should be allowed
* on a given port.
|
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 are suppressed as a MISRA exception justified
@@ -1102,11 +1104,8 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
#if ( configUSE_NEWLIB_REENTRANT == 1 )
{
- // /* Initialise this task's Newlib reent structure. */
- // _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
-
/* Initialise this task's Newlib reent structure. */
- esp_reent_init(&pxNewTCB->xNewLib_reent);
+ _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
}
#endif
|
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_blob *key, struct s2n_blob *pseudo_rand_key);
+
+extern int s2n_hkdf_expand_label(struct s2n_hmac_state *hmac, s2n_hmac_algorithm alg, const struct s2n_blob *secret, const struct s2n_blob *label,
+ const struct s2n_blob *context, struct s2n_blob *output);
|
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_sockstat {
+ sctp_assoc_t ss_assoc_id;
+ uint32_t ss_total_sndbuf;
+ uint32_t ss_total_recv_buf;
+};
+
#define SPP_HB_ENABLE 0x00000001
#define SPP_HB_DISABLE 0x00000002
#define SPP_HB_DEMAND 0x00000004
|
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 new size is accepted, false otherwise.
* The host doesn't have to call set_size().
|
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 target.
+ * readdir(), however, does correctly return the correct type of
+ * the symbolic link.
+ */
+
+ if (DIRENT_ISLINK(entryp->d_type))
+ {
+ details[0] = 'l';
+ }
+ else
+#endif
if (S_ISDIR(buf.st_mode))
{
details[0] = 'd';
@@ -190,6 +203,12 @@ static int ls_handler(FAR struct nsh_vtbl_s *vtbl, FAR const char *dirpath,
{
details[0] = 'b';
}
+#if 0 /* ifdef CONFIG_PSEUDOFS_SOFTLINKS See Kludge above. */
+ else if (S_ISLNK(buf.st_mode))
+ {
+ details[0] = 'l';
+ }
+#endif
else if (!S_ISREG(buf.st_mode))
{
details[0] = '?';
|
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 unsigned char *d, size_t n,
- unsigned char *md))
-DEPRECATEDIN_3_0(void MD5_Transform(MD5_CTX *c, const unsigned char *b))
+# ifndef OPENSSL_NO_DEPRECATED_3_0
+OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
+OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
+OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
+OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
+ unsigned char *md);
+OSSL_DEPRECATEDIN_3_0 void MD5_Transform(MD5_CTX *c, const unsigned char *b);
+# endif
# ifdef __cplusplus
}
|
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{\baseosshort}{rocky8}
\newcommand{\provisioner}{Warewulf}
\newcommand{\provheader}{\provisioner{}}
|
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 = {}
--
@@ -49,7 +43,7 @@ local good_number = Cmt(possible_number, function(_, i, s)
return false
end
end)
-lexer.NUMBER = #number_start * (good_number + T(labels.MalformedNumber))
+lexer.NUMBER = #number_start * (good_number + T("MalformedNumber"))
--
-- Strings
@@ -79,7 +73,7 @@ do
longstring = (
open * (
C(contents) * close +
- T(labels.UnclosedLongString)
+ T("UnclosedLongString")
)
) / function(contents) return contents end -- hide the group captures
end
@@ -106,10 +100,10 @@ do
P("0") * R("09") * R("09") +
R("09") * R("09") * -R("09") +
R("09") * -R("09") +
- R("09") * T(labels.MalformedEscape_decimal)
+ R("09") * T("MalformedEscape_decimal")
local escape_sequence = P("\\") * (
- (-P(1) * T(labels.UnclosedShortString)) +
+ (-P(1) * T("UnclosedShortString")) +
(P("a") / "\a") +
(P("b") / "\b") +
(P("f") / "\f") +
@@ -122,15 +116,15 @@ do
(P("\"") / "\"") +
(linebreak / "\n") +
C(decimal_escape) / tonumber / string.char +
- (P("u") * (P("{") * C(R("09", "af", "AF")^0) * P("}") * Cc(16) + T(labels.MalformedEscape_u)))
+ (P("u") * (P("{") * C(R("09", "af", "AF")^0) * P("}") * Cc(16) + T("MalformedEscape_u")))
/ tonumber / utf8.char +
- (P("x") * (C(R("09", "af", "AF") * R("09", "af", "AF")) * Cc(16) + T(labels.MalformedEscape_x))) / tonumber / string.char +
+ (P("x") * (C(R("09", "af", "AF") * R("09", "af", "AF")) * Cc(16) + T("MalformedEscape_x"))) / tonumber / string.char +
(P("z") * lpeg.space^0) +
- T(labels.InvalidEscape)
+ T("InvalidEscape")
)
local part = (
- (S("\n\r") * T(labels.UnclosedShortString)) +
+ (S("\n\r") * T("UnclosedShortString")) +
escape_sequence +
(C(P(1)))
)
@@ -140,7 +134,7 @@ do
shortstring = (
open * (
Ct(contents) * close +
- T(labels.UnclosedShortString)
+ T("UnclosedShortString")
)
) / function(parts) return table.concat(parts) end
end
|
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) {
+ delete entry;
return ESP_FAIL;
}
+ mNamespaces.push_back(entry);
itemIndex += item.span;
}
}
|
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-react';
@@ -48,14 +47,27 @@ const renderers = {
}
};
-const MessageMarkdown = React.memo(props => (
+const MessageMarkdown = React.memo(props => {
+ const { source, ...rest } = props;
+ const blockCode = source.split('```');
+ const codeLines = blockCode.map(codes => codes.split("\n"));
+ const lines = codeLines.reduce((acc, val, i) => {
+ if((i % 2) === 1) {
+ return [...acc, `\`\`\`${val.join('\n')}\`\`\``];
+ } else {
+ return [...acc, ...val];
+ }
+ }, []);
+
+
+ return lines.map((line, i) => (
+ <>
+ { i !== 0 && <br />}
<ReactMarkdown
- {...props}
+ {...rest}
+ source={line}
unwrapDisallowed={true}
renderers={renderers}
- // shim until we uncover why RemarkBreaks and
- // RemarkDisableTokenizers can't be loaded simultaneously
- disallowedTypes={['heading', 'list', 'listItem', 'link']}
allowNode={(node, index, parent) => {
if (
node.type === 'blockquote'
@@ -70,8 +82,14 @@ const MessageMarkdown = React.memo(props => (
return true;
}}
- plugins={[RemarkBreaks]} />
-));
+ plugins={[[RemarkDisableTokenizers, {
+ block: DISABLED_BLOCK_TOKENS,
+ inline: DISABLED_INLINE_TOKENS
+ }]]}
+ />
+ </>
+ ))
+});
export default class TextContent extends Component {
|
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(skipped_tests), ' '.join(skipped_tests)))
if len(failed_tests) > 0:
|
* Upgraded to iwkv v1.4.10 | +ejdb2 (2.0.58) UNRELEASED; urgency=medium
+
+ * Upgraded to iwkv v1.4.10
+
+ -- Anton Adamansky <[email protected]> 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(ETH_P_ALL);
ll.sll_halen = ETH_ALEN;
-ll.sll_pkttype = PACKET_OTHERHOST;
if(bind(fd_socket, (struct sockaddr*) &ll, sizeof(ll)) < 0)
{
perror("failed to bind socket");
return false;
}
-memset(&mr, 0, sizeof(mr));
-mr.mr_ifindex = ifr.ifr_ifindex;
-mr.mr_type = PACKET_MR_PROMISC;
-if(setsockopt(fd_socket, SOL_PACKET, PACKET_ADD_MEMBERSHIP,&mr, sizeof(mr)) < 0)
- {
- perror( "failed to ser promicuous mode" );
- return false;
- }
-
epmaddr = malloc(sizeof(struct ethtool_perm_addr) +6);
if (!epmaddr)
{
|
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, CL_TRACER_CL,
- CCL_NONLIMBER_METHOD_NATIVE, CCL_NONLIMBER_METHOD_ANGPOW, CCL_CLT_NZ,
- CCL_CLT_BZ, CCL_CLT_SZ, CCL_CLT_WM, CCL_CLT_RF, CCL_CLT_BA, CCL_CLT_WL,
- DNDZ_NC, DNDZ_WL_CONS, DNDZ_WL_FID, DNDZ_WL_OPT,
- EPS_SCALEFAC_GROWTH, GNEWT, K_PIVOT, MPC_TO_METER, PC_TO_METER,
- RHO_CRITICAL, SOLAR_MASS, Z_MAX_SOURCES, Z_MIN_SOURCES, CCL_CORR_FFTLOG,
- CCL_CORR_BESSEL, CCL_CORR_LGNDRE, CCL_CORR_GG, CCL_CORR_GL, CCL_CORR_LP,
- CCL_CORR_LM)
+ CCL_ERROR_SPLINE_EV, CLIGHT_HMPC,
+ EPS_SCALEFAC_GROWTH, GNEWT,
+ K_PIVOT, MPC_TO_METER, PC_TO_METER, RHO_CRITICAL, SOLAR_MASS, Z_MAX_SOURCES,
+ Z_MIN_SOURCES, CCL_CORR_FFTLOG, CCL_CORR_BESSEL, CCL_CORR_LGNDRE,
+ CCL_CORR_GG, CCL_CORR_GL, CCL_CORR_LP, CCL_CORR_LM)
|
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 unique
+ // name.
+ std::string new_name_string = this->newname.toStdString();
+ int newid = 1;
+ bool okay = (*exprList)[new_name_string.c_str()] ? false : true;
+ while (!okay)
+ {
+ this->newname = tr((new_name_string + "%1").c_str()).arg(newid);
+ if ((*exprList)[this->newname.toStdString().c_str()])
+ newid++;
+ else
+ okay = true;
+ }
+
int index = exprListBox->currentRow();
if (index < 0)
@@ -1301,9 +1316,9 @@ void QvisExpressionsWindow::UpdateExpressionBox()
Expression &e = (*exprList)[indexMap[index]];
- e.SetName(newname.toStdString());
+ e.SetName(this->newname.toStdString());
BlockAllSignals(true);
- exprListBox->item(index)->setText(newname);
+ exprListBox->item(index)->setText(this->newname);
BlockAllSignals(false);
}
this->name_changed = false;
|
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.py --run --root-dir=..;
fi
|
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 the License. You can obtain a copy
in the file LICENSE in the source distribution or at
L<https://www.openssl.org/source/license.html>.
|
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]);
}
//Multiply by fraction
@@ -420,7 +420,7 @@ ccl_cl_tracer_t *ccl_cl_tracer_t_new(ccl_cosmology *cosmo,
//Find minimum
for(ichi=0;ichi<n_w;ichi++) {
- if(w_w[ichi]>=w_max) {
+ if(fabs(w_w[ichi])>=w_max) {
tr->chi_min=chi_w[ichi];
break;
}
@@ -428,7 +428,7 @@ ccl_cl_tracer_t *ccl_cl_tracer_t_new(ccl_cosmology *cosmo,
//Find maximum
for(ichi=n_w-1;ichi>=0;ichi--) {
- if(w_w[ichi]>=w_max) {
+ if(fabs(w_w[ichi])>=w_max) {
tr->chi_max=chi_w[ichi];
break;
}
|
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
+
+#ifdef BSP_USING_HWI2C
void ch32f1_i2c_clock_and_io_init(I2C_TypeDef* i2cx);
void ch32f1_i2c_config(I2C_TypeDef* i2cx);
+#endif
+
+#ifdef BSP_USING_TIM
void ch32f1_tim_clock_init(TIM_TypeDef *timx);
rt_uint32_t ch32f1_tim_clock_get(TIM_TypeDef *timx);
+
+#ifdef BSP_USING_HWTIMER
struct rt_hwtimer_info* ch32f1_hwtimer_info_config_get(TIM_TypeDef *timx);
+#endif
+
+#ifdef BSP_USING_PWM
void ch32f1_pwm_io_init(TIM_TypeDef *timx, rt_uint8_t channel);
+#endif
+#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->count = 0;
- tmp = flb_output_get_property("retries", ins);
- if (!tmp) {
- ctx->n_retry = 3;
- }
- else {
- ctx->n_retry = atoi(tmp);
+ ret = flb_output_config_map_set(ins, ctx);
+ if (ret == -1) {
+ flb_plg_error(ins, "unable to load configuration");
+ return -1;
}
flb_output_set_context(ins, ctx);
@@ -97,11 +95,22 @@ static int cb_retry_exit(void *data, struct flb_config *config)
return 0;
}
+/* Configuration properties map */
+static struct flb_config_map config_map[] = {
+ {
+ FLB_CONFIG_MAP_INT, "retry", "3",
+ 0, FLB_TRUE, offsetof(struct retry_ctx, n_retry),
+ "Number of retries."
+ },
+ {0}
+};
+
struct flb_output_plugin out_retry_plugin = {
.name = "retry",
.description = "Issue a retry upon flush request",
.cb_init = cb_retry_init,
.cb_flush = cb_retry_flush,
.cb_exit = cb_retry_exit,
+ .config_map = config_map,
.flags = 0,
};
|
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/unittest ~[!nonportable]
- name: CMake test install
run: |
- cmake --install build
+ cmake --install build --config ${{matrix.config}}
|
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->aead->ctr_cipher->key_size);
+ memcpy(secret, new_secret, cipher->hash->digest_size);
}
return ret;
|
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 \
bc \
curl \
- device-tree-compiler \
expat \
- flex \
gawk \
gperf \
g++ \
@@ -175,7 +173,6 @@ RUN apt-get install -y \
texinfo \
zlib1g-dev \
rsync \
- bison \
verilator
@@ -251,7 +248,8 @@ RUN mvn -version \
# Install riscv-tools
RUN cd chipyard && \
- export MAKEFLAGS=-"j $(nproc)" && \./scripts/build-toolchains.sh riscv-tools 1>/dev/null
+ export MAKEFLAGS=-"j $(nproc)" && \
+ ./scripts/build-toolchains.sh riscv-tools 1>/dev/null
# Install esp-tools
RUN cd chipyard && \
@@ -260,11 +258,6 @@ RUN cd chipyard && \
#ENTRYPOINT ["sh", "-c", "-l", "cd chipyard && . ./env.sh && #\"$@\"", "-s"]
-#WORKDIR $HOME/chipyard
-#COPY entrypoint.sh /home/riscvuser/chipyard/entrypoint.sh
-RUN sudo chown riscvuser /home/riscvuser/chipyard/scripts/entrypoint.sh
-RUN chmod +x /home/riscvuser/chipyard/scripts/entrypoint.sh
-#WORKDIR $HOME
ENTRYPOINT ["/home/riscvuser/chipyard/scripts/entrypoint.sh"]
#env_file: ./env.sh
|
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 | WS_TABSTOP,0,0,271,224
|
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}
-OPENOCD_DIR_PATH=${BOARD_DIR_PATH}/openocd
+OPENOCD_DIR_PATH=${BOARD_DIR_PATH}/tools/openocd
FW_DIR_PATH=${BOARD_DIR_PATH}/boot_bin
SYSTEM_TYPE=`getconf LONG_BIT`
if [ "$SYSTEM_TYPE" = "64" ]; then
- COMMAND=openocd_linux64
+ OPENOCD_BIN_PATH=${OPENOCD_DIR_PATH}/linux64
else
- COMMAND=openocd_linux32
+ OPENOCD_BIN_PATH=${OPENOCD_DIR_PATH}/linux32
fi
-# Prepare resouces, pack into romfs.img
-prepare_resource()
-{
- echo "Prepare resouces and pack into romfs.img ..."
- # Only if FS_ROMFS enabled.
- if [ "${CONFIG_FS_ROMFS}" = "y" ]; then
- # create resource directory in ${OUTPUT_DIR_PATH}
- mkdir -p ${OUTPUT_DIR_PATH}/res
- cp -rf ${tinyara_path}/external/contents/${BOARD_NAME}/base-files/* ${OUTPUT_DIR_PATH}/res/
-
- # create romfs.img
- echo "Creating ROMFS Image ..."
- sh ${tinyara_path}/apps/tools/mkromfsimg.sh
-
- romfs_size=`stat -c%s ${OUTPUT_BIN_PATH}/romfs.img`
- echo "ROMFS Image Size : ${romfs_size}"
-
- # download romfs.img using openocd script
- pushd ${OPENOCD_DIR_PATH}
- ./openocd_linux64 -f s5jt200_evt0_flash_romfs.cfg
- popd
-
- else
- echo "CONFIG_FS_ROMFS is not enabled, skip download ..."
- fi
-}
-
# MAIN
main()
{
- echo "System is ${SYSTEM_TYPE} bits so that ${COMMAND} will be used to program"
+ echo "openocd is picked from ${OPENOCD_BIN_PATH}"
+ echo "Binaries are picked from ${OUTPUT_BIN_PATH}"
+ echo "Board path is ${BOARD_DIR_PATH}"
# Process arguments
for arg in $@
@@ -98,19 +72,13 @@ main()
# download all binaries using openocd script
pushd ${OPENOCD_DIR_PATH}
- ./${COMMAND} -f s5jt200_silicon_evt0_fusing_flash_all.cfg
+ ${OPENOCD_BIN_PATH}/openocd -f s5jt200_silicon_evt0_fusing_flash_all.cfg
popd
- prepare_resource
- ;;
-
- RESOURCE)
- echo "RESOURCE :"
- prepare_resource
;;
*)
echo "${arg} is not suppported in ${BOARD_NAME}"
- echo "Usage : make download [ ALL | RESOURCE ]"
+ echo "Usage : make download [ ALL ]"
exit 1
;;
esac
|
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();
+ }
+
do_render();
blit_i2c_tick();
@@ -674,6 +679,7 @@ void blit_menu_render(uint32_t time) {
}
void blit_menu() {
+ toggle_menu = false;
if(blit::update == blit_menu_update && do_tick == blit::tick) {
if (user_tick && !user_code_disabled) {
// user code was running
@@ -800,9 +806,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {
} else {
if(__HAL_TIM_GetCounter(&htim2) > 200){ // 20ms debounce time
- // TODO is it a good idea to swap out the render/update functions potentially in the middle of a loop?
- // We were more or less doing this before by handling the menu update between render/update so perhaps it's mostly fine.
- blit_menu();
+ toggle_menu = true;
HAL_TIM_Base_Stop(&htim2);
HAL_TIM_Base_Stop_IT(&htim2);
__HAL_TIM_SetCounter(&htim2, 0);
|
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_vm->node);
-
/* new virtual allocation */
u64 maplen = pad(new_size, vh->pagesize);
u64 vnew = allocate_u64(vh, maplen);
@@ -349,6 +345,10 @@ sysreturn mremap(void *old_address, u64 old_size, u64 new_size, int flags, void
}
thread_log(current, " new physical pages at 0x%lx, size %ld", dphys, dlen);
+ /* 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_vm->node);
+
/*
* XXX : if we decide to handle MREMAP_FIXED, we'll need to be careful about
* making sure destination address ranges are unmapped before mapping over them
|
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,12 @@ static void mangle_Expand(honggfuzz_t * hfuzz UNUSED, fuzzer_t * fuzzer, uint8_t
if (fuzzer->dynamicFileSz >= hfuzz->maxFileSz) {
return;
}
+
size_t len = util_rndGet(1, hfuzz->maxFileSz - fuzzer->dynamicFileSz);
size_t off = util_rndGet(0, fuzzer->dynamicFileSz - 1);
fuzzer->dynamicFileSz += len;
+
mangle_Move(fuzzer, buf, off, off + len, len);
}
|
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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.