message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Makefile: forward pythontest target to 2nd stage | @@ -269,7 +269,7 @@ endif
ifeq ($(MAKESTAGE),1)
.PHONY: doc/commands.txt $(TARGETS)
-default all clean allclean distclean doc/commands.txt doxygen test utest utest_gpu gputest $(TARGETS):
+default all clean allclean distclean doc/commands.txt doxygen test utest utest_gpu gputest pythontest $(TARGETS):
make MAKESTAGE=2 ... |
KDB Mount: Fix warning reported by `ronn` | - Where `path` is the path to the file the user wants to mount.
See `kdb info resolver` for details what an absolute and relative path means.
See also IMPORTANT below.
+
- `mountpoint` is where in the key database the new backend should be mounted.
For a cascading mount point, `mountpoint` should start with `/`.
See al... |
http_client_debug: add missing type cast | @@ -42,7 +42,7 @@ static void debug_cb_request_payload(char *name, void *p1, void *p2)
struct flb_http_client *c = p1;
if (c->body_len > 3) {
- ptr = c->body_buf;
+ ptr = (unsigned char *) c->body_buf;
if (ptr[0] == 0x1F && ptr[1] == 0x8B && ptr[2] == 0x08) {
flb_idebug("[http] request payload (%lu bytes)\n[GZIP binary... |
Tidy up velocity mode captilisation | @@ -451,13 +451,13 @@ definitions:
desc: Status flags
fields:
- 3-7:
- desc: reserved
+ desc: Reserved
- 0-2:
- desc: velocity mode
+ desc: Velocity mode
values:
- 0: Invalid
- - 1: Measured Doppler Derived
- - 2: Computed Doppler Derived
+ - 1: Measured Doppler derived
+ - 2: Computed Doppler derived
- MSG_VEL_NED:
id... |
Add GetSize() for TMaybeOwningArrayHolder. | @@ -79,6 +79,10 @@ namespace NCB {
return ResourceHolder;
}
+ size_t GetSize() const {
+ return ArrayRef.size();
+ }
+
private:
TMaybeOwningArrayHolder(
TArrayRef<T> arrayRef,
|
tls13:server:Add base framework for serverhello | @@ -727,6 +727,15 @@ cleanup:
return( ret );
}
+/*
+ * StateHanler: MBEDTLS_SSL_SERVER_HELLO
+ */
+static int ssl_tls13_write_server_hello( mbedtls_ssl_context *ssl )
+{
+ ((void) ssl);
+ return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
+}
+
/*
* TLS 1.3 State Machine -- server side
*/
@@ -758,6 +767,10 @@ int mbedtls_ss... |
fix: set request timestamps for http3 | @@ -430,6 +430,7 @@ static void set_state(struct st_h2o_http3_server_stream_t *stream, enum h2o_http
assert(conn->delayed_streams.recv_body_blocked.prev == &stream->link || !"stream is not registered to the recv_body list?");
break;
case H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT: {
+ stream->req.timestamps.response_end_... |
[tb] Align Verilator's reset to vsim/vcs | @@ -44,8 +44,8 @@ int main(int argc, char **argv) {
simctrl.RegisterExtension(&memutil);
#endif
- simctrl.SetInitialResetDelay(5);
- simctrl.SetResetDuration(5);
+ simctrl.SetInitialResetDelay(1);
+ simctrl.SetResetDuration(4);
bool exit_app = false;
int ret_code = simctrl.ParseCommandArgs(argc, argv, exit_app);
|
Implement changes requested by | #include "system/nth_alloc.h"
// TODO(#863): Sound_samples is not implemented
-// TODO: Volume control?
+// TODO: Sound_samples does not implement volume control.
struct Sound_samples
{
@@ -26,8 +26,7 @@ static
int init_buffer_and_device(Sound_samples *sound_samples,
const char *sample_files[])
{
- // TODO: Select audi... |
Fixes contiki-ng/contiki-ng#774 Won't compile asm files | @@ -10,6 +10,7 @@ CC = arm-none-eabi-gcc
CPP = arm-none-eabi-cpp
LD = arm-none-eabi-gcc
AR = arm-none-eabi-ar
+AS = arm-none-eabi-gcc
OBJCOPY = arm-none-eabi-objcopy
OBJDUMP = arm-none-eabi-objdump
NM = arm-none-eabi-nm
@@ -25,6 +26,11 @@ ifeq ($(WERROR),1)
CFLAGS += -Werror
endif
+### Pass CFLAGS along to assembly fil... |
SOVERSION bump to version 5.5.5 | @@ -45,7 +45,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 4)
+set(SYSREPO_MICRO_SO... |
[examples] some cleaning in occ_slider_crank | @@ -4,7 +4,6 @@ from siconos.mechanics.collision.tools import Volume, Contactor, Shape
from siconos.io.mechanics_io import Hdf5
import siconos.io.mechanics_io
-#siconos.io.mechanics_io.set_implementation('original')
siconos.io.mechanics_io.set_backend('occ')
l1 = 0.153 # crank length
@@ -45,9 +44,9 @@ with Hdf5() as io... |
+ fix demo_file_sanitize_test | @@ -211,10 +211,13 @@ int demo_server_is_path_sane(const uint8_t* path, size_t path_length)
if ((c >= 'a' && c <= 'z') ||
(c >= 'A' && c <= 'Z') ||
(c >= '0' && c <= '9') ||
- c == '-' || c == '_' || c == '/') {
+ c == '-' || c == '_') {
nb_good++;
past_is_dot = 0;
}
+ else if (c == '/' && i < path_length - 1 && nb_goo... |
OcAppleImg4Lib: Add additional matched logic to fall back to NVRAM value
Updates | @@ -858,6 +858,7 @@ OcGetLegacySecureBootECID (
EFI_STATUS Status;
OC_SMBIOS_TABLE SmbiosTable;
EFI_GUID Uuid;
+ UINTN ReadSize;
ASSERT (Config != NULL);
ASSERT (ApECID != NULL);
@@ -897,7 +898,7 @@ OcGetLegacySecureBootECID (
}
DEBUG ((DEBUG_INFO, "OC: Grabbed SB uuid %g from auto config - %r\n", &Uuid, Status));
}
- ... |
Fix typos in comments/help | @@ -20,7 +20,7 @@ message TPoolQuantizationSchema {
map<uint32, TFeatureQuantizationSchema> FeatureIndexToSchema = 1;
// List of class names; see {--class-names} for `catboost fit`;
- // Makes sence only for multiclassification.
+ // Makes sense only for multiclassification.
//
// NOTE: order is important
repeated stri... |
Change calculation of warp id and thread master based on new workgroup size calculation in generic mode | @@ -336,7 +336,7 @@ int main()
recordError(&errors, "DEVICE NUMBER", i, default_dev, NULL);
//check warp #
- if (warp_id[i] != (MAX_THREADS_PER_TEAM - WARP_SIZE) / WARP_SIZE)
+ if (warp_id[i] != (MAX_THREADS_PER_TEAM - WARP_SIZE) / WARP_SIZE +1)
recordError(&errors, "WARP NUMBER", i, warp_id, NULL);
//check lane #
@@ -... |
Sanity check the drbg cap lengths | @@ -1801,6 +1801,42 @@ ACVP_RESULT acvp_enable_drbg_length_cap (ACVP_CTX *ctx,
cap_list->cap.drbg_cap->drbg_cap_mode_list = drbg_cap_mode_list;
}
+ switch (param) {
+ case ACVP_DRBG_ENTROPY_LEN:
+ if (max > ACVP_DRBG_ENTPY_IN_BIT_MAX) {
+ ACVP_LOG_ERR("Parameter 'max'(%d) > ACVP_DRBG_ENTPY_IN_BIT_MAX(%d). "
+ "Please r... |
Add new ID's | @@ -233,10 +233,12 @@ static void snap_decode(uint64_t reg)
(int)(reg >> 32ll), atype);
switch (atype) {
case 0x10140000: VERBOSE1("IBM Sample Code\n"); break;
- case 0x10141000: VERBOSE1("HLS Demo Memcopy\n"); break;
- case 0x10141001: VERBOSE1("HLS sponge\n"); break;
- case 0x10141002: VERBOSE1("HLS XXXX\n"); break;
... |
refine the state setting in tls13_handshake_wrapup | @@ -2568,21 +2568,20 @@ static int ssl_tls13_handshake_wrapup(mbedtls_ssl_context *ssl)
mbedtls_ssl_tls13_handshake_wrapup(ssl);
-#if defined(MBEDTLS_SSL_SESSION_TICKETS)
+#if defined(MBEDTLS_SSL_SESSION_TICKETS) && \
+ defined(MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_SOME_PSK_ENABLED)
/* TODO: Remove the check of SOME_PSK... |
Error out if version does not match | @@ -614,6 +614,10 @@ static int ngtcp2_conn_recv_cleartext(ngtcp2_conn *conn, uint8_t exptype,
return NGTCP2_ERR_PROTO;
}
+ if (conn->version != hd.version) {
+ return NGTCP2_ERR_PROTO;
+ }
+
for (; pktlen;) {
nread = ngtcp2_pkt_decode_frame(&fr, pkt, pktlen);
if (nread < 0) {
|
fix(png): fix possible file leaks | @@ -80,11 +80,15 @@ static lv_res_t decoder_info(struct _lv_img_decoder_t * decoder, const void * sr
lv_fs_file_t f;
lv_fs_res_t res = lv_fs_open(&f, fn, LV_FS_MODE_RD);
if(res != LV_FS_RES_OK) return LV_RES_INV;
+
lv_fs_seek(&f, 16, LV_FS_SEEK_SET);
+
uint32_t rn;
lv_fs_read(&f, &size, 8, &rn);
- if(rn != 8) return LV... |
config-tools:refine memory allocation for vm
1.The memory allocation effect is tested under XML files on multiple platforms.
2.Modified the conversion of memory units during memory reading and processing (MB to Byte). | @@ -36,16 +36,18 @@ def get_memory_info(vm_node_info):
size_hpa = []
hpa_info = {}
- whole_node_list = vm_node_info.xpath("./memory/size")
- if len(whole_node_list) != 0:
- hpa_info[0] = int(whole_node_list[0].text, 16)
+ size_node = common.get_node("./memory/size", vm_node_info)
+ if size_node is not None:
+ size_byte... |
Prevent consumption sensor to expose power for certain devices | @@ -3160,7 +3160,9 @@ static int sqliteLoadAllSensorsCallback(void *user, int ncols, char **colval , c
{
clusterId = clusterId ? clusterId : METERING_CLUSTER_ID;
if ((sensor.modelId() != QLatin1String("SP 120")) &&
- (sensor.modelId() != QLatin1String("ZB-ONOFFPlug-D0005")))
+ (sensor.modelId() != QLatin1String("ZB-ONO... |
Make GUID_t members public, normalize tabs to spaces | @@ -77,7 +77,6 @@ namespace Microsoft {
/// Customers need to provide their own converter from RPC GUID type to ARIA portable GUID type.
/// </remarks>
struct ARIASDK_LIBABI GUID_t {
- private:
/// <summary>Specifies the first 8 hexadecimal digits of the GUID.</summary>
uint32_t Data1;
@@ -91,7 +90,6 @@ namespace Micro... |
king: fix typo in UDP.hs comment | 1. Opens a UDP socket and makes sure that it stays open.
- If can't open the port, wait and try again repeatedly.
- - If there is an error reading or writting from the open socket,
+ - If there is an error reading to or writing from the open socket,
close it and open another, making sure, however, to reuse the
same por... |
doc: base name decision | @@ -20,17 +20,19 @@ For example:
## Considered Alternatives
-- restrict what `keySetBaseName` can accept has the downside that:
- - applications would suddenly fail when trying to set some key base names
- -
+- restrict what `keyAddBaseName/keySetBaseName` can accept: has the downside that
+ applications would suddenly... |
"Fixed" weird %ap-lame errors in new talk. | =. +>.$
(so-hear | src %config src %full loc.cos)
=. +>.$
- %- ~(rep in loc.pes)
- |= {{w/ship s/status} _+>.$}
- (so-hear | src %status src w %full s)
+ =+ los=~(tap by loc.pes)
+ |-
+ ?~ los +>.^$
+ =. +>.^$
+ (so-hear | src %status src p.i.los %full q.i.los)
+ $(los t.los)
+ ::TODO ideally you'd just do this, but th... |
perf(non-NULL check):
"output_ptr->field_ptr" should check non-null in hlfabricPayloadPacked() | @@ -589,6 +589,11 @@ __BOATSTATIC BOAT_RESULT hlfabricPayloadPacked(BoatHlfabricTx *tx_ptr,
packedLength = common__payload__get_packed_size( &payload );
output_ptr->field_len = packedLength;
output_ptr->field_ptr = BoatMalloc(packedLength);
+ if( NULL == output_ptr->field_ptr )
+ {
+ BoatLog(BOAT_LOG_CRITICAL, "Fail to... |
mbuf code samples use code-block | @@ -142,7 +142,7 @@ to denote the amount of payload that the application requires (aligned
on a 32-bit boundary in this case). All this leads to the total memory
block size required, denoted by the macro *MBUF\_MEMBLOCK\_OVERHEAD*.
-.. code:: c
+.. code-block:: c
#define MBUF_PKTHDR_OVERHEAD sizeof(struct os_mbuf_pkthd... |
Fixed store masking issue | @@ -257,7 +257,7 @@ void libxsmm_generator_cvtfp32bf16_avx512_microkernel( libxsmm_generated_code*
LIBXSMM_X86_GP_REG_UNDEF, 0,
im * 32 * i_micro_kernel_config->datatype_size_out,
i_micro_kernel_config->vector_name,
- reg_0, (im == (m_trips-1)) ? use_m_masking : 0, 2, 1 );
+ reg_0, (im == (m_trips-1)) ? use_m_masking *... |
allocate spaces for the trailing NUL | @@ -869,7 +869,7 @@ if sys.argv[1] == "quic":
# provider h2o:
u.enable_probe(probe="send_response_header", fn_name="trace_h2o__send_response_header")
- cflags = ["-DMAX_EVENT_TYPE_LEN=%s" % max(map(lambda probe: len("%s__%s" % (probe.provider, probe.name)), u.enumerate_probes()))]
+ cflags = ["-DMAX_EVENT_TYPE_LEN=%s" ... |
rm extra restrict qualifier;
Maybe this is confusing MSVC. Doesn't appear to impact codegen. | #include <math.h>
// Explicit curve evaluation, unroll simple cases to avoid pow overhead
-static void evaluate(float* restrict P, int n, float t, vec3 restrict p) {
+static void evaluate(float* restrict P, int n, float t, vec3 p) {
if (n == 2) {
p[0] = P[0] + (P[4] - P[0]) * t;
p[1] = P[1] + (P[5] - P[1]) * t;
|
Support list of keys for exists command | @@ -63,7 +63,6 @@ static bool
redis_arg0(struct msg *r)
{
switch (r->type) {
- case MSG_REQ_REDIS_EXISTS:
case MSG_REQ_REDIS_PERSIST:
case MSG_REQ_REDIS_PTTL:
case MSG_REQ_REDIS_TTL:
@@ -284,6 +283,7 @@ redis_argx(struct msg *r)
switch (r->type) {
case MSG_REQ_REDIS_MGET:
case MSG_REQ_REDIS_DEL:
+ case MSG_REQ_REDIS_EX... |
Send invites to %i instead of %inbox | =- (sh-act %phrase - [%inv inv [self nom]]~)
%- ~(rep in sis)
|= {s/ship a/audience}
- (~(put in a) [s %inbox])
+ (~(put in a) [s %i])
::
++ filter
|= {nom/name cus/? utf/?}
|
Change the default value of TCP_MSS to 1440 and TCP_MSS Range : [576 1460] | @@ -294,12 +294,14 @@ menu "LWIP"
config TCP_MSS
int "Maximum Segment Size (MSS)"
- default 1436
- range 1220 1436
+ default 1440
+ range 576 1460
help
Set maximum segment size for TCP transmission.
- Can be set lower to save RAM, the default value 1436 will give best throughput.
+ Can be set lower to save RAM, the def... |
apps/graphics/pdcurs34: Fix missing ; typo in last commit | @@ -504,7 +504,7 @@ int PDC_color_content(short color, short *red, short *green, short *blue)
fbstate = &fbscreen->fbstate;
#ifdef PDCURSES_MONOCHROME
- greylevel = DIVROUND(fbstate->greylevel[color] * 1000, 255)
+ greylevel = DIVROUND(fbstate->greylevel[color] * 1000, 255);
*red = greylevel;
*green = greylevel;
*blue ... |
correct test for HLS_CLOCK_PERIOD_CONSTRAINT in CAPI1.0 case | @@ -263,7 +263,7 @@ while [ -z "$SETUP_DONE" ]; do
fi
else
RESP=`grep '#export HLS_CLOCK_PERIOD_CONSTRAINT' $snap_env_sh`
- if [ -z "$RESP" ]; then
+ if [ -z "$RESP" ] && [ "$CAPI20" == "y" ]; then
sed -i 's/export HLS_CLOCK_PERIOD_CONSTRAINT/#export HLS_CLOCK_PERIOD_CONSTRAINT/g' $snap_env_sh
SETUP_INFO="$SETUP_INFO\n... |
Extends the CCT app options about publish/unpublish resource
Allows user to publish/unpublish the swich resource from a cloud
and user can configure the cloud resource from commandline. | @@ -53,6 +53,12 @@ static int quit;
#define USER_ID_KEY "uid"
#define EXPIRESIN_KEY "expiresin"
+static const char *cis;
+static const char *auth_code;
+static const char *sid;
+static const char *apn;
+static const char *deviceid;
+
static void
display_menu(void)
{
@@ -68,9 +74,11 @@ display_menu(void)
PRINT("[5] Clou... |
Removed useless vld1q_f32 from arm_correlate_f32 | @@ -390,8 +390,6 @@ void arm_correlate_f32(
x1v = x2v;
px+=4;
- x2v = vld1q_f32(px);
-
} while (--k);
/* If the srcBLen is not a multiple of 4, compute any remaining MACs here.
|
Update the tools/README
Updated the README file so it was a little more
explicit with example commands. | -Both tools, pre-commit and check-style, use clang-format to fix the code style.
+The `pre-commit` and `check-style` tools use `clang-format` to fix the code style.
-In order to use the tools one should copy the file "_clang-format" to the
-project's root dir. This file contains the description of the iotivity-constrai... |
burnet: add case EC_LED_ID_POWER_LED to led_set_color
BRANCH=firmware-kukui-12573.B
TEST=make sure power led can be controlled by ectool.
Tested-by: Devin Lu | @@ -81,6 +81,9 @@ static int led_set_color(enum ec_led_id led_id, enum led_color color)
case EC_LED_ID_BATTERY_LED:
rv = led_set_color_battery(color);
break;
+ case EC_LED_ID_POWER_LED:
+ rv = led_set_color_power(color);
+ break;
default:
return EC_ERROR_UNKNOWN;
}
|
Make sure after installing homebridge homebridge variable is set to managed | @@ -399,9 +399,8 @@ function checkHomebridge {
process=$(ps -ax | grep " homebridge$")
if [ -z "$process" ]; then
[[ $LOG_INFO ]] && echo "${LOG_INFO}starting homebridge"
- if [[ "$HOMEBRIDGE" != "managed" ]]; then
putHomebridgeUpdated "homebridge" "managed"
- fi
+
homebridge -U /home/$MAINUSER/.homebridge &
fi
|
Ragger Python regex warnings fix | @@ -21,7 +21,7 @@ sig_ctx = {}
# Output = ('uint8', [2, None, 4]) | ('bool', [])
def get_array_levels(typename):
array_lvls = list()
- regex = re.compile("(.*)\[([0-9]*)\]$")
+ regex = re.compile(r"(.*)\[([0-9]*)\]$")
while True:
result = regex.search(typename)
@@ -42,7 +42,7 @@ def get_array_levels(typename):
# Input ... |
odissey: properly include client_pool changes | #include "od_config.h"
#include "od_server.h"
#include "od_server_pool.h"
+#include "od_client.h"
+#include "od_client_list.h"
+#include "od_client_pool.h"
#include "od_route_id.h"
#include "od_route.h"
#include "od_route_pool.h"
-#include "od_client.h"
-#include "od_client_list.h"
#include "od.h"
#include "od_io.h"
#i... |
horadric update (468334185) | },
"horadric":{
"formula": {
- "sandbox_id": 415739617,
+ "sandbox_id": 468334185,
"match": "horadric"
},
"executable": {
|
mangohudctl: expand help message | #include <string.h>
-#include "mangoapp.h"
#include <stdio.h>
+#include "mangoapp.h"
void help_and_quit() {
// TODO! document attributes and values
fprintf(stderr, "Usage: mangohudctl [set|toggle] attribute [value]\n");
+ fprintf(stderr, "Attributes:\n");
+ fprintf(stderr, " no_display hides or shows hud\n");
+ fprintf... |
Fix warning for uninitialized variable | @@ -123,7 +123,7 @@ http_ssi_cb(http_state_t* hs, const char* tag_name, size_t tag_len) {
} else if (!strncmp(tag_name, "led_status", tag_len)) {
esp_http_server_write_string(hs, "Led is on");
} else if (!strncmp(tag_name, "wifi_list", tag_len)) {
- size_t i;
+ size_t i = 0;
ESP_UNUSED(i);
esp_http_server_write_string(... |
Fix possible memory leak. | @@ -314,8 +314,15 @@ int yr_object_from_external_variable(
break;
}
+ if (result == ERROR_SUCCESS)
+ {
*object = obj;
}
+ else
+ {
+ yr_object_destroy(obj);
+ }
+ }
return result;
}
|
Fixing a file name typo (plug.c)
In [Example of component requirements] it shows "plug.c" while in the rest of the explanation it refer to "spark_plug.c", same thing with "plug.h". | @@ -527,8 +527,8 @@ Imagine there is a ``car`` component, which uses the ``engine`` component, which
- engine.c
- include/ - engine.h
- spark_plug/ - CMakeLists.txt
- - plug.c
- - plug.h
+ - spark_plug.c
+ - spark_plug.h
Car component
^^^^^^^^^^^^^
|
get-gcp-jwt: correct scope, clean up call
It turns out 'devstorage.read_write' also gives us an access token
instead of a JWT, and is probably more the thing that we want.
Took the opportunity to make scope a macro to clean up the make-jwt call
site. | ;< =key:rsa bind:m read-private-key
;< kid=@t bind:m (read-setting %private-key-id)
;< aud=@t bind:m (read-setting %token-uri)
+=* scope 'https://www.googleapis.com/auth/devstorage.read_write'
=/ jot=@t
- %: make-jwt
- key kid iss
- 'https://www.googleapis.com/auth/cloud-platform'
- aud now.bowl
- ==
+ (make-jwt key ki... |
protocol update
set BIP31 to this new version only | @@ -30,7 +30,7 @@ static const int DATABASE_VERSION = 21212;
// network protocol versioning
//
-static const int PROTOCOL_VERSION = 31005; //Protocol is now 31005 as of D v3.3
+static const int PROTOCOL_VERSION = 33500; //Protocol is now 33500 as of D v3.3.5
// intial proto version, to be increased after version/verack... |
cirrus: fix PATH before tests | @@ -144,7 +144,6 @@ mac_task:
brew install glib
brew install go
brew install gnupg@2.2
- export PATH="/usr/local/opt/gnupg@2.2/bin:$PATH"
brew install gpgme
brew install gradle
brew install graphviz
@@ -224,7 +223,8 @@ mac_task:
tests_script:
# Remove files produced by `ronn`, since `testscr_check_formatting` only chec... |
add logf() utility | #include <vector>
#include <unistd.h>
+#include <stdarg.h>
#include "h2olog.h"
@@ -44,6 +45,32 @@ Other options:
return;
}
+static void make_timestamp(char *buf, size_t buf_len)
+{
+ time_t t = time(NULL);
+ struct tm tms;
+ localtime_r(&t, &tms);
+ const char *iso8601format = "%FT%TZ";
+ strftime(buf, buf_len, iso8601... |
Added sceKernelPowerLock sceKernelPowerUnlock | @@ -56,6 +56,24 @@ int sceKernelExitProcess(int res);
*/
int sceKernelPowerTick(int type);
+/***
+ * Locks certain timers from triggering.
+ *
+ * @param[in] type - One of ::KernelPowerTickType
+ *
+ * @return 0
+*/
+int sceKernelPowerLock(int type);
+
+/***
+ * Unlocks certain timers.
+ *
+ * @param[in] type - One of ... |
apps/import/Makefile: Eliminate a MAKE sytax error that occurs in some (but not environments) when symtab.c has not been generated. | SUBDIRS = arch build include libs startup tmp
FILES = .config System.map User.map
-
-define MKSYMTAB
ifeq (,$(wildcard ./symtab.c))
+define MKSYMTAB
$(Q) $(MAKE) -f Makefile.symtab $1
-endif
endef
+else
+define MKSYMTAB
+endef
+endif
all: symtab
.PHONY: context depend clean distclean
|
libhfuzz: improve _memcmp | @@ -128,7 +128,7 @@ __attribute__((constructor)) void hfuzzInstrumentInit(void) {
static int _memcmp(const uint8_t* m1, const uint8_t* m2, size_t n) {
for (size_t i = 0; i < n; i++) {
if (m1[i] != m2[i]) {
- return (m1[i] - m2[i]);
+ return ((int)m1[i] - (int)m2[i]);
}
}
return 0;
|
Finalizing updates for changelog | -Version 1.2.1 (09 January 2017)
+Version 1.2.1 (23 January 2017)
[General]
* 1.2.1 is the first micro update release against 1.2
@@ -8,9 +8,12 @@ Version 1.2.1 (09 January 2017)
* removal of hard-coded paths in Makefiles installed with TAU (https://github.com/openhpc/ohpc/issues/355)
* document need for resolvable SMS... |
Add several headers to libtcod.h. | #include "console_init.h"
#include "console_printing.h"
#include "console_rexpaint.h"
+#include "context.h"
#include "error.h"
#include "fov.h"
#include "globals.h"
#include "path.h"
#include "pathfinder.h"
#include "parser.h"
+#include "renderer_gl.h"
+#include "renderer_gl1.h"
+#include "renderer_gl2.h"
+#include "re... |
crypto: fixed another compatibility issue | @@ -175,6 +175,8 @@ int flb_hmac_init(struct flb_hmac *context,
if (context->backend_context == NULL) {
return FLB_CRYPTO_ALLOCATION_ERROR;
}
+
+ HMAC_CTX_init(context->backend_context);
#else
context->backend_context = HMAC_CTX_new();
@@ -185,8 +187,6 @@ int flb_hmac_init(struct flb_hmac *context,
}
#endif
- HMAC_CTX_... |
No big empty whitespace blocks in generated code | @@ -148,7 +148,7 @@ def generate_code(file, genfile, localvars={}):
print("Error: cannot compile file {}".format(genfile), file=sys.stderr)
raise
- return localvars['generated_code']
+ return re.sub(r'\n{3,}', '\n\n', localvars['generated_code'])
def generate_desugared(hlir, hlir16, filename, file_with_path):
|
note RFC. | - Can set tls authentication with forward-addr: IP#tls.auth.name
And put the public cert bundle in tls-cert-bundle: "ca-bundle.pem".
such as forward-addr: 9.9.9.9@853#dns.quad9.net or
- 1.1.1.1@853#cloudflare-dns.com
+ 1.1.1.1@853#cloudflare-dns.com (RFC 8310).
18 April 2018: Wouter
- Fix auth-zone retry timer to be on... |
tests/pup/motors/busy: Fix argument being tested.
The argument being tested no longer exists, so it was not
giving the right exception. | @@ -19,7 +19,7 @@ motor.run_target(500, 0)
# Try to change a setting. This should raise an error because the motor is busy.
try:
- motor.control.limits(duty=50)
+ motor.control.limits(torque=500)
except Exception as e:
exception = e
pass
|
mod multiplier for nomod | @@ -101,7 +101,7 @@ def diffmod(replay_info, diff):
def getmultiplier(mods):
multiplier = {Mod.Easy: 0.5, Mod.NoFail: 0.5, Mod.HalfTime: 0.3,
Mod.HardRock: 1.06, Mod.SuddenDeath: 1, Mod.Perfect: 1, Mod.DoubleTime: 1.12, Mod.Nightcore: 1.12, Mod.Hidden: 1.06, Mod.Flashlight: 1.12,
- Mod.Relax: 0, Mod.Autopilot: 0, Mod.S... |
Try some directory tweaks | @@ -9,33 +9,39 @@ jobs:
# you must check out the repository
- name: Checkout
uses: actions/checkout@v2
+ - name: Move files into workspace subdirectory
+ run: |
+ mkdir -p workspace/zmk
+ mv * workspace/zmk || true
- name: West Init
uses: ./.github/actions/zephyr-west # Uses an action in the root directory
id: west-ini... |
Change mpfit covariance scale | @@ -1033,11 +1033,16 @@ int survive_optimizer_run(survive_optimizer *optimizer, struct mp_result_struct
}
}
}
+ gemm_ABAt_add_scaled(&R_q, &G, &R_aa, 0, 1, 1, 0);
- gemm_ABAt_add_scaled(&R_q, &G, &R_aa, 0, 1,
- result->bestnorm / (optimizer->measurementsCnt - totalFreePoseCount * pose_size), 0);
+ // gemm_ABAt_add_scal... |
burn masternode pos rewardshare if masternodes are not found | @@ -3646,7 +3646,13 @@ bool CWallet::CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int
payee =GetScriptForDestination(vecMasternodes[winningNode].pubkey.GetID());
} else {
if(fDebug) { printf("CreateCoinStake() : Failed to detect masternode to pay\n"); }
- hasPayment = false;
+ // masternodes are in-el... |
Add more debug printfs. | @@ -1088,6 +1088,9 @@ _httpTLSStart(http_t *http) // I - Connection to server
_cupsMutexUnlock(&tls_mutex);
+ DEBUG_printf(("4_httpTLSStart: Using private key file '%s'.", keyfile));
+ DEBUG_printf(("4_httpTLSStart: Using certificate file '%s'.", crtfile));
+
if (!SSL_CTX_use_PrivateKey_file(context, keyfile, SSL_FILET... |
Update the description to reflect Python3 as the default interpreter | @@ -35,7 +35,7 @@ With some Linux distributions you may get the ``Failed to open port /dev/ttyUSB0
Setting up Python 3 as default for Ubuntu and Debian
----------------------------------------------------
-Ubuntu and Debian are still providing Python 2.7 as the default interpreter but some required packages may be miss... |
Fix documentation mistake about standalone problem
I guess author meant "standalone program" not "standalone problem" ?
Related: | ****************************************************************************/
/* Configuration ************************************************************/
/* CONFIG_NSH_BUILTIN_APPS - Build the I2SCHAR test as an NSH built-in
- * function. Default: Built as a standalone problem
+ * function. Default: Built as a stand... |
Add DbgDumpWithIndices for TVector to allow automatic T type deduction when passing TVector (current implementation for TConstArrayRef cannot deduce T in this case). | @@ -57,4 +57,11 @@ namespace NCB {
return NPrivate::TDbgDumpWithIndices<T>(v, onSeparateLines);
}
+ template <class T>
+ static inline NPrivate::TDbgDumpWithIndices<T> DbgDumpWithIndices(
+ const TVector<T>& v,
+ bool onSeparateLines = false
+ ) {
+ return NPrivate::TDbgDumpWithIndices<T>(v, onSeparateLines);
+ }
}
|
gpcloud: check returned body before parsing
Compatible S3 services don't always return error with XML body, check it
before parsing. | @@ -548,6 +548,14 @@ bool S3InterfaceService::abortUpload(const S3Url &s3Url, const string &uploadId)
}
S3MessageParser::S3MessageParser(const Response &resp) {
+ // Compatible S3 services don't always return XML
+ if (resp.getRawData().data() == NULL) {
+ message = "Unknown error";
+ code = "Unknown error code";
+
+ r... |
BugID:19014385:[build] improve autobuild.sh script | @@ -33,9 +33,9 @@ function do_build()
build_board=$2
build_option=$3
- app_dir="app/example/$(sed 's/\./\//g' <<< ${build_app})"
- if [ ! -d ${app_dir} ]; then
- echo "warning: ${app_dir} none exist, build ${build_app}@${build_board} ${build_option} skipped"
+ app_mkfile="app/example/$(sed 's/\./\//g' <<< ${build_app})... |
Always execute h3 cleanup path when evloop is in use
This is an alternative approach to fix h3 detection | @@ -715,16 +715,16 @@ int main(int argc, char **argv)
#endif
}
+#if H2O_USE_LIBUV
+ /* libuv path currently does not support http3 */
+#else
if (ctx.protocol_selector.ratio.http3 > 0) {
h2o_quic_close_all_connections(&ctx.http3->h3);
while (h2o_quic_num_connections(&ctx.http3->h3) != 0) {
-#if H2O_USE_LIBUV
- uv_run(ct... |
Short note on use of mkauthlist | @@ -10,7 +10,7 @@ An overview of the core cosmology library, providing routines for cosmological p
## Editing this Paper
Fork and/or clone the project repo, and then
-edit the primary file. The name of this file will vary according to its format, but it should be one of either `main.rst` (if it's a [`reStructuredText`]... |
simd: optimize some mat4 operations with neon | @@ -118,6 +118,11 @@ glm_mat4_copy(mat4 mat, mat4 dest) {
glmm_store(dest[1], glmm_load(mat[1]));
glmm_store(dest[2], glmm_load(mat[2]));
glmm_store(dest[3], glmm_load(mat[3]));
+#elif defined(CGLM_NEON_FP)
+ vst1q_f32(dest[0], vld1q_f32(mat[0]));
+ vst1q_f32(dest[1], vld1q_f32(mat[1]));
+ vst1q_f32(dest[2], vld1q_f32(... |
openjdk 11.0.4 | @@ -7,9 +7,9 @@ SET(JDK12_DARWIN sbr:1128561457)
SET(JDK12_LINUX sbr:1128737735)
SET(JDK12_WINDOWS sbr:1128743394)
# JDK 11
-SET(JDK11_DARWIN sbr:1033682443)
-SET(JDK11_LINUX sbr:1033690755)
-SET(JDK11_WINDOWS sbr:1033707515)
+SET(JDK11_DARWIN sbr:1128537472)
+SET(JDK11_LINUX sbr:1130039048)
+SET(JDK11_WINDOWS sbr:1128... |
Add pip install coveralls to Travis file | @@ -13,6 +13,7 @@ before_install:
- sudo apt-get install fftw3 fftw3-dev pkg-config
# - sudo apt-get install latexmk
- pip install numpy
+ - pip install coveralls
- ./install-gsl.sh
- python class_install.py
#addons:
|
[BSP] Remove module fature in mini2440 | #define RT_LWIP_MSKADDR "255.255.255.0"
// </section>
-// <section name="RT_USING_MODULE" description="Application module" default="true" >
-#define RT_USING_MODULE
-// <bool name="RT_USING_LIBDL" description="Using dynamic library" default="true" />
-#define RT_USING_LIBDL
-// </section>
-
-// <section name="RT_USING_... |
porting/linux: Fix missing MYNEWT_VAL define
Fixes a regression introduced in Nimble PR | #define MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM (1)
#endif
+#ifndef MYNEWT_VAL_BLE_L2CAP_COC_MTU
+#define MYNEWT_VAL_BLE_L2CAP_COC_MTU (MYNEWT_VAL_MSYS_1_BLOCK_SIZE - 8)
+#endif
+
#ifndef MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS
#define MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS (1)
#endif
|
apps/testcase/messaging : Add ommitted NULL initialization and NULL testcase
1. After free, its pointer will not be NULL, just deallocate the memory.
For testing NULL case, pointer should be set to NULL.
2. For testing coverage, add testcase for NULL check in messaging_send API | @@ -306,10 +306,12 @@ static void utc_messaging_send_sync_n(void)
TC_ASSERT_EQ_CLEANUP("messaging_send_sync", ret, ERROR, free(send_data.msg); free(reply.buf));
free(reply.buf);
+ reply.buf = NULL;
ret = messaging_send_sync(TC_SYNC_PORT, &send_data, &reply);
TC_ASSERT_EQ_CLEANUP("messaging_send_sync", ret, ERROR, free(... |
build: new FLB_STATIC_CONF parameter
this new option helps to set an absolute path to look for configuration
files that ends in .conf, for each one found the static conf generator
will create a new C array definition with it content. | @@ -48,6 +48,7 @@ option(FLB_SQLDB "Enable SQL embedded DB" No)
option(FLB_HTTP_SERVER "Enable HTTP Server" No)
option(FLB_BACKTRACE "Enable stacktrace support" Yes)
option(FLB_LUAJIT "Enable Lua Scripting support" Yes)
+option(FLB_STATIC_CONF "Build binary using static configuration")
# Metrics: Experimental Feature, ... |
tls: openssl: move tls session destroy on pending destroy | @@ -244,13 +244,6 @@ static int destroy_conn(struct flb_upstream_conn *u_conn)
if (u->flags & FLB_IO_ASYNC) {
mk_event_del(u_conn->evl, &u_conn->event);
}
-
-#ifdef FLB_HAVE_TLS
- if (u_conn->tls_session) {
- flb_tls_session_destroy(u_conn->tls, u_conn);
- }
-#endif
-
if (u_conn->fd > 0) {
flb_socket_close(u_conn->fd);... |
upgrade selftest for testing IT | @@ -106,13 +106,28 @@ result_t selftest_com(void)
******************************************************************************/
result_t selftest_ptp(void)
{
+ uint32_t start_tick = LuosHAL_GetSystick();
+
+ LuosHAL_SetPTPDefaultState(0);
+ LuosHAL_SetPTPDefaultState(1);
+ LuosHAL_PushPTP(0);
+ while (LuosHAL_GetSyst... |
Retrieve information about process UID and GID
Fix case when `foo_user` started process
and `bar_user` with `sudo` trying to
attach and than detach the unlink will be
missed in this case | @@ -134,25 +134,15 @@ attachCmd(pid_t pid, const char *on_off)
* as root. The original process can't remove the file. Ugh.
*/
if (scope_getuid() == 0) {
- char *sauid, *sagid, *eptr;
- uid_t auid, agid;
-
- if (((sauid = getenv("SUDO_UID"))) &&
- ((sagid = getenv("SUDO_GID")))) {
- auid = scope_strtol(sauid, &eptr, 10)... |
Puff: Add setup_thermal for setting thermal config
Use FW_CONFIG to set correct thermal config for different sku.
BRANCH=master
TEST=Thermal team verified thermal policy is expected. | @@ -397,6 +397,19 @@ const static struct ec_thermal_config thermal_a = {
.temp_fan_max = C_TO_K(55),
};
+const static struct ec_thermal_config thermal_b = {
+ .temp_host = {
+ [EC_TEMP_THRESH_WARN] = 0,
+ [EC_TEMP_THRESH_HIGH] = C_TO_K(78),
+ [EC_TEMP_THRESH_HALT] = C_TO_K(85),
+ },
+ .temp_host_release = {
+ [EC_TEMP_... |
started to add detection EAP types (not complete, yet) | @@ -315,12 +315,69 @@ struct exteap_frame
uint8_t code;
#define EAP_CODE_REQ 1
#define EAP_CODE_RESP 2
-#define EAP_CODE_FAIL 4
+#define EAP_CODE_SUCCESS 3
+#define EAP_CODE_FAILURE 4
+#define EAP_CODE_INITIATE 5
+#define EAP_CODE_FINISH 6
uint8_t id;
#define EAP_TYPE_ID 1
uint16_t extlen;
uint8_t exttype;
+#define EAP... |
YAMBi: Add basic MSR test | @@ -21,11 +21,38 @@ Currently this plugin requires that you install [Bison](https://www.gnu.org/soft
## Examples
+### Mappings
+
```sh
# Mount plugin
sudo kdb mount config.yaml user/tests/yambi yambi
-# Umount plugin
+kdb set user/tests/yambi/bambi 'Mule Deer'
+kdb get user/tests/yambi/bambi
+#> Mule Deer
+
+kdb set us... |
docs: jtag debugging: add macOS 10.15 FTDI details
Merges | @@ -112,10 +112,21 @@ Manually unloading the driver
sudo kextunload -b com.FTDI.driver.FTDIUSBSerialDriver
- In some cases you may need to unload Apple's FTDI driver as well::
+ In some cases you may need to unload Apple's FTDI driver as well:
+
+ * macOS < 10.15::
sudo kextunload -b com.apple.driver.AppleUSBFTDI
+ * m... |
redrix: enable usb_mux idle
Use the new API to put the mux in idle mode on suspend
BRANCH=none
TEST=BBR USB3_Connection bit is correct in S0ix/S0 | @@ -99,6 +99,13 @@ const struct usb_mux_chain usb_muxes[] = {
[USBC_PORT_C0] = {
.mux = &(const struct usb_mux) {
.usb_port = USBC_PORT_C0,
+ /*
+ * A USB-A adapter plugged into Type-C port
+ * would increase BBR power consumption, so
+ * clear USB3_Connection bit in S0ix and
+ * re-enable in S0
+ */
+ .flags = USB_MUX... |
SMP: User header should get copied while allocating a response | @@ -65,6 +65,7 @@ static void *
smp_alloc_rsp(const void *req, void *arg)
{
struct os_mbuf *m;
+ struct os_mbuf *rsp;
if (!req) {
return NULL;
@@ -72,7 +73,14 @@ smp_alloc_rsp(const void *req, void *arg)
m = (struct os_mbuf *)req;
- return os_msys_get_pkthdr(0, OS_MBUF_USRHDR_LEN(m));
+ rsp = os_msys_get_pkthdr(0, OS_M... |
lib/utils/pyexec: Update to work with new MICROPY_HW_ENABLE_USB option. | #include "py/gc.h"
#include "py/frozenmod.h"
#include "py/mphal.h"
-#if defined(USE_DEVICE_MODE)
+#if MICROPY_HW_ENABLE_USB
#include "irq.h"
#include "usb.h"
#endif
@@ -406,7 +406,7 @@ friendly_repl_reset:
for (;;) {
input_restart:
- #if defined(USE_DEVICE_MODE)
+ #if MICROPY_HW_ENABLE_USB
if (usb_vcp_is_enabled()) {
/... |
add function to map a page to a frame, so the logic can be reused | @@ -442,6 +442,10 @@ page_t* vmm_get_page_for_virtual_address(page_directory_t* dir, uint32_t virt_ad
return page;
}
+void vmm_map_page_to_frame(page_t* page, uint32_t frame_addr) {
+ page->frame = frame_addr / PAGING_FRAME_SIZE;
+}
+
page_t* vmm_page_alloc_for_phys_addr(page_directory_t* dir, uint32_t phys_addr) {
pag... |
IPSEC: rename default backend | @@ -263,7 +263,7 @@ ipsec_init (vlib_main_t * vm)
ASSERT (node);
im->error_drop_node_index = node->index;
- u32 idx = ipsec_register_ah_backend (vm, im, "default openssl backend",
+ u32 idx = ipsec_register_ah_backend (vm, im, "crypto engine backend",
"ah4-encrypt",
"ah4-decrypt",
"ah6-encrypt",
@@ -276,7 +276,7 @@ ips... |
cpeng: check for hugepages
* cpeng: check for hugepages
Add try/catch around allocate call and if an exception is caught, then
compare the byte size requested to the syttem page size. If the amount
is bigger than system page size, print more info about maybe requiring
hugepages reserved. | #include <chrono>
#include <fstream>
#include <thread>
+#include <unistd.h>
#include "afu_test.h"
#include "ofs_cpeng.h"
const char *cpeng_guid = "44bfc10d-b42a-44e5-bd42-57dc93ea7f91";
using opae::fpga::types::shared_buffer;
+using opae_exception = opae::fpga::types::exception;
using usec = std::chrono::microseconds;
... |
[mod_proxy] pass Content-Length to backend if > 0
pass Content-Length to backend if > 0, even if GET or HEAD method
(and pass Content-Length: 0 for other methods if no request body) | @@ -752,9 +752,10 @@ static handler_t proxy_create_env(server *srv, gw_handler_ctx *gwhctx) {
/* "Forwarded" and legacy X- headers */
proxy_set_Forwarded(con, hctx->conf.forwarded);
- if (HTTP_METHOD_GET != con->request.http_method
- && HTTP_METHOD_HEAD != con->request.http_method
- && con->request.content_length >= 0)... |
chip/mt_scp/rv32i_common/hrtimer.c: Format with clang-format
BRANCH=none
TEST=none | @@ -65,8 +65,8 @@ static void timer_set_reset_value(int n, uint32_t reset_value)
static void timer_set_clock(int n, uint32_t clock_source)
{
- SCP_CORE0_TIMER_EN(n) =
- (SCP_CORE0_TIMER_EN(n) & ~TIMER_CLK_SRC_MASK) | clock_source;
+ SCP_CORE0_TIMER_EN(n) = (SCP_CORE0_TIMER_EN(n) & ~TIMER_CLK_SRC_MASK) |
+ clock_source;... |
fix 50 on slider and slider arrow miss doesnt break combo | @@ -103,7 +103,7 @@ class Check:
if osr[3] > osu_d["end time"]:
if slider_d["score"] == 0:
hitresult = 0
- elif slider_d["score"] < int(slider_d["max score"]/2):
+ elif slider_d["score"] < slider_d["max score"]/2:
hitresult = 50
elif slider_d["score"] < slider_d["max score"]:
hitresult = 100
@@ -186,7 +186,6 @@ class C... |
tail: fix wrong packaging when packing a line_map (time) | @@ -115,6 +115,9 @@ static inline int pack_line_map(msgpack_sbuffer *mp_sbuf, msgpack_packer *mp_pck
file->config->path_key_len,
file->name, file->name_len);
}
+
+ msgpack_pack_array(mp_pck, 2);
+ msgpack_pack_uint64(mp_pck, time);
msgpack_sbuffer_write(mp_sbuf, *data, *data_size);
return 0;
|
Make string2ll static to avoid conflict with redis
See discussion on This should also make it easier for redis to
update the vendored/bundled hiredis (though not by much). | @@ -154,7 +154,7 @@ static char *seekNewline(char *s, size_t len) {
* Because of its strictness, it is safe to use this function to check if
* you can convert a string into a long long, and obtain back the string
* from the number without any loss in the string representation. */
-int string2ll(const char *s, size_t sl... |
Add a minimal mode build to CI | @@ -15,6 +15,10 @@ jobs:
- image_name: ubuntu-20.04
no_libc: -DCMAKE_BUILD_TYPE=Release
dev_mode: -DZYAN_DEV_MODE=ON
+ - image_name: ubuntu-20.04
+ no_libc: ""
+ dev_mode: ""
+ minimal_mode: "-DZYDIS_MINIMAL_MODE=ON -DZYDIS_FEATURE_ENCODER=OFF"
steps:
- name: Checkout
@@ -24,7 +28,7 @@ jobs:
run: |
mkdir build
cd build... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.