message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
graph-push-hook: build %transform-add-nodes mark to keep cache hot | =* mark i.t.wire
:_ this
(build-permissions mark i.t.t.wire %next)^~
+ ::
+ [%transform-add @ ~]
+ =* mark i.t.wire
+ :_ this
+ (build-transform-add mark %next)^~
==
::
++ on-fail on-fail:def
:_ this(marks (~(put in marks) mark))
:~ (build-permissions:hc mark %add %sing)
(build-permissions:hc mark %remove %sing)
+ (bui... |
Allow cose signing of windows installers | @@ -634,6 +634,24 @@ class Platform
ProcessHelper.runCommand("",nsis+"/makensis.exe", ["/NOCD", scriptName] );
Log.verbose("Wrote " + name);
+
+ if (project.certificate!=null)
+ {
+ var signtool = project.getDef("SIGNTOOL");
+ if (signtool==null || signtool=="")
+ {
+ Log.verbose("SIGNTOOL variale not found, assuming s... |
Dropdown: fix event propagation
Fixes urbit/landscape#427 | @@ -66,13 +66,19 @@ export function Dropdown(props: DropdownProps) {
[setOpen, updatePos]
);
- useEffect(() => {
+ const close = useCallback(() => {
setOpen(false);
+ },[]);
+
+ useEffect(() => {
+ close();
}, [pathname]);
- useOutsideClick(dropdownRef, () => {
- setOpen(false);
- });
+ useOutsideClick(dropdownRef, clo... |
Update Changelog file for CMakeLists | ## Develop
- Add POSIX-compliant low-level driver
-- By default prohibit transmission of too long UDP packets -> configured with options
+- Prohibit transmission of too long UDP packets (default), with conditional compilation
+- Split CMakeLists.txt files between library and executable
## v1.1.1-dev
|
non-issue leak found via static analysis
issue reported a memory leak in the init code. another non-issue, since
it's a handful of bytes and that code path is only used in a couple of tests. | @@ -7717,8 +7717,9 @@ int main (int argc, char **argv) {
if (portnumber_file) {
fclose(portnumber_file);
rename(temp_portnumber_filename, portnumber_filename);
- free(temp_portnumber_filename);
}
+ if (temp_portnumber_filename)
+ free(temp_portnumber_filename);
}
/* Give the sockets a moment to open. I know this is dum... |
iOS build script tweaks | @@ -292,9 +292,9 @@ args = parser.parse_args()
if 'all' in args.iosarch or args.iosarch == []:
args.iosarch = IOS_ARCHS
if not args.buildxcframework:
- args.iosarch = filter(lambda arch: not (arch.endswith('-simulator') or arch.endswith('-maccatalyst')), args.iosarch)
+ args.iosarch = list(filter(lambda arch: not (arch... |
hw/chiptod: Abort if core frequency is not set | @@ -499,6 +499,12 @@ static void chiptod_setup_base_tfmr(void)
core_freq = dt_prop_get_u64(cpu, "ibm,extended-clock-frequency");
else
core_freq = dt_prop_get_u32(cpu, "clock-frequency");
+
+ if (!core_freq) {
+ prlog(PR_ERR, "CPU clock frequency is not set\n");
+ abort();
+ }
+
tod_freq = 32000000;
/* Calculate the "Ma... |
Doxygen: Fix support statement for SIMD instructions.
SIMD is not only supported on M4/M7 (Armv7E-M) but also on
Armv8-MML and Armv8.1-M. | -/* ###################### CMSIS Support for Cortex-M4 SIMD Instructions ####################### */
+/* ###################### CMSIS Support for Cortex-M4/7/33/35P/55 SIMD Instructions ####################### */
/**
-\defgroup intrinsic_SIMD_gr Intrinsic Functions for SIMD Instructions [only Cortex-M4 and Cortex-M7]
-\... |
Add console log when snapshots are not equal | @@ -8,14 +8,12 @@ expect.extend({
message: () => `snapshots are equal`,
pass: true
}
- }
-
- // console.log(received.data.toString('hex'))
- // console.log(original.data.toString('hex'))
-
+ } else {
+ console.log("snapshots are not equal")
return {
message: () => `snapshots are not equal`,
pass: false
}
+ }
},
});
\ N... |
Add macosx build | @@ -170,7 +170,10 @@ jobs:
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
out-of-source-and-install:
- runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ os: [ubuntu-latest, macos-latest ]
+ runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- name: extra preparations
|
python BUGFIX adjust tests based on C++ changes | @@ -57,9 +57,12 @@ class SubscriptionTester(SysrepoTester):
def getOperationalData(self, xpath, expected):
if(self.session):
vals = self.session.get_items(xpath)
+ if len(expected):
self.tc.assertEqual(len(expected), vals.val_cnt())
for i in range(len(expected)):
self.tc.assertEqual(vals.val(i).xpath(), expected[i])
+ ... |
Add PhCreateEMenuItemEmpty | @@ -212,6 +212,14 @@ PPH_EMENU_ITEM PhCreateEMenuSeparator(
return PhCreateEMenuItem(PH_EMENU_SEPARATOR, 0, NULL, NULL, NULL);
}
+FORCEINLINE
+PPH_EMENU_ITEM PhCreateEMenuItemEmpty(
+ VOID
+ )
+{
+ return PhCreateEMenuItem(0, USHRT_MAX, NULL, NULL, NULL);
+}
+
FORCEINLINE
BOOLEAN PhEnableEMenuItem(
_Inout_ PPH_EMENU_IT... |
update sensor tooltip
add tooltip for sensors(zh-hans) | @@ -178,6 +178,7 @@ Blockly.Blocks['sensor_light_level'] = {
.appendField(Blockly.MIXLY_MICROBIT_JS_LIGHT_LEVEL)
this.setOutput(true, Number);
this.setInputsInline(true);
+ this.setTooltip(Blockly.MIXLY_ESP32_SENSOR_LIGHT_LEVEL);
}
};
/*
@@ -487,7 +488,7 @@ Blockly.Blocks.RTC_set_datetime = {
this.setInputsInline(false... |
tree@da7808a actually disable post box upon submission | @@ -1927,6 +1927,9 @@ module.exports = query({
},
onSubmit: function(e) {
var comment, path, title;
+ this.setState({
+ loading: true
+ });
title = this.refs["in"].title.value;
comment = this.refs["in"].comment.value;
path = this.props.path || "/";
@@ -1939,27 +1942,26 @@ module.exports = query({
});
},
render: functio... |
More compile issues on Windows. | @@ -3616,7 +3616,7 @@ int client_error_test_modal(int mode)
uint8_t stream_error_frame[] = { 0x17, 0x04, 0x41, 0x01, 0x08, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 };
picoquic_queue_misc_frame(test_ctx->cnx_client, stream_error_frame, sizeof(stream_error_frame));
}
- else if (mode == 1 && test_ctx->cnx_server != ... |
Changed subdirectory for external project binary files | @@ -40,7 +40,7 @@ add_subdirectory(cmake)
# Find or install Imath
#######################################
# Check to see if Imath is installed outside of the current build directory.
-set(CMAKE_IGNORE_PATH "${CMAKE_CURRENT_BINARY_DIR}/build/_deps/imath-src/config/")
+set(CMAKE_IGNORE_PATH "${CMAKE_CURRENT_BINARY_DIR}/_... |
clay: invalidate cache on kelvin change | ++ promote-ford
|= [=ford-cache deletes=(set path) changes=(set path)]
^+ ford-cache
+ ?: (~(has in changes) /sys/kelvin)
+ *^ford-cache
=/ invalid=(set path) (~(uni in deletes) changes)
=. invalid
%- ~(gas in invalid)
|
tests FEATURE case validation test | @@ -1249,6 +1249,94 @@ test_reply(void **state)
lyd_free_all(tree);
}
+static void
+test_case(void **state)
+{
+ struct lyd_node *tree;
+ const char *schema =
+ "module k {\n"
+ " namespace urn:tests:k;\n"
+ " prefix k;\n"
+ " yang-version 1.1;\n"
+ "\n"
+ " container ch {\n"
+ " choice a0 {\n"
+ " case v0 {\n"
+ " lea... |
Add deprecation message mechanism | (uint32_t(ILMBASE_VERSION_MINOR) << 16) | \
(uint32_t(ILMBASE_VERSION_PATCH) << 8))
+#if defined(__cplusplus) && (__cplusplus >= 201402L)
+# define ILMBASE_DEPRECATED(msg) [[deprecated(msg)]]
+#endif
+
+#ifndef ILMBASE_DEPRECATED
+# ifdef _MSC_VER
+# define ILMBASE_DEPRECATED(msg) __declspec(deprecated(msg))
+# else
+#... |
Add option to disable building of examples | @@ -25,6 +25,8 @@ if(WITH_TESTS)
add_definitions(-DWITH_TESTS)
endif(WITH_TESTS)
+option(WITH_EXAMPLES "Build examples" ON)
+
option(HUGE_FUZZ "[TEST] Fuzz through 8GB of data in the test. Do not use with memory instrumentation!" OFF)
if(HUGE_FUZZ)
add_definitions(-DHUGE_FUZZ)
@@ -126,4 +128,6 @@ if (WITH_TESTS)
subdir... |
sysdeps/managarm: convert sys_bind to helix_ng | @@ -55,45 +55,25 @@ int sys_bind(int fd, const struct sockaddr *addr_ptr, socklen_t addr_length) {
if (!handle)
return EBADF;
- HelAction actions[5];
- globalQueue.trim();
-
managarm::fs::CntRequest<MemoryAllocator> req(getSysdepsAllocator());
req.set_req_type(managarm::fs::CntReqType::PT_BIND);
- frg::string<MemoryAll... |
errno 11 on linux | @@ -46,7 +46,7 @@ class PandaWifiStreaming(object):
if addr == (self.ip, self.port):
ret += parse_can_buffer(dat)
except socket.error as e:
- if e.errno != 35:
+ if e.errno != 35 and e.errno != 11:
traceback.print_exc()
break
return ret
|
Fixing coverity issue with logging | @@ -1446,7 +1446,7 @@ static void log_network_status(ACVP_CTX *ctx,
break;
case ACVP_NET_POST_REG:
ACVP_LOG_INFO("POST Registration...\n\tStatus: %d\n\tUrl: %s\n\tResp: Recieved\n",
- curl_code, url, ctx->curl_buf);
+ curl_code, url);
break;
case ACVP_NET_POST_VS_RESP:
ACVP_LOG_INFO("POST Response Submission...\n\tStat... |
Need to printf for GET output when verbose | @@ -2973,7 +2973,11 @@ ACVP_RESULT acvp_run(ACVP_CTX *ctx, int fips_validation) {
if (ctx->get) {
rv = acvp_transport_get(ctx, ctx->get_string, NULL);
+ if (ctx->debug == ACVP_LOG_LVL_VERBOSE) {
+ printf("\n\n%s\n\n", ctx->curl_buf);
+ } else {
ACVP_LOG_STATUS("GET Response:\n\n%s\n", ctx->curl_buf);
+ }
goto end;
}
|
Release: Use new instead of old logo | @@ -44,7 +44,7 @@ You can also read the news [on our website](https://www.libelektra.org/news/0.8.
We are proud to present our new Logo.
It has a new shape and cooler colors.
-<img src="https://cdn.rawgit.com/ElektraInitiative/libelektra/master/doc/images/circle.svg" alt="Elektra" width="150" />
+<img src="https://cdn.... |
board/jacuzzi/battery.c: Format with clang-format
BRANCH=none
TEST=none | @@ -120,7 +120,8 @@ const struct board_batt_params board_battery_info[] = {
};
BUILD_ASSERT(ARRAY_SIZE(board_battery_info) == BATTERY_TYPE_COUNT);
-const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_PANASONIC_AC16L5J_KT00205009;
+const enum battery_type DEFAULT_BATTERY_TYPE =
+ BATTERY_PANASONIC_AC16L5J_KT00205009;... |
Encoder: improve `ZydisArePrefixesCompatible` perf
Most instructions tend to not have any custom prefixes, so it greatly
improves overall encoder performance when we check if any prefix is
requested at all and potentially early-exit before doing a detailed check. | @@ -2762,6 +2762,12 @@ static ZyanBool ZydisIsDefinitionCompatible(ZydisEncoderInstructionMatch *match,
*/
static ZyanBool ZydisArePrefixesCompatible(const ZydisEncoderInstructionMatch *match)
{
+ // Early-exit optimization for when no prefixes are requested at all.
+ if (!(match->attributes & ZYDIS_ENCODABLE_PREFIXES)... |
CommonDataContext and DataConcernType updates
CommonDataContext:
Added support for Language and OutOfScopeIdentifier
DataConcernType:
Simplified OutOfScopeIdentifier into a single value as
other values are Office-specific. | @@ -40,10 +40,8 @@ namespace MAT_NS_BEGIN
FieldNameImpliesLocation = 3, // Field name sounds like location data
InternalEmailAddress = 4, // SMTP ending with <span>microsoft.com</span>
PIDKey = 5, // Product key
- OutOfScopeIdentifierTelemetryClientId = 6, // Client Id for OXO telemetry from the registry
- OutOfScopeId... |
README.md: update media_player_name | @@ -155,7 +155,7 @@ A partial list of parameters are below. See the config file for a complete list.
| `log_duration` | Set amount of time the logging will run for (in seconds) |
| `vsync`<br> `gl_vsync` | Set vsync for OpenGL or Vulkan |
| `media_player` | Show media player metadata |
-| `media_player_name` | Set main... |
kdb-set: add line about negative values to usage text | @@ -39,7 +39,9 @@ public:
virtual std::string getLongHelpText () override
{
return "If no value is given, it will be set to a null-value\n"
- "To get an empty value you need to quote like \"\" (depending on shell)";
+ "To get an empty value you need to quote like \"\" (depending on shell)\n"
+ "To set a negative value ... |
removed localhost | @@ -12,7 +12,7 @@ written in C. It produces real Wren objects that you can pass around, do `is`
checks on, etc. But it also wraps a blob of raw memory that is opaque to Wren
but accessible from C.
-[foreign methods]: http://localhost:8000/embedding/calling-c-from-wren.html
+[foreign methods]: calling-c-from-wren.html
#... |
apps/cmp.c: Check self-signature on CSR input and warn on failure | @@ -673,6 +673,14 @@ static X509_REQ *load_csr_autofmt(const char *infile, const char *desc)
ERR_print_errors(bio_err);
BIO_printf(bio_err, "error: unable to load %s from file '%s'\n", desc,
infile);
+ } else {
+ EVP_PKEY *pkey = X509_REQ_get0_pubkey(csr);
+ int ret = do_X509_REQ_verify(csr, pkey, NULL /* vfyopts */);
... |
Add std140 layout qualifier to DrawData block; | @@ -30,7 +30,7 @@ const char* lovrShaderVertexPrefix = ""
" mat4 model; \n"
" vec4 color; \n"
"}; \n"
-"uniform lovrDrawData { \n"
+"layout(std140) uniform lovrDrawData { \n"
" DrawData lovrDraws[MAX_DRAWS]; \n"
"}; \n"
"uniform mat4 lovrViews[2]; \n"
|
[fs][fat] fix an incorrect assert | @@ -179,7 +179,7 @@ ssize_t fat_file::read_file_priv(void *_buf, const off_t offset, size_t len) {
// make sure we dont do something silly
DEBUG_ASSERT(buf_offset + to_read <= len);
- DEBUG_ASSERT(buf_offset % fs_->info().bytes_per_sector + to_read <= fs_->info().bytes_per_sector);
+ DEBUG_ASSERT(offset_within_sector +... |
NEWS.md update | @@ -15,6 +15,7 @@ but also some new features.
### Fixes/changes:
* Improved text placement in vector tile renderer with texts that have non-zero vertical offsets
* Improved tilting gesture handling on UWP
+* Performance optimizations for MB vector tile decoder
* Pelias Online geocoding fixes
* Text rendering quality im... |
Initialise buffer before use
Commit initialises buf before it is used. | @@ -16,6 +16,7 @@ void mbedtls_md_process( )
unsigned char buf[150];
mbedtls_md_init( &ctx );
+ memset( buf, 0, sizeof( buf ) );
/*
* Very minimal testing of mbedtls_md_process, just make sure the various
|
BugID:24057741: update mal config.in | @@ -16,7 +16,7 @@ endif
###################################################################
# Component configuration items
-menu "COAP Configuration"
+menu "MAL Configuration"
depends on AOS_COMP_MAL
config MAL_CONFIG_MAX_TOPIC_LEN
|
Legacy Gaussian: Improve debug message | @@ -437,7 +437,8 @@ static int unpack_long(grib_accessor* a, long* val, size_t *len)
if (get_number_of_data_values(h, &numDataValues) == GRIB_SUCCESS) {
if (*val != numDataValues) {
if (h->context->debug)
- printf("ECCODES DEBUG number_of_points_gaussian: LEGACY MODE activated. Count(=%ld) changed to size(values)\n",*v... |
revert M3 project Sconscript.env file | @@ -13,21 +13,16 @@ buildEnv['ENV'] = os.environ
# configuration for the same board.
buildEnv['BSP'] = buildEnv['board']
-# include board/bsp-specific directories
-buildEnv.Append(
- CPPPATH = [
- os.path.join('#','bsp','boards',buildEnv['board']),
- ]
-)
+bsp_dir = os.path.join('#','bsp','boards',buildEnv['board'])
# ... |
Gamma correct background color correctly; | @@ -87,6 +87,7 @@ void lovrGraphicsReset() {
void lovrGraphicsClear(bool clearColor, bool clearDepth, bool clearStencil, Color color, float depth, int stencil) {
if (clearColor) {
+ gammaCorrectColor(&color);
float c[4] = { color.r, color.g, color.b, color.a };
glClearBufferfv(GL_COLOR, 0, c);
for (int i = 1; i < state... |
pbio/uartdev: fix unexpected tacho count wrap | @@ -146,6 +146,7 @@ typedef enum {
* @info_flags: Flags indicating what information has already been read
* from the data.
* @tacho_count: The tacho count received from an LPF2 motor
+ * @tacho_offset: Tacho count offset to account for unexpected jumps in LPF2 tacho data
* @abs_pos: The absolute position received from ... |
apps/opt.c: Remove the access checks of input and output files
open() will take care of the checks anyway | @@ -682,20 +682,10 @@ int opt_next(void)
return -1;
case '<':
/* Input file. */
- if (strcmp(arg, "-") == 0 || app_access(arg, R_OK) == 0)
break;
- BIO_printf(bio_err,
- "%s: Cannot open input file %s, %s\n",
- prog, arg, strerror(errno));
- return -1;
case '>':
/* Output file. */
- if (strcmp(arg, "-") == 0 || app_acc... |
Use allocation function for session key object | @@ -499,7 +499,7 @@ int s2n_encrypt_session_ticket(struct s2n_connection *conn, struct s2n_stuffer *
GUARD(s2n_stuffer_write(to, &iv));
GUARD(s2n_blob_init(&aes_key_blob, key->aes_key, S2N_AES256_KEY_LEN));
- notnull_check(aes_ticket_key.evp_cipher_ctx = EVP_CIPHER_CTX_new());
+ GUARD(s2n_session_key_alloc(&aes_ticket_... |
Enable LWIP_ERROR and LWIP_ASSERT in artik053/tc defconfig
For debugging, enable lwip error and assert configs | @@ -669,6 +669,8 @@ CONFIG_NET_DEFAULT_THREAD_STACKSIZE=0
#
# Debug Options for Network
#
+CONFIG_NET_LWIP_ASSERT=y
+CONFIG_NET_LWIP_ERROR=y
# CONFIG_NET_LWIP_DEBUG is not set
#
@@ -1080,13 +1082,12 @@ CONFIG_NETDB_DNSSERVER_BY_DHCP=y
#
# External Libraries
#
-# CONFIG_LWM2M_WAKAAMA is not set
-# CONFIG_ENABLE_IOTIVITY... |
Stop using template function to create identifiers
It was a bit confusing that $VAR_blah and blah_$VAR didn't do the same
thing. So I changed all the cases to do the string concatenation outside
the template. | @@ -108,14 +108,15 @@ local function checkandget(typ --[[:table]], cvar --[[:string]], exp --[[:string
end
--return getslot(typ, cvar, exp) .. ";"
return output([[
- if(ttis$TAG($EXP)) {
+ if($PREDICATE($EXP)) {
$GETSLOT;
} else {
- luaL_error(L, "type error at line %d, expected $TAG but found %s", $LINE, lua_typename(... |
Move txType parsing outside of forloop | @@ -249,6 +249,22 @@ static void processV(txContext_t *context) {
}
static parserStatus_e processTxInternal(txContext_t *context) {
+ // EIP 2718: TransactionType might be present before the TransactionPayload.
+ uint8_t txType = *context->workBuffer;
+ if (txType >= MIN_TX_TYPE && txType <= MAX_TX_TYPE) {
+ PRINTF("TX... |
Throttle undo stack to one state stored every 2 seconds | @@ -8,11 +8,21 @@ import document from "./documentReducer";
import console from "./consoleReducer";
import { PROJECT_LOAD_SUCCESS, PROJECT_SAVE_SUCCESS } from "../actions/actionTypes";
+let lastUndoStateTime = 0;
+const UNDO_THROTTLE = 2000;
+
const rootReducer = combineReducers({
tools,
editor,
project: undoable(proje... |
Enable openssl TLS async support in client for HW accleration | @@ -427,6 +427,9 @@ openssl_ctx_init_client (tls_ctx_t * ctx)
stream_session_t *tls_session;
const SSL_METHOD *method;
int rv, err;
+#ifdef HAVE_OPENSSL_ASYNC
+ openssl_resume_handler *handler;
+#endif
method = SSLv23_client_method ();
if (method == NULL)
@@ -444,6 +447,10 @@ openssl_ctx_init_client (tls_ctx_t * ctx)
S... |
Mqtt test: Increase retry count to receive all MQTT messages. | * COMPILE-TIME MACROS
* -------------------------------------------------------------- */
#define MQTT_PUBLISH_TOTAL_MSG_COUNT 4
-#define MQTT_RETRY_COUNT 15
+#define MQTT_RETRY_COUNT 60
//lint -esym(767, LOG_TAG) Suppress LOG_TAG defined differently in another module
//lint -esym(750, LOG_TAG) Suppress LOG_TAG not ref... |
Use drbg_mode_tbl actual length for loop | @@ -191,14 +191,7 @@ int acvp_lookup_rsa_randpq_index (const char *value) {
return 0;
}
-/*
- * This function returns the ID of a DRBG mode given an
- * algorithm name (as defined in the ACVP spec). It
- * returns ACVP_DRBG_MODE_END if none match.
- */
-ACVP_DRBG_MODE acvp_lookup_drbg_mode_index (const char *mode) {
- ... |
Fix EAP-FAST
Commit broke EAP-FAST support. This fixes it.
Fixes | @@ -1487,12 +1487,14 @@ SSL_TICKET_STATUS tls_decrypt_ticket(SSL *s, const unsigned char *etick,
}
}
+ if (s->ext.session_secret_cb == NULL || SSL_IS_TLS13(s)) {
switch (ret) {
case SSL_TICKET_NO_DECRYPT:
case SSL_TICKET_SUCCESS_RENEW:
case SSL_TICKET_EMPTY:
s->ext.ticket_expected = 1;
}
+ }
*psess = sess;
|
Remove Py2; Add OMPI4 | @@ -70,8 +70,8 @@ BuildRequires: ohpc-buildroot
# these choices can be overridden by specifing the compiler_family/mpi_family
# variables via rpmbuild or other mechanisms.
-%{!?compiler_family: %global compiler_family gnu8}
-%{!?mpi_family: %global mpi_family openmpi3}
+%{!?compiler_family: %global compiler_family gnu9... |
issue fix
Error in file size comparizon.
Due to type casting, instead of compare file size with max. singed int value, it compares with -1. Then function returns with error message. | #define O_BINARY 0
#endif
+#ifndef MAX_FILE_SIZE
+#define MAX_FILE_SIZE (1<<20) // signed long int max value
+#endif
+
#ifdef _MSC_VER
#define __attribute__(x)
#endif
@@ -2200,8 +2204,9 @@ static int map_file(mapped_file_t *mf, const char *path) {
if (sizeof(st.st_size) != sizeof(size_t)) {
// on 32 bit systems, check ... |
remove ymake_dev from ya.conf.json | "svn": { "description": "Subversion command-line client" },
"zipatcher": { "description": "Apply zipatch from file or Arcanum pull request" },
"ymake": { "description": "Run ymake", "visible": false },
- "ymake_dev": { "description": "Run ymake dev version", "visible": false },
"maven_import_sandbox_uploader": { "descr... |
tests: fix TEST= filtering for python3
Type: fix | @@ -822,7 +822,7 @@ if __name__ == '__main__':
# don't fork if requiring interactive terminal
print('Running tests in foreground in the current process')
full_suite = unittest.TestSuite()
- map(full_suite.addTests, suites)
+ full_suite.addTests(suites)
result = VppTestRunner(verbosity=verbose,
failfast=failfast,
print_... |
sha/asm/sha512p8-ppc.pl: fix build on Mac OS X. | @@ -92,8 +92,7 @@ $idx="r7";
$lrsave="r8";
$offload="r11";
$vrsave="r12";
-@I = ($x00,$x10,$x20,$x30,$x40,$x50,$x60,$x70)=map("r$_",(0,10,26..31));
- $x00=0 if ($flavour =~ /osx/);
+@I = ($x00,$x10,$x20,$x30,$x40,$x50,$x60,$x70) = (0,map("r$_",(10,26..31)));
@V=($A,$B,$C,$D,$E,$F,$G,$H)=map("v$_",(0..7));
@X=map("v$_",... |
remove debian clause | @@ -7,10 +7,6 @@ workflow:
# Avoid duplicated pipelines, do not run detached pipelines.
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- # Otherwise, if there's a debian/ folder, run.
- - exists:
- - debian/**
- when: always
# Fallback to not running.
- when: never
|
error: usage of correct struct for elektra_error.c | @@ -97,7 +97,7 @@ ElektraError * elektraErrorFromKey (Key * key)
ElektraError * error;
if (keyGetMeta (key, "error"))
{
- error = elektraErrorCreate (NULL, "", NULL, NULL, -1);
+ error = elektraErrorPureWarning();
}
else
{
|
sp: add explicit cast from integer to float (CID 304441) | @@ -856,7 +856,7 @@ static void itof_convert(struct flb_exp_val *val)
}
val->type = FLB_EXP_FLOAT;
- val->val.f64 = val->val.i64;
+ val->val.f64 = (double) val->val.i64;
}
/* Convert (string) expression to number */
|
Updated demo.py with A/B/X/Y button example
Added code to show a simple example of the on-board A/B/X/Y button press detection and displaying the result on the display, as this feature of the Pico Explorer hardware was not being demonstrated in the initial demo.py example. | @@ -35,6 +35,24 @@ while True:
explorer.set_pen(0, 0, adc2 * 2)
explorer.circle(90 + adc2, 66, 10)
+ # example for the on-board A/B/X/Y buttons
+ if explorer.is_pressed(explorer.BUTTON_A):
+ explorer.set_pen(255, 255, 255)
+ explorer.text("Button A pressed", 20, 110, 200)
+ elif explorer.is_pressed(explorer.BUTTON_B):
... |
Add reviewer for | <release-item-ideator id="keith.fiske"/>
<release-item-contributor id="david.steele"/>
<release-item-reviewer id="stefan.fercot"/>
+ <!-- Actually tester, but we don't have a tag for that yet -->
+ <release-item-reviewer id="keith.fiske"/>
</release-item-contributor-list>
<p>Move standby timeline check after checkpoint... |
no dynamic modules | /* These settings all affect linking, so use cautiously. */
/* #define JANET_SINGLE_THREADED */
-/* #define JANET_NO_DYNAMIC_MODULES */
+#define JANET_NO_DYNAMIC_MODULES
/* #define JANET_NO_NANBOX */
/* #define JANET_API __attribute__((visibility ("default"))) */
|
pybricks.experimental.Motion: make nonblocking
This code will stay with Move Hub only, and not evolve along with
the other hubs. So we don't have to generalize it and a working state
will be good enough. | @@ -84,18 +84,21 @@ static void motion_spi_read(uint8_t reg, uint8_t *value) {
// busy wait
do {
while (!(SPI1->SR & SPI_SR_RXNE)) {
+ MICROPY_EVENT_POLL_HOOK;
}
} while (SPI1->SR & SPI_SR_BSY);
while (SPI1->SR & SPI_SR_RXNE) {
dummy = BYTE_ACCESS(SPI1->DR);
(void)dummy;
+ MICROPY_EVENT_POLL_HOOK;
}
BYTE_ACCESS(SPI1->D... |
pybricks/common/LightGrid: implement image() method | @@ -43,6 +43,54 @@ STATIC mp_obj_t common_LightGrid_char(size_t n_args, const mp_obj_t *pos_args, m
}
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(common_LightGrid_char_obj, 1, common_LightGrid_char);
+static void common_LightGrid_image__extract(mp_obj_t image, size_t size, uint8_t *data) {
+ // Unpack the main list of rows and g... |
Fix read_flags being uninitialized | @@ -134,7 +134,7 @@ static int luv_pipe_chmod(lua_State* L) {
#if LUV_UV_VERSION_GEQ(1,41,0)
static int luv_pipe(lua_State* L) {
luv_ctx_t* ctx = luv_context(L);
- int read_flags, write_flags = 0;
+ int read_flags = 0, write_flags = 0;
uv_file fds[2];
int ret;
if (lua_type(L, 3) == LUA_TTABLE) {
|
Add comment clarifying workaround
[ci skip] | @@ -25,6 +25,9 @@ add_nyuzi_executable(sceneview
FS_IMAGE_FILES ${RESOURCE_FILE}
DISPLAY_WIDTH 640 DISPLAY_HEIGHT 480
SOURCES sceneview.cpp)
+
+# XXX hack. The sceneview_fsimage target is created by add_nyuzi_executable.
+# Need to make an explicit dependency so it builds resource_bin first.
add_dependencies(sceneview_... |
move initialization priorities to advanced menu | @@ -30,16 +30,12 @@ config ZMK_USB
select USB_DEVICE_STACK
select USB_DEVICE_HID
-if ZMK_USB
-
-config ZMK_USB_INIT_PRIORITY
- int "USB Init Priority"
- default 50
+if USB
config USB_NUMOF_EP_WRITE_RETRIES
default 10
-#ZMK_USB
+#USB
endif
config ZMK_BLE
@@ -56,10 +52,6 @@ config ZMK_BLE
if ZMK_BLE
-config ZMK_BLE_INIT_... |
Fixed usage of _lv_indev_proc_t | @@ -992,11 +992,11 @@ static lv_obj_t * indev_search_obj(const lv_indev_proc_t * proc, lv_obj_t * obj)
/*If the point is on this object*/
/*Check its children too*/
#if USE_LV_EXTENDED_CLICK_AREA
- if(lv_area_is_point_on(&obj->ext_coords, &proc->act_point)) {
+ if(lv_area_is_point_on(&obj->ext_coords, &proc->types.poin... |
resamp/autotest: changing name of exported file | @@ -66,8 +66,10 @@ void testbench_resamp_crcf(float r, float As)
{.fmin=-0.4f*bw, .fmax=+0.4f*bw, .pmin=0-tol, .pmax= 0 +tol, .test_lo=1, .test_hi=1},
{.fmin=+0.6f*bw, .fmax=+0.5f, .pmin=0, .pmax=-As+tol, .test_lo=0, .test_hi=1},
};
+ char filename[256];
+ sprintf(filename,"autotest/logs/resamp_crcf_r%.3u_a%.2u_autotes... |
Include: Update further with the latest SDK | @@ -52,7 +52,8 @@ typedef struct Boot_Video Boot_Video;
* "Revision" can be incremented for compatible changes
*/
#define kBootArgsRevision 0
-#define kBootArgsRevisionBigSur 1
+#define kBootArgsRevision0 kBootArgsRevision
+#define kBootArgsRevision1 1 /* added KC_hdrs_addr */
#define kBootArgsVersion 2
/* Snapshot con... |
update poll sconscript | from building import *
cwd = GetCurrentDir()
-src = ['poll.c']
+src = []
CPPPATH = [cwd]
-group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX_POLL'], CPPPATH = CPPPATH)
+if GetDepend('RT_USING_POSIX_POLL'):
+ src += ['poll.c']
+
+group = DefineGroup('POSIX', src, depend = [], CPPPATH = CPPPATH)
Return('group')
|
story: use lib arms in txt:grow | [/text/x-urb-story (as-octs:mimes:html (of-wain:format txt))]
++ txt
^- wain
- %+ snoc :: ensure terminating newline is present
+ :: XX code clean up: cleaner snoc
+ %+ snoc :: ensures terminating newline is present
%+ murn ~(tap by tale)
|= [[=tako:clay proses=(set prose)]]
- =/ proses-list ~(tap in proses)
- ?~ prose... |
iokernel: swap src and dst ethernet and ip addrs in echo server | #include <stdint.h>
#include <inttypes.h>
+#include <rte_cycles.h>
#include <rte_eal.h>
#include <rte_ethdev.h>
-#include <rte_cycles.h>
+#include <rte_ether.h>
+#include <rte_ip.h>
#include <rte_lcore.h>
#include <rte_mbuf.h>
@@ -118,6 +120,45 @@ port_init(uint8_t port, struct rte_mempool *mbuf_pool)
return 0;
}
+/*
+... |
mass effect fix update | @@ -40,7 +40,7 @@ void InitME2()
void operator()(injector::reg_pack& regs)
{
float f = (*(float *)(regs.ebx + 0x204) - *(float *)(regs.eax + 0x204)) + *(float *)(regs.esi + 0x18);
- if (f >= 70.0f)
+ if (f >= 60.0f)
f = AdjustFOV(f, static_cast<float>(nWidth) / static_cast<float>(nHeight));
_asm movss xmm0, dword ptr[f... |
Reduce number many loss cases | @@ -4007,6 +4007,11 @@ int zero_rtt_many_losses_test()
for (int i = 0; ret == 0 && i < 50; i++)
{
uint64_t loss_mask = 0;
+#if 1
+ if (i < 25) {
+ continue;
+ }
+#endif
for (int j = 0; j < 64; j++)
{
loss_mask <<= 1;
|
desktop: use environ instead of clearenv | const char DE_ENV[] = "XDG_CURRENT_DESKTOP";
const char TEST_DE[] = "this_is_a_test_de";
const char NEW_DE[] = "this_is_another_test_de";
+extern char ** environ;
void test_desktop (void)
{
@@ -52,7 +53,9 @@ void test_desktop (void)
succeed_if (strcmp (keyString (result), TEST_DE) == 0, "kdb set overwrote the desktop e... |
tests UPDATE more xpath canonization test cases | @@ -60,6 +60,11 @@ const char *schema_a =
" base id_a;\n"
" }\n"
" }\n"
+ " leaf foo4 {\n"
+ " type decimal64 {\n"
+ " fraction-digits 5;\n"
+ " }\n"
+ " }\n"
" container c {\n"
" leaf x {\n"
" type string;\n"
@@ -420,7 +425,7 @@ test_atomize(void **state)
/* some random paths just making sure the API function works */... |
Improve button map for Busch-Jaeger switches | @@ -162,8 +162,13 @@ static const Sensor::ButtonMap bjeSwitchMap[] = {
{ Sensor::ModeScenes, 0x0A, 0x0006, 0x01, 0, S_BUTTON_2 + S_BUTTON_ACTION_SHORT_RELEASED, "On" },
{ Sensor::ModeScenes, 0x0A, 0x0008, 0x06, 0, S_BUTTON_2 + S_BUTTON_ACTION_HOLD, "Step up (with on/off)" },
// 2) row left button
+ { Sensor::ModeScenes... |
Add possibility to use mbedtls cmake target if available | @@ -29,9 +29,15 @@ if (NNG_SUPP_TLS_MBEDTLS)
Consult a lawyer and the license files for details.
************************************************************")
+ # If mbedTLS was added by a consuming project, then we should use that
+ # instance of it, instead of configuring our own.
+ if (TARGET mbedtls)
+ set(_LIBS m... |
doc: add site under construction page header
While the site is being reorganized, let's put a header on each page
letting people know. | max-width: none;
}
-/* (temporarily) add an under development tagline to the bread crumb
+/* (temporarily) add an under development tagline to the bread crumb */
.wy-breadcrumbs::after {
content: " (Content reorganization in progress)";
background-color: #FFFACD;
color: red;
font-weight: bold;
}
-*/
+
/* pygments tweak... |
viofs: Fix character set for VirtIO-FS service | <WindowsTargetPlatformVersion>$(LatestTargetPlatformVersion)</WindowsTargetPlatformVersion>
<ProjectName>virtiofs</ProjectName>
<PlatformToolset>AutoVSToolset</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(MSBuildProjectDirectory)\..\..\Tools\Driver.Common.props" />
<Proper... |
Add the comment of number_mask | @@ -779,7 +779,7 @@ struct rt_thread
rt_uint8_t number;
rt_uint8_t high_mask;
#endif /* RT_THREAD_PRIORITY_MAX > 32 */
- rt_uint32_t number_mask;
+ rt_uint32_t number_mask; /**< priority number mask */
#ifdef RT_USING_MUTEX
/* object for IPC */
|
add support of prefixdir and installation configuration for modules | @@ -141,7 +141,17 @@ rule("c++.build.modules.install")
if common.contains_modules(target) then
local sourcebatch = target:sourcebatches()["c++.build.modules.install"]
if sourcebatch then
- target:add("installfiles", sourcebatch.sourcefiles, {prefixdir = "include"})
+ for _, sourcefile in sourcebatch.sourcefiles do
+ lo... |
Update QPACK integer test | @@ -45,6 +45,7 @@ static uint8_t h3zero_pref127_valmax[] = {
0xFF, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F };
static uint8_t h3zero_pref7_err1[] = { 0x07 };
static uint8_t h3zero_pref7_err2[] = { 0x07, 0xFF, 0xFF, 0x80, 0x80, 0x80 };
+static uint8_t h3zero_pref127_val255[] = { 0x1F, 0xE0, 0x01 };
typedef s... |
espressif: Allow use of imgtool other than the one from repository | @@ -79,6 +79,18 @@ set(MCUBOOT_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR}/../..)
set(BOOTUTIL_DIR ${MCUBOOT_ROOT_DIR}/boot/bootutil)
set(ESPRESSIF_PORT_DIR ${CMAKE_CURRENT_LIST_DIR})
+# Find imgtool.
+# Go with an explicitly installed imgtool first, falling
+# back to mcuboot/scripts/imgtool.py.
+find_program(IMGTOOL_COMMAND
+... |
pyocf: security test for acp params | @@ -242,6 +242,42 @@ def test_neg_set_acp_param(pyocf_ctx, cm, cls):
cache.set_cleaning_policy_param(CleaningPolicy.ALRU, i, 1)
+def get_acp_param_valid_rage(param_id):
+ if param_id == AcpParams.WAKE_UP_TIME:
+ return ConfValidValues.cleaning_acp_wake_up_time_range
+ elif param_id == AcpParams.FLUSH_MAX_BUFFERS:
+ ret... |
Added comment for further investigation of cypress reboot | @@ -607,6 +607,8 @@ wiced_result_t wiced_ip_up( wiced_interface_t interface, wiced_network_config_t
}
#if LWIP_IPV6
+ /*The code commented below causes reboot in the cypress tests. Further investigation
+ is required for the root cause of the reboot.*/
/* Wait until the address has been properly advertised */
/*while (... |
offwaketime-manpage: Add support for -d in the offwaketime man page | .SH NAME
offwaketime \- Summarize blocked time by off-CPU stack + waker stack. Uses Linux eBPF/bcc.
.SH SYNOPSIS
-.B offwaketime [\-h] [\-p PID | \-t TID | \-u | \-k] [\-U | \-K] [\-f] [\-\-stack-storage-size STACK_STORAGE_SIZE] [\-m MIN_BLOCK_TIME] [\-M MAX_BLOCK_TIME] [\-\-state STATE] [duration]
+.B offwaketime [\-h... |
kernel/cpuload: Add description about a unit of time constant in cpuload
Add description about a unit of time constant values in cpuload | @@ -529,20 +529,21 @@ config SCHED_CPULOAD_TICKSPERSEC
possible choice in most cases.
config SCHED_CPULOAD_TIMECONSTANT
- int "CPU load time constant"
+ int "CPU load time constant (in seconds)"
depends on !SCHED_MULTI_CPULOAD
default 2
---help---
The accumulated CPU count is divided by two when the accumulated
tick co... |
Add the discord link in the README as well. | @@ -8,6 +8,8 @@ with a less restritive license and better BLE support, built on top of the [Zeph
Check out the website to learn more: https://zmkfirmware.dev/
+You can also come join our [ZMK Discord Server](https://zmkfirmware.dev/community/discord/invite)
+
## TODO
- Document boards/shields/keymaps usage.
|
check readline | @@ -35,13 +35,14 @@ my_exit(){
}
test_tools()
{
+ prog='#include<readline/readline.h>\nint main(){readline(0);return 0;}'
{
git --version &&
make --version &&
{
- cc --version ||
- gcc --version ||
- clang --version
+ echo -e "$prog" | cc -xc - -o /dev/null -lreadline ||
+ echo -e "$prog" | gcc -xc - -o /dev/null -lrea... |
use sdl-config (if available) to determine the link flags
this fixes the compilation of vwebp_sdl on MacOS. | @@ -34,6 +34,16 @@ else
GL_LIBS = -lglut -lGL
endif
+# SDL flags: use sdl-config if it exists
+SDL_CONFIG = $(shell sdl-config --version 2> /dev/null)
+ifneq ($(SDL_CONFIG),)
+ SDL_LIBS = $(shell sdl-config --libs)
+ SDL_FLAGS = $(shell sdl-config --cflags)
+else
+ # use best-guess
+ SDL_LIBS = -lSDL
+ SDL_FLAGS =
+end... |
Fix Copy Value | @@ -80,7 +80,7 @@ SCRIPT_CMD script_cmds[] = {
{Script_MathMulVal_b, 0}, // 0x3C
{Script_MathDivVal_b, 0}, // 0x3D
{Script_MathModVal_b, 0}, // 0x3E
- {Script_CopyVal_b, 4}, // 0x3F
+ {Script_CopyVal_b, 0}, // 0x3F
{Script_IfValueCompare_b, 3}, // 0xD0,
{Script_LoadVectors_b, 4} // 0xD1
};
|
fix rocket core ref | @@ -8,12 +8,13 @@ Generators
The Chipyard Framework currently consists of the following RTL generators:
+
Processor Cores
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-**Rocket**
+**Rocket Core**
An in-order RISC-V core.
- See :ref:`Rocket` for more information.
+ See :ref:`Rocket Core` for more information.
**BOOM (Berkele... |
Improve restart handling.
This fixes in particular a possible use after free bug reported
Anatoly Korniltsev and Taylor Brandstetter for the userland stack. | @@ -1954,11 +1954,7 @@ sctp_process_cookie_existing(struct mbuf *m, int iphlen, int offset,
/* temp code */
if (how_indx < sizeof(asoc->cookie_how))
asoc->cookie_how[how_indx] = 12;
- sctp_timer_stop(SCTP_TIMER_TYPE_INIT, inp, stcb, net,
- SCTP_FROM_SCTP_INPUT + SCTP_LOC_16);
- sctp_timer_stop(SCTP_TIMER_TYPE_HEARTBEAT... |
compat: mingw: don't export secp256k1 symbols from exe | "mingw": {
"include": "include",
"lib": ".libs",
- "prepare": "./autogen.sh && ./configure --enable-module-recovery && make",
+ "prepare": "./autogen.sh && ./configure --disable-shared --enable-module-recovery CFLAGS=-DSECP256K1_API=",
"make": "libsecp256k1.la"
},
"owner": "bitcoin-core",
|
Removed not needed lines | @@ -5,8 +5,7 @@ UPDATE_VERSION_HB_HUE="0.13.5"
UPDATE_VERSION_HB_LIB="5.1.1"
UPDATE_VERSION_NPM="6.14.12"
UPDATE_VERSION_NODE="14.16.0"
-# use install name to install the specific node version via apt. Retrieve it via: apt-cache policy nodejs
-UPDATE_VERSION_NODE_INSTALL_NAME="12.18.4-1nodesource1"
+
# when increasing ... |
Code cleanup, no functional change. | @@ -65,16 +65,15 @@ userland_mutex_t atomic_mtx;
* inside other RNG's, like arc4random(9).
*/
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
-static int
-read_random_phony(void *buf, int count)
+int
+read_random(void *buf, int count)
{
memset(buf, 'A', count);
return (count);
}
-#else
-#if defined(__Userspace_os_FreeB... |
in_windows_exporter_metrics: Intialize and uninitialize defensively on WMI | @@ -339,8 +339,14 @@ static int wmi_cleanup(struct flb_we *ctx)
flb_plg_debug(ctx->ins, "deinitializing WMI instance....");
/* Clean up */
+ if (ctx->service != NULL) {
ctx->service->lpVtbl->Release(ctx->service);
+ ctx->service = NULL;
+ }
+ if (ctx->locator != NULL) {
ctx->locator->lpVtbl->Release(ctx->locator);
+ ct... |
gsettings: add TODOs | @@ -85,6 +85,7 @@ G_DEFINE_TYPE (ElektraSettingsBackend, elektra_settings_backend, G_TYPE_SETTINGS
static void elektra_settings_backend_sync (GSettingsBackend * backend)
{
// TODO conflict management
+ // TODO: do we enforce the latest write or use three-way merge?
ElektraSettingsBackend * esb = (ElektraSettingsBackend... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.