message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Travis.yml modified | @@ -29,6 +29,6 @@ env:
- secure: "lRyXg58XFn5ATH79l6Fa9bWGVRE/MaC78NjVyjVFHnPhTEFTwia2cFnkym3dbR5y1h4dhiib03FeFJH+I7tiFul9on1pEj4PstAeg9FydK12PctiFfLcvbbQsd8Bn9lL0i25Ew60pET1uWINjYpYiop2nTVuLlrGmzUzxQssAp5qRr/aNOGp4Ui0icExxM71ArsNgg7BIhqkSPbEXS69pioJAfwj1zrXtOYioxiIbOgMlxJtqIt4kra2HqcRpQYaNoUwjrbY4xUUDaUdO3GpNmc2S1Ptxy... |
Add integrity for s2n_cert_chain_and_key_get_ctx | @@ -91,6 +91,7 @@ int main(int argc, char **argv)
EXPECT_TRUE(IS_FULL_HANDSHAKE(server_conn->handshake.handshake_type));
EXPECT_EQUAL(s2n_connection_get_selected_cert(server_conn), chain_and_key);
EXPECT_EQUAL(s2n_cert_chain_and_key_get_ctx(chain_and_key), &associated_cert_data);
+ EXPECT_EQUAL(*((int *) s2n_cert_chain... |
Fix overflow in mbedtls_timing_hardclock | @@ -398,7 +398,7 @@ static unsigned long mbedtls_timing_hardclock( void )
}
gettimeofday( &tv_cur, NULL );
- return( ( tv_cur.tv_sec - tv_init.tv_sec ) * 1000000
+ return( ( tv_cur.tv_sec - tv_init.tv_sec ) * 1000000U
+ ( tv_cur.tv_usec - tv_init.tv_usec ) );
}
#endif /* !HAVE_HARDCLOCK */
|
highlevel: undo fix for macOS builds to make linux builds work again | @@ -24,9 +24,10 @@ add_subdirectory (invoke)
add_subdirectory (notification)
-add_subdirectory (highlevel)
-
# The subdirectory for LibElektra must be the last entry!
add_subdirectory (elektra)
+# FIXME: put above elektra once the linker error is fixed !!!
+add_subdirectory (highlevel)
+
generate_manpage (elektra-libs ... |
Update release checksums in README | @@ -54,7 +54,7 @@ For Windows, for simplicity, a prebuilt archive with all the dependencies
(including `adb`) is available:
- [`scrcpy-windows-with-deps-v1.0.zip`][direct-windows-with-deps].
- _(SHA-256: TODO)_
+ _(SHA-256: bc4bf32600e8548cdce490f94bed5dcba0006cdd38aff95748972e5d9877dd62)_
[direct-windows-with-deps]: h... |
"Fix" compute blocks on GLES;
There can only be one compute block. | @@ -1026,7 +1026,7 @@ void lovrGpuInit(void* (*getProcAddress)(const char*)) {
#ifndef LOVR_WEBGL
state.features.astc = GLAD_GL_ES_VERSION_3_2;
- state.features.compute = GLAD_GL_ES_VERSION_3_2 || GLAD_GL_ARB_compute_shader;
+ state.features.compute = GLAD_GL_ES_VERSION_3_1 || GLAD_GL_ARB_compute_shader;
state.features... |
Example restful_server : Minor fix in copying file system base path | @@ -172,7 +172,7 @@ esp_err_t start_rest_server(const char *base_path)
REST_CHECK(base_path, "wrong base path", err);
rest_server_context_t *rest_context = calloc(1, sizeof(rest_server_context_t));
REST_CHECK(rest_context, "No memory for rest context", err);
- strncpy(rest_context->base_path, base_path, ESP_VFS_PATH_MA... |
Flag to propagate dependency management
EXTERNAL_JAVA_LIBRARY can depend on module requiring dependency management
and be consumed by module requiring dependency management. However dependency
managemen should not be applied to EXTERNAL_JAVA_LIBRARY itself. Separate
flag is added to model such relation. | @@ -2521,7 +2521,7 @@ module EXTERNAL_JAVA_LIBRARY: _BASE_UNIT {
PEERDIR(build/platform/java/jdk)
PEERDIR_TAGS=JAVA_PROTO JAVA_IDL
- # HAS_MANAGEABLE_PEERS=yes TODO(svidyuk) fix all configure errors from ymake DEPENDENCY_MANAGEMENT support
+ # PROPAGATES_MANAGEABLE_PEERS=yes TODO(svidyuk) fix all configure errors from ... |
VERSION bump version to 0.11.3 | @@ -29,7 +29,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0")
# set version
set(LIBNETCONF2_MAJOR_VERSION 0)
set(LIBNETCONF2_MINOR_VERSION 11)
-set(LIBNETCONF2_MICRO_VERSION 2)
+set(LIBNETCONF2_MICRO_VERSION 3)
set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION})
set(LIB... |
ci: updates herb call to -test, matching new invocation | @@ -48,7 +48,7 @@ stdenvNoCC.mkDerivation {
# run the unit tests
#
herb ./pier -d '~& ~ ~& %test-unit-start ~'
- herb ./pier -d '####-test %/tests'
+ herb ./pier -d '####-test %/tests ~'
herb ./pier -d '~& ~ ~& %test-unit-end ~'
# use the :test app to build all agents, generators, and marks
|
Update ffxiv_idarename.py
teleport things | @@ -786,6 +786,8 @@ api.set_addr_name(0x1407089B0, "Client::UI::Shell::RaptureShellModule_ctor")
api.set_addr_name(0x14070CCD0, "Client::UI::Shell::RaptureShellModule_SetChatChannel")
api.set_addr_name(0x14073B670, "CreateBattleCharaStore")
api.set_addr_name(0x14073BC40, "BattleCharaStore_LookupBattleCharaByObjectID")
... |
YAML Smith: Use C++ style comparison | @@ -29,7 +29,7 @@ int elektraYamlsmithGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key
{
auto parent = CppKey{ parentKey };
- if (!elektraStrCmp (keyName (parentKey), "system/elektra/modules/yamlsmith"))
+ if (parent.getName () == "system/elektra/modules/yamlsmith")
{
KeySet * contract = ksNew (
30, keyNew (... |
OcBootManagementLib: Fix compiler warning | @@ -37,7 +37,6 @@ PanicUnpack (
VOID *Unpacked;
CONST UINT8 *PackedWalker;
UINT8 *UnpackedWalker;
- UINTN Index;
UINT64 Sequence;
if (OcOverflowMulUN (PackedSize, 8, UnpackedSize)) {
@@ -59,7 +58,6 @@ PanicUnpack (
return NULL;
}
- Index = 0;
Sequence = 0;
PackedWalker = Packed;
UnpackedWalker = Unpacked;
|
DmResource: reload DM if cleared by kick | @@ -77,8 +77,10 @@ export function DmResource(props: DmResourceProps) {
);
useEffect(() => {
+ if(!dm) {
getNewest(`~${window.ship}`, 'dm-inbox', 100, `/${patp2dec(ship)}`);
- }, [ship]);
+ }
+ }, [ship, dm]);
const fetchMessages = useCallback(
async (newer: boolean) => {
|
quic: Coverity fix
Type: fix | @@ -1331,7 +1331,7 @@ quic_connect_connection (session_endpoint_cfg_t * sep)
&sep->ip, sep->is_ip4);
vec_terminate_c_string (ctx->srv_hostname);
- clib_memcpy (&cargs->sep, sep, sizeof (session_endpoint_cfg_t));
+ clib_memcpy (&cargs->sep_ext, sep, sizeof (session_endpoint_cfg_t));
cargs->sep.transport_proto = TRANSPOR... |
Tcp port blocking: block accepts based on the accept socket port
instead of the ephemeral port. | @@ -3517,6 +3517,13 @@ syscall(long number, ...)
long rc;
rc = g_fn.syscall(number, fArgs.arg[0], fArgs.arg[1],
fArgs.arg[2], fArgs.arg[3]);
+
+ if ((rc != -1) && (doBlockConnection(fArgs.arg[0], (struct sockaddr*)&g_netinfo[fArgs.arg[0]].localConn) == 1)) {
+ if (g_fn.close) g_fn.close(rc);
+ errno = ECONNABORTED;
+ r... |
ini: comment metadata
closes | ## Introduction
-This plugin allows read/write of INI files. INI files consist of simple
-key value pairs of the form `key = value`. Additionally keys can be
-categorized into different sections. Sections must be enclosed in "[]",
-for example "[section]". Each section is converted into a directory key
+This plugin all... |
SOVERSION bump to version 5.5.17 | @@ -53,7 +53,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 5)
set(SYSREPO_MINOR_SOVERSION 5)
-set(SYSREPO_MICRO_SOVERSION 16)
+set(SYSREPO_MICRO_S... |
update Tcl/Tk version in kitgen/Makefile | ZLIB_URL = https://sourceforge.net/projects/libpng/files/zlib/1.2.3/zlib-1.2.3.tar.gz
-TCL_URL = https://sourceforge.net/projects/tcl/files/Tcl/8.6.8/tcl8.6.8-src.tar.gz
-TK_URL = https://sourceforge.net/projects/tcl/files/Tcl/8.6.8/tk8.6.8-src.tar.gz
+TCL_URL = https://sourceforge.net/projects/tcl/files/Tcl/8.6.9/tcl8... |
Fix builds against libcups v3. | @@ -49,6 +49,7 @@ papplJobCreatePrintOptions(
pappl_printer_t *printer = job->printer;
// Printer
const char *raster_type; // Raster type for output
+#if CUPS_VERSION_MAJOR < 3
static const char * const media_positions[] =
{ // "media-source" to MediaPosition mapping
"auto",
@@ -110,6 +111,7 @@ papplJobCreatePrintOptio... |
OcSmbiosLib: Fix frequency calculation for 3.0 GHz P4 | @@ -366,10 +366,11 @@ PatchProcessorInformation (
// 2666362112 Hz -> 2666 MHz C2Q Q9450 (2.66)
// ??? Hz -> ??? MHz Xeon X5675 (3.06)
// 1992617296 Hz -> 1993 MHz i7 2630QM (2.0)
+ // 3010680273 Hz -> 3011 MHz P4 530 (3.0)
//
if (MhzRemainder >= 50 && MhzRemainder < 90) {
MhzSpeed = (MhzSpeed) / 10 * 10;
- } else if (... |
Fix occurs check.
Fixes bug
Thanks Milo (iitalics on github). | @@ -353,6 +353,7 @@ occurs_rec(Type *sub, Bitset *bs)
{
size_t i;
+ sub = tf(sub);
if (bshas(bs, sub->tid))
return 1;
bsput(bs, sub->tid);
@@ -390,8 +391,9 @@ occursin(Type *a, Type *b)
int r;
bs = mkbs();
- bsput(bs, b->tid);
- r = occurs_rec(a, bs);
+ a = tf(a);
+ bsput(bs, a->tid);
+ r = occurs_rec(b, bs);
bsfree(bs... |
out_es: remove unused variable (CID 185753) | @@ -136,7 +136,7 @@ static char *elasticsearch_format(const void *data, size_t bytes,
int len;
int map_size;
int index_len = 0;
- size_t s;
+ size_t s = 0;
size_t off = 0;
char *p;
char *buf;
@@ -215,7 +215,7 @@ static char *elasticsearch_format(const void *data, size_t bytes,
if (ctx->logstash_format == FLB_FALSE && c... |
update version number to develop version. | static const uint8_t infoStackName[] = "OpenWSN ";
#define OPENWSN_VERSION_MAJOR 1
-#define OPENWSN_VERSION_MINOR 24
+#define OPENWSN_VERSION_MINOR 25
#define OPENWSN_VERSION_PATCH 0
#ifndef TRUE
|
bump timeout for full HITL tests | @@ -52,7 +52,7 @@ pipeline {
stage('HITL tests') {
steps {
script {
- docker_run("HITL tests", 20, 'PANDAS_JUNGLE=23002d000851393038373731 PANDAS_EXCLUDE="1d0002000c51303136383232 2f002e000c51303136383232" ./tests/hitl/test.sh')
+ docker_run("HITL tests", 35, 'PANDAS_JUNGLE=23002d000851393038373731 PANDAS_EXCLUDE="1d00... |
Change negative values to defined in heapinfo
1 to HEAPINFO_INT, -2 to HEAPINFO_STACK, -3 to HEAPINFO_NONSCHED | * Pre-processor Definitions
****************************************************************************/
#define MM_PIDHASH(pid) ((pid) & (CONFIG_MAX_TASKS - 1))
+#define HEAPINFO_INT -1
+#define HEAPINFO_STACK -2
+#define HEAPINFO_NONSCHED -3
/**************************************************************************... |
Make test_alloc_parse_comment_2() robust vs allocation pattern changes | @@ -8071,25 +8071,17 @@ START_TEST(test_alloc_parse_comment_2)
"<!-- Parse this comment too -->"
"</doc>";
int i;
- int repeat = 0;
-#define MAX_ALLOC_COUNT 10
+#define MAX_ALLOC_COUNT 15
for (i = 0; i < MAX_ALLOC_COUNT; i++) {
allocation_count = i;
- /* Repeat some counts because of cached memory */
- if (i == 2 && re... |
Add constant component early outs for 2+ partitions | @@ -1623,6 +1623,15 @@ void compress_block(
continue;
}
+ int plane2_component = partition_index_2planes >> PARTITION_INDEX_BITS;
+ int plane2_partition_index = partition_index_2planes & (BLOCK_MAX_PARTITIONINGS - 1);
+
+ // * Constant color channel match (never need for a second plane)
+ if (blk.is_constant_channel(pl... |
Fix one off error. | @@ -240,8 +240,8 @@ static void drawTile(tic_machine* machine, const tic_tile* buffer, s32 x, s32 y,
{
s32 i;
s32 ix, iy;
- ix = a == 1?px:TIC_SPRITESIZE-px;
- iy = b == 1?py:TIC_SPRITESIZE-py;
+ ix = a == 1 ? px : TIC_SPRITESIZE - px - 1;
+ iy = b == 1 ? py : TIC_SPRITESIZE - py - 1;
if(swap_axis) {
i = ix * TIC_SPRIT... |
u3: adds failing u3r_mug_words tests | @@ -94,6 +94,87 @@ _test_mug(void)
c3_free(str_w);
}
+ {
+ c3_w som_w[4];
+ u3_noun som;
+
+ {
+ som_w[0] = 0;
+ som_w[1] = 0;
+ som_w[2] = 0;
+ som_w[3] = 1;
+ som = u3i_words(4, som_w);
+
+ if ( 0x519bd45c != u3r_mug(som) ) {
+ fprintf(stderr, "fail (j) (1)\r\n");
+ exit(1);
+ }
+
+ if ( 0x519bd45c != u3r_mug_words(s... |
transport/usb: Fix len comparison to allow fragmented acl
The comparison previously always triggered on the first fragment received
as the expected length (len) is always larger or equal to the total
received length (om_len). Partly addresses | @@ -211,7 +211,7 @@ tud_bt_acl_data_received_cb(void *acl_data, uint16_t data_len)
if (om->om_len > BLE_HCI_DATA_HDR_SZ) {
data = incoming_acl_data->om_data;
len = data[2] + (data[3] << 8) + BLE_HCI_DATA_HDR_SZ;
- if (len >= incoming_acl_data->om_len) {
+ if (incoming_acl_data->om_len >= len) {
incoming_acl_data = NULL... |
workaround for editor issue | @@ -55,20 +55,22 @@ facil.io malloc implementation
Memory Copying by 16 byte units
***************************************************************************** */
+static inline void fio_memcpy(void *__restrict dest_, void *__restrict src_,
+ size_t units) {
#if __SIZEOF_INT128__ == 9 /* a 128bit type exists... but te... |
hash: make flb_hash_get to work with non-null terminated strings | @@ -71,9 +71,13 @@ static unsigned int gen_hash(const void *key, int len)
/* Handle the last few bytes of the input array */
switch (len) {
- case 3: h ^= data[2] << 16;
- case 2: h ^= data[1] << 8;
- case 1: h ^= data[0]; h *= m;
+ case 3:
+ h ^= data[2] << 16;
+ case 2:
+ h ^= data[1] << 8;
+ case 1:
+ h ^= data[0];
... |
[core] check issetugid() early in main() | /* #define USE_ALARM */
#endif
-#ifdef HAVE_GETUID
-# ifndef HAVE_ISSETUGID
-
-static int l_issetugid(void) {
- return (geteuid() != getuid() || getegid() != getgid());
-}
-
-# define issetugid l_issetugid
-# endif
-#endif
-
static int oneshot_fd = 0;
static volatile sig_atomic_t srv_shutdown = 0;
static volatile sig_a... |
rewrite to use try/except python3 compat | @@ -6,10 +6,14 @@ compatible with python 3.
import os
import json
-import urllib
-import urllib.request
+try:
+ from urllib.request import urlopen, urlretrieve
+except ImportError:
+ from urllib2 import urlopen
+ from urllib import urlretrieve
-f = urllib.request.urlopen("http://fw.ota.homesmart.ikea.net/feed/version_i... |
Use relative paths in file inspector | @@ -11,6 +11,14 @@ import UIKit
/// A View controller for inspecting variables.
class InspectorTableViewController: UITableViewController {
+ private func replacePaths(description: inout String) {
+ description = description.replacingOccurrences(of: DocumentBrowserViewController.localContainerURL.path, with: "Documents... |
Move debug messages under debug flag | @@ -1859,12 +1859,14 @@ bool colour_scc_cluster_greedy(int scc_id, int *colour, int current_colour,
common_dims = get_common_parallel_dims(scc_id, convex_successors,
num_convex_successors, colour, current_colour, parallel_dims, prog);
+ if (options->debug) {
printf ("common dims for SCC %d\n", scc_id);
if (common_dims!... |
Added missing flag check. | #include <netdb.h>
#include <sys/ioctl.h>
#include <sys/param.h>
-#if defined(HAVE_NETINET_SCTP_H) && !defined(USRSCTP_SUPPORT)
+#if defined(HAVE_NETINET_SCTP_H)
#include <netinet/sctp.h>
#endif
@@ -819,7 +819,7 @@ int nsa_creat(const char* pathname, mode_t mode)
/* ###### NEAT lseek() implementation ##################... |
Address unsupported nested external declaration | /**************************************************************************//**
* @file cmsis_gcc.h
* @brief CMSIS compiler GCC header file
- * @version V5.4.1
- * @date 27. May 2021
+ * @version V5.4.2
+ * @date 17. December 2022
******************************************************************************/
/*
* Copy... |
ssl/t1_enc: Fix kTLS RX offload path
During counting of the unprocessed records, return code is treated in a
wrong way. This forces kTLS RX path to be skipped in case of presence
of unprocessed records.
CLA: trivial | @@ -122,7 +122,7 @@ static int count_unprocessed_records(SSL *s)
return -1;
/* Read until next record */
- if (PACKET_get_length_prefixed_2(&pkt, &subpkt))
+ if (!PACKET_get_length_prefixed_2(&pkt, &subpkt))
return -1;
count += 1;
|
hdata/fsp: fixup lpc device node name creation
snprintf() with size of a pointer rather than the buffer to which we
were printing into
Found by static analysis.
Fixes: | @@ -235,7 +235,7 @@ static struct dt_node *add_lpc_io_node(struct dt_node *parent,
* serial@i3f8 - refers to offset 0x3f8 in the IO space
*/
- snprintf(buffer, sizeof(name), "%s@i%x", name, offset);
+ snprintf(buffer, sizeof(buffer), "%s@i%x", name, offset);
n = dt_new(parent, buffer);
assert(n);
|
Allow CCL to load a params.ini file from an environment variable, CCL_PARAM_FILE, if set. | @@ -34,10 +34,18 @@ void ccl_cosmology_read_config(){
ccl_splines = malloc(sizeof(ccl_spline_params));
- if ((fconfig=fopen(EXPAND_STR(__CCL_DATA_DIR__) "/ccl_params.ini", "r")) == NULL) {
- fprintf(stderr, "ccl_core.c: Failed to open config file "
- EXPAND_STR(__CCL_DATA_DIR__)
- "ccl_params.ini\n");
+ // Get paramete... |
baseboard/kukui: reduce UART_TX buffer size to 4096
kodama's build failure due to out of space.
Reduce the TX buffer size.
Note: This change should not cherry-pick to firmware branch.
TEST=make buildall
BRANCH=none | /* Increase tx buffer size, as we'd like to stream EC log to AP. */
#undef CONFIG_UART_TX_BUF_SIZE
-#define CONFIG_UART_TX_BUF_SIZE 8192
+#define CONFIG_UART_TX_BUF_SIZE 4096
/* To be able to indicate the device is in tablet mode. */
#define CONFIG_TABLET_MODE
|
adjustment to new neat_log API | @@ -2490,21 +2490,21 @@ build_he_candidates(neat_ctx *ctx, neat_flow *flow, json_t *json, struct neat_he
case JSON_INTEGER:
sockopt->type = NEAT_SOCKOPT_INT;
sockopt->value.i_val = json_integer_value(get_property(value, so_key, JSON_INTEGER));
- neat_log(NEAT_LOG_DEBUG, "Got socket option \"%s\" with value \"%d\"", so_... |
Minor fix to the DEF file | @@ -29,7 +29,7 @@ EXPORTS
ENgetdemandmodel = _ENgetdemandmodel@16
ENgetdemandname = _ENgetdemandname@12
ENgetdemandpattern = _ENgetdemandpattern@12
- ENgetelseaction = _ENgetfalseaction@20
+ ENgetelseaction = _ENgetelseaction@20
ENgeterror = _ENgeterror@12
ENgetflowunits = _ENgetflowunits@4
ENgetheadcurveindex = _ENget... |
Fix Travis job matrix | @@ -23,10 +23,7 @@ linux-s390x: &linux-s390x
windows-remote-only: &windows-remote-only
os: windows
- env:
- - TARGET=x86_64-linux-gnu HOST=x64
- - TARGET=arm-linux-gnueabihf HOST=Win32
- - TARGET=aarch64-linux-gnu HOST=x64
+ compiler: msvc
script:
- cmake -G "Visual Studio 15 2017" -A ${HOST} -S . -B bin/windows-${HOST... |
ip: Fix the AH/ESP protocol numbers on the API
Type: fix
this is mainly cosmetic, assuming users use the symbolic names,
since VPP's API types encode/decode functions corrected the values | @@ -68,8 +68,8 @@ enum ip_proto : u8 {
IP_API_PROTO_TCP = 6,
IP_API_PROTO_UDP = 17,
IP_API_PROTO_GRE = 47,
- IP_API_PROTO_AH = 50,
- IP_API_PROTO_ESP = 51,
+ IP_API_PROTO_ESP = 50,
+ IP_API_PROTO_AH = 51,
IP_API_PROTO_ICMP6 = 58,
IP_API_PROTO_EIGRP = 88,
IP_API_PROTO_OSPF = 89,
|
Update README.md
What needs to be disable explicitly and about `full` | @@ -126,6 +126,7 @@ You can also customize the hud by using the `MANGOHUD_CONFIG` environment variab
You can also specify configuration file with `MANGOHUD_CONFIGFILE=/path/to/config` for applications whose names are hard to guess (java, python etc).
A partial list of parameters are below. See the config file for a com... |
turn on rpmlint | @@ -41,7 +41,7 @@ Requires: lmod%{PROJ_DELIM} >= 7.6.1
BuildRoot: %{_tmppath}/%{pname}-%{version}-%{release}-root
DocDir: %{OHPC_PUB}/doc/contrib
-#!BuildIgnore: post-build-checks rpmlint-Factory
+#!BuildIgnore: post-build-checks
# Disable debug packages
%define debug_package %{nil}
# Default library install path
|
graph-push-hook: added more jet hints | reader.permissions
::
++ get-roles-writers-variation
+ ~/ %get-roles-writers-variation
|= =resource:res
^- (unit [is-admin=? writers=(set ship) vip=vip-metadata:metadata])
:: TODO: doing three scries in a row on the hot path is slow
[(snag (dec (lent index)) index) p.post.node]
::
++ is-allowed-add
+ ~/ %is-allowed-add... |
arch/armv8-m: Fix typo from CONFIG_ARMV8_MPU to CONFIG_ARMV8M_MPU
Fix typo from CONFIG_ARMV8_MPU to CONFIG_ARMV8M_MPU. | @@ -164,7 +164,7 @@ void up_unblock_task_without_savereg(struct tcb_s *tcb)
#endif
/* Restore the MPU registers in case we are switching to an application task */
-#ifdef CONFIG_ARMV8_MPU
+#ifdef CONFIG_ARMV8M_MPU
/* Condition check : Update MPU registers only if this is not a kernel thread. */
if ((rtcb->flags & TCB_F... |
add preparedeb target | @@ -679,6 +679,11 @@ remove: cleanobj cleanapi cleanpackage cleantest distclean
update_dch_version: VERSION debian/changelog
@perl -0777 -pi -e 's/(\().*?(\))/`echo -n "("; echo -n $(VERSION); echo -n ")"`/e' debian/changelog
+.PHONY: preparedeb
+preparedeb:
+ @quilt pop -a || true
+ ( cd ..; tar czf ${PKG_NAME}_$(VERS... |
update directories described in README | @@ -195,26 +195,29 @@ build the ISMRM raw data import tool:
rules/ more built-related files
scripts/ various helper scripts and examples
src/ source code
- src/calib source code for sensitivity calibration
- src/sense source code for SENSE or ESPIRiT reconstruction
- src/noir source code for nonlinear inversion
- src/s... |
main: add an atomic counter for quic connections | @@ -180,6 +180,10 @@ static struct {
* Number of currently handled incoming connections. Should use atomic functions to update the value.
*/
int _num_connections;
+ /**
+ * Number of currently handled incoming QUIC connections.
+ */
+ int _num_quic_connections;
char _unused2_avoir_false_sharing[32];
/**
* Total number ... |
Small change per review comment. | @@ -37,12 +37,15 @@ struct _config_t
unsigned src[CFG_SRC_MAX];
} evt;
+ struct {
+ cfg_log_level_t level;
+ } log;
+
// CFG_OUT, CFG_EVT, or CFG_LOG
transport_struct_t transport[CFG_WHICH_MAX];
custom_tag_t** tags;
unsigned max_tags;
- cfg_log_level_t level;
};
#define DEFAULT_SUMMARY_PERIOD 10
@@ -106,7 +109,7 @@ cfg... |
docs: Replace the wrong link
issue | ### Blockchain Official Websites
+ [Ethereum](https://ethereum.org/)
-+ [Ganache: an Ethereum Simulator](https://www.trufflesuite.com/truffle/)
++ [Ganache: an Ethereum Simulator](https://trufflesuite.com/ganache/)
+ [PlatON](https://www.platon.network/)
+ [PlatON Enterprise](https://github.com/PlatONEnterprise/)
+ [FI... |
Unset the init for `hammer-cad-plugins`
This allows the user to not run the `unset` command after the init script to update the submodules. | @@ -23,6 +23,7 @@ git submodule update --init --recursive #--jobs 8
git config --global --unset submodule.riscv-tools.update
git config --global --unset submodule.esp-tools.update
git config --global --unset submodule.experimental-blocks.update
+git config --unset submodule.vlsi/hammer-cad-plugins.update
# Renable fire... |
docs: Modified some descriptions in TEE section
issut | @@ -456,8 +456,8 @@ The vendor dependency layer should provide a pure software implementation of the
#### TEE Support
The design of BoAT should consider the support of TEE environment. For hardware with a TEE environment, BoAT should be able to put sensitive information in the TEE environment with a small amount of mod... |
OcAppleKernelLib: Scan own symbol table for C++ symbols too. | @@ -59,6 +59,19 @@ InternalOcGetSymbolWorker (
Symbol = NULL;
+ if (SymbolLevel == OcGetSymbolOnlyCxx) {
+ CxxIndex = (Kext->NumberOfSymbols - Kext->NumberOfCxxSymbols);
+ Symbols = &Kext->LinkedSymbolTable[CxxIndex];
+
+ for (SymIndex = 0; SymIndex < Kext->NumberOfCxxSymbols; ++SymIndex) {
+ Result = Predicate (Kext, ... |
build: updating history with major changes since v1.3.1 | ## Latest improvements ##
+ * autotest
+ - runs with random seeds (based on time) for diveristy
+ - output .json file for post-analysis
+ * build
+ - cleaned up compiler warnings across most platforms
+ - incorporated continuous integration script
+ - compact header APIs across all interfaces in liquid.h
+ - consistent... |
window/autotest: testing copy() method | @@ -148,7 +148,39 @@ void autotest_windowf()
}
windowf_destroy(w);
+}
+
+void autotest_window_copy()
+{
+ // create window
+ unsigned int wlen = 20;
+ windowcf q0 = windowcf_create(wlen);
+
+ // write some values
+ unsigned int i;
+ for (i=0; i<wlen; i++) {
+ float complex v = randnf() + _Complex_I*randnf();
+ windowcf... |
coll: fixing initial reading bangs | @@ -83,6 +83,7 @@ typedef struct _coll
t_outlet *x_dumpbangout;
int x_threaded;
int x_nosearch;
+ int x_initread; //if we're reading a file for the first time
int x_filebang; //if we're expecting to bang out 3rd outlet
struct _coll *x_next;
@@ -207,7 +208,8 @@ static void coll_tick(t_coll *x)
coll_q_post(x->x_q);
coll_... |
Simplify cost_incremental_sort a bit
Commit added code to cost_incremental_sort to handle varno 0.
Explicitly removing the RelabelType is not really necessary, because the
pull_varnos handles that just fine, which simplifies the code a bit.
Author: Richard Guo
Discussion:
Discussion: | @@ -1842,9 +1842,6 @@ cost_incremental_sort(Path *path,
*/
foreach(l, pathkeys)
{
- Node *expr;
- Relids varnos;
-
PathKey *key = (PathKey *) lfirst(l);
EquivalenceMember *member = (EquivalenceMember *)
linitial(key->pk_eclass->ec_members);
@@ -1853,14 +1850,7 @@ cost_incremental_sort(Path *path,
* Check if the express... |
Update README.md - Fixes | **Janet** is a functional and imperative programming language and bytecode interpreter. It is a
modern lisp, but lists are replaced
-by other data structures with better utility and performance (arrays, tables, structs, tuples).
+by other data structures (arrays, tables (hash table), struct (immutable hash table), tupl... |
vec: implement pow(norm, 2)
we can avoid function calls with this func | @@ -108,6 +108,23 @@ glm_vec_cross(vec3 a, vec3 b, vec3 d) {
d[2] = a[0] * b[1] - a[1] * b[0];
}
+/*!
+ * @brief norm * norm (magnitude) of vec
+ *
+ * we can use this func instead of calling norm * norm, because it would call
+ * sqrtf fuction twice but with this func we can avoid func call, maybe this is
+ * not good... |
Fix improper type assign in FillModeTests.
invalid assignment of const char to char* | @@ -22,7 +22,7 @@ class CGContextFillMode : public WhiteBackgroundTest<>, public ::testing::WithPa
CFStringRef CreateOutputFilename() {
CGPathDrawingMode fillMode = GetParam();
- char* fillModeName;
+ const char* fillModeName;
switch (fillMode) {
case kCGPathFill:
fillModeName = "Fill";
|
Add a requirement package | @@ -81,7 +81,7 @@ Requirements
* libpthread and pthread-dev installed (used by hcxhashcattool)
-To install requirements on Kali use the following 'apt-get install libcurl4-openssl-dev libssl-dev zlib1g-dev'
+To install requirements on Kali use the following 'apt-get install libcurl4-openssl-dev libssl-dev zlib1g-dev li... |
Analysis workflow, disable -x for bash the output is reordered with
respect to the command output. | @@ -170,8 +170,6 @@ jobs:
if: ${{ matrix.test_windows == 'yes' }}
shell: bash
run: |
- #echo commands as we make them.
- set -x
export unboundpath=`pwd`
echo unboundpath=${unboundpath}
cd ..
|
tests/run-tests: Add misc list of tests that use slice, to skip them. | @@ -289,6 +289,22 @@ def run_tests(pyb, tests, args, base_path="."):
cpy_byteorder = subprocess.check_output([CPYTHON3, base_path + '/feature_check/byteorder.py'])
skip_endian = (upy_byteorder != cpy_byteorder)
+ # These tests don't test slice explicitly but rather use it to perform the test
+ misc_slice_tests = (
+ 'b... |
include/nuttx/mm/map.h: Change mm_map_entry "priv" into union type
To be able to directly store also other than pointer types | @@ -49,7 +49,11 @@ struct mm_map_entry_s
off_t offset;
int prot;
int flags;
- FAR void *priv;
+ union
+ {
+ FAR void *p;
+ int i;
+ } priv;
/* Drivers which register mappings may also
* implement the unmap function to undo anything done in mmap.
|
Fix a build error in webclient
webclient.c:1064:19: error: comparison of constant '-1' with boolean expression is always false [-Werror=bool-compare]
if (read_finish == HTTP_ERROR) {
^~
cc1: all warnings being treated as errors
This patch is to change the data type of 'read_finish' as conditions compare boolean and '-1... | @@ -935,7 +935,7 @@ static pthread_addr_t wget_base(void *arg)
struct wget_s ws;
struct http_client_request_t *param = (struct http_client_request_t *)arg;
struct http_client_response_t response = {0, };
- bool read_finish = false;
+ int read_finish = false;
struct http_client_tls_t *client_tls = (struct http_client_tl... |
disable tiling animations on window dragging | @@ -2377,14 +2377,20 @@ dragmouse(const Arg *arg)
if (dragging) {
if (!c->isfloating) {
c->sfy = bh;
+ if (animated) {
+ animated = 0;
+ togglefloating(NULL);
+ animated = 1;
+ } else {
togglefloating(NULL);
}
+ }
if (ev.xmotion.x_root > c->x && ev.xmotion.x_root < c->x + c->w)
XWarpPointer(dpy, None, root, 0, 0, 0, 0,... |
Docs: Update debug readme | @@ -19,7 +19,7 @@ The general approach is as follows:
By default EDK II optimises produced binaries, so to build a "real" debug binary one should target
`NOOPT`. Do be aware that it strongly affects resulting binary size.
-`GdbSyms.dll` is built as a part of OcSupportPkg, yet prebuilt binaries are also available:
+`Gdb... |
Fix rule handling for RStateLocaltime | @@ -1303,7 +1303,7 @@ bool DeRestPluginPrivate::evaluateRule(Rule &rule, const Event &e, Resource *eRe
return false; // item was not changed
}
}
- else if (c->op() == RuleCondition::OpGreaterThan && item->descriptor().suffix == RStateLocaltime && eItem->descriptor().suffix == RConfigLocalTime)
+ else if (c->op() == Rul... |
jump at the end of the load | @@ -416,22 +416,25 @@ void LuosBootloader_MsgHandler(msg_t *input)
break;
case BOOTLOADER_STOP:
+ // wait for the command to be send to all nodes
+ tickstart = LuosHAL_GetSystick();
+ while ((LuosHAL_GetSystick() - tickstart) < 1000)
+ ;
+
// save bootloader mode in flash
if (load_flag || (LuosBootloader_GetMode() == A... |
Trim stbtt;
Removes functionality from stb_truetype that isn't being used.
This makes it compile 25% faster (~.5s). | @@ -2602,6 +2602,7 @@ STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *v)
STBTT_free(v, info->userdata);
}
+#if 0
//////////////////////////////////////////////////////////////////////////////
//
// antialiasing software rasterizer
@@ -4549,6 +4550,8 @@ STBTT_DEF void stbtt_FreeSDF(unsigned char... |
router: fix call for non-regex build | @@ -65,7 +65,7 @@ static inline int router_match(const char *tag, int tag_len, const char *match,
off += pos - (tag + off);
#ifndef FLB_HAVE_REGEX
- if (router_match(pos, match, off)) {
+ if (router_match(tag, tag_len, match, off, NULL)) {
#else
/* We don't need to pass the regex recursively,
* we matched in order abov... |
tests: internal: aws-credentials: initialize context with zeros | @@ -267,7 +267,7 @@ static void test_standard_chain_provider()
return;
}
- config = flb_malloc(sizeof(struct flb_config));
+ config = flb_calloc(1, sizeof(struct flb_config));
if (!config) {
flb_errno();
return;
|
remove rogue 'huh' | @@ -166,6 +166,8 @@ static inline tic_core* getJanetMachine(void)
return CurrentMachine;
}
+/* ***************** */
+
typedef struct
{
s32 note;
@@ -1008,7 +1010,6 @@ static Janet janet_fset(int32_t argc, Janet* argv)
static void reportError(tic_core* core, Janet result)
{
JanetBuffer *errBuffer = janet_unwrap_buffer(j... |
pwm: unify init_timer and rcc enable | @@ -60,6 +60,52 @@ int beepon = 0;
#ifndef DISABLE_PWM_PINS
void init_timer(TIM_TypeDef *TIMx, int period) {
+ switch ((uint32_t)TIMx) {
+ case (uint32_t)TIM1:
+ RCC_APB2PeriphClockCmd(RCC_APB2Periph_TIM1, ENABLE);
+ break;
+ case (uint32_t)TIM2:
+ RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2, ENABLE);
+ break;
+ case (u... |
vppapigen: add assert for python version
The recent introduction of f-strings require >=Python3.6
Fix a couple of pycodestyle warnings.
Type: fix | @@ -11,6 +11,8 @@ import os
import sys
from subprocess import Popen, PIPE
+assert sys.version_info >= (3, 6), \
+ "Not supported Python version: {}".format(sys.version)
log = logging.getLogger('vppapigen')
# Ensure we don't leave temporary files around
@@ -285,7 +287,7 @@ class Define():
self.options[b.option] = b.valu... |
Added ArmChina vendor ID | <xs:enumeration value="APEXMIC:153" />
<xs:enumeration value="ARM:82" />
<xs:enumeration value="ARM CMSIS:109" />
+ <xs:enumeration value="ArmChina:160" />
<xs:enumeration value="ArteryTek:143" />
<xs:enumeration value="Atmel:3" />
<xs:enumeration value="AutoChips:150" />
|
codeowner: add peripherals to codeowners of esp_hw_support | /components/esp_http_server/ @esp-idf-codeowners/app-utilities
/components/esp_https_ota/ @esp-idf-codeowners/app-utilities
/components/esp_https_server/ @esp-idf-codeowners/app-utilities
-/components/esp_hw_support/ @esp-idf-codeowners/system
+/components/esp_hw_support/ @esp-idf-codeowners/system @esp-idf-codeowners/... |
Fix infinite-loop in rt_mmcsd_blk_remove.
1. Issue on traveling latest node in list if multi-partitions on card. | @@ -496,7 +496,7 @@ void rt_mmcsd_blk_remove(struct rt_mmcsd_card *card)
rt_list_t *l, *n;
struct mmcsd_blk_device *blk_dev;
- for (l = (&blk_devices)->next, n = l->next; l != &blk_devices; l = n)
+ for (l = (&blk_devices)->next, n = l->next; l != &blk_devices; l = n, n = n->next)
{
blk_dev = (struct mmcsd_blk_device *... |
append to existing files | @@ -166,7 +166,7 @@ static void writehccapx()
static int written;
static int fd_file;
-if((fd_file = open(hccapxoutname, O_WRONLY | O_CREAT, 0644)) == -1)
+if((fd_file = open(hccapxoutname, O_WRONLY | O_CREAT | O_APPEND, 0644)) == -1)
{
perror("f");
fprintf(stderr, "failed to open HCCAPX file %s\n", hccapxoutname);
@@ ... |
x_x509.c: Simplify X509_new_with_libctx() using x509_set0_libctx() | @@ -152,10 +152,7 @@ X509 *X509_new_with_libctx(OPENSSL_CTX *libctx, const char *propq)
X509 *cert = NULL;
cert = (X509 *)ASN1_item_new((X509_it()));
- if (cert != NULL) {
- cert->libctx = libctx;
- cert->propq = propq;
- }
+ (void)x509_set0_libctx(cert, libctx, propq);
return cert;
}
|
ExtendedNotifications: Update char type | * main program
*
* Copyright (C) 2010-2011 wj32
- * Copyright (C) 2017-2020 dmex
+ * Copyright (C) 2017-2021 dmex
*
* This file is part of Process Hacker.
*
*/
#include <phdk.h>
-#include <workqueue.h>
#include <settings.h>
#include "extnoti.h"
@@ -340,16 +339,16 @@ BOOLEAN MatchFilterList(
ULONG i;
BOOLEAN isFileName;... |
[Kernel] Set LAPIC enable-bit | -use crate::utils::{ContainsMachineWords, PhysAddr};
+use crate::utils::{spin_for_delay_ms, ContainsMachineWords, PhysAddr};
use bitvec::prelude::*;
+use core::arch::asm;
use core::num::TryFromIntError;
use ffi_bindings::println;
@@ -89,12 +90,11 @@ impl ProcessorLocalApic {
}
pub fn enable(&self) {
- // Software-disab... |
Don't call a function which hasn't been defined | @@ -666,6 +666,7 @@ ub_winsock_tcp_wouldblock(struct ub_event* ev, int eventbits)
fptr_ok(ev->vmt != &default_event_vmt ||
ev->vmt->winsock_tcp_wouldblock ==
my_winsock_tcp_wouldblock);
+ if (ev->vmt->winsock_tcp_wouldblock)
(*ev->vmt->winsock_tcp_wouldblock)(ev, eventbits);
}
}
|
TC: Expand tc for kernel/environ module API's
1) Adds tc for setenv().
- includes invalid input tc.
2) invalid input tc for putenv(). | @@ -51,10 +51,9 @@ static void tc_environ_setenv_getenv_unsetenv(void)
const char *psz_name = "abc";
const char *psz_value = "xyz";
const char *pusz_name = "arv";
- int overwrite_num = 1;
char *psz_getvalue = NULL;
- ret_chk = setenv(psz_name, psz_value, overwrite_num);
+ ret_chk = setenv(psz_name, psz_value, 1);
TC_AS... |
[run_rocm_test.sh] - Add support for AOMP testing. | # Please check with Ron or Ethan for script modifications.
#
#
+clangversion=`$AOMP/bin/clang --version`
+if [[ "$clangversion" =~ "AOMP_STANDALONE" ]]; then
+ aomp=1
+fi
# Use bogus path to avoid using target.lst, a user-defined target list
# used by rocm_agent_enumerator.
@@ -40,7 +44,11 @@ if [ $? -ne 0 ]; then
fi
#... |
Make FIPS provider use KDF name for PBKDF2 | @@ -122,7 +122,7 @@ static int dummy_evp_call(void *provctx)
OPENSSL_CTX *libctx = PROV_LIBRARY_CONTEXT_OF(provctx);
EVP_MD_CTX *ctx = EVP_MD_CTX_new();
EVP_MD *sha256 = EVP_MD_fetch(libctx, "SHA256", NULL);
- EVP_KDF *kdf = EVP_KDF_fetch(libctx, "pbkdf2", NULL);
+ EVP_KDF *kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_PBK... |
Little update for example | @@ -5,7 +5,7 @@ env:
android: C:/android-sdk-windows
android-ndk: C:/android-ndk-r10
cabwiz: C:/Program Files (x86)/Windows Mobile 6 SDK/Tools/CabWiz
- msbuild: C:/Program Files (x86)/MSBuild/12.0/Bin/MSBuild.exe
+ msbuild: C:/Program Files (x86)/MSBuild/14.0/Bin/MSBuild.exe
vcbuild: C:/Program Files (x86)/Microsoft Vi... |
ActionTypes.md: Action type 0x00000000 is reserved | ## Action Type Assignment
Vendor | Range Start | Range End | Description
:--- | :--- | :--- | :---
-free | 00.00.00.00 | 00.00.FF.FF | Free for experimental use
+Reserved | 00.00.00.00 | 00.00.00.00 | Reserved
+free | 00.00.00.01 | 00.00.FF.FF | Free for experimental use
IBM | 10.14.00.00 | 10.14.00.00 | SNAP framework... |
Fix gdbscript | # $ JLinkGDBServer -if SWD -device ATSAMD51J20 -speed 4000 -ir
# See I/O using telnet:
# $ telnet localhost 2333
-file ../../build/bin/firmware-semihosting.elf
+file ../../build-semihosting/bin/firmware.elf
target remote :2331
monitor semihosting enable
monitor reset
|
os/kernel: Fix os_cputime_ticks_to_usecs
Function was correctly computing values only when
OS_CPUTIME_FREQ was 32768.
For other values computation could be incorrect depending
on ticks.
Hard-coded mask 0x1FF was only good for 32768.
Now mask is also computed. | @@ -82,7 +82,8 @@ os_cputime_ticks_to_usecs(uint32_t ticks)
shift = __builtin_popcount(MYNEWT_VAL(OS_CPUTIME_FREQ) - 1) - 6;
- usecs = ((ticks >> shift) * 15625) + (((ticks & 0x1ff) * 15625) >> shift);
+ usecs = ((ticks >> shift) * 15625) +
+ (((ticks & ~(~0U << shift)) * 15625) >> shift);
return usecs;
}
|
BugID:17394649:fix memory leak in property get | @@ -1286,6 +1286,7 @@ int dm_mgr_upstream_thing_property_get_response(_IN_ int devid, _IN_ char *msgid
int res = 0;
dm_msg_request_payload_t request;
dm_msg_response_t response;
+ dm_server_alcs_context_t *alcs_context = (dm_server_alcs_context_t *)ctx;
if (devid < 0 || msgid == NULL || msgid_len <= 0 ||
payload == NUL... |
Add isNull bool. TODO in Comments | @@ -5,16 +5,16 @@ import com.sun.jna.*;
class util
{
- public static class SIZET extends IntegerType
+ public static class SizeT extends IntegerType
{
private static final long serialVersionUID = 1L;
- public SIZET()
+ public SizeT()
{
this(0);
}
- public SIZET(long value)
+ public SizeT(long value)
{
super(Native.SIZE... |
Correct reset condition in sessionResetSlot | @@ -3889,7 +3889,7 @@ sessionResetSlot(void)
* the current session array and check corresponding resGroupSlot with
* shared lock on SessionStateLock.
*/
- if (MySessionState == NULL)
+ if (MySessionState != NULL)
{
LWLockAcquire(SessionStateLock, LW_EXCLUSIVE);
|
bluetooth: fix incorrect memset size | @@ -41,8 +41,8 @@ void p_256_init_curve(UINT32 keyLength)
ec->p[1] = 0xFFFFFFFF;
ec->p[0] = 0xFFFFFFFF;
- memset(ec->omega, 0, KEY_LENGTH_DWORDS_P256);
- memset(ec->a, 0, KEY_LENGTH_DWORDS_P256);
+ memset(ec->omega, 0, KEY_LENGTH_DWORDS_P256 * sizeof(ec->omega[0]));
+ memset(ec->a, 0, KEY_LENGTH_DWORDS_P256 * sizeof(ec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.