message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Add macOS builder, don't use sanitizer on old Ubuntu builder for now. | @@ -7,7 +7,7 @@ on:
branches: [ master, v1.0.x ]
jobs:
- build:
+ build-linux:
runs-on: ubuntu-latest
@@ -15,6 +15,19 @@ jobs:
- uses: actions/checkout@v2
- name: install prerequisites
run: sudo apt-get install -y libavahi-client-dev libcups2-dev libcupsimage2-dev libgnutls28-dev libjpeg-dev libpam-dev libpng-dev libus... |
Rename 'stats' to 'status' for readability. | @@ -17,7 +17,7 @@ static void caught_signal(int which)
static int wait_for_process(pid_t pid)
{
int rv = EX_SOFTWARE;
- int stats = 0;
+ int status = 0;
int i = 0;
struct sigaction sig_handler;
@@ -32,12 +32,12 @@ static int wait_for_process(pid_t pid)
/* Loop forever waiting for the process to quit */
for (i = 0; ;i++... |
nimble/ll: Fix build with past and without privacy | @@ -1922,6 +1922,7 @@ ble_ll_sync_periodic_ind(struct ble_ll_conn_sm *connsm,
rpa_index = -1;
+#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_PRIVACY)
/* check if need to resolve */
if (ble_ll_is_rpa(addr, addr_type)) {
rpa_index = ble_ll_resolv_peer_rpa_any(addr);
@@ -1931,6 +1932,7 @@ ble_ll_sync_periodic_ind(struct ble_ll_conn_s... |
build CHANGE use version to check for SSH session option | @@ -215,15 +215,9 @@ if(ENABLE_SSH)
endif()
include_directories(${LIBSSH_INCLUDE_DIRS})
- set(LIBSSH_SESSION_OPTION_CHECK_CODE
- "#include <libssh/libssh.h>
- int main(void) {
- ssh_session sess;
- ssh_options_set(sess, SSH_OPTIONS_PUBLICKEY_ACCEPTED_TYPES, NULL);
- return 0;
- }"
- )
- check_c_source_compiles("${LIBSS... |
refactor: Simplify conditions for if | @@ -106,8 +106,7 @@ int strncasecmp(const char *str1, const char *str2, size_t len)
return 0;
}
- if ((str1 == NULL && str2 != NULL)
- || (str1 != NULL && str2 == NULL))
+ if ((str1 == NULL) || (str2 == NULL))
{
return -1;
}
@@ -1394,9 +1393,7 @@ int httpclient_get_response_code(httpclient_t *client)
static HTTPCLIENT_... |
make dns interface bind to 127.0.0.1 | @@ -725,7 +725,7 @@ void dns_setup( void ) {
}
}
- g_sock4 = net_bind( "DNS", "0.0.0.0", gconf->dns_port, NULL, IPPROTO_UDP, AF_UNSPEC );
+ g_sock4 = net_bind( "DNS", "127.0.0.1", gconf->dns_port, NULL, IPPROTO_UDP, AF_UNSPEC );
net_add_handler( g_sock4, &dns_handler );
g_sock6 = net_bind( "DNS", "::1", gconf->dns_port... |
ci, test: temporary increase IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING and IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING_NO_DMA | #define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_POLLING 15
#define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_POLLING_NO_DMA 15
-#define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING 30
-#define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING_NO_DMA 27
+#define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING 34 // TODO: IDF-5180
+#define ID... |
remove unused definitions for pm
The pm_get_domainmetrics and pm_prune_history functions are called
only when CONFIG_PM_METRICS is enabled. So definitions for them is
not needed when config is disabled. | @@ -41,10 +41,6 @@ extern struct pm_global_s g_pmglobals;
void pm_get_domainmetrics(int indx, struct pm_time_in_each_s *mtrics);
void pm_prune_history(sq_queue_t *q);
-
-#else
-#define pm_get_domainmetrics(indx, mtrics)
-#define pm_prune_history(q)
#endif
#endif
|
tests: clBuildProgram pfn_notify case added -Werror case revised
pfn_notify callback function registered and tested.
A kernel with single warning added and forced to error with
Werrror compile option. | @@ -48,6 +48,8 @@ static const char preprocess_fail[] =
static const char invalid_kernel[] =
"kernel void test_kernel(constant int a, j) { return 3; }\n";
+static const char warning_kernel[] =
+ "kernel void test_kernel(int j, k) { return; }\n";
/* kernel can have any name, except main() starting from OpenCL 2.0 */
sta... |
Cirrus: Install Homebrew formulas after each other
Currently installing fails when we install all packages using only a
single `brew` command. | @@ -113,41 +113,40 @@ mac_task:
install_script:
- > # Install Homebrew casks
brew cask install java oclint
- - > # Install Homebrew formulas
- brew install
- antlr
- antlr4-cpp-runtime
- augeas
- bison
- boost
- botan
- cmake
- dbus
- discount
- doxygen
- glib
- gpgme
- graphviz
- libev
- libgcrypt
- libgit2
- libuv
- ... |
typechecker-regex-prototype: correct forgotten file case | @@ -33,7 +33,7 @@ if (LIBFA_FOUND)
COMMAND ${CABAL_EXECUTABLE} sandbox add-source -v0
"${CMAKE_BINARY_DIR}/src/libs/typesystem/libfa"
COMMAND ${CABAL_EXECUTABLE} sandbox add-source -v0
- "${CMAKE_BINARY_DIR}/src/libs/typesystem/SpecElektra"
+ "${CMAKE_BINARY_DIR}/src/libs/typesystem/specelektra"
COMMAND ${CABAL_EXECUTA... |
Change test case for covering issue | @@ -1481,7 +1481,7 @@ static void test_comments()
assert_true_rule(
"rule test { \
strings: $a = { 31 /* A */ 32 /*B*/ 33 34 35 36 /* C */} \
- condition: $a }",
+ condition: @a == 6 }",
"1234567890");
}
|
Improve assert log for mismatched MD tag reads
Include insertion length along with the MD and CIGAR details in assert error | @@ -705,7 +705,9 @@ cdef inline bytes build_alignment_sequence(bam1_t * src):
cdef uint32_t md_len = get_md_reference_length(md_tag)
if md_len + insertions > max_len:
- raise AssertionError("Invalid MD tag: MD length {} mismatch with CIGAR length {}".format(md_len, max_len))
+ raise AssertionError(
+ "Invalid MD tag: M... |
Update Interop Servers | @@ -67,7 +67,7 @@ struct QuicPublicEndpoint {
QuicPublicEndpoint PublicEndpoints[] = {
{ "aioquic", "quic.aiortc.org" },
{ "akamaiquic", "ietf.akaquic.com" },
- { "applequic", "12.181.55.166" },
+ { "applequic", "71.202.41.169" },
{ "ats", "quic.ogre.com" },
{ "f5", "f5quic.com" },
{ "gquic", "quic.rocks" },
@@ -82,7 +... |
hslua-examples: allow lua-2.1.0 | @@ -47,7 +47,7 @@ executable print-version
import: common-options
main-is: print-version.hs
hs-source-dirs: print-version
- build-depends: lua >= 2.0 && < 2.1
+ build-depends: lua >= 2.0 && < 2.2
executable run-lua
import: common-options
@@ -76,4 +76,4 @@ executable low-level-factorial
import: common-options
main-is: l... |
set SSL_MODE_ASYNC if neverbleed enabled | @@ -1308,6 +1308,7 @@ static int listener_setup_ssl(h2o_configurator_command_t *cmd, h2o_configurator_
identity->ossl = SSL_CTX_new(SSLv23_server_method());
SSL_CTX_set_options(identity->ossl, ssl_options);
#if PTLS_OPENSSL_HAVE_ASYNC
+ if (use_neverbleed)
SSL_CTX_set_mode(identity->ossl, SSL_MODE_ASYNC);
#endif
|
distro-packages/python-rpm-macros: adjust path for non-suse | @@ -45,15 +45,21 @@ are only building for distros newer than Leap 42.2
mv macros-default-pythons macros/035-default-pythons
%endif
+%if 0%{?suse_version}
+%global install_path %{_sysconfdir}
+%else
+%global install_path /usr/lib/rpm/macros.d
+%endif
+
%build
./compile-macros.sh
%install
-mkdir -p %{buildroot}%{_sysconf... |
README.md: add notes driving attention to big differences among branches | @@ -39,6 +39,8 @@ A corrected version is being developed and will hopefully be available soon. Unt
The development branch contains what will likely become the 03.00.00.xxxx branch.
+**Note**: Branches may differ fundamentally. Please pay close attention to README.md of the respective branch.
+
## Packages
Some distribu... |
dm: Coding style fix: Handle failure of parsing /proc/iomem
In get_mmio_hpa_resource, although very unlikely, parsing
of /proc/iomem may fail. Handle the case of failure and exit early. | @@ -137,6 +137,9 @@ int get_mmio_hpa_resource(char *name, uint64_t *res_start, uint64_t *res_size)
pr_err("Please run acrn-dm with superuser privilege\n");
break;
}
+ } else {
+ pr_err("Parsing /proc/iomem failed\n");
+ break;
}
*res_start = start;
|
Update lang/check tests for coroutine_resumed | @@ -156,6 +156,7 @@ func TestCheck(tt *testing.T) {
{"a", "array[4] base.u8"},
{"args", "args"},
{"b", "base.bool"},
+ {"coroutine_resumed", "base.bool"},
{"p", "base.i32"},
{"q", "base.i32[0..8]"},
{"this", "ptr foo"},
|
ames: refactors udp init() and bind() | @@ -411,6 +411,7 @@ _ames_io_start(u3_pier* pir_u)
c3_s por_s = pir_u->por_s;
u3_noun who = u3i_chubs(2, pir_u->who_d);
u3_noun rac = u3do("clan:title", u3k(who));
+ c3_i ret_i;
if ( c3__czar == rac ) {
c3_y num_y = (c3_y)pir_u->who_d[0];
@@ -425,9 +426,8 @@ _ames_io_start(u3_pier* pir_u)
}
}
- int ret;
- if ( 0 != (re... |
feat(docs): Add caution note about split peripheral sides to user setup | @@ -196,6 +196,14 @@ Once this happens, copy the correct UF2 file (e.g. left or right if working on a
storage device. Once the flash is complete, the controller should automatically restart, and load your newly flashed firmware. It is
recommended that you test your keyboard works over USB first to rule out hardware iss... |
Driver: Updated demo code for Flash Driver usage. | #include "Driver_Flash.h"
+#include "cmsis_os2.h" // ARM::CMSIS:RTOS2:Keil RTX5
-// NAND driver instance
-extern ARM_DRIVER_FLASH ARM_Driver_Flash_(0);
-extern ARM_DRIVER_FLASH * flashDev = &(ARM_Driver_Flash_(0));
+/* Flash driver instance */
+extern ARM_DRIVER_FLASH Driver_Flash0;
+static ARM_DRIVER_FLASH * flashDev ... |
Don't special case unexpected token errors at toplevel
YAGNI | @@ -166,15 +166,11 @@ function Parser:Toplevel()
return ast.Toplevel.Var(visibility.loc, visibility.name, decls, exps)
- else
- if visibility then
- self:forced_syntax_error("NAME")
else
self:unexpected_token_error("a toplevel declaration")
end
end
end
-end
--
-- Types
|
Remove disable of SAL for MIB structs
The bug is actually in SAL rather than in the MIB structs. So work around the issue by grabbing a local copy of the interation variable, which works around the warning | @@ -1100,9 +1100,6 @@ CxPlatDataPathGetLocalAddresses(
}
*AddressesCount = (uint32_t)AddressTable->NumEntries;
-#pragma warning(push) // MIB tables aren't correctly annotated for SAL.
-#pragma warning(disable:6385)
-#pragma warning(disable:6386)
for (ULONG i = 0; i < AddressTable->NumEntries; ++i) {
MIB_IPINTERFACE_ROW... |
correct undo/redo use case | @@ -13,10 +13,8 @@ Brief: User undos/redos changes to a configuration.
Precondition: Modifying keys, Adding keys, Duplicating keys, Drag & Drop keys
Main success scenario: User successfully undos/redos a configuration change.
Alternative scenario: Instance not online. The user is informed about the issue.
- If a cluste... |
integer BUGFIX storing numbers on big-endian
Fixes | @@ -75,7 +75,24 @@ lyplg_type_store_int(const struct ly_ctx *ctx, const struct lysc_type *type, con
/* store everything */
ret = lydict_insert_zc(ctx, str, &storage->canonical);
LY_CHECK_GOTO(ret != LY_SUCCESS, cleanup);
+
+ /* matters for big-endian */
+ switch (type->basetype) {
+ case LY_TYPE_INT8:
+ storage->int8 =... |
avx2: _mm256_bslli_epi128 wasn't present in GCC until 4.8 | @@ -979,7 +979,7 @@ simde_mm256_bslli_epi128 (simde__m256i a, const int imm8)
return simde__m256i_from_private(r_);
}
-#if defined(SIMDE_X86_AVX2_NATIVE)
+#if defined(SIMDE_X86_AVX2_NATIVE) && (!defined(HEDLEY_GCC_VERSION) || HEDLEY_GCC_VERSION_CHECK(4,8,0))
#define simde_mm256_bslli_epi128(a, imm8) _mm256_bslli_epi128... |
Fixed report time for HMD | @@ -707,10 +707,6 @@ void survive_kalman_tracker_init(SurviveKalmanTracker *tracker, SurviveObject *s
tracker->light_rampin_length = survive_configi(ctx, KALMAN_LIGHTCAP_RAMPIN_LENGTH_TAG, SC_GET, 5000);
survive_kalman_tracker_config(tracker, survive_attach_configf);
- if (tracker->min_report_time < 0) {
- tracker->min... |
Removed static keyword to remove warning | @@ -193,7 +193,7 @@ send_number(uint32_t num, uint8_t q) {
* \param[in] num: Number to send to AT port
* \param[in] q: Value to indicate starting and ending quotes, enabled (1) or disabled (0)
*/
-static void
+void
send_signed_number(int32_t num, uint8_t q) {
char str[11];
|
Change cast to correct type | @@ -127,7 +127,7 @@ void mbedtls_mpi_mod_raw_add( mbedtls_mpi_uint *X,
mbedtls_mpi_uint carry, borrow;
carry = mbedtls_mpi_core_add( X, A, B, N->limbs );
borrow = mbedtls_mpi_core_sub( X, X, N->p, N->limbs );
- (void) mbedtls_mpi_core_add_if( X, N->p, N->limbs, (unsigned char) ( carry ^ borrow ) );
+ (void) mbedtls_mpi... |
Ensure symbols don't get deprecated too early
There are symbols we've marked for deprecation in OpenSSL 1.2.0. We
must ensure that they don't actually become deprecated before that.
Fixes | * https://www.openssl.org/source/license.html
*/
+#include <openssl/opensslv.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -97,7 +99,13 @@ extern "C" {
# define OPENSSL_API_COMPAT OPENSSL_MIN_API
#endif
-#if OPENSSL_API_COMPAT < 0x10200000L
+/*
+ * Do not deprecate things to be deprecated in version 1.2.0 before the
+... |
Fix UI tileset incase previous bg was over 192 tiles
Revert to as it was in 1.2.1, bg loads after ui every scene switch | @@ -227,6 +227,7 @@ int core_start() {
BGP_REG = PAL_DEF(0U, 1U, 2U, 3U);
OBP0_REG = OBP1_REG = PAL_DEF(0U, 0U, 1U, 3U);
+ UIInit();
LoadScene(current_state);
// Run scene type init function
|
Add High Sierra `fork` concern | @@ -21,10 +21,12 @@ Iodine is an **evented** framework with a simple API that builds off the low lev
* Iodine can handle **thousands of concurrent connections** (tested with more then 20K connections)!
-* Iodine supports only **Linux/Unix** based systems (i.e. OS X, Ubuntu, FreeBSD etc'), which are ideal for evented IO... |
[ArgoUI] 0.3.3 | Pod::Spec.new do |s|
s.name = 'ArgoUI'
- s.version = '0.3.2'
+ s.version = '0.3.3'
s.summary = 'A lib of Momo Lua UI.'
# This description is used to generate tags and improve search results.
|
Fix crash when starting without HOME
If HOME environment variable is not set, sway fails startup with a
segmentation fault due to null pointer dereference.
Also check calloc return value and only perform the fallback code when
really needed. | @@ -354,12 +354,14 @@ static char *config_path(const char *prefix, const char *config_folder) {
static char *get_config_path(void) {
char *path = NULL;
const char *home = getenv("HOME");
- size_t size_fallback = 1 + strlen(home) + strlen("/.config");
- char *config_home_fallback = calloc(size_fallback, sizeof(char));
-... |
changed format of author | @@ -338,7 +338,7 @@ you up to date with the multi-language support provided by Elektra.
The website is generated from the repository, so all information about
plugins, bindings and tools are always up to date. Furthermore, we changed:
-- Added github build status badges to website @hesirui
+- Added github build status ... |
Add quiet mode togit checkout | @@ -7,8 +7,7 @@ COMMIT_ID=03674790ae42c0d3675c5b462c52988f67454e11
cd ..
git clone --branch master --single-branch --shallow-submodules --recurse-submodules --no-tags https://github.com/h2o/picotls
cd picotls
-# git checkout "$COMMIT_ID"
-git checkout
+git checkout -q "$COMMIT_ID"
# git submodule init
# git submodule u... |
Extend PE allocation test with long entity name | @@ -5811,7 +5811,25 @@ external_entity_public(XML_Parser parser,
const char *text1 =
"<!ELEMENT doc EMPTY>\n"
"<!ENTITY % e1 PUBLIC 'foo' 'bar.ent'>\n"
- "<!ENTITY % e2 '%e1;'>\n"
+ "<!ENTITY % "
+ /* Each line is 64 characters */
+ "ThisIsAStupidlyLongParameterNameIntendedToTriggerPoolGrowth12345"
+ "ABCDEFGHIJKLMNOPA... |
Custom events variable handling fixes
[ ] Incorrect variables weren't fixed (or rather were fixed but then override by the properties fix path)
Variables included in commented events were added to the parameter list (part of bug report) | @@ -1580,11 +1580,7 @@ const editCustomEvent: CaseReducer<
const fixedArgs = memo;
if (isVariableField(event.command, arg, event.args[arg])) {
fixedArgs[arg] = fix(event.args[arg]);
- } else {
- fixedArgs[arg] = event.args[arg];
- }
-
- if (isPropertyField(event.command, arg, event.args[arg])) {
+ } else if (isProperty... |
nimble: Fix syscfg description
We do support full extended advertising data range. | @@ -56,5 +56,5 @@ syscfg.defs:
description: >
This allows to configure maximum size of advertising data and
scan response data used in LE Advertising Extensions.
- Valid range 31-238.
+ Valid range 31-1650.
value: 31
|
fix fprintf warnings in transmit-wspr-message.c | @@ -66,13 +66,13 @@ int main(int argc, char *argv[])
if(!config_lookup_int(&config, "chan", &chan))
{
- fprintf(stderr, "No 'chan' setting in configuration file.\n", i);
+ fprintf(stderr, "No 'chan' setting in configuration file.\n");
return EXIT_FAILURE;
}
if(chan < 1 || chan > 2)
{
- fprintf(stderr, "Wrong 'chan' set... |
Cirrus: Simplify OCLint install command | @@ -119,8 +119,6 @@ mac_task:
install_script:
- | # Install Homebrew formulas
brew install openjdk
- brew tap oclint/formulae
- brew install oclint
brew install antlr
brew install antlr4-cpp-runtime
brew install augeas
@@ -143,6 +141,7 @@ mac_task:
brew install maven
brew install moreutils
brew install ninja
+ brew ins... |
Clarify documentation of index statistics with CRAM files
For .crai indexes, hts_idx_get_stat() and hts_idx_get_n_no_coor()
return 0 as these indexes don't record these statistics. Mention
this in the documentation for the `AlignmentFile` methods that
use these routines. Clarifies and | @@ -1760,6 +1760,8 @@ cdef class AlignmentFile(HTSFile):
"""int with total number of mapped alignments according to the
statistics recorded in the index. This is a read-only
attribute.
+ (This will be 0 for a CRAM file indexed by a .crai index, as that
+ index format does not record these statistics.)
"""
def __get__(s... |
avx512bw: replace 1ULL with UINT64_C(1) | @@ -653,7 +653,7 @@ simde_mm512_cmpeq_epi8_mask (simde__m512i a, simde__m512i b) {
simde__mmask64 r_ = 0;
for (size_t i = 0 ; i < (sizeof(a_.u8) / sizeof(a_.u8[0])) ; i++) {
- r_ |= (a_.u8[i] == b_.u8[i]) ? (1ULL << i) : 0;
+ r_ |= (a_.u8[i] == b_.u8[i]) ? (UINT64_C(1) << i) : 0;
}
#endif
@@ -864,7 +864,7 @@ simde_mm51... |
Use https in url | <description>CMSIS (Common Microcontroller Software Interface Standard)</description>
<vendor>ARM</vendor>
<!-- <license>license.txt</license> -->
- <url>http://www.keil.com/pack/</url>
+ <url>https://www.keil.com/pack/</url>
<releases>
<release version="5.9.1">
|
Debug comment is removed | @@ -52,7 +52,6 @@ for table in hlir.tables:
else:
byte_width = get_key_byte_width(k)
#[ uint8_t field_${k.header.name}_${k.field_name}[$byte_width],
- #[ /* ${dir(k.matchType)} */
# TODO have keys' and tables' matchType the same case (currently: LPM vs lpm)
if k.matchType.path.name == "ternary": # TODO: LS Check!
#[ ui... |
board/primus/thermal.c: Format with clang-format
BRANCH=none
TEST=none | #define CPUTS(outstr) cputs(CC_THERMAL, outstr)
#define CPRINTS(format, args...) cprints(CC_THERMAL, format, ##args)
-
-
struct fan_step {
/*
* Sensor 1~4 trigger point, set -1 if we're not using this
@@ -106,17 +104,14 @@ int fan_table_to_rpm(int fan, int *temp, enum temp_sensor_id temp_sensor)
*/
if (temp[temp_sensor... |
config: make bool reader accept 'on' | @@ -324,7 +324,8 @@ static int set_log_level(struct flb_config *config, char *v_str)
static inline int atobool(char*v)
{
- return (strncasecmp("true", v, 256) == 0)
+ return (strncasecmp("true", v, 256) == 0 ||
+ strncasecmp("on", v, 256) == 0)
? FLB_TRUE
: FLB_FALSE;
}
|
Change function arity error message. | @@ -1195,9 +1195,11 @@ static void *op_lookup[255] = {
/* Handle function calls with bad arity */
vm_arity_error:
{
- retreg = dst_wrap_string(dst_formatc("calling %V got %d arguments, expected %d",
+ int32_t nargs = fiber->stacktop - fiber->stackstart;
+ retreg = dst_wrap_string(dst_formatc("%V called with %d argument... |
Tests: added proxy test with large body. | @@ -188,6 +188,13 @@ Content-Length: 10
self.assertEqual(resp['status'], 200, 'status')
self.assertEqual(resp['body'], payload, 'body')
+ self.conf({'http': {'max_body_size': 32 * 1024 * 1024}}, 'settings')
+
+ payload = '0123456789abcdef' * 32 * 64 * 1024
+ resp = self.post_http10(body=payload, read_buffer_size=1024 *... |
Fix issue with flash write on STMF0 series | @@ -133,6 +133,9 @@ int flash_lld_write(uint32_t startAddress, uint32_t length, const uint8_t* buffe
// NOTE: assuming that the supply voltage is able to cope with half-word programming
if((endAddress - cursor) >= 2)
{
+ // Data synchronous Barrier, forcing the CPU to respect the sequence of instruction without optimiz... |
chat: adjust ChatMessage color | @@ -569,7 +569,7 @@ export const MessagePlaceholder = ({
>
<Text
display='block'
- background='gray'
+ background='washedGray'
width='24px'
height='24px'
borderRadius='50%'
@@ -592,12 +592,13 @@ export const MessagePlaceholder = ({
display='inline-block'
verticalAlign='middle'
fontSize='0'
- gray
+ washedGray
cursor='d... |
flash.c: stlink_open_usb can now return a sl with no, or unknown target.
check flash type before attempting to continue flash operations | @@ -59,8 +59,14 @@ int main(int ac, char** av)
sl = stlink_open_usb(o.log_level, 1, (char *)o.serial);
- if (sl == NULL)
+ if (sl == NULL) {
return -1;
+ }
+
+ if (sl->flash_type == STLINK_FLASH_TYPE_UNKNOWN) {
+ printf("Failed to connect to target\n");
+ return -1;
+ }
if ( o.flash_size != 0u && o.flash_size != sl->fl... |
Use individual host files | @@ -148,9 +148,9 @@ def buildWindowsManagedImage(String os_series, String img_name_suffix, String la
--command-id EnableRemotePS
PRIVATE_IP=\$(echo \$VM_DETAILS | jq -r '.privateIps')
- rm -f ${WORKSPACE}/scripts/ansible/inventory/hosts
- echo "[windows-agents]" >> ${WORKSPACE}/scripts/ansible/inventory/hosts
- echo "\... |
doc: remove outdated [comment] | @@ -95,20 +95,6 @@ note = "This will rarely used within specifications, but is directly
I.e. only storage plugins set and get this property."
-[comment]
-type = string
-status = deprecated
-usedby/plugin = keytometa
-description = "The user's comment about the key (mostly its value).
-
- The first line is the comment a... |
install binutils on mac circleci | @@ -43,8 +43,20 @@ jobs:
steps:
- checkout
- run: CI=1 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- - run: brew install go
+ - run: brew update && brew install nasm && brew install go
+ - run: brew tap nanovms/homebrew-x86_64-elf
+ - run: brew install x86_64-elf-b... |
[mechanics] better fix for problem was boost::make_shared with a const ref | @@ -452,10 +452,10 @@ struct UpdateShapeVisitor : public SiconosVisitor
void SiconosBulletCollisionManager_impl::updateAllShapesForDS(const BodyDS &bds)
{
- UpdateShapeVisitor updateShapeVisitor(*this);
+ SP::UpdateShapeVisitor updateShapeVisitor(new UpdateShapeVisitor(*this));
std::vector<std11::shared_ptr<BodyShapeRe... |
Add Point.scaled | @@ -19,6 +19,12 @@ class Point
return new Point(v.x + x, v.y + y);
}
+ public function scaled(scale:Float):Point
+ {
+ return new Point( x*scale, y*scale );
+ }
+
+
public function clone():Point
{
return new Point(x, y);
|
[mod_alias] fix typo in config error message | @@ -68,7 +68,7 @@ static int mod_alias_check_order(server * const srv, const array * const a) {
while (*data != dj && *data != dk) ++data;
if (*data == dj) {
log_error(srv->errh, __FILE__, __LINE__,
- "url.alias: `%s' will never match as `%s' matched first",
+ "alias.url: `%s' will never match as `%s' matched first",
k... |
Add Coverity to Dockerfile | @@ -24,7 +24,7 @@ pushd tmp
popd
echo "Building image"
-docker build -f build.Dockerfile \
+docker build -f jenkins/build.Dockerfile \
-t $IMAGE_NAME:latest \
-t $IMAGE_NAME:$IMAGE_VERSION \
-t $DOCKER_REGISTRY/$IMAGE_NAME:latest \
|
Add warning about backup pin | @@ -127,6 +127,34 @@ corresponding certificates' public key algorithms. For example:
Some additional consideration in regards to the right pinning policy to deploy follow.
+#### Always start with pinning enforcement disabled
+
+To avoid locking out too many users from your App when deploying SSL pinning
+for the first ... |
[software] Wake up tiles at once in partial barrier | @@ -104,8 +104,7 @@ void mempool_partial_barrier(uint32_t core_id, uint32_t core_init,
uint32_t tile_init = core_init / NUM_CORES_PER_TILE;
uint32_t tile_end = core_end / NUM_CORES_PER_TILE;
if (tile_end - tile_init > NUM_TILES_PER_GROUP) {
- wake_up_tile(tile_init / NUM_TILES_PER_GROUP,
- ((1U << (16 - tile_init)) - 1... |
TCPMv2: Remove hc_remote_flash
TCPMv2 does not support the Google alt mode and therefore cannot
implement this host command.
TEST=make buildall
BRANCH=none | @@ -388,75 +388,6 @@ DECLARE_HOST_COMMAND(EC_CMD_USB_PD_CONTROL, hc_usb_pd_control,
EC_VER_MASK(0) | EC_VER_MASK(1) | EC_VER_MASK(2));
#endif /* CONFIG_COMMON_RUNTIME */
-#if defined(CONFIG_HOSTCMD_FLASHPD) && defined(CONFIG_USB_PD_TCPMV2)
-static enum ec_status hc_remote_flash(struct host_cmd_handler_args *args)
-{
- ... |
spi_txn: wait for next txn complete in init | @@ -468,9 +468,15 @@ void spi_bus_device_reconfigure(volatile spi_bus_device_t *bus, spi_mode_t mode,
}
spi_txn_t *spi_txn_init(volatile spi_bus_device_t *bus, spi_txn_done_fn_t done_fn) {
- bus->txn_head = (bus->txn_head + 1) % SPI_TXN_MAX;
+ const uint8_t head = (bus->txn_head + 1) % SPI_TXN_MAX;
+
+ volatile spi_txn... |
stm32/boards/NUCLEO_L476RG: Add support for RNG, DAC and CAN1.
PLLQ is changed to get CAN working, and I2C1 pins are changed to those
prescribed by the board. | #define MICROPY_HW_HAS_SWITCH (1)
#define MICROPY_HW_HAS_FLASH (1)
+#define MICROPY_HW_ENABLE_RNG (1)
#define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_USB (1)
+#define MICROPY_HW_ENABLE_DAC (1)
// MSI is used and is 4MHz
#define MICROPY_HW_CLK_PLLM (1)
#define MICROPY_HW_CLK_PLLN (40)
-#define MICROPY_HW_CLK... |
BugID:17700895: set baudrate to 115200 for esp8266 | @@ -168,7 +168,7 @@ typedef struct {
#define WAIT_FOREVER -1
#define SKTPT_SOCKET_OFFSET 34
#define CONFIG_NETM_RDBUFSIZE 4096
-#define CONFIG_NETM_BAUD 750000
+#define CONFIG_NETM_BAUD 115200
#define LINE_LEN 128
#define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0]))
|
Fix auto expressions for complex values.
Hello Myrddin folks,
The current code to handle auto expressions does not correctly
deal with complex values (i.e., values that do not fit in a
register). This patch attempts to fix the issue.
Quentin | @@ -537,9 +537,8 @@ rval(Flattenctx *s, Node *n)
args = n->expr.args;
switch (exprop(n)) {
case Oauto:
- r = rval(s, n->expr.args[0]);
- t = temp(s, r);
- r = asn(t, r);
+ t = temp(s, n);
+ r = assign(s, t, n->expr.args[0]);
lappend(&s->curst->autotmp, &s->curst->nautotmp, t);
break;
case Osize:
|
update generate_slider | @@ -74,7 +74,7 @@ class GenerateSlider:
def draw(self, curve_pos):
to_color = np.array([50, 50, 50]) # slider gradually become this color, the closer to the center the closer the color
- im = np.zeros((int(384 * self.scale + self.extended*2), int(512 * self.scale + self.extended*2), 4), dtype=np.uint8)
+ im = np.zeros(... |
interface: changed alphabeticalOrder to ignore non-word characters | @@ -278,8 +278,12 @@ export function cite(ship: string): string {
return `~${patp}`;
}
+export function stripNonWord(string: string): string {
+ return string.replace(/[^\p{L}\p{N}\p{Z}]/gu, '');
+}
+
export function alphabeticalOrder(a: string, b: string) {
- return a.toLowerCase().localeCompare(b.toLowerCase());
+ re... |
nissa: Add keyboard scan customisation
Add the top row keyboard customisation for Nissa.
TEST=zmake build nivviks; flash and run, check evtest
BRANCH=none | #include "chipset.h"
#include "cros_cbi.h"
#include "hooks.h"
+#include "keyboard_scan.h"
#include "usb_mux.h"
#include "system.h"
@@ -159,3 +160,26 @@ enum nissa_sub_board_type nissa_get_sb_type(void)
}
return sb;
}
+
+static const struct ec_response_keybd_config nissa_kb = {
+ .num_top_row_keys = 10,
+ .action_keys =... |
Pass:line copies tables of vectors to vertices better;
Using vec3_init writes 4 floats which can, extremely rarely, go past the
end of the vertex buffer. | @@ -558,9 +558,10 @@ static void luax_readvertices(lua_State* L, int index, float* vertices, uint32_t
} else if (innerType == LUA_TUSERDATA || innerType == LUA_TLIGHTUSERDATA) {
for (uint32_t i = 0; i < count; i++) {
lua_rawgeti(L, index, i + 1);
- vec3_init(vertices, luax_checkvector(L, -1, V_VEC3, NULL));
- lua_pop(L... |
add bindnow to makefile LFLAGS | @@ -110,7 +110,7 @@ LINKER = gcc
ifdef MAC_OS
LFLAGS = $(LSODIUM) $(LARGP)
else
-LFLAGS = $(LSODIUM) $(LSECCOMP) -fno-common
+LFLAGS = $(LSODIUM) $(LSECCOMP) -fno-common -Wl,-z,now
ifndef NODPKG
LFLAGS +=$(shell dpkg-buildflags --get LDFLAGS)
endif
|
chipset: convert reset_log_mutex to use K_MUTEX_DEFINE
Using K_MUTEX_DEFINE() initializes the mutex automatically, thus
removing the requirement to use k_mutex_init().
BRANCH=none
TEST=zmake testall && make buildall | @@ -60,7 +60,7 @@ DECLARE_HOST_COMMAND(EC_CMD_AP_RESET,
#endif
#ifdef CONFIG_CMD_AP_RESET_LOG
-static mutex_t reset_log_mutex;
+K_MUTEX_DEFINE(reset_log_mutex);
static int next_reset_log __preserved_logs(next_reset_log);
static uint32_t ap_resets_since_ec_boot;
/* keep reset_logs size a power of 2 */
@@ -83,9 +83,6 @@ ... |
Consistently check for __hpux__ | @@ -140,7 +140,7 @@ bson_get_monotonic_time (void)
/* Despite it's name, this is in milliseconds! */
int64_t ticks = GetTickCount64 ();
return (ticks * 1000L);
-#elif defined(__hpux)
+#elif defined(__hpux__)
int64_t nanosec = gethrtime ();
return (nanosec / 1000UL);
#else
|
Docs - update component versions for 6.10 | <row>
<entry><xref href="../analytics/greenplum_r_client.xml" format="dita" scope="peer"
>GreenplumR</xref></entry>
- <entry>1.0.0</entry>
+ <entry>1.1.0</entry>
<entry>Supports R 3.6+.</entry>
</row>
<row class="- topic/row ">
<body>
<p>
<ul id="ul_ckf_sfc_hbb">
- <li>Greenplum Platform Extension Framework (PXF) v5.13... |
Continue on icon loading failure
If loading the icon from xpm fails, launch scrcpy without window icon.
<https://github.com/Genymobile/scrcpy/issues/539> | @@ -177,13 +177,12 @@ screen_init_rendering(struct screen *screen, const char *device_name,
}
SDL_Surface *icon = read_xpm(icon_xpm);
- if (!icon) {
- LOGE("Could not load icon: %s", SDL_GetError());
- screen_destroy(screen);
- return false;
- }
+ if (icon) {
SDL_SetWindowIcon(screen->window, icon);
SDL_FreeSurface(ico... |
CI: update actions/checkout version
Bump to version 3. | @@ -35,7 +35,7 @@ jobs:
# Checks out the repo with full history
- name: Checkout github repo (+ download lfs dependencies)
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
fetch-depth: '0'
submodules: 'recursive'
|
cups-browsed.c: Fix conditional jumps based on uninitialized value
Strings added with IPP_TAG_MIMETYPE and IPP_TAG_KEYWORD tags use uninitialized
buffers, which causes random behavior. The buffers can be initialized via f.e.
'snprintf()'. | @@ -1408,8 +1408,8 @@ void add_mimetype_attributes(char* cluster_name, ipp_t **merged_attributes)
for (q = (char *)cupsArrayFirst(list),i=0;
q;
q = (char *)cupsArrayNext(list),i++) {
- values[i]=malloc(sizeof(char)*strlen(q)+1);
- strncpy(values[i], q, sizeof(values[i]) - 1);
+ values[i]=malloc(sizeof(char) * (strlen(q... |
print warning on --do_rcascan is no radiotap header is detected | @@ -5126,11 +5126,17 @@ while(1)
}
packet_ptr = &epb[EPB_SIZE];
rth = (rth_t*)packet_ptr;
+ if((rth->it_version != 0) && (rth->it_pad != 0))
+ {
+ printf("\nmissing radiotap header\n");
+ globalclose();
+ }
ieee82011_ptr = packet_ptr +le16toh(rth->it_len);
ieee82011_len = packet_len -le16toh(rth->it_len);
if(rth->it_pr... |
[kernel] remove preupdate that seems to be useless now. (to be confirmed) | @@ -205,7 +205,7 @@ void Simulation::insertNonSmoothProblem(SP::OneStepNSProblem osns, int Id)
void Simulation::initialize()
{
DEBUG_BEGIN("Simulation::initialize()\n");
-
+ DEBUG_EXPR_WE(std::cout << "Name :"<< name() << std::endl;);
// 1- OneStepIntegrators initialization ===
// we set the simulation pointer and the ... |
Juniper: Fix juniper accel icm matrix.
Fix Juniper accel icm matrix.
BRANCH=kukui
TEST=Check CTS-V accelerometer measurement tests pass. | @@ -346,7 +346,7 @@ static const mat33_fp_t base_bmi160_ref = {
static const mat33_fp_t base_icm426xx_ref = {
{0, FLOAT_TO_FP(-1), 0},
- {FLOAT_TO_FP(-1), 0, 0},
+ {FLOAT_TO_FP(1), 0, 0},
{0, 0, FLOAT_TO_FP(1)}
};
|
Fixed missing )
Sorry! | @@ -197,7 +197,7 @@ static void ICACHE_FLASH_ATTR web_rx_cb(void *arg, char *data, uint16_t len) {
ets_strcat(resp,"<br/>Set USB Mode:"
"<button onclick=\"var xhr = new XMLHttpRequest(); xhr.open('GET', 'client'); xhr.send()\" type='button'>Client</button>"
"<button onclick=\"var xhr = new XMLHttpRequest(); xhr.open('G... |
Keep drivers enabled also in reference build | @@ -2046,11 +2046,10 @@ config_psa_crypto_hash_use_psa () {
DRIVER_ONLY="$1"
# start with config full for maximum coverage (also enables USE_PSA)
scripts/config.py full
- # enable support for configuring PSA-only algorithms
+ # enable support for drivers and configuring PSA-only algorithms
scripts/config.py set MBEDTLS... |
nrf52xx uart; drain UART TX fifo when device is getting closed. | @@ -472,6 +472,11 @@ hal_uart_close(int port)
#endif
u->u_open = 0;
+ if (u->u_tx_started) {
+ while (nrf_uart->EVENTS_ENDTX == 0) {
+ /* Wait here until the dma is finished */
+ }
+ }
nrf_uart->ENABLE = 0;
nrf_uart->INTENCLR = 0xffffffff;
return 0;
|
flash_ec: remove board-to-nrf51 conversion logic
Servod already knows ec_chip of hadoken is 'nrf51'.
CQ-DEPEND=CL:1493037, CL:1491936
BRANCH=none
TEST=none | @@ -112,10 +112,6 @@ BOARDS_NPCX_SPI=(
glkrvp
)
-BOARDS_NRF51=(
- hadoken
-)
-
BOARDS_SPI_1800MV=(
coral
reef
@@ -250,10 +246,6 @@ if $(in_array "${BOARDS_NPCX_SPI[@]}" "${BOARD}"); then
SUPPORTED_CHIPS+=("npcx_spi")
fi
-if $(in_array "${BOARDS_NRF51[@]}" "${BOARD}"); then
- SUPPORTED_CHIPS+=("nrf51")
-fi
-
if $(in_arr... |
oauth2: add missing code to clear sds string
Context: | @@ -242,6 +242,7 @@ struct flb_oauth2 *flb_oauth2_create(struct flb_config *config,
/* Clear the current payload and token */
void flb_oauth2_payload_clear(struct flb_oauth2 *ctx)
{
+ flb_sds_len_set(ctx->payload, 0);
ctx->payload[0] = '\0';
ctx->expires_in = 0;
if (ctx->access_token){
|
test: update usrsocktest script | @@ -29,5 +29,5 @@ def test_popen(p):
def test_usrsocktest(p):
- ret = p.sendCommand("usrsocktest", "HEAP AFTER TESTS", 60)
+ ret = p.sendCommand("usrsocktest", "FAILED:0", 60)
assert ret == 0
|
nvm_get_debug_logs null terminator added | @@ -2755,6 +2755,7 @@ static void convert_debug_log_entry_to_event(log_entry *p_log_entry, char *event
for (; (*p_src_msg != '\n') && (*p_src_msg != 0); p_src_msg++, p_dst_msg++)
*p_dst_msg = *p_src_msg;
+ *p_dst_msg = 0; // add the null terminator
}
NVM_API int nvm_get_debug_logs(struct nvm_log *p_logs, const NVM_UINT... |
nrf/main: Make mp_builtin_open signature match that in py/builtin.h. | @@ -280,10 +280,10 @@ mp_import_stat_t mp_import_stat(const char *path) {
return uos_mbfs_import_stat(path);
}
-STATIC mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args) {
+mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) {
return uos_mbfs_open(n_args, args);
}
-MP_DEFINE_CONST... |
feat(Kconfig): add FreeType config | @@ -880,10 +880,24 @@ menu "LVGL configuration"
config LV_USE_FREETYPE
bool "FreeType library"
+ if LV_USE_FREETYPE
+ menu "FreeType cache config"
config LV_FREETYPE_CACHE_SIZE
int "Memory used by FreeType to cache characters [bytes] (-1: no caching)"
- depends on LV_USE_FREETYPE
default 16384
+ if LV_FREETYPE_CACHE_SI... |
Update changelog for 15.0-3. | -aomp (15.0-2) UNRELEASED; urgency=medium
+aomp (15.0-3) UNRELEASED; urgency=medium
* Initial release of aomp is 0.3-2
* Please see example in /usr/lib/aomp/examples/vmuldemo
@@ -742,5 +742,15 @@ aomp (15.0-2) UNRELEASED; urgency=medium
* for thread parallelization. __kmpc_parallel_51 increases parallel level and it la... |
This should fix a lock-order-inversion
Calling OPENSSL_init_crypto before acquiring the
ossl_property_read_lock in ossl_method_store_fetch
makes the second call to OPENSSL_init_crypto
from ossl_ctx_global_properties unnecessary.
Fixes | @@ -338,7 +338,8 @@ int ossl_method_store_fetch(OSSL_METHOD_STORE *store, int nid,
int j, best = -1, score, optional;
#ifndef FIPS_MODULE
- OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL);
+ if (!OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL))
+ return 0;
#endif
if (nid <= 0 || method == NULL || store == NULL)... |
Use TGuard<TMutex> to acquire lock | @@ -133,9 +133,10 @@ public:
if (IsSyncDirSet() && !LockPort(port))
continue;
- Lock.Acquire();
+ {
+ TGuard<TMutex> g(Lock);
Sockets.push_back(std::move(sock));
- Lock.Release();
+ }
return port;
}
ythrow yexception() << "Failed to find port";
|
github: Update workflow changelog. | "target": "$1",
"on_property": "title"
},
+ {
+ "pattern": "(^Lepton)(.+)",
+ "method": "replace",
+ "target": "sensors",
+ "on_property": "title"
+ },
{
"pattern": "(^drivers)(.+)",
"method": "replace",
|
Change FIFO size to 4KB (not sure)
The datasheet says 2KB FIFO, but accroding to many
code examples, the F1C100s has at least 4KB of FIFO memory.
This is working with cdc_msc example,
but I'm not sure, this should be checked. | @@ -389,7 +389,7 @@ static inline void print_block_list(free_block_t const *blk, unsigned num)
#endif
#if CFG_TUSB_MCU == OPT_MCU_F1C100S
-#define USB_FIFO_SIZE_KB 2
+#define USB_FIFO_SIZE_KB 4
#else
#error "Unsupported MCU"
#endif
|
Fixed pack manifest. | pdsc: ARM.CMSIS.pdsc
preproc:
- - clean: CMSIS/Documentation/(Core,Core_A,DAP,Driver,DSP,General,Pack,RTOS,RTOS2,SVD,Zone)
+ - clean: CMSIS/Documentation/(Core,Core_A,DAP,Driver,DSP,NN,General,Pack,RTOS,RTOS2,SVD,Zone)
- doxygen: CMSIS/DoxyGen/Core/core.dxy
- doxygen: CMSIS/DoxyGen/Core_A/core_A.dxy
- doxygen: CMSIS/Do... |
Fix memory leak in ossl_rsa_fromdata.
Occurs if a malloc failure happens inside collect_numbers()
Reported via | @@ -49,9 +49,12 @@ static int collect_numbers(STACK_OF(BIGNUM) *numbers,
if (p != NULL) {
BIGNUM *tmp = NULL;
- if (!OSSL_PARAM_get_BN(p, &tmp)
- || sk_BIGNUM_push(numbers, tmp) == 0)
+ if (!OSSL_PARAM_get_BN(p, &tmp))
return 0;
+ if (sk_BIGNUM_push(numbers, tmp) == 0) {
+ BN_clear_free(tmp);
+ return 0;
+ }
}
}
|
fix perms on downloaded Go modules for CI | @@ -9,6 +9,7 @@ endif
export GOBIN := $(shell pwd)/.gobin/$(ARCH)
export GOCACHE := $(shell pwd)/.gocache
export GOMODCACHE := $(shell pwd)/.gomod
+export GOFLAGS := -modcacherw
BINDIR := ../bin/linux/$(ARCH)
LIBDIR := ../lib/linux/$(ARCH)
|
Switch to using Homebrew on MacOS
I've been thinking about doing this for a while. I've been having more
configuration issues with MacPorts lately. Homebrew seems to be more popular
and have more support, as well as having a cleaner implementation.
[ci skip] | @@ -47,10 +47,13 @@ following:
xcode-select --install
-Install MacPorts from https://www.macports.org/install.php, then use it to install
-the remaining packages from the terminal:
+Install Homebrew from https://brew.sh/, then use it to install the remaining packages
+from the terminal (do *not* use sudo):
- sudo port ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.