message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
explain what to do | @@ -16,3 +16,47 @@ Then, to confirm the overwrite, verify AppScope's version and build date:
```
scope version
```
+
+### Required Edits to `scope.yml` When Updating to 0.7.5 or Later
+
+We have restructured `scope.yml` a bit in AppScope version 0.7.5. **You only need to care about this if you have defined custom tags.... |
Enable s390x builds on Travis-CI.
These were disabled in because s390x builds were not being queued. It looks like they are working again. | @@ -61,11 +61,11 @@ jobs:
- env: PGB_CI="test --vm=co7 --param=module=mock --param=module=real"
# Basic unit tests only. Coverage testing is also disabled to save time.
- # - arch: s390x
- # dist: bionic
- # env:
- # - PGB_CI="test --vm=none --param=no-coverage --param=module=command --param=module=storage"
- # service... |
include/driver/tcpm/ps8xxx_public.h: Format with clang-format
BRANCH=none
TEST=none | @@ -75,12 +75,10 @@ extern const struct tcpm_drv ps8xxx_tcpm_drv;
*
* @param port TCPC port number.
*/
-__override_proto
-uint16_t board_get_ps8xxx_product_id(int port);
+__override_proto uint16_t board_get_ps8xxx_product_id(int port);
void ps8xxx_tcpc_update_hpd_status(const struct usb_mux *me,
- mux_state_t mux_state... |
Remove duplicated PSA_WANT_ALG_CMAC in crypto_config.h | #define PSA_WANT_ALG_CMAC 1
#define PSA_WANT_ALG_CFB 1
#define PSA_WANT_ALG_CHACHA20_POLY1305 1
-#define PSA_WANT_ALG_CMAC 1
#define PSA_WANT_ALG_CTR 1
#define PSA_WANT_ALG_DETERMINISTIC_ECDSA 1
#define PSA_WANT_ALG_ECB_NO_PADDING 1
|
SOVERSION bump to version 1.2.11 | @@ -52,7 +52,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 2)
-set(LIBNETCONF2_MICRO_SOVERSION 10)
+set(LIB... |
Add test_strconv_parse_number_f64 test case | @@ -364,6 +364,8 @@ test_strconv_parse_number_f64() {
{.want = 0x0000000000000001, .str = "4.9406564584124654e-324"},
{.want = 0x000FFFFFFFFFFFFF, .str = "2.2250738585072009E-308"},
{.want = 0x0010000000000000, .str = "2.2250738585072014E-308"},
+ {.want = 0x369C314ABE948EB1,
+ .str = "0.0000000000000000000000000000000... |
add exp unit test files directly under project | <ClInclude Include="$(ProjectDir)..\common\SocketTools.hpp" />
<ClInclude Include="CheckForExceptionOrAbort.hpp" />
</ItemGroup>
- <ImportGroup Label="Shared">
- <Import Project="../../lib/modules/exp/tests/unittests/UnitTests.vcxproj" Condition="exists('../../lib/modules/exp/tests/unittests/UnitTests.vcxproj')" Label=... |
[contract] use contract address on error messages | @@ -1349,13 +1349,18 @@ func vmAutoload(L *LState, funcName string) bool {
}
func (ce *executor) vmLoadCode(id []byte) {
- hexId := C.CString(hex.EncodeToString(id))
- defer C.free(unsafe.Pointer(hexId))
+ var chunkId *C.char
+ if HardforkConfig.IsV3Fork(ce.ctx.blockInfo.No) {
+ chunkId = C.CString("@" + types.EncodeAd... |
Use ctest output-on-failure directly | @@ -201,8 +201,7 @@ jobs:
- run: /c/Program\ Files/Cmake/bin/cmake --build libcbor_build
- run: >
export PATH="$(pwd)/cmocka_build/src/Debug/:$PATH" &&
- /c/Program\ Files/Cmake/bin/ctest.exe --test-dir libcbor_build &&
- /c/Program\ Files/Cmake/bin/ctest.exe --test-dir libcbor_build --rerun-failed --output-on-failure
... |
I signed up to github to fix this
You forgot to remove const after changing the variable initialisation to NULL. Not sure why you haven't been getting assert errors caused by this, because I do! Can't change const after initialisation!! -himselfe | @@ -16,7 +16,7 @@ hide_goal(void *param, Gc *gc, struct Scope *scope, struct Expr args)
assert(scope);
Level * const level = (Level*)param;
- const char * const goal_id = NULL;
+ char * goal_id = NULL;
struct EvalResult result = match_list(gc, "s", args, &goal_id);
if (result.is_error) {
|
Make value setter indic mapping from arc start to bg end. | @@ -150,7 +150,7 @@ void lv_rotary_set_value(lv_obj_t * rotary, int16_t value, lv_anim_enable_t anim
ext->min_value,
ext->max_value,
ext->arc.arc_angle_start,
- ext->arc.arc_angle_start + 360
+ ext->arc.bg_angle_end
)
);
}
|
cjoin: Expecting 2.04 Changed as a response to POST | @@ -131,12 +131,13 @@ owerror_t cjoin_receive(OpenQueueEntry_t* msg,
coap_option_iht* coap_outgoingOptions,
uint8_t* coap_outgoingOptionsLen) {
+
cojp_configuration_object_t configuration;
owerror_t ret;
opentimers_cancel(cjoin_vars.timerId); // cancel the retransmission timer
- if (coap_header->Code != COAP_CODE_RESP_... |
add special treatment for centos_7 | @@ -67,6 +67,9 @@ debian_copy_output() {
mv ../lib* $OUTPUT/$DIST
}
+rpm_centos7_patch() {
+ make centos7_patch
+}
rpm_build_package() {
cd /tmp/build/$PACKAGE_DIR
make distclean
@@ -145,6 +148,11 @@ common_prepare_dirs
focal_build_package
debian_copy_output
;;
+ centos_7)
+ rpm_centos7_patch
+ rpm_build_package
+ rpm_... |
baseboard/octopus/variant_ec_npcx796fb.c: Format with clang-format
BRANCH=none
TEST=none | @@ -31,49 +31,37 @@ const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins);
/******************************************************************************/
/* I2C port map configuration */
const struct i2c_port_t i2c_ports[] = {
- {
- .name = "battery",
+ { .name = "battery",
.port = I2C_PORT_BATTERY,
.k... |
VCL: cleanup namespace_secret env-var cfg code. | @@ -2158,25 +2158,6 @@ vppcom_app_create (char *app_name)
"filename (%s) from " VPPCOM_ENV_API_PREFIX "!",
getpid (), env_var_str, vcl_cfg->vpp_api_filename);
}
-
- env_var_str = getenv (VPPCOM_ENV_APP_NAMESPACE_SECRET);
- if (env_var_str)
- {
- u64 tmp;
- if (sscanf (env_var_str, "%lu", &tmp) != 1)
- clib_warning ("VC... |
Add information about sram in help command. | @@ -35,8 +35,10 @@ menu "Onboard Peripheral Drivers"
default n
config BSP_USING_SRAM
- bool "Enable SRAM. Chip name is IS62WV51216, 1Mbytes static RAMs organized as 512K words by 16bits."
+ bool "Enable SRAM."
default n
+ help
+ Chip name is IS62WV51216, 1Mbytes static RAMs organized as 512K words by 16bits.
endmenu
|
Add memory allocation check. | @@ -110,9 +110,12 @@ serverCreateListeners(const char *host, /* I - Hostname, IP address, or NULL for
if ((sock = httpAddrListen(&(addr->addr), port)) < 0)
continue;
- count ++;
+ if ((lis = calloc(1, sizeof(server_listener_t))) == NULL)
+ {
+ httpAddrClose(&addr->addr, sock);
+ break;
+ }
- lis = calloc(1, sizeof(serv... |
Update sys.c
Added interrupt protection to exception processing (shouldn't be necessary but just in case). | @@ -273,6 +273,7 @@ static u16 showBusAddressErrorDump(u16 pos)
// bus error default callback
void _buserror_callback()
{
+ SYS_setInterruptMaskLevel(7);
VDP_init();
VDP_drawText("BUS ERROR !", 10, 3);
@@ -284,6 +285,7 @@ void _buserror_callback()
// address error default callback
void _addresserror_callback()
{
+ SYS_... |
Apply updated recursive mode tags to script exposure. | @@ -131,9 +131,9 @@ int mapstrings_transconst(ScriptVariant **varlist, int paramCount)
ICMPCONST(DAMAGE_FROM_PLAYER_ON)
// Recursive damage mode flags.
- ICMPCONST(DAMAGE_RECURSIVE_HP)
- ICMPCONST(DAMAGE_RECURSIVE_MP)
- ICMPCONST(DAMAGE_RECURSIVE_NON_LETHAL)
+ ICMPCONST(DAMAGE_RECURSIVE_MODE_HP)
+ ICMPCONST(DAMAGE_RECU... |
Event id buffer too small | #define SYSTEM_LOG_DEBUG_LIMIT "DBG_LOG_MAX"
#define SYSTEM_LOG_FILE_NAME_MAX_LEN 256
#define SYSTEM_LOG_CODE_STRING_SIZE 4
-#define SYSTEM_LOG_EVENT_ID_STRING_SIZE 4
+#define SYSTEM_LOG_EVENT_ID_STRING_SIZE 5
#define ENVIRONMENT_VARIABLE_MAX_LEN 64
/*!
|
fib: fix adjacency cli command issue
Type: fix | @@ -613,9 +613,7 @@ adj_show (vlib_main_t * vm,
{
if (unformat (input, "%d", &ai))
;
- else if (unformat (input, "sum"))
- summary = 1;
- else if (unformat (input, "summary"))
+ else if (unformat (input, "summary") || unformat (input, "sum"))
summary = 1;
else if (unformat (input, "%U",
unformat_vnet_sw_interface, vnet... |
Yan LR: Fix outdated comment in MSR test | @@ -26,7 +26,7 @@ This plugin uses ANTLR to generate a parser for the [YAML](http://yaml.org) seri
### Mappings
```sh
-# Mount plugin to cascading namespace `/tests/yanlr`
+# Mount plugin to namespace `user/tests/yanlr`
sudo kdb mount config.yaml user/tests/yanlr yanlr
# Manually add some mappings to the configuration ... |
udpate examples patch for 2.26.1 | # PC++ Support
#PCXX#PCXX=lang_support/pc++#ENDIF#
---- tau-2.26.2p1/plugins/Makefile 2017-06-10 12:22:04.000000000 -0700
-+++ tau-2.26.2p1.patch/plugins/Makefile 2017-07-31 12:32:31.000000000 -0700
-@@ -18,7 +18,7 @@
- TEST_PLUGINS=testplugins
- EXAMPLES=examples
-
--SUBDIR = $(TEST_PLUGINS) $(EXAMPLES) #$(TUNING_POLI... |
bt: fix typo in documentation | @@ -291,7 +291,7 @@ void esp_vhci_host_register_callback(const esp_vhci_host_callback_t *callback);
/** @brief esp_bt_controller_mem_release
* release the memory by mode, if never use the bluetooth mode
- * it can release the .bbs, .data and other section to heap.
+ * it can release the .bss, .data and other section to... |
use only one thread to avoid running out of memory in travis | @@ -122,6 +122,6 @@ before_script:
- cmake -DBUILD_STATIC=1 -DCMAKE_CXX_COMPILER=${CXX_COMPILER} -DCMAKE_C_COMPILER=${C_COMPILER} -DCMAKE_CXX_FLAGS="-Iodb/libodb-2.4.0 -Iodb/libodb-sqlite-2.4.0" -DCMAKE_EXE_LINKER_FLAGS="-Wl,-rpath,odb/libodb-2.4.0/odb/.libs/ -Lodb/libodb-2.4.0/odb/.libs/ -Wl,-rpath,odb/libodb-sqlite-2... |
[finsh]fix list_device crash. | @@ -819,6 +819,12 @@ static char *const device_type_str[] =
"Touch Device",
"Phy Device",
"Security Device",
+ "WLAN Device",
+ "Pin Device",
+ "ADC Device",
+ "DAC Device",
+ "WDT Device",
+ "PWM Device",
"Unknown"
};
|
Prototype functions and constants for binding.
New binding member, overriding. Use bitwise logic to override various behaviors will bound.
Constant override switches.
check_binding_override() internal function to verify override flags. | @@ -1167,6 +1167,17 @@ typedef enum
BINDING_POSITIONING_LEVEL
} e_binding_positioning;
+typedef enum
+{
+ // Double each value so we can use
+ // bitwise logic (0, 1, 2, 4, 8...).
+
+ BINDING_OVERRIDING_NONE = 0,
+ BINDING_OVERRIDING_FALL_LAND = 1,
+ BINDING_OVERRIDING_SPECIAL = 2,
+ BINDING_OVERRIDING_LANDFRAME = 4
+}... |
Increased undo history to 50 states, clear history on successful load and save of project | @@ -6,11 +6,20 @@ import editor from "./editorReducer";
import navigation from "./navigationReducer";
import document from "./documentReducer";
import console from "./consoleReducer";
+import { PROJECT_LOAD_SUCCESS, PROJECT_SAVE_SUCCESS } from "../actions/actionTypes";
const rootReducer = combineReducers({
tools,
edito... |
apps/blestress: error correction
Failed sending data via L2CAP in test 10 was always assumed to be
BLE_HS_ESTALLED error, and it's not always the case. | @@ -844,8 +844,13 @@ rx_stress_10_l2cap_event(struct ble_l2cap_event *event, void *arg)
rc = ble_l2cap_send(rx_stress_ctx->chan, data_buf);
MODLOG_DFLT(INFO, "Return code=%d\n", rc);
if (rc) {
+ if (rc == BLE_HS_ESTALLED) {
MODLOG_DFLT(INFO, "L2CAP stalled - waiting\n");
stalled = true;
+ } else {
+ MODLOG_DFLT(INFO, "... |
bump tau to v2.26.2p1 | Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 2.26.1
+Version: 2.26.2p1
Release: 1%{?dist}
Summary: Tuning and Analysis Utilities Profiling Package
License: Tuning and Analysis Utilities License
|
chip/stm32/hwtimer.c: Format with clang-format
BRANCH=none
TEST=none | @@ -360,8 +360,8 @@ int __hw_clock_source_init(uint32_t start_t)
STM32_TIM_CR2(TIM_CLOCK_MSB) = 0x0000;
STM32_TIM_CR2(TIM_CLOCK_LSB) = 0x0020;
- STM32_TIM_SMCR(TIM_CLOCK_MSB) = 0x0007 |
- (TSMAP(TIM_CLOCK_MSB, TIM_CLOCK_LSB) << 4);
+ STM32_TIM_SMCR(TIM_CLOCK_MSB) =
+ 0x0007 | (TSMAP(TIM_CLOCK_MSB, TIM_CLOCK_LSB) << 4);... |
notifications: correct background for action | @@ -44,7 +44,7 @@ export function JoiningStatus(props: JoiningStatusProps) {
<Text display="block" flexShrink={0} color={isError ? 'red' : 'gray'}>
{desc}
</Text>
- <StatelessAsyncAction onClick={onHide} flexShrink={1}>Hide</StatelessAsyncAction>
+ <StatelessAsyncAction backgroundColor="white" onClick={onHide} flexShri... |
release: website, get repo bundle from bullseye | @@ -462,7 +462,7 @@ def generateDockerBuildStagesWithPackagesInstalled() {
)
// build website
- tasks << buildWebsite('debian-buster')
+ tasks << buildWebsite('debian-bullseye')
return tasks
}
|
use the proper error code | @@ -51,7 +51,7 @@ This example creates a 4-byte file.
/* Create the parent directory. */
rc = fs_mkdir("/cfg");
- if (rc != 0 && rc != FS_EALREADY) {
+ if (rc != 0 && rc != FS_EEXIST) {
return -1;
}
|
fix unit test proj | <ClInclude Include="CheckForExceptionOrAbort.hpp" />
</ItemGroup>
<ItemGroup Condition = "exists('$(ProjectDir)..\..\lib\modules\exp')">
- <ClInclude Include="$(ProjectDir)..\..\lib\modules\exp\tests\unittests\ECSConfigCacheTests.cpp" />
- <ClInclude Include="$(ProjectDir)..\..\lib\modules\exp\tests\unittests\ECSClient... |
Change the initialization packet to:
switch to an initial window size of 64k
immediately send a WINDOW_UPDATE frame that sets the connection window
to 16M (which was the initial window size)
This allows H2O to receive many small request bodies simultaneously | @@ -43,14 +43,17 @@ const h2o_http2_settings_t H2O_HTTP2_SETTINGS_HOST = {
16384 /* max_frame_size */
};
-static const h2o_iovec_t SETTINGS_HOST_BIN = {H2O_STRLIT("\x00\x00\x0c" /* frame size */
+static const h2o_iovec_t SERVER_PREFACE = {H2O_STRLIT("\x00\x00\x06" /* frame size */
"\x04" /* settings frame */
"\x00" /* ... |
Update v1.1 release links | @@ -35,14 +35,14 @@ This table describes the version, release date and end of support for official (
| Release | Branch | Fork Date | Release Date | Support Type | End of Support |
| -- | -- | -- | -- | -- | -- |
| [1.0](https://github.com/microsoft/msquic/releases/tag/v1.0.0-129524) | [release/1.0](https://github.com/... |
Added correctness based on norm | @@ -51,24 +51,24 @@ int main(int argc, char* argv[])
float *a, *b;
int lda, ldb;
int i, j;
+ int error = 0;
printf("This is a tester for JIT matcopy kernels!\n");
- desc.m = 32;
- desc.n = 32;
- desc.lda = 32;
- desc.ldb = 36;
+ desc.m = atoi(argv[1]);
+ desc.n = atoi(argv[2]);
+ desc.lda = atoi(argv[3]);
+ desc.ldb = ... |
Doc: Make changelog sphinx-friendly | +Next
+---------------------
+
0.6.0 (2020-03-15)
--------
+---------------------
- Correctly set .so version [[Fixes #52]](https://github.com/PJK/libcbor/issues/52).
- **Warning**: All previous releases will be identified as 0.0 by the linker.
- Fix & prevent heap overflow error in example code [[#74]](https://github.... |
lib/kernel/tce: add opaque-ptr flags into builtin library complation commands | @@ -262,8 +262,8 @@ sleef-pocl/erf.cl
)
-set(DEVICE_C_FLAGS "-DPOCL_DEVICE_ADDRESS_BITS=32")
-set(DEVICE_CL_FLAGS "-D__OPENCL_VERSION__=${TCE_DEVICE_CL_VERSION} ${TCE_DEVICE_EXTENSION_DEFINES}" "-DPOCL_DEVICE_ADDRESS_BITS=32" )
+set(DEVICE_C_FLAGS "-DPOCL_DEVICE_ADDRESS_BITS=32 ${OPAQUE_PTR_FLAGS}")
+set(DEVICE_CL_FLAG... |
msgbuf: Cast some `Byte` values to unsigned char before printing.
Otherwise values like `'\-51'` are printed by interpolation. | @@ -200,7 +200,7 @@ static void add_byte(lily_msgbuf *msgbuf, uint8_t i)
else if (isprint(ch))
sprintf(buf, "'%c'", ch);
else
- sprintf(buf, "'\\%03d'", ch);
+ sprintf(buf, "'\\%03d'", (unsigned char) ch);
lily_mb_add(msgbuf, buf);
}
|
a clarifying comment | @@ -984,6 +984,8 @@ _cj_ream(u3_noun all)
}
}
+ // ordering is random so we need to push onto rem when parent
+ // isn't yet present in the warm state
while ( u3_nul != lop ) {
rem = u3_nul;
for ( i = lop; u3_nul != i; i = u3t(i) ) {
|
Resolve external induced swig includes. | - includes:
- _cgo_export.h
+# Resolve jni.h from swig/Lib/java/javahead.swg when building non-java .swg
+# since they do not peerdir contrib/libs/jdk.
+- source_filter: "[.]swg$"
+ includes:
+ - jni.h: contrib/libs/jdk/include/jni.h
+- source_filter: "^contrib/libs/jdk/include/jni[.]h$"
+ includes:
+ - jni_md.h:
+ - c... |
Packages: eliminated debuild warning about debian/rules. | @@ -205,6 +205,7 @@ debuild/$(SRCDIR)/debian:
cat debian/rules.in | sed \
-e "s#%%CONFIGURE_ARGS%%#$(CONFIGURE_ARGS)#g" \
> debuild/$(SRCDIR)/debian/rules ; \
+ chmod +x debuild/$(SRCDIR)/debian/rules ; \
}
debuild/$(SRCDIR)/debian/changelog: ../../docs/changes.xml | debuild/$(SRCDIR)/debian
|
rust/eth/keypath: reuse xpub validation in address validation
They are naturally connected. | @@ -17,7 +17,7 @@ pub fn is_valid_keypath_address(keypath: &[u32], expected_coin: u32) -> bool {
if keypath.len() != 5 {
return false;
}
- if &keypath[..4] != &[44 + HARDENED, expected_coin, 0 + HARDENED, 0] {
+ if !is_valid_keypath_xpub(&keypath[..4], expected_coin) {
return false;
}
if keypath[4] > ACCOUNT_MAX {
|
Use path variables: msp430 | # $Id: Makefile.msp430,v 1.35 2011/01/19 07:30:31 adamdunkels Exp $
-COOJA_PATH ?= $(CONTIKI)/tools/cooja
+COOJA_PATH ?= $(CONTIKI_NG_TOOLS_DIR)/cooja
ifdef nodeid
CFLAGS += -DNODEID=$(nodeid)
@@ -11,7 +11,7 @@ CFLAGS += -gstabs+
.SUFFIXES:
### Define the CPU directory
-CONTIKI_CPU=$(ARCH_PATH)/cpu/msp430
+CONTIKI_CPU ... |
Add an example that calls redisCommandArgv
See | #include <winsock2.h> /* For struct timeval */
#endif
+static void example_argv_command(redisContext *c, size_t n) {
+ char **argv, tmp[42];
+ size_t *argvlen;
+ redisReply *reply;
+
+ /* We're allocating two additional elements for command and key */
+ argv = malloc(sizeof(*argv) * (2 + n));
+ argvlen = malloc(sizeof(... |
Save class names in quantization schema | @@ -240,5 +240,10 @@ NCB::NIdl::TPoolQuantizationSchema NCB::QuantizationSchemaToProto(
std::move(featureSchema)});
}
+ proto.MutableClassNames()->Reserve(schema.ClassNames.size());
+ for (const auto className : schema.ClassNames) {
+ proto.AddClassNames(className);
+ }
+
return proto;
}
|
board/pompom/board.h: Format with clang-format
BRANCH=none
TEST=none | #include "gpio_signal.h"
#include "registers.h"
-enum adc_channel {
- ADC_VBUS,
- ADC_AMON_BMON,
- ADC_PSYS,
- ADC_CH_COUNT
-};
+enum adc_channel { ADC_VBUS, ADC_AMON_BMON, ADC_PSYS, ADC_CH_COUNT };
/* Motion sensors */
enum sensor_id {
@@ -87,11 +82,7 @@ enum sensor_id {
SENSOR_COUNT,
};
-enum pwm_channel {
- PWM_CH_K... |
Persist ANDROID_NDK env variable | @@ -25,11 +25,12 @@ jobs:
new-item "C:\Users\runneradmin\.android\repositories.cfg" -ItemType "file"
echo yes | C:\Android\android-sdk\tools\bin\sdkmanager.bat "cmake;3.10.2.4988404"
gci -r -i "CMake*" C:\Android
+
+ [System.Environment]::SetEnvironmentVariable('ANDROID_NDK','C:\Android\android-ndk-r21', [System.Enviro... |
out_pgsql: fix excessive log message. | @@ -187,7 +187,6 @@ static int cb_pgsql_init(struct flb_output_instance *ins,
"CREATE TABLE IF NOT EXISTS %s "
"(tag varchar, time timestamp, data jsonb);",
ctx->db_table);
- flb_info("[out_pgsql] %s", query);
res = PQexec(ctx->conn, query);
flb_free(query);
|
Update manpage to fix examples, other minor tweaks | @@ -57,13 +57,11 @@ See L</NOTES> for a discussion on this requirement.
Creating proxy certificates can be done using the L<openssl-x509(1)>
command, with some extra extensions:
- [ v3_proxy ]
+ [ proxy ]
# A proxy certificate MUST NEVER be a CA certificate.
basicConstraints = CA:FALSE
-
# Usual authority key ID
author... |
http_client: always check if the payload is set or not | @@ -322,7 +322,14 @@ static int process_data(struct flb_http_client *c)
}
/* Re-check if an ending exists, if so process payload if required */
- if (c->resp.headers_end && c->resp.payload) {
+ if (c->resp.headers_end) {
+ /* Mark the payload */
+ if (!c->resp.payload &&
+ c->resp.headers_end - c->resp.data < c->resp.d... |
Key: Fix minor spelling mistake | @@ -613,7 +613,7 @@ inline Key::Key (const char * keyName, ...)
* @throw bad_alloc if key could not be constructed (allocation problems)
*
* @warning Not supported on some compilers, e.g.
- * clang which require you to only pass non-POD
+ * clang which requires you to only pass non-POD
* in varg lists.
*
* @param keyNa... |
Fix test cases after renaming field. | @@ -689,8 +689,8 @@ void test_rules_stats()
condition: all of them }",
&stats);
- assert_true_expr(stats.rules == 1);
- assert_true_expr(stats.strings == 1);
+ assert_true_expr(stats.num_rules == 1);
+ assert_true_expr(stats.num_strings == 1);
assert_true_expr(stats.ac_root_match_list_length == 1);
stats_for_rules("\
@... |
pdftoraster: Fixed zero input handling | @@ -2122,14 +2122,9 @@ int main(int argc, char *argv[]) {
outPage(doc,i,raster);
}
}
- else{
- exitCode = 1;
- goto err1;
- }
cupsRasterClose(raster);
-err1:
delete doc;
if (ppd != NULL) {
ppdClose(ppd);
|
Add -W/--width option to man page
The option added in never made it onto the man page. | @@ -207,6 +207,9 @@ Recursively search for PATTERN in PATH. Like grep or ack, but faster.
* `--workers NUM`:
Use NUM worker threads. Default is the number of CPU cores, with a max of 8.
+ * `-W --width NUM`:
+ Truncate match lines after NUM characters.
+
* `-z --search-zip`:
Search contents of compressed files. Current... |
VERSION bump to version 1.4.27 | @@ -31,7 +31,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 1)
set(SYSREPO_MINOR_VERSION 4)
-set(SYSREPO_MICRO_VERSION 26)
+set(SYSREPO_MICRO_VERSION 27)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
Improve error handling of setup topic senders/receivers in pstm | @@ -338,8 +338,8 @@ void pubsub_topologyManager_subscriberAdded(void *handle, void *svc __attribute_
} else {
entry = calloc(1, sizeof(*entry));
entry->scopeAndTopicKey = scopeAndTopicKey; //note taking ownership
- entry->scope = scope == NULL ? NULL : strndup(scope, 1024 * 1024);
- entry->topic = strndup(topic, 1024 *... |
test: add platone test case test_001CreateWallet_0008CreateOneTimeWalletFailureProtocolUnknown
fix the issue aitos-io#1176
teambition task id: | @@ -235,6 +235,22 @@ START_TEST(test_001CreateWallet_0007CreateOneTimeWalletSuccessLongSize)
}
END_TEST
+START_TEST(test_001CreateWallet_0008CreateOneTimeWalletFailureProtocolUnknown)
+{
+ BSINT32 rtnVal;
+ BoatPlatoneWalletConfig wallet = get_platone_wallet_settings();
+ extern BoatIotSdkContext g_boat_iot_sdk_context... |
README.md: Use version 2.04.63 | @@ -24,19 +24,19 @@ Packages for Qt4 and Raspbian Wheezy are available but not described here.
##### Install deCONZ and development package
1. Download deCONZ package
- wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.04.52-qt5.deb
+ wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.04.63-qt5... |
utils: on url split, set default port per protocol | @@ -813,6 +813,15 @@ int flb_utils_url_split(const char *in_url, char **out_protocol,
}
}
+ if (!port) {
+ if (strcmp(protocol, "http") == 0) {
+ port = flb_strdup("80");
+ }
+ else if (strcmp(protocol, "https") == 0) {
+ port = flb_strdup("443");
+ }
+ }
+
*out_protocol = protocol;
*out_host = host;
*out_port = port;
|
remove install of *-rdmav2 packages in chroot as well for sp3 | [sms](*\#*) (*\chrootinstall*) ohpc-slurm-client
# Add IB support
-[sms](*\#*) (*\chrootinstall*) libibverbs-runtime libmlx4-rdmav2 libipathverbs-rdmav2
-[sms](*\#*) (*\chrootinstall*) libibmad5 librdmacm1 rdma infinipath-psm dapl-devel dapl-utils
+[sms](*\#*) (*\chrootinstall*) libibmad5 librdmacm1 rdma infinipath-psm... |
libcupsfilters: print-rendering-intent support in mupdftoraster() | @@ -353,6 +353,13 @@ mupdftoraster (int inputfd, /* I - File descriptor input stream */
if (!cm_disabled)
cmGetPrinterIccProfile(getenv("PRINTER"), &icc_profile, ppd);
+/* Find print-rendering-intent */
+
+ getPrintRenderIntent(data, &h);
+ if(log) log(ld, FILTER_LOGLEVEL_DEBUG,
+ "Print rendering intent = %s", h.cupsR... |
Limit visibility of InternalLogEvent API
add static specifier | @@ -783,7 +783,7 @@ ctlPostEvent(ctl_t *ctl, char *event)
return 0;
}
-log_event_t *
+static log_event_t *
createInternalLogEvent(int fd, const char *path, const void *buf, size_t count, uint64_t uid, proc_id_t *proc, watch_t logType, regex_t *valfilter)
{
log_event_t *event = calloc(1, sizeof(*event));
@@ -815,7 +815,... |
admin/meta-packages: update slurm-client to use ohpc variant of hwloc | @@ -375,7 +375,7 @@ Requires: slurm-contribs%{PROJ_DELIM}
Requires: slurm-example-configs%{PROJ_DELIM}
Requires: slurm-pam_slurm%{PROJ_DELIM}
%if 0%{?rhel}
-Requires: hwloc-libs
+Requires: hwloc%{PROJ_DELIM}
%endif
%description -n %{PROJ_NAME}-slurm-client
Collection of client packages for SLURM
|
ble_mesh: Proxy forwards ALL_NODES addr
Unless explicitly blacklisted, the Proxy node will forward all messages
for the ALL_NODES address to the GATT proxy client. | @@ -917,24 +917,26 @@ static bool client_filter_match(struct bt_mesh_proxy_client *client,
BT_DBG("filter_type %u addr 0x%04x", client->filter_type, addr);
- if (client->filter_type == WHITELIST) {
+ if (client->filter_type == BLACKLIST) {
for (i = 0; i < ARRAY_SIZE(client->filter); i++) {
if (client->filter[i] == addr... |
local folder: open default filemanager when clicking on View...
runs xdg-open directory | @@ -44,8 +44,21 @@ do_view_or_edit_file (gftp_window_data * fromwdata, int is_view)
if (S_ISDIR (curfle->st_mode))
{
if (is_view)
+ {
+ if (strcmp (gftp_protocols[fromwdata->request->protonum].name, "Local") == 0)
+ {
+ gchar* argv[] = { (gchar*) "xdg-open", curfle->file, NULL };
+ ftp_log (gftp_logging_misc, NULL, _("... |
stm32/can: Support MCUs without a CAN2 peripheral. | @@ -106,6 +106,7 @@ STATIC bool can_init(pyb_can_obj_t *can_obj) {
__CAN1_CLK_ENABLE();
break;
+ #if defined(CAN2)
// CAN2 is on RX,TX = Y5,Y6 = PB12,PB13
case PYB_CAN_2:
CANx = CAN2;
@@ -115,6 +116,7 @@ STATIC bool can_init(pyb_can_obj_t *can_obj) {
__CAN1_CLK_ENABLE(); // CAN2 is a "slave" and needs CAN1 enabled as w... |
Tests: wait more time on Unit closing. | @@ -219,7 +219,7 @@ class TestUnit(unittest.TestCase):
subprocess.call(['kill', '-s', 'QUIT', pid])
- for i in range(50):
+ for i in range(150):
if not os.path.exists(self.testdir + '/unit.pid'):
break
time.sleep(0.1)
|
board_inspector: add conversion to hex string from buffer fields
Occasionally buffer fields (which are typically integers) are converted to
hexadecimal strings for debugging purposes. This patch adds the conversion
to suppress interpretation errors of these debugging calls.
This patch is added in v3 of the series. | @@ -221,6 +221,9 @@ class BufferField(Object):
def to_string(self):
return f"BufferField({self.__field})"
+ def to_hex_string(self):
+ return String(hex(self.get())[2:])
+
# DebugObject
class Device(Object):
|
Implements the hashing part of typeHash | #include "mem.h"
#include "encode_type.h"
#include "type_hash.h"
+#include "sha3.h"
const uint8_t *type_hash(const void *const structs_array,
const char *const struct_name,
@@ -12,12 +13,19 @@ const uint8_t *type_hash(const void *const structs_array,
const void *const mem_loc_bak = mem_alloc(0); // backup the memory lo... |
Fix 80 characters indentation in pk_rsa_encrypt_decrypt_test() | @@ -750,7 +750,8 @@ void pk_rsa_encrypt_decrypt_test( data_t * message, int mod, int radix_P,
/* init pk-rsa context */
mbedtls_pk_free( &pk );
- TEST_ASSERT( mbedtls_pk_setup( &pk, mbedtls_pk_info_from_type( MBEDTLS_PK_RSA ) ) == 0 );
+ TEST_ASSERT( mbedtls_pk_setup( &pk,
+ mbedtls_pk_info_from_type( MBEDTLS_PK_RSA ) ... |
Add info about how to download or install metacall. | @@ -138,10 +138,10 @@ As you can see, there are plenty of uses. **METACALL** introduces a new model of
Prior to try any example, you must have **METACALL** installed in your system. To install **METACALL** you have the following options.
-- [Download a release](/TODO).
-- [Install via package manager](/TODO).
+- [Downl... |
Fixed jshint warning 'Missing semicolon'. | @@ -334,7 +334,7 @@ function AreaChart(dualYaxis) {
return pl + ' ' + pl;
})
.attr('stroke-dashoffset', function (d) {
- return pathLen(d3.select(this))
+ return pathLen(d3.select(this));
});
// update
path
|
add autoaccept options | @@ -98,7 +98,7 @@ cp /etc/zypp/zypp.conf $SINGULARITY_ROOTFS/$ZYPP_CONF
echo 'cachedir=/var/cache/zypp-bootstrap' >> "$SINGULARITY_ROOTFS/$ZYPP_CONF"
cp /etc/zypp/repos.d/* $SINGULARITY_ROOTFS/$ZYPP_CONF_DIRNAME/repos.d/.
-if ! eval "$INSTALL_CMD -c $SINGULARITY_ROOTFS/$ZYPP_CONF --root $SINGULARITY_ROOTFS -n install s... |
Remove font shader discard; | @@ -75,7 +75,6 @@ const char* lovrFontFragmentShader = ""
" float sdf = median(col.r, col.g, col.b); \n"
" float w = fwidth(sdf); \n"
" float alpha = smoothstep(.5 - w, .5 + w, sdf); \n"
-" if (alpha < .001) { discard; } \n"
" return vec4(graphicsColor.rgb, graphicsColor.a * alpha); \n"
"}";
|
tigertool: add serial number check
Add --check_serial to check serial number.
BRANCH=None
TEST=check serial number. | @@ -71,6 +71,25 @@ def do_version(pty):
return True
+def do_check_serial(pty):
+ """Check serial via ec console 'pty'.
+
+ Args:
+ pty: a pty object connected to tigertail
+
+ Commands are:
+ # > serialno
+ # Serial number: number
+ """
+ cmd = '\r\nserialno\r\n'
+ regex = 'Serial number: ([^\n\r]+)'
+
+ results = pty.... |
CLEANUP: use sched_yield() instead of pthread_yield(). | #include <string.h>
#include <time.h>
#include <assert.h>
+#include <sched.h>
#include <inttypes.h>
#include <sys/time.h> /* gettimeofday() */
@@ -5657,7 +5658,7 @@ static void *collection_delete_thread(void *arg)
if (info->ccnt > 0) {
UNLOCK_CACHE();
if (slabs_space_shortage_level() < 10) {
- pthread_yield();
+ sched_... |
Render screen on window restored
It should not be necessary, since screen_render() is called just after
on SDL_WINDOWEVENT_EXPOSED, but in practice the window content might not
be correctly displayed on restored if a rotation occurred while
minimized.
Note that calling screen_render() twice in a row on
SDL_WINDOWEVENT_... | @@ -726,6 +726,7 @@ screen_handle_event(struct screen *screen, SDL_Event *event) {
}
screen->maximized = false;
apply_pending_resize(screen);
+ screen_render(screen, true);
break;
}
return true;
|
stm32/machine_i2c: Add ability to specify I2C(4) by name. | @@ -226,6 +226,10 @@ mp_obj_t machine_hard_i2c_make_new(const mp_obj_type_t *type, size_t n_args, siz
} else if (strcmp(port, MICROPY_HW_I2C3_NAME) == 0) {
i2c_id = 3;
#endif
+ #ifdef MICROPY_HW_I2C4_NAME
+ } else if (strcmp(port, MICROPY_HW_I2C4_NAME) == 0) {
+ i2c_id = 4;
+ #endif
} else {
nlr_raise(mp_obj_new_except... |
OcAppleBootCompatLib: Fixed typo | @@ -537,7 +537,7 @@ GetVariableBootArgs (
Erases customised slide value from everywhere accessible
for security purposes.
- @param[in,out] BootCompat Boot compatibility context.
+ @param[in,out] SlideSupport Slide support state.
@param[in,out] BootArgs Apple kernel boot arguments.
**/
STATIC
|
Remove unused ts field in val_t in opensnoop.py.
Note this allows us to eliminate the `bpf_ktime_get_ns()`
call from `trace_entry()`. | @@ -61,7 +61,6 @@ bpf_text = """
struct val_t {
u64 id;
- u64 ts;
char comm[TASK_COMM_LEN];
const char *fname;
};
@@ -87,7 +86,6 @@ int trace_entry(struct pt_regs *ctx, int dfd, const char __user *filename)
FILTER
if (bpf_get_current_comm(&val.comm, sizeof(val.comm)) == 0) {
val.id = id;
- val.ts = bpf_ktime_get_ns();
... |
mesh: Fix restoring fast period divisor from settings
The Health Fast Period Divisor is stored within
the model publish parameters on the access layer.
The opposite part for divisor restoring has been missed.
this is port of | @@ -552,6 +552,7 @@ static int mod_set_pub(struct bt_mesh_model *mod, char *val)
mod->pub->ttl = 0;
mod->pub->period = 0;
mod->pub->retransmit = 0;
+ mod->pub->period_div = pub.period_div;
mod->pub->count = 0;
BT_DBG("Cleared publication for model");
|
Assert on reads with invalid MD tags
Its possible that MD tag derived seqeunce length is longer than CIGAR
alignment length. In such cases, building alignment sequence can lead
to a buffer overflow error. Such reads will now generate an assertion. | @@ -578,6 +578,32 @@ cdef inline uint32_t get_alignment_length(bam1_t * src):
l += cigar_p[k] >> BAM_CIGAR_SHIFT
return l
+cdef inline uint32_t get_md_reference_length(char * md_tag):
+ cdef int l = 0
+ cdef int md_idx = 0
+ cdef int nmatches = 0
+
+ while md_tag[md_idx] != 0:
+ if md_tag[md_idx] >= 48 and md_tag[md_id... |
eldrid: remove CONFIG_SYSTEM_UNLOCKED
Going to qualify the firmware, so undef CONFIG_SYSTEM_UNLOCKED.
BRANCH=firmware-volteer-13672.B-master
TEST=make buildall | #include "baseboard.h"
/* Optional features */
-#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */
+#undef CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */
#ifndef BOARD_ELDRID_NPCX796
/*
* The RAM and flash size combination on the the NPCX797FC does not leave
|
[plus] yolint: fix migrations. | @@ -231,8 +231,6 @@ migrations:
- a.yandex-team.ru/noc/go-blackbox_test
- a.yandex-team.ru/noc/go-startrek
- a.yandex-team.ru/noc/go-startrek_test
- - a.yandex-team.ru/plus/morda/cmd
- - a.yandex-team.ru/plus/morda/internal/bigb
- a.yandex-team.ru/quasar/gackend
- a.yandex-team.ru/quasar/gackend/db
- a.yandex-team.ru/q... |
apps/examples/timer: Increase timer thread stack size.
Timer thread stack size increase from 512->1024 to avoid
stack corruption with protection builds | # define EXAMPLE_TIMER_SIGNO 17
#endif
-#define TIMER_THEAD_SIZE 512
+#define TIMER_THEAD_SIZE 1024
#define TIMER_THEAD_PRIORITY 100
/****************************************************************************
@@ -233,7 +233,7 @@ int timer_main(int argc, char *argv[])
}
}
- if (optind >= argc) {
+ if (optind > argc) {... |
Print if there is no access point available | ap_entry_t
ap_list[] = {
//{ "SSID name", "SSID password" },
- { "Tilen\xE2\x80\x99s iPhone", "ni dostopa" },
+ { "TilenM_ST", "its private" },
{ "Majerle WiFi", "majerle_internet" },
{ "Slikop.", "slikop2012" },
{ "Amis3789606848", "majerle_internet_private" },
@@ -31,6 +31,7 @@ espr_t
connect_to_preferred_access_poin... |
zuse: schnorr jet hints | ?< =([0 0] pub)
pub
++ schnorr
+ ~% %schnorr + ~
=> |% ++ tagged-hash
|= [tag=@ [l=@ x=@]]
=+ hat=(sha-256:sha (swp 3 tag))
|%
::
++ sign :: schnorr signature
- :: ~/ %sosi
+ ~/ %sosi
|= [sk=@I m=@I a=@I]
^- @J
=/ c curve
sig
::
++ verify :: schnorr verify
- :: ~/ %sove
+ ~/ %sove
|= [pk=@I m=@I sig=@J]
^- ?
=/ c curve... |
remove uint32_t entrance | #include <util/folder/dirut.h>
#include <util/generic/singleton.h>
+#include <util/generic/function.h>
#include <util/generic/yexception.h>
#include <util/memory/tempbuf.h>
#include <util/stream/file.h>
#include <util/stream/pipe.h>
#include <util/string/cast.h>
-#include "filemap.h"
+#include "filemap.h"
#include "exe... |
Add decoder to tools | @@ -11,6 +11,7 @@ Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "decoder", "decoder\decoder.
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
+ decoder\decoder.projitems*{6a206be3-9975-4952-8e1d-35bc2f47431c}*SharedItemsImports = 13
decoder\decoder.projitems*{7627e313-4b14-43e6-8ed7-0880c3... |
Switch CatBoost reference to __builtin__ method (Python 2) to builtins (Python 3). This error causes SHAP feature importance method to break | @@ -2006,7 +2006,7 @@ class CatBoost(_CatBoostBase):
if type == EFstrType.PredictionDiff:
if data is None and isinstance(data, Pool):
- from __builtin__ import type as typeof
+ from builtins import type as typeof
raise CatBoostError("Invalid data type={}, must be list or np.array".format(typeof(data)))
data, _ = self._... |
fix cppversion flag cache in gcc.lua | @@ -517,6 +517,7 @@ function get_cppversionflag(target)
local compinst = target:compiler("cxx")
local flags = compinst:compflags({target = target})
cppversionflag = table.find_if(flags, function(v) string.startswith(v, "-std=c++") end) or "-std=c++20"
+ _g.cppversionflag = cppversionflag
end
return cppversionflag or ni... |
Abort an association when receiving illegal packet
When receiving a packet with a DATA chunk followed by an unknown
chunk with a too small length, abort the association.
Thanks for Felix Weinrank for making me aware of the problem. | #ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_indata.c 324615 2017-10-14 10:02:59Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_indata.c 324729 2017-10-18 20:17:44Z tuexen $");
#endif
#include <netinet/sctp_os.h>
@@ -2685,7 +2685,8 @@ sctp_process_data(struct mbuf **mm, ... |
fix play jet mismatch (missing tscm, different sand) | {$rock *} |- ^- type
?@ q.gen [%atom p.gen `q.gen]
[%cell $(q.gen -.q.gen) $(q.gen +.q.gen)]
- {$sand *} |- ^- type
- ?@ q.gen
- ?: =(%n p.gen) ?>(=(0 q.gen) [%atom p.gen ~ q.gen])
- ?:(=(%f p.gen) ?>((lte q.gen 1) bool) [%atom p.gen ~])
- [%cell $(q.gen -.q.gen) $(q.gen +.q.gen)]
+ {$sand *} ?@ q.gen
+ ?: =(%n p.gen) ... |
Fixed lv_dropdown_add_option with default static options | @@ -262,8 +262,11 @@ void lv_dropdown_add_option(lv_obj_t * ddlist, const char * option, uint16_t pos
lv_dropdown_ext_t * ext = lv_obj_get_ext_attr(ddlist);
- /*Can not append to static options*/
- if(ext->static_txt != 0) return;
+ /*Clear any existing static options*/
+ if(ext->static_txt != 0) {
+ ext->options = NUL... |
chat-cli: don't allow excessively small cli widths | ==
::
?> ?=(%2 -.u.old)
- =. width.u.old (max 40 width.u.old)
u.old
:: +catch-up: process all chat-store state
::
::
++ set-width
|= w=@ud
- [~ state(width w)]
+ [~ state(width (max 40 w))]
:: +set-timezone: configure timestamp printing adjustment
::
++ set-timezone
|
Update ulab example. | # there's not much that can be done about it, lowering the resolution might help.
import sensor, image, time, ulab as np
+from ulab import numerical
sensor.reset() # Reset and initialize the sensor.
sensor.set_pixformat(sensor.GRAYSCALE) # Set pixel format to RGB565 (or GRAYSCALE)
@@ -14,4 +15,4 @@ clock = time.clock()... |
charge: allow boards to customize max battery poll time
Some designs need to keep their battery from going to sleep.
Allow boards to specify their max delay for polling the
battery.
BRANCH=octopus
TEST=Verify access battery once per 10 seconds by ec console. | #define CHARGE_POLL_PERIOD_CHARGE (MSEC * 250)
#define CHARGE_POLL_PERIOD_SHORT (MSEC * 100)
#define CHARGE_MIN_SLEEP_USEC (MSEC * 50)
+/* If a board hasn't provided a max sleep, use 1 minute as default */
+#ifndef CHARGE_MAX_SLEEP_USEC
#define CHARGE_MAX_SLEEP_USEC MINUTE
+#endif
/* Power states */
enum charge_state {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.