message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
tools: fix cmake build script for sdkconfig test | @@ -156,7 +156,7 @@ function run_tests()
idf.py build
take_build_snapshot
# need to actually change config, or cmake is too smart to rebuild
- sed -i s/CONFIG_FREERTOS_UNICORE=/CONFIG_FREERTOS_UNICORE=y/ sdkconfig
+ sed -i s/^\#\ CONFIG_FREERTOS_UNICORE\ is\ not\ set/CONFIG_FREERTOS_UNICORE=y/ sdkconfig
idf.py build
# ... |
Fix crashes with :save'd vectors in LuaJIT; | @@ -45,7 +45,7 @@ float* luax_tomathtype(lua_State* L, int index, MathType* type) {
lua_pop(L, 1);
lua_getfield(L, index, "_p");
- float* p = *(float**) lua_topointer(L, index);
+ float* p = *(float**) lua_topointer(L, -1);
lua_pop(L, 1);
return p;
}
|
Do not inherit loop struct when defining a new compiler | @@ -161,7 +161,6 @@ static void initCompiler(Parser *parser, Compiler *compiler, Compiler *parent, F
if (parent != NULL) {
compiler->class = parent->class;
- compiler->loop = parent->loop;
}
compiler->type = type;
@@ -2141,6 +2140,7 @@ static void forStatement(Compiler *compiler) {
}
static void breakStatement(Compiler... |
install-config-file: Add resolver as required plugin | @@ -25,7 +25,7 @@ endif (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
add_msr_test (tutorial_arrays "${CMAKE_SOURCE_DIR}/doc/tutorials/arrays.md")
add_msr_test (tutorial_cascading "${CMAKE_SOURCE_DIR}/doc/tutorials/cascading.md")
add_msr_test (tutorial_storage_plugins "${CMAKE_SOURCE_DIR}/d... |
Update TCP client test. | import time
import select
import socket
+from datetime import timedelta
-UPLOAD_LEN = 5*1024
-DOWNLOAD_LEN = 10*1024
+UPLOAD_LEN = 1*1024
+DOWNLOAD_LEN = 1*1024
ADDR=('192.168.1.103', 8080)
def recvall(sock, n):
@@ -31,10 +32,13 @@ s.connect(ADDR)
upload = 0
download = 0
+start_time = time.monotonic()
while (True):
s.s... |
board/nocturne/usb_pd_policy.c: Format with clang-format
BRANCH=none
TEST=none | @@ -25,8 +25,7 @@ int pd_check_vconn_swap(int port)
return gpio_get_level(GPIO_EN_5V);
}
-__override void pd_execute_data_swap(int port,
- enum pd_data_role data_role)
+__override void pd_execute_data_swap(int port, enum pd_data_role data_role)
{
int level;
@@ -96,8 +95,7 @@ int pd_set_power_supply_ready(int port)
__ov... |
fix almost zero-weights division in doc-parallel mode | @@ -131,7 +131,7 @@ namespace NKernel {
__forceinline__ __device__ void NextFeature(TCBinFeature bf) {
FeatureId = bf.FeatureId;
Score = 0;
- DenumSqr = 0;
+ DenumSqr = 1e-20f;
}
__forceinline__ __device__ void AddLeaf(double sum, double weight) {
@@ -143,7 +143,7 @@ namespace NKernel {
}
__forceinline__ __device__ flo... |
pipe: add support for non-blocking operation
This is needed by Redis (ticket | @@ -122,6 +122,10 @@ static sysreturn pipe_read_bh(pipe_file pf, thread t, void *dest, u64 length,
if (real_length == 0) {
if (pf->pipe->files[PIPE_WRITE].fd == -1)
goto out;
+ if (pf->f.flags & O_NONBLOCK) {
+ real_length = -EAGAIN;
+ goto out;
+ }
return infinity;
}
@@ -171,6 +175,10 @@ static sysreturn pipe_write_bh... |
zephyr: driver: kx022: Add CONFIG_ACCEL_KX022
The config value is needed by the common accel_kionix.c module.
BRANCH=none
TEST=zmake testall | #define CONFIG_ACCEL_BMA255
#endif
+#undef CONFIG_ACCEL_KX022
+#ifdef CONFIG_PLATFORM_EC_ACCEL_KX022
+#define CONFIG_ACCEL_KX022
+#endif
+
#undef CONFIG_ALS_TCS3400
#ifdef CONFIG_PLATFORM_EC_ALS_TCS3400
#define CONFIG_ALS_TCS3400
|
Default id when adding music | @@ -211,6 +211,8 @@ class ScriptEditor extends Component {
].id;
} else if (field.defaultValue === "LAST_FLAG") {
memo[field.key] = this.props.flags[this.props.flags.length - 1].id;
+ } else if (field.defaultValue === "LAST_MUSIC") {
+ memo[field.key] = this.props.music[0].id;
} else if (field.defaultValue !== undefine... |
h2olog: fix a crash by double-free memory
amended | @@ -299,7 +299,7 @@ static std::string do_resolve(const char *struct_type, const char *field_name, c
fprintf(mem, "#define typeof_%s %s\n", name, field_type);
fprintf(mem, "#define get_%s(st) *((const %s *) ((const char*)st + offsetof_%s))\n", name, field_type, name);
fprintf(mem, "\n");
- fclose(mem);
+ fflush(mem);
s... |
[BSP][at91sam9260] Cleanup Code. | @@ -48,6 +48,8 @@ static int rt_led_app_init(void);
int main(void)
{
+ int timeout = 0;
+
/* Filesystem Initialization */
#ifdef RT_USING_DFS
{
@@ -74,21 +76,27 @@ int main(void)
rt_mmcsd_core_init();
rt_mmcsd_blk_init();
at91_mci_init();
- rt_thread_delay(RT_TICK_PER_SECOND*2);
+ timeout = 0;
+ while ((rt_device_find(... |
Add Windows SCons builds to GitHub workflows. | @@ -6,6 +6,10 @@ on:
release:
types: [created]
+defaults:
+ run:
+ shell: bash
+
jobs:
build:
@@ -14,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-20.04]
+ os: [ubuntu-20.04, windows-2019]
scons-options: ['ARCH=x86_64']
experimental: [false]
include:
@@ -24,6 +28,9 @@ jobs:
- os: 'macos-10.15'
scons... |
Tweak docstring for math/rng-uniform | @@ -141,8 +141,7 @@ JANET_CORE_FN(cfun_rng_make,
JANET_CORE_FN(cfun_rng_uniform,
"(math/rng-uniform rng)",
- "Extract a random random integer in the range [0, max] from the RNG. If "
- "no max is given, the default is 2^31 - 1."
+ "Extract a random integer in the range [0, 1) from the RNG."
) {
janet_fixarity(argc, 1);... |
Don't prepend /proc/PID/root to user-supplied USDT binary paths starting with /proc already | @@ -279,7 +279,7 @@ std::string Context::resolve_bin_path(const std::string &bin_path) {
::free(which_so);
}
- if (!result.empty() && pid_ && *pid_ != -1) {
+ if (!result.empty() && pid_ && *pid_ != -1 && result.find("/proc") != 0) {
result = tfm::format("/proc/%d/root%s", *pid_, result);
}
|
fix update docs. Thanks to and | @@ -37,7 +37,7 @@ Option Description
============= ================================================================
**-fq2** FASTQ for second end. Used if BAM contains paired-end data.
BAM should be sorted by query name
- (``samtools sort -n aln.bam aln.qsort``) if creating
+ (``samtools sort -n -o aln.qsort.bam aln.ba... |
Fix reference bug from commit | @@ -728,7 +728,7 @@ VOID PhInitializeCapabilityGuidCache(
guidString = capabilityGuidList->Items[ii];
PhSetReference(&entry.Name, subKeyName);
- entry.CapabilityGuid = guidString;
+ PhSetReference(&entry.CapabilityGuid, guidString);
PhAddItemArray(&PhpCapGuidArrayList, &entry);
}
|
[bug fixed] add mutex values' overflow-check code | * 2020-07-29 Meco Man fix thread->event_set/event_info when received an
* event without pending
* 2020-10-11 Meco Man add semaphore values' overflow-check code
- * in the function of rt_sem_release
+ * 2020-10-21 Meco Man add mutex values' overflow-check code
*/
#include <rtthread.h>
@@ -696,11 +696,19 @@ rt_err_t rt_m... |
Remove compiler warning if only MBEDTLS_PK_PARSE_C is defined
Warning reported with IAR compiler:
"mbedtls\library\pkparse.c",1167 Warning[Pe550]: variable "ret" was set but never used | @@ -1370,8 +1370,8 @@ int mbedtls_pk_parse_key( mbedtls_pk_context *pk,
}
#endif /* MBEDTLS_PKCS12_C || MBEDTLS_PKCS5_C */
- if( ( ret = pk_parse_key_pkcs8_unencrypted_der(
- pk, key, keylen, f_rng, p_rng ) ) == 0 )
+ ret = pk_parse_key_pkcs8_unencrypted_der( pk, key, keylen, f_rng, p_rng );
+ if( ret == 0 )
{
return( ... |
fix(x: usedfont): check font to use on every zoom, not only on x init | @@ -245,7 +245,6 @@ typedef struct {
static Fontcache *frc = NULL;
static int frclen = 0;
static int frccap = 0;
-static char *usedfont = NULL;
static double usedfontsize = 0;
static double defaultfontsize = 0;
@@ -261,6 +260,12 @@ static char *opt_title = NULL;
static int oldbutton = 3; /* button event on startup: 3 =... |
Use NS_BLOCK_ASSERTIONS for SwiftPM release builds
Xcode doesn't automatically set the NS_BLOCK_ASSERTIONS flag for SwiftPM release builds.
Use cSettings to set the flag, so NSAssert doesn't crash release builds and behavior is similar to using Carthage or Cocoapods.
See for more info. | @@ -32,7 +32,8 @@ let package = Package(
name: "TrustKit",
dependencies: [],
path: "TrustKit",
- publicHeadersPath: "public"
+ publicHeadersPath: "public",
+ cSettings: [.define("NS_BLOCK_ASSERTIONS", to: "1", .when(configuration: .release))]
),
]
)
|
Fix error in strncmp() | @@ -126,7 +126,7 @@ Elektra * elektraOpen (const char * application, KeySet * defaults, KeySet * con
// All warnings are available as array items of array "warnings" in parentKey.
const Key * currentMetaKey = ksAtCursor(parentKeyMeta, metaIt);
// If the meta key name starts with "warnings", it is a warning.
- bool isWa... |
Cope with new syscall ABI. | @@ -87,10 +87,15 @@ _sys$__osx_gettimeofday:
jae .gettimeofdaysuccess
negq %rax
+ ret
.gettimeofdaysuccess:
- movq %rax, (%rdi)
+ cmpq $0,%rax
+ je .noreg
+
+ movq %rax,0(%rdi)
movl %edx,8(%rdi)
xorq %rax,%rax
+.noreg:
ret
|
Bound checks for the parameters passed to the emulator added. | @@ -972,6 +972,7 @@ static void ccl_cosmology_compute_power_emu(ccl_cosmology * cosmo, int * status)
double * xstar = malloc(9 * sizeof(double));
double * z = ccl_linear_spacing(amin,amax, na);
double * y2d = malloc(351 * na * sizeof(double));
+ double w0wacomb;
if (z==NULL || y2d==NULL || logx==NULL || xstar==NULL){
*... |
Fix crash when line of multiline text dialogue is empty | @@ -57,7 +57,7 @@ export const compile = (input, helpers) => {
textRestoreCloseSpeed();
}
- textDialogue(rowText, input.avatarId);
+ textDialogue(rowText || " ", input.avatarId);
// After first box, make open instant
if (j === 0) {
@@ -69,6 +69,6 @@ export const compile = (input, helpers) => {
}
}
} else {
- textDialog... |
add user comment | @@ -57,6 +57,6 @@ func runCmdFlags(cmd *cobra.Command, rc *run.Config) {
cmd.Flags().BoolVarP(&rc.Payloads, "payloads", "p", false, "Capture payloads of network transactions")
cmd.Flags().StringVar(&rc.Loglevel, "loglevel", "", "Set ldscope log level (debug, warning, info, error, none)")
cmd.Flags().StringVarP(&rc.Libr... |
refactors response headers | @@ -171,6 +171,25 @@ _octs_to_h2o(u3_noun oct)
return vec_u;
}
+static void
+_xx_write_header(u3_noun hed, h2o_req_t* req_u)
+{
+ u3_noun nam = u3h(hed);
+ u3_noun val = u3t(hed);
+ c3_w nam_w = u3r_met(3, nam);
+ c3_w val_w = u3r_met(3, val);
+ c3_c* nam_c = c3_malloc(nam_w);
+ c3_c* val_c = c3_malloc(val_w);
+
+ u3r_... |
pbio/trajectory: cover case speed already reached
This case was already covered because acceleration phase is skipped when t1mt0 = 0. But by making it explicit, it is easier to read the logs. | @@ -89,13 +89,20 @@ pbio_error_t make_trajectory_time_based(int32_t t0, int32_t t3, int32_t th0, int
ref->w1 = timest(a, t3mt0)/2+w0/2;
}
}
- // Initial speed is equal to or more than the target speed
- else {
+ // Initial speed is more than the target speed
+ else if (w0 > wt) {
// Therefore decelerate
ref->a0 = -a;
t... |
build: define PB_NO_PACKED_STRUCTS for nanopb not to pack structures
This commit fixes linking issues on macOS Monteray. | @@ -50,6 +50,7 @@ add_project_arguments(
]),
'-DCRITERION_BUILDING_DLL=1',
'-DPB_ENABLE_MALLOC=1',
+ '-DPB_NO_PACKED_STRUCTS=1',
'-D_GNU_SOURCE',
language: ['c', 'cpp'])
@@ -174,7 +175,7 @@ if not nanopb.found()
cmake_options: [
'-Dnanopb_BUILD_GENERATOR=OFF',
'-DBUILD_SHARED_LIBS=OFF',
- '-DCMAKE_C_FLAGS=-DPB_ENABLE_M... |
Queue save sensor state to database after Xiaomi hourly report | @@ -6993,6 +6993,8 @@ void DeRestPluginPrivate::handleZclAttributeReportIndicationXiaomiSpecial(const
if (updated)
{
updateSensorEtag(&sensor);
+ sensor.setNeedSaveDatabase(true);
+ queSaveDb(DB_SENSORS , DB_HUGE_SAVE_DELAY);
}
}
}
|
Add a bunch of todo comments to JTAG tests
[ci skip] | @@ -40,6 +40,10 @@ INST_READ_DATA = 5
INST_WRITE_DATA = 6
INST_BYPASS = 15
+# XXX need to test that the TAP powers up with the proper instruction (BYPASS)
+
+# XXX The process classes are very similar to those found in LLDB. Can these be made
+# more general and moved into test_harness.py
class VerilatorProcess(object)... |
Add movie.py to skip list since it hangs all future parallel tests. | {"category":"hybrid","file":"clonecopy.py"},
{"category":"hybrid","file":"ddf_vs_dbinning.py"},
{"category":"hybrid","file":"missingdata.py", "cases":["missingdata_0_04"]},
+ {"category":"hybrid","file":"movie.py"},
{"category":"hybrid","file":"selections.py"},
{"category":"hybrid","file":"selections_pp.py"},
{"categor... |
in_tail: fix build when FLB_REGEX is Off | @@ -415,7 +415,6 @@ static int tag_compose(char *tag, struct flb_regex *tag_regex, char *fname,
#else
static int tag_compose(char *tag, char *fname, char *out_buf, size_t *out_size,
struct flb_tail_config *ctx)
-)
#endif
{
int i;
|
apps/nshlib/nsh_parse.c: Correct an error in conditional compilation found in build testing. | @@ -217,7 +217,7 @@ static const char g_arg_separator[] = "`$";
#endif
static const char g_redirect1[] = ">";
static const char g_redirect2[] = ">>";
-#ifdef CONFIG_NSH_VARS
+#ifdef NSH_HAVE_VARS
static const char g_exitstatus[] = "?";
static const char g_success[] = "0";
static const char g_failure[] = "1";
@@ -1034,1... |
Remove required_relids from gen_implied_quals
In the commit we stopped generating implied quals for outer
joins, so we no longer need to ensure that all the relids are present.
This commit will remove the need to do a union between the new qual
scope and the relids from the outer join. | @@ -123,7 +123,6 @@ gen_implied_qual(PlannerInfo *root,
Relids new_qualscope;
ListCell *lc;
RestrictInfo *new_rinfo;
- Relids required_relids;
/* Expression types must match */
Assert(exprType(old_expr) == exprType(new_expr)
@@ -172,13 +171,11 @@ gen_implied_qual(PlannerInfo *root,
* equivalence class machinery, becaus... |
unistd: undefined is not the same as unspecified.
* ext/posix/unistd.c (Pwrite): Use precise language in the
comment describing why we detect a zero nbytes argument and
return 0 early, rather than let the C library handle it. | @@ -1232,7 +1232,7 @@ Pwrite(lua_State *L)
if (offset && lua_type(L, 3) == LUA_TNIL)
nbytes = buflen - offset;
- /* calling write with nbytes `0` can cause undefined behaviour */
+ /* calling write with nbytes `0` may cause unspecified behaviour */
if (nbytes == 0)
return pushintresult(0);
|
peview: Update loadconfig properties | @@ -139,6 +139,35 @@ INT_PTR CALLBACK PvpPeLoadConfigDlgProc(
ADD_VALUE(L"CFG LongJump table entry count", PhaFormatUInt64((Config)->GuardLongJumpTargetCount, TRUE)->Buffer); \
} \
} \
+ \
+ if (RTL_CONTAINS_FIELD((Config), (Config)->Size, CodeIntegrity)) \
+ { \
+ ADD_VALUE(L"CI flags", PhaFormatString(L"0x%x", (Confi... |
[libc] Use correct header file for newlib. | #ifndef LIBC_FCNTL_H__
#define LIBC_FCNTL_H__
+#ifdef RT_USING_NEWLIB
+#include <fcntl.h>
+
+#ifndef O_NONBLOCK
+#define O_NONBLOCK 04000
+#endif
+
+#else
#define O_RDONLY 00
#define O_WRONLY 01
#define O_RDWR 02
#define F_GETOWN_EX 16
#define F_GETOWNER_UIDS 17
+#endif
#endif
+
|
Update README.md
So people dont have to read docs just to compile (=primary purpose of this repo, a compiler) | @@ -8,6 +8,19 @@ and features you may find familiar from languages like like rust and ocaml.
This combination makes Myrddin suitable for anything ranging from desktop
applications, to embedded systems and potentially even kernel development.
+## Build
+
+Compile with ./configure --prefix="/home/wherever/I/want" && make... |
bugfix(i2c): fix esp32-s2 i2c driver UT issue | @@ -100,8 +100,8 @@ static inline void i2c_ll_rxfifo_rst(i2c_dev_t *hw)
static inline void i2c_ll_set_scl_timing(i2c_dev_t *hw, int hight_period, int low_period)
{
hw->scl_low_period.period = low_period;
- hw->scl_high_period.period = hight_period*0.6;
- hw->scl_high_period.scl_wait_high_period = hight_period*0.4-1;
+ ... |
Fix: grammatical & aesthetic changes
JIRA | @@ -15,8 +15,8 @@ Notes
- It is not a real-time stack. One write operation might take much longer than another.
- For now, it does not detect or handle bad blocks.
- SPIFFS is able to reliably utilize only around 75% of assigned partition space.
- - When the filesystem is running out of space, the garbage collector is ... |
Update Gatt_Client_Example_Walkthrough.md
Closes
Closes | @@ -437,7 +437,7 @@ esp_log_buffer_hex(GATTC_TAG, gl_profile_tab[PROFILE_A_APP_ID].remote_bda,
sizeof(esp_bd_addr_t));
```
-The typical MTU size for a Bluetooth 4.0 connection is 23 bytes. A client can change the size of MUT, using `esp_ble_gattc_send_mtu_req()` function, which takes the GATT interface and the connecti... |
Metadata: Remove outdated information | @@ -238,7 +238,7 @@ type= enum
empty
string
status= implemented
-usedby/plugin= cpptype range type
+usedby/plugin= range type
description= defines the type of the value, as specified in CORBA
Unlike check/type, type is also used for code generation and within the APIs
example= any
@@ -770,7 +770,7 @@ type= enum
FSType
... |
sysdeps/managarm: fix sys_sockname on early posix returns | @@ -140,7 +140,6 @@ int sys_sockname(int fd, struct sockaddr *addr_ptr, socklen_t max_addr_length,
HEL_CHECK(offer.error());
HEL_CHECK(send_req.error());
HEL_CHECK(recv_resp.error());
- HEL_CHECK(recv_addr.error());
managarm::fs::SvrResponse<MemoryAllocator> resp(getSysdepsAllocator());
resp.ParseFromArray(recv_resp.da... |
[core] perf: small improvement buffer_string_space | @@ -201,7 +201,7 @@ static inline size_t buffer_string_length(const buffer *b) {
}
static inline size_t buffer_string_space(const buffer *b) {
- return NULL != b && b->size ? b->size - b->used - (0 == b->used) : 0;
+ return NULL != b && b->size ? b->size - (b->used | (0 == b->used)) : 0;
}
static inline void buffer_app... |
cpu: Fix not reporting amd cpu power | @@ -570,7 +570,8 @@ bool CPUStats::InitCpuPowerData() {
break;
}
}
- } else {
+ }
+ if (!cpuPowerData && !intel) {
auto powerData = std::make_unique<CPUPowerData_amdgpu>();
cpuPowerData = (CPUPowerData*)powerData.release();
}
|
update buildroot sed | @@ -70,7 +70,7 @@ export PATH=${LMOD_DIR}:${PATH}
MODULEPATH= python ./bootstrap_eb.py %{buildroot}/%{install_path}
-sed -i 's|%{buildroot}||g' %{buildroot}%{install_path}/modules/all/EasyBuild/%{version}
+sed -i 's|%{buildroot}||g' $(egrep -IR '%{buildroot}%{install_path}/modules/all/EasyBuild' ./|awk -F : '{print $1}... |
backup: extend fixture test
Check the decoded name. This is a quick sanity check that strings
encoded by nanopb in C can be decoded correctly. | @@ -197,8 +197,29 @@ mod tests {
/// should catch regressions when changing backup loading/verification in the firmware code.
#[test]
fn test_fixture() {
+ static mut UI_COUNTER: u32 = 0;
+ static EXPECTED_ID: &str =
+ "577782fdfffbe314b23acaeefc39ad5e8641fba7e7dbe418a35956a879a67dd2";
mock(Data {
sdcard_inserted: Some... |
Fix message in XML declaration handler | @@ -3007,7 +3007,7 @@ xml_decl_handler(void *userData,
if (userData != handler_data)
fail("User data (xml decl) not correctly set");
if (standalone != -1)
- fail("Standalone not show as not present");
+ fail("Standalone not flagged as not present in XML decl");
xdecl_count++;
}
|
misc-gtk.c: consistent indentation | @@ -784,7 +784,8 @@ display_cached_logs (void)
}
char *
-get_image_path (char *filename) {
+get_image_path (char *filename)
+{
char *path1 = NULL, *path2 = NULL, *found = NULL;
// see lib/misc.c -> gftp_get_share_dir ()
|
ssl test build_transforms(): in psa mode distinguish encrypt/decrypt keys | @@ -1448,7 +1448,7 @@ static int build_transforms( mbedtls_ssl_transform *t_in,
if ( alg != MBEDTLS_SSL_NULL_CIPHER )
{
- psa_set_key_usage_flags( &attributes, PSA_KEY_USAGE_ENCRYPT | PSA_KEY_USAGE_DECRYPT );
+ psa_set_key_usage_flags( &attributes, PSA_KEY_USAGE_ENCRYPT );
psa_set_key_algorithm( &attributes, alg );
psa... |
Restructured ++down to be slightly prettier. | :: ::
++ down :: parse inline flow
%+ knee *(list manx) |. ~+
- %+ cook
+ =- (cook - work)
:: collect raw flow into xml tags
::
|= gaf/(list graf)
:: nap: collected words
:: max: collected tags
::
- =| fip/(list tape)
- =| max/(list manx)
- =< (flop max:main)
- |% ::
- ++ fill %_ . :: unify text block
- max :_(max (clu... |
pem_read_bio_key_legacy: Do not obscure real error if there is one
Fixes | @@ -171,7 +171,8 @@ static EVP_PKEY *pem_read_bio_key_legacy(BIO *bp, EVP_PKEY **x,
}
p8err:
- if (ret == NULL)
+ if (ret == NULL && ERR_peek_last_error() == 0)
+ /* ensure some error is reported but do not hide the real one */
ERR_raise(ERR_LIB_PEM, ERR_R_ASN1_LIB);
err:
OPENSSL_secure_free(nm);
|
da1469x_m33_sleep: fix for restore of IPR | @@ -208,8 +208,8 @@ da1469x_m33_wakeup:
add r1, r0, NVIC_IPR_OFFSET
ldmia r3!, {r4-r5}
stmia r0!, {r4-r5}
- ldmia r3, {r0, r2, r4-r12}
- stmia r1!, {r0, r2, r4-r12}
+ ldmia r3!, {r0, r2, r4-r12}
+ stmia r1, {r0, r2, r4-r12}
/* Restore SCB state */
ldmia r3!, {r4-r10}
|
doc: add cache clear metadata | @@ -1364,3 +1364,9 @@ type = string
usedby/plugins = type
description = overrides the allowed false value for this key. Only the given value or 0 will be allowed as false. All false keys will be restored to this value in `kdbSet`.
Must be used together with check/boolean/true.
+
+[cache/clear]
+status = implemented
+us... |
SSL_CTX_use_PrivateKey_file uses private key, not certificate | @@ -103,7 +103,7 @@ SSL_use_PrivateKey_ASN1() and SSL_use_RSAPrivateKey_ASN1() add the private
key to B<ssl>.
SSL_CTX_use_PrivateKey_file() adds the first private key found in
-B<file> to B<ctx>. The formatting B<type> of the certificate must be specified
+B<file> to B<ctx>. The formatting B<type> of the private key mu... |
ExtendedTools: Fix incorrect graph height calculation | @@ -185,7 +185,7 @@ VOID GpuPropLayoutGraphs(
//clientRect.bottom = panelRect.top + 10; // +10 removing extra spacing
graphWidth = clientRect.right - margin.left - margin.right;
- graphHeight = (clientRect.bottom - margin.top - margin.bottom - between * 4) / 4;
+ graphHeight = (clientRect.bottom - margin.top - margin.b... |
YANG printer BUGFIX missing opening tag for typedefs/groupings in grouping | @@ -1032,10 +1032,12 @@ yprp_grouping(struct ypr_ctx *ctx, const struct lysp_grp *grp)
ypr_reference(ctx, grp->ref, grp->exts, &flag);
LY_ARRAY_FOR(grp->typedefs, u) {
+ ypr_open(ctx->out, &flag);
yprp_typedef(ctx, &grp->typedefs[u]);
}
LY_ARRAY_FOR(grp->groupings, u) {
+ ypr_open(ctx->out, &flag);
yprp_grouping(ctx, &... |
doc: update security advisory for 1.6.1 release
Update mitigations for security vulnerabilities
for ACRN 1.6.1 release | Security Advisory
#################
+Addressed in ACRN v1.6.1
+************************
+
+We recommend that all developers upgrade to this v1.6.1 release (or later), which
+addresses the following security issue that was discovered in previous releases:
+
+------
+
+- Service VM kernel Crashes When Fuzzing HC_ASSIGN_P... |
Fix links broken by non-standard version.
Using version 2.15.1 fixed the duplicate tarball problem but broke the auto-generated links. Fix them manually since this should not be a common problem.
Reported by Mohamad El-Rifai. | pgBackRest aims to be a simple, reliable backup and restore solution that can seamlessly scale up to the largest databases and workloads by utilizing algorithms that are optimized for database-specific requirements.
-pgBackRest [v2.15](https://github.com/pgbackrest/pgbackrest/releases/tag/release/2.15) is the current s... |
Fix ICache SPAD base addr to avoid conflicts with default SerialTL mem | @@ -141,7 +141,7 @@ class WithNPerfCounters(n: Int = 29) extends Config((site, here, up) => {
class WithRocketICacheScratchpad extends Config((site, here, up) => {
case RocketTilesKey => up(RocketTilesKey, site) map { r =>
- r.copy(icache = r.icache.map(_.copy(itimAddr = Some(0x100000 + r.hartId * 0x10000))))
+ r.copy(... |
Coverity fix uninitialised memory access. | @@ -393,9 +393,9 @@ static int ffc_params_fips186_2_gen_validate_test(void)
FFC_PARAMS params;
BIGNUM *bn = NULL;
+ ffc_params_init(¶ms);
if (!TEST_ptr(bn = BN_new()))
goto err;
- ffc_params_init(¶ms);
if (!TEST_true(ffc_params_FIPS186_2_generate(NULL, ¶ms, FFC_PARAM_TYPE_DH,
1024, 160, NULL, &res, NULL)))
... |
Update Character.cs
add shield percentage value offset | @@ -47,6 +47,7 @@ namespace FFXIVClientStructs.FFXIV.Client.Game.Character
[FieldOffset(0x195C)] public ushort CurrentWorld;
[FieldOffset(0x195E)] public ushort HomeWorld;
[FieldOffset(0x197F)] public byte Icon;
+ [FieldOffset(0x1997)] public byte ShieldValue;
[FieldOffset(0x19A0)] public byte StatusFlags;
[MemberFunct... |
Makefile: build default acrn.efi with nuc6cayh
To be back compatible, the default acrn.efi should be built when
BOARD param is nuc6cayh, because apl-nuc was overridden to nuc6cayh
in acrn-hypervisor/Makefile; | @@ -91,7 +91,7 @@ all: $(EFIBIN)
install: $(EFIBIN) install-conf
install -D $(EFIBIN) $(DESTDIR)/usr/lib/acrn/$(HV_FILE).$(BOARD).$(SCENARIO).efi
# this is to keep the compatible with original output files
-ifeq ($(BOARD), apl-nuc)
+ifeq ($(BOARD), nuc6cayh)
ifeq ($(SCENARIO), sdc)
install -D $(EFIBIN) $(DESTDIR)/usr/l... |
conn: don't send roc | @@ -542,8 +542,6 @@ _conn_moor_poke(void* ptr_v, c3_d len_d, c3_y* byt_y)
//
_conn_send_noun(can_u, u3nc(u3k(rid), c3y));
u3_pier_cram(con_u->car_u.pir_u);
- // TODO: send roc?
- //
break;
}
case c3__meld: {
|
Update: NAR.py: minor fixes regarding returning the proper punctuation in answers and including revisions in the returned derivations | @@ -20,7 +20,7 @@ def parseTask(s):
s = s.replace(" :|:","")
if "occurrenceTime" in s:
M["occurrenceTime"] = s.split("occurrenceTime=")[1].split(" ")[0]
- sentence = s.split(" occurrenceTime=")[0] if " occurrenceTime=" in s else s.split(" Priority=")[0]
+ sentence = s.split(" occurrenceTime=")[0] if " occurrenceTime=" ... |
docs: Modified three priority descriptions
Fix issue | @@ -30,19 +30,17 @@ There really are no special requirements for the operating system. Generally BoA
1. Support dynamic memory allocation / free.
2. Support mutual exclusion (mutex) protection mechanism.
3. Supports thread suspension for a specified duration (optional). If not, BoAT does not support timeout or polling ... |
codegen: fix test | @@ -39,7 +39,7 @@ do_tests() {
succeed_if "application didn't read empty menu correctly"
EXPECTED_MENU=$(mktemp)
- cat <<- 'EOF'
+ cat > "$EXPECTED_MENU" <<- 'EOF'
Main Menu:
[1] Menu 1
|
esp_system: FIx TWDT SMP FreeRTOS unicore build error
When configNUM_CORES = 1, vTaskCoreAffinityGet() is not defined. This
commit fixes the TWDT to omit calls to vTaskCoreAffinityGet() when building
for unicore. | @@ -346,9 +346,14 @@ static void task_wdt_isr(void *arg)
if (!entry->has_reset) {
if (entry->task_handle) {
#if CONFIG_FREERTOS_SMP
- UBaseType_t uxCoreAffinity = vTaskCoreAffinityGet(entry->task_handle);
- ESP_EARLY_LOGE(TAG, " - %s (0x%x)", pcTaskGetName(entry->task_handle), uxCoreAffinity);
-#else
+#if configNUM_COR... |
Add the DSA serializers to the default provider tools
The DSA serializers are implemented, but didn't get added to the
default provider's serializer algorithm table.
Fixes | @@ -432,6 +432,27 @@ static const OSSL_ALGORITHM deflt_serializer[] = {
dh_param_pem_serializer_functions },
#endif
+#ifndef OPENSSL_NO_DSA
+ { "DSA", "default=yes,format=text,type=private",
+ dsa_priv_text_serializer_functions },
+ { "DSA", "default=yes,format=text,type=public",
+ dsa_pub_text_serializer_functions },
... |
Improved CI script. | @@ -164,12 +164,12 @@ EOF\""
# ====== Fedora: set up compiler ===================================
if [ "${TOOL}" == "compile" ] ; then
ci/retry -t ${RETRY_MAXTRIALS} -p ${RETRY_PAUSE} -- sudo docker exec ${CONTAINER} env LANG=C.UTF-8 \
- dnf install -y make clang ${FEDORA_DEPS}
+ dnf install -y --allowerasing make clan... |
Fix vrapi missing Oculus Go device type;
Backported the OCULUSGO device type enumerant. Need to test to
determine if the Oculus Go still reports this device type or if
it just reports unknown.
A more involved fix will be to use JNI to discover the build model
from the Android settings. | #pragma clang diagnostic pop
#define GL_SRGB8_ALPHA8 0x8C43
+#define VRAPI_DEVICE_TYPE_OCULUSGO 64
// Private platform functions
JNIEnv* lovrPlatformGetJNI(void);
@@ -57,9 +58,10 @@ static struct {
static bool vrapi_init(float offset, uint32_t msaa) {
ANativeActivity* activity = lovrPlatformGetActivity();
+ JNIEnv* jni... |
Use old version range syntax to increase compatibility. | @@ -178,17 +178,17 @@ class CelixConan(ConanFile):
# libffi/3.3@zhengpeng/testing is a workaround of the following buggy commit:
# https://github.com/conan-io/conan-center-index/pull/5085#issuecomment-847487808
#self.requires("libffi/3.3@zhengpeng/testing")
- self.requires("libffi/[~3.2.1]")
+ self.requires("libffi/[>=... |
SOVERSION bump to version 2.20.32 | @@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 20)
-set(LIBYANG_MICRO_SOVERSION 31)
+set(LIBYANG_MICRO_SOVERSION 32)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG... |
Fix chip/stm32l562xx_rcc.c:78:20: error: unused function 'rcc_reset' | * Private Functions
****************************************************************************/
-/****************************************************************************
- * Name: rcc_reset
- *
- * Description:
- * Reset the RCC clock configuration to the default reset state
- *
- *******************************... |
apps/examples/nxlines/nxlines_bkgd.c: Fix a bad, copy-paste comment. | @@ -205,7 +205,7 @@ static void nxlines_kbdin(NXWINDOW hwnd, uint8_t nch, FAR const uint8_t *ch,
* Name: nxlines_test
*
* Description:
- * Print "Hello, World!" in the center of the display.
+ * Update line motion.
*
****************************************************************************/
|
timer: fix unit test regression | @@ -288,8 +288,7 @@ esp_err_t timer_init(timer_group_t group_num, timer_idx_t timer_num, const timer
timer_hal_set_divider(&(p_timer_obj[group_num][timer_num]->hal), config->divider);
timer_hal_set_counter_increase(&(p_timer_obj[group_num][timer_num]->hal), config->counter_dir);
timer_hal_set_alarm_enable(&(p_timer_obj... |
[cfg] Fix typos when parsing CFG infos in PE load config
There was some uninspired copy-pastes when adding support for CFG parsing
for wow64 PE. | @@ -1277,7 +1277,7 @@ NTSTATUS PhGetMappedImageCfg64(
CfgConfig->NumberOfGuardAdressIatEntries = config64->GuardAddressTakenIatEntryCount;
CfgConfig->GuardAdressIatTable = PhMappedImageRvaToVa(
MappedImage,
- (ULONG)(config64->GuardAddressTakenIatEntryTable - MappedImage->NtHeaders->OptionalHeader.ImageBase),
+ (ULONG)... |
Remove some old comments. | @@ -63,17 +63,6 @@ func initPressureSensor() (ok bool) {
}
//TODO westphae: make bmp180.go to fit bmp interface
- //for i := 0; i < 5; i++ {
- // myBMPX80 = bmp180.New(i2cbus)
- // _, err := myBMPX80.Temperature() // Test to see if it works, since bmp180.New doesn't return err
- // if err != nil {
- // time.Sleep(250 *... |
sanitizers: promote char to unsigned char first for isspace(int) | @@ -183,7 +183,7 @@ size_t sanitizers_parseReport(run_t* run, pid_t pid, funcs_t* funcs, uint64_t* p
} else {
char* pLineLC = lineptr;
/* Trim leading spaces */
- while (*pLineLC != '\0' && isspace((int)*pLineLC)) {
+ while (*pLineLC != '\0' && isspace((unsigned char)*pLineLC)) {
++pLineLC;
}
|
test: add platon test case test_006GetBalance_0002GetWalletDefaultAddressSuccess
fix the issue aitos-io#1141
teambition task id | @@ -55,6 +55,36 @@ START_TEST(test_006GetBalance_0001GetSuccess)
}
END_TEST
+START_TEST(test_006GetBalance_0002GetWalletDefaultAddressSuccess)
+{
+ BOAT_RESULT result;
+ BoatPlatONTx tx_ctx;
+ BCHAR *cur_balance_wei = NULL;
+ BoatFieldVariable parse_result = {NULL, 0};
+
+ BoatIotSdkInit();
+
+ result = platonWalletPre... |
VERSION bump to version 2.2.11 | @@ -65,7 +65,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 2)
set(SYSREPO_MINOR_VERSION 2)
-set(SYSREPO_MICRO_VERSION 10)
+set(SYSREPO_MICRO_VERSION 11)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
ioam: fix coverity warning/NULL dereference
Add a NULL check and missing array index to avoid multiple NULL
derefences.
Runnning:
set ioam ip6 sr-tunnel-select disable
on a fresh VPP no longer crashes.
Type: fix | @@ -608,6 +608,8 @@ ioam_cache_ts_table_destroy (vlib_main_t * vm)
int i;
/* free pool and hash table */
+ if (cm->ioam_ts_pool)
+ {
for (i = 0; i < no_of_threads; i++)
{
pool_foreach (entry, cm->ioam_ts_pool[i])
@@ -615,10 +617,11 @@ ioam_cache_ts_table_destroy (vlib_main_t * vm)
ioam_cache_ts_entry_free (i, entry, cm... |
Update s2n_public_random with better variable name to be clear the paramter is exclusive | @@ -166,11 +166,14 @@ int s2n_get_urandom_data(struct s2n_blob *blob)
return 0;
}
-int64_t s2n_public_random(int64_t max)
+/*
+ * Return a random number in the range [0, bound)
+ */
+int64_t s2n_public_random(int64_t bound)
{
uint64_t r;
- gt_check(max, 0);
+ gt_check(bound, 0);
while (1) {
struct s2n_blob blob = {.dat... |
Don't ever call Py_SetPythonHome() on Windows. | @@ -2203,6 +2203,17 @@ void wsgi_python_init(apr_pool_t *p)
}
#if defined(WIN32)
+#if defined(WIN32_PYTHON_VENV_IS_BROKEN)
+ /*
+ * XXX Python new style virtual environments break Python embedding
+ * API for Python initialisation on Windows. So disable this code as
+ * any attempt to call Py_SetPythonHome() with locat... |
Remove mention of the version number from pg_trgm docs
We don't usually mention the version number in similar situations. So, neither
mention it here.
Reported-by: Bruce Momjian
Discussion: | the purpose of very fast similarity searches. These index types support
the above-described similarity operators, and additionally support
trigram-based index searches for <literal>LIKE</literal>, <literal>ILIKE</literal>,
- <literal>~</literal> and <literal>~*</literal> queries. Beginning in
- <productname>PostgreSQL<... |
Add description to documented functions | @@ -22,6 +22,7 @@ module Foreign.Lua.Call
-- * Operators
, (<#>)
, (=#>)
+ , (#?)
-- * Documentation
, FunctionDoc (..)
, ParameterDoc (..)
@@ -75,7 +76,8 @@ data HaskellFunction = HaskellFunction
-- | Documentation for a Haskell function
data FunctionDoc = FunctionDoc
- { parameterDocs :: [ParameterDoc]
+ { functionDe... |
small bugfix in counter | @@ -323,9 +323,9 @@ for(l1 = 4; l1 <= essidlenin; l1++)
writepsk(essidstr);
if(l1 < 60)
keywriteessidyear(essidstr);
- if((l1 > 7) && (l1 < 63))
+ if((l1 > 6) && (l1 < 63))
keywriteessiddigitx(essidstr);
- if((l1 > 6) && (l1 < 62))
+ if((l1 > 5) && (l1 < 62))
keywriteessiddigitxx(essidstr);
}
}
|
host/mesh: Add VA flag to generic pending flags
This adds BT_MESH_SETTINGS_VA_PENDING to GENERIC_PENDING_BITS
as it should be stored by CONFIG_BT_MESH_STORE_TIMEOUT.
This is port of | @@ -93,7 +93,8 @@ static int mesh_commit(void)
BIT(BT_MESH_SETTINGS_APP_KEYS_PENDING) | \
BIT(BT_MESH_SETTINGS_HB_PUB_PENDING) | \
BIT(BT_MESH_SETTINGS_CFG_PENDING) | \
- BIT(BT_MESH_SETTINGS_MOD_PENDING))
+ BIT(BT_MESH_SETTINGS_MOD_PENDING) | \
+ BIT(BT_MESH_SETTINGS_VA_PENDING))
void bt_mesh_settings_store_schedule(e... |
config: release parsers_file ref if set on exit | @@ -171,6 +171,10 @@ void flb_config_exit(struct flb_config *config)
flb_log_stop(config->log, config);
}
+ if (config->parsers_file) {
+ flb_free(config->parsers_file);
+ }
+
if (config->kernel) {
flb_free(config->kernel->s_version.data);
flb_free(config->kernel);
@@ -330,6 +334,7 @@ int flb_config_set_property(struct... |
toml: Fixed implicit call | extern int yyparse (Driver * driver);
extern int yylineno;
extern void initializeLexer (FILE * file);
+extern void clearLexer (void);
static Driver * createDriver (Key * parent, KeySet * keys);
static void destroyDriver (Driver * driver);
|
Add check for new lines in VERSION. | @@ -60,6 +60,7 @@ set(META_AUTHOR_MAINTAINER "vic798@gmail.com")
# Parse version
file(READ VERSION META_VERSION)
+string(REPLACE "\n" "" META_VERSION ${META_VERSION})
string(REPLACE "." ";" META_VERSION_LIST ${META_VERSION})
list(GET META_VERSION_LIST 0 META_VERSION_MAJOR)
list(GET META_VERSION_LIST 1 META_VERSION_MINO... |
Tests: check unique options in "action" object. | @@ -294,6 +294,56 @@ class TestRouting(TestApplicationProto):
'route pass absent configure',
)
+ def test_routes_action_unique(self):
+ self.assertIn(
+ 'success',
+ self.conf(
+ {
+ "listeners": {
+ "*:7080": {"pass": "routes"},
+ "*:7081": {"pass": "applications/app"},
+ },
+ "routes": [{"action": {"proxy": "http://1... |
os/board/rtl8721csm : Support Single channel scan
Modified the scan implementation to support, Full scan/Scan with SSID/Scan with channel/Scan with SSID in specific channel | @@ -485,7 +485,22 @@ trwifi_result_e wifi_netmgr_utils_scan_ap(struct netdev *dev, trwifi_scan_config
g_scan_num = 0;
g_scan_list = NULL;
if (config) {
- if (config->ssid_length > 0) {
+ if ((config->channel >= 1) && (config->channel <= 13)) {
+ uint32_t channel;
+ uint8_t pscan_config;
+ if (config->ssid_length == 0) ... |
Retrieve device serial for AOA
The serial is necessary to find the correct Android device for AOA.
If it is not explicitly provided by the user via -s, then execute "adb
getserialno" to retrieve it. | @@ -436,7 +436,23 @@ scrcpy(struct scrcpy_options *options) {
if (options->keyboard_input_mode == SC_KEYBOARD_INPUT_MODE_HID) {
#ifdef HAVE_AOA_HID
bool aoa_hid_ok = false;
- if (!sc_aoa_init(&s->aoa, options->serial)) {
+
+ char *serialno = NULL;
+
+ const char *serial = options->serial;
+ if (!serial) {
+ serialno = ... |
libopae++: add copy ctor/=op to port_error
Also make `value()` function const | @@ -38,10 +38,19 @@ class port_error : public std::exception
{
public:
port_error(uint64_t err);
+ port_error(const port_error & other)
+ : err_(other.err_)
+ {
+ }
+ port_error & operator=(const port_error & other)
+ {
+ if(this != &other) err_ = other.err_;
+ return *this;
+ }
static uint64_t read(uint8_t socket_id);... |
reset: use bare (default) files | @@ -18,12 +18,12 @@ if [ "$1" != "-f" ]; then
fail "This is a very dangerous operation, read the man page first"
fi
+"$KDB" reset-elektra -f
+
KDBSYSTEM=$("$KDB" file system)
KDBUSER=$("$KDB" file user)
KDBSPEC=$("$KDB" file spec)
-"$KDB" reset-elektra -f
-
"$KDB" rm -rf --without-elektra system || rm -f "$KDBSYSTEM"
"... |
Update hydcoeffs.c
Only an Active PSV needs to preserve connectivity. | @@ -62,7 +62,6 @@ static void tcvcoeff(Project *pr, int k);
static void prvcoeff(Project *pr, int k, int n1, int n2);
static void psvcoeff(Project *pr, int k, int n1, int n2);
static void fcvcoeff(Project *pr, int k, int n1, int n2);
-static void valveconnectcoeffs(Project *pr, int k, int n1, int n2);
void resistcoeff(... |
Fix Enabling Masternode Checks | @@ -3608,7 +3608,7 @@ bool CWallet::CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int
// Masternode Payments
int payments = 1;
// start masternode payments
- bool bMasterNodePayment = true; // note was false, set true to test
+ bool bMasterNodePayment = false;
if (fTestNet){
if (GetTime() > START_MASTE... |
Update include/mbedtls/mbedtls_config.h | /**
* \def MBEDTLS_PKCS7_C
*
- * This feature is a work in progress and not ready for production. The API may
- * change. Testing and validation is incomplete.
+ * This feature is a work in progress and not ready for production. Testing and
+ * validation is incomplete, and handling of malformed inputs may not be robus... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.