message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
framework/task_manager: Fix memory leak possibility and dereferencing in task_manager_set_callback
WID:8164247 Pointer '&request_msg.data->cb_data' is dereferenced at task_manager_set_callback.c:190 after
the referenced memory was deallocated at task_manager_set_callback.c:189 by calling function 'free'. | @@ -185,14 +185,16 @@ int task_manager_set_broadcast_cb(int msg, void (*func)(void *user_data, void *d
TM_ASPRINTF(&request_msg.q_name, "%s%d", TM_PRIVATE_MQ, request_msg.caller_pid);
if (request_msg.q_name == NULL) {
- TM_FREE(request_msg.data);
+ TM_FREE(((tm_msg_t *)((tm_broadcast_info_t *)request_msg.data)->cb_data... |
[kernel] swap in Memory the initial state following removing preUpdate | @@ -129,18 +129,9 @@ void SchatzmanPaoliOSI::initializeDynamicalSystem( double t, SP::DynamicalSystem
//*velocity=*velocity; we do nothing for the velocity
- // This value will swapped when OneStepIntegrator::saveInMemory will be called
- // by the rest of Simulation::initialize (_eventsManager->preUpdate();)
-
- // SP... |
fix(test-discord-ws.c): should immediatelly exit spam loop after on_stop() | @@ -36,14 +36,19 @@ void on_spam(
{
if (msg->author->bot) return;
+ pthread_mutex_lock(&g_lock);
+ g_keep_spamming = true;
+ pthread_mutex_unlock(&g_lock);
+
char number[256];
struct discord_create_message_params params={0};
bool keep_alive = true;
- for (int i=0 ; keep_alive ; ++i) {
+ for (int i=0 ;; ++i) {
pthread_m... |
fix(gradient): remove invalid decision branches | @@ -86,8 +86,6 @@ static lv_grad_t * next_in_cache(lv_grad_t * item)
if(item == NULL)
return (lv_grad_t *)LV_GC_ROOT(_lv_grad_cache_mem);
- if(item == NULL)
- return NULL;
size_t s = get_cache_item_size(item);
/*Compute the size for this cache item*/
|
Use correct data type for class Data | @@ -103,7 +103,7 @@ DNAME_INLINE_LEN = 255 # linux/dcache.h
class Data(ct.Structure):
_fields_ = [
- ("pid", ct.c_ulonglong),
+ ("pid", ct.c_uint),
("delta", ct.c_ulonglong),
("comm", ct.c_char * TASK_COMM_LEN),
("fname", ct.c_char * DNAME_INLINE_LEN)
|
doc: add 1.6 to doc version menu
Update doc version choice selector with the 1.6 release | @@ -186,6 +186,7 @@ else:
html_context = {
'current_version': current_version,
'versions': ( ("latest", "/latest/"),
+ ("1.6", "/1.6/"),
("1.5", "/1.5/"),
("1.4", "/1.4/"),
("1.3", "/1.3/"),
|
dpdk: Fixed QAT devices binding, bind the VFs only | @@ -1125,8 +1125,12 @@ dpdk_bind_devices_to_uio (dpdk_config_main_t * conf)
/* vmxnet3 */
else if (d->vendor_id == 0x15ad && d->device_id == 0x07b0)
;
- /* all Intel devices */
- else if (d->vendor_id == 0x8086)
+ /* all Intel network devices */
+ else if (d->vendor_id == 0x8086 && d->device_class == PCI_CLASS_NETWORK_... |
Cache managers in ServiceManager
To guarantee that we instantiate services only one, cache the value the
first time. | @@ -8,6 +8,11 @@ import java.lang.reflect.Method;
public class ServiceManager {
private final Method getServiceMethod;
+ private WindowManager windowManager;
+ private DisplayManager displayManager;
+ private InputManager inputManager;
+ private PowerManager powerManager;
+
public ServiceManager() {
try {
getServiceMet... |
consolidate centos-7 template patch | if ($module_count > 0) {
&nprint("Number of drivers included in bootstrap: $module_count\n");
&dprint("Running depmod\n");
---- /dev/null 2014-11-04 13:58:13.352043839 -0500
-+++ warewulf-vnfs-3.6.patch/libexec/wwmkchroot/centos-7.tmpl 2014-11-04 17:56:31.879873659 -0500
-@@ -0,0 +1,24 @@
-+#DESC: A clone of Red Hat En... |
stm32l4: Typo fix | @@ -394,7 +394,7 @@ time_t _stm32_pwrEnterLPStop(time_t ms)
int slept = 0;
unsigned int t;
- _stm32_rtcSetAlarm(ms)
+ _stm32_rtcSetAlarm(ms);
/* Set internal regulator to default range to further conserve power */
_stm32_pwrSetCPUVolt(1);
|
[numerics] correct old bug | @@ -86,7 +86,7 @@ void lcp_nsgs_SBM(LinearComplementarityProblem* problem, double *z, double *w, i
/* Global Solver parameters*/
int itermax = options[0].iparam[SICONOS_IPARAM_MAX_ITER];
- double tolerance = options[0].iparam[SICONOS_DPARAM_TOL];
+ double tolerance = options[0].dparam[SICONOS_DPARAM_TOL];
/* Matrix M/v... |
chat-hook: fix, test, and ensure sending invite works | ?. ?=([@ @ @ *] path) out
=/ pax=^path [i.t.path i.t.t.path ~]
(~(put ju out) pax ship)
+ =/ group ~(. grpl bol)
=. cards
%+ weld cards
^- (list card)
- %+ murn ~(tap by subscribers)
- |= [=path ships=(set ship)]
+ %+ murn ~(tap in ~(key by synced.old))
+ |= =path
^- (unit card)
?> ?=([@ @ ~] path)
=/ group-path (group... |
configs/sidk_s5jt200: modify FT2232 interface driver's link on README
Location of FT2232 interface driver was changed so that update it. | @@ -68,7 +68,7 @@ sudo ln -s /usr/local/lib/libftdi.so.1.19.0 libftdi.so.1
### FT2232 interface driver installation
-Get the package, [libftd2xxx1.0.4](https://github.com/psi46/HDItest/tree/master/FTDI-1.0.4/libftd2xx1.0.4)
+Get the package, [libftd2xxx1.0.4](https://github.com/psi46/HDItest/blob/master/FTDI-1.0.4/libf... |
flatout1 - circle glow fix | @@ -42,7 +42,7 @@ void ShowIntroHook()
//Hud Scale
pattern = hook::pattern("D8 0D ? ? ? ? DB 40 0C C7 05 ? ? ? ? 00 80 F8 43");
injector::WriteMemory<float>(*pattern.get_first<float*>(2), Screen.fHudScale, true);
- pattern = hook::pattern("D9 05 ? ? ? ? 56 8B F1 8B 86");
+ pattern = hook::pattern("D9 05 ? ? ? ? 56 8B F... |
doc: METADATA.ini
unify to tabs
increase version
remove broken example | #
# kdb mount-info
#
-# To get a metavalue, use:
-#
-# kdb get system/info/elektra/#0/metadata/ni version/major
-# kdb getmeta system/info/elektra/#0/metadata/ni version/minor
-# kdb getmeta system/info/elektra/#0/metadata/order type
-#
[]
filename=METADATA.ini
version/major=0
-version/minor=5
+version/minor=6
#
@@ -11... |
SetFrequencySX: cache vco_sel and csw_value, major speedup in changing device frequency | @@ -1454,6 +1454,9 @@ const LMS7Parameter* LMS7002M::GetParam(const std::string &name)
*/
int LMS7002M::SetFrequencySX(bool tx, float_type freq_Hz, SX_details* output)
{
+ static map<float_type, int8_t> tuning_cache_sel_vco;
+ static map<float_type, int16_t> tuning_cache_csw_value;
+
const char* vcoNames[] = {"VCOL", "... |
chat-hook: send right amount of backlog | =/ length (lent envs)
=/ latest
?~ backlog-latest length
- ?: (gth u.backlog-latest length) length
+ ?: (gth u.backlog-latest length) 0
(sub length u.backlog-latest)
=. envs (scag latest envs)
=/ =vase !>([%messages pas 0 latest envs])
%- zing
:~ [%give %fact ~ %chat-update !>([%create pas])]~
?. ?&(?=(^ backlog-latest... |
drag to corner = moveleft/right | @@ -1973,10 +1973,17 @@ movemouse(const Arg *arg)
if (ev.xmotion.x_root > selmon->mx + selmon->mw - 5 && ev.xmotion.x_root < selmon->mx + selmon->mw + 1) {
c->isfloating = 0;
+ if (ev.xmotion.y_root < selmon->mh - 20)
tagtoright(arg);
+ else
+ moveright(arg);
+
} else if (ev.xmotion.x_root < selmon->mx + 5 && ev.xmotio... |
ci: also output host_test logs to standard out | @@ -386,7 +386,7 @@ test_hello_world_linux_compatible_example:
- cd ${IDF_PATH}/tools/test_apps/linux_compatible/hello_world_linux_compatible
- idf.py --preview set-target linux
- idf.py build
- - timeout 15 build/hello_world.elf > test.log
+ - timeout 15 build/hello_world.elf | tee test.log
- grep "Hello world!" test.... |
ocvalidate: Do not error on External PickerMode without OpenCanopy | @@ -199,9 +199,6 @@ CheckMiscBoot (
&& AsciiStrCmp (PickerMode, "Apple") != 0) {
DEBUG ((DEBUG_WARN, "Misc->Boot->PickerMode is borked (Can only be Builtin, External, or Apple)!\n"));
++ErrorCount;
- } else if (AsciiStrCmp (PickerMode, "External") == 0 && !HasOpenCanopyEfiDriver) {
- DEBUG ((DEBUG_WARN, "Misc->Boot->Pi... |
CONF: On VMS, treat VMS syntax inclusion paths correctly
non-VMS syntax inclusion paths get the same treatment as on Unix. | @@ -685,6 +685,7 @@ static BIO *get_next_file(const char *path, OPENSSL_DIR_CTX **dirctx)
namelen = strlen(filename);
+
if ((namelen > 5 && strcasecmp(filename + namelen - 5, ".conf") == 0)
|| (namelen > 4 && strcasecmp(filename + namelen - 4, ".cnf") == 0)) {
size_t newlen;
@@ -697,10 +698,25 @@ static BIO *get_next_f... |
hal/ia32/console-serial.c: change default baudrate from 400bps to 115200bps
JIRA: | @@ -104,9 +104,9 @@ __attribute__ ((section (".init"))) void _hal_consoleInit(void)
}
/* 115200 8n1 */
- _console_uartWrite(lcr, 0x83);
- _console_uartWrite(dlh, 0x01);
- _console_uartWrite(dll, 0x20);
+ _console_uartWrite(lcr, 0x80);
+ _console_uartWrite(dll, 0x01);
+ _console_uartWrite(dlh, 0x00);
_console_uartWrite(... |
Update the link for the seccomp-operator-presubmits.yaml | @@ -58,7 +58,7 @@ Following the targets that can be used to test your changes locally.
## Where the CI Tests are configured
1. See the [action files](.github/workflows) to check its tests, and the scripts used on it.
-1. Note that the prow tests used in the CI are configured in [kubernetes-sigs/seccomp-operator/seccomp... |
[Numerics] add computation of the norm of M and H in debug mode | @@ -442,6 +442,10 @@ void gfc3d_nonsmooth_Newton_AlartCurnier(
printf("---- GFC3D - _nonsmooth_Newton_AlartCurnier - Start with tolerance = %g\n", tolerance);
+
+ DEBUG_PRINTF("norm of M = %e\n", NM_norm(problem->M));
+ DEBUG_PRINTF("norm of H = %e\n", NM_norm(problem->H));
+
/* sparse triplet storage */
NM_triplet(pro... |
[TRIE] fix proof of non inclusion : if there is no shortcut node on the way, use the common way of proving merkle proof with DefaultLeaf | @@ -68,8 +68,8 @@ func (s *modSMT) VerifyMerkleProof(ap [][]byte, key, value []byte) bool {
// In modSMT, a merkle proof consists of an audit path + an optional proof node
func (s *modSMT) VerifyMerkleProofEmpty(ap [][]byte, key, proofKey, proofValue []byte) bool {
if bytes.Equal(ap[0], DefaultLeaf) {
- // a shortcut n... |
ra: fix key delimiter, allow empty space, comma and double-quote | @@ -93,7 +93,7 @@ static int ra_parse_buffer(struct flb_record_accessor *ra, flb_sds_t buf)
}
for (end = i + 1; end < len; end++) {
- if (buf[end] == ' ' || !isalnum(buf[end])) {
+ if (buf[end] == ' ' || buf[end] == ',' || buf[end] == '"') {
break;
}
}
@@ -228,7 +228,7 @@ void flb_ra_dump(struct flb_record_accessor *ra... |
CI: bump macos runner version | @@ -123,7 +123,7 @@ jobs:
run: $GITHUB_WORKSPACE/test.sh
freebsd:
- runs-on: macos-10.15
+ runs-on: macos-12
name: FreeBSD
steps:
- name: Checkout code
@@ -133,7 +133,7 @@ jobs:
ref: ${{ env.GITHUB_HEAD_REF }}
- name: Build in FreeBSD
- uses: vmactions/freebsd-vm@v0.1.5
+ uses: vmactions/freebsd-vm@v0.2.0
with:
prepare... |
OmniboxResult: fix collection icon
Fixes urbit/landscape#876 | @@ -84,7 +84,7 @@ export class OmniboxResult extends Component<OmniboxResultProps, OmniboxResultSt
icon.toLowerCase() === 'terminal'
) {
if (icon === 'Link') {
- link = 'Collection';
+ icon = 'Collection';
} else if (icon === 'Terminal') {
icon = 'Dojo';
}
|
Android barcode: make camera2 feature optional | <uses-feature android:name="android.hardware.camera.flash" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
- <uses-feature android:name="android.hardware.camera2" />
- <uses-feature android:name="android.hardware.camera2.full" />
- <uses-featu... |
test BUGFIX increase timeout in timeout test
So that the callback is actually called
before the timeout is declared. | @@ -2907,8 +2907,8 @@ apply_change_timeout_thread(void *arg)
/* wait for subscription before applying changes */
pthread_barrier_wait(&st->barrier);
- /* perform the change, it will time out */
- ret = sr_apply_changes(sess, 1);
+ /* perform the change, time out butgive it some time so that the callback is at least cal... |
Remove "is_local" argument from Parser:FuncStat
These extra arguments are always easy to misuse. | @@ -614,7 +614,7 @@ function Parser:Block()
return ast.Stat.Block(self.prev.loc, self:StatList())
end
-function Parser:FuncStat(is_local)
+function Parser:FuncStat()
local start = self:e("function")
local root = self:e("NAME").value
@@ -636,13 +636,6 @@ function Parser:FuncStat(is_local)
method = self:e("NAME").value
e... |
should be core-avx2 | @@ -17,7 +17,7 @@ ifeq ($(TARGET_CORE), SKYLAKEX)
endif
endif
else ifeq($(TARGET_CORE), HASWELL)
- override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=core2-avx
+ override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=core-avx2
else
override CFLAGS += -DBUILD_KERNEL -DTA... |
Add cmake defaults for ?sum kernels | @@ -107,6 +107,12 @@ macro(SetDefaultL1)
set(DAXPBYKERNEL ../arm/axpby.c)
set(CAXPBYKERNEL ../arm/zaxpby.c)
set(ZAXPBYKERNEL ../arm/zaxpby.c)
+ set(SSUMKERNEL sum.S)
+ set(DSUMKERNEL sum.S)
+ set(CSUMKERNEL zsum.S)
+ set(ZSUMKERNEL zsum.S)
+ set(QSUMKERNEL sum.S)
+ set(XSUMKERNEL zsum.S)
endmacro ()
macro(SetDefaultL2)... |
integration_tests: Better regex for detecting successful deployment | @@ -85,7 +85,7 @@ func DeployInspektorGadget(image, imagePullPolicy string) *Command {
return &Command{
Name: "DeployInspektorGadget",
Cmd: cmd,
- ExpectedRegexp: `\d\/\d gadget pod\(s\) ready`,
+ ExpectedRegexp: "Inspektor Gadget successfully deployed",
}
}
|
Add libduktape to static compilation list | @@ -457,7 +457,7 @@ if(BUILD_LIBRETRO)
set_target_properties(tic80_libretro PROPERTIES SUFFIX "_partial.a")
add_custom_command(TARGET tic80_libretro
POST_BUILD
- COMMAND ${CMAKE_SOURCE_DIR}/build/libretro/merge_static.sh $(AR) ${CMAKE_BINARY_DIR}/lib/tic80_libretro${LIBRETRO_SUFFIX}.a ${CMAKE_BINARY_DIR}/lib/tic80_libr... |
Fixed NXT_INT64_T_HEXLEN.
This closes issue on GitHub.
Thanks to hongzhidao. | @@ -79,8 +79,8 @@ typedef time_t nxt_time_t;
#define NXT_INT64_T_LEN (sizeof("-9223372036854775808") - 1)
#define NXT_INT32_T_LEN (sizeof("-2147483648") - 1)
-#define NXT_INT64_T_HEXLEN (sizeof("fffffffffffffffff") - 1)
-#define NXT_INT32_T_HEXLEN (sizeof("ffffffff") - 1)
+#define NXT_INT64_T_HEXLEN (sizeof("FFFFFFFFFF... |
Minor fix to the Building chapter of the User Manual. | @@ -107,7 +107,7 @@ if you built using a git clone.
.. code:: bash
- visit3.0.0b/visit/build/bin/visit
+ visit3.0.0b/build/bin/visit
if you built using a tar file.
@@ -124,7 +124,7 @@ if you built using a git clone.
.. code:: bash
- cd visit3.0.0b/visit/build
+ cd visit3.0.0b/build
make package
if you built using a tar... |
add a detector for future transgressions | @@ -37,6 +37,17 @@ for file in $S2N_FILES_ASSERT_RETURN; do
fi
done
+# Detect any array size calculations that are not using the s2n_array_len() function.
+S2N_FILES_ARRAY_SIZING_RETURN=$(find "$PWD" -type f -name "s2n*.c" -path "*")
+for file in $S2N_FILES_ARRAY_SIZING_RETURN; do
+ RESULT_ARR_DIV=`grep -Ern 'sizeof\((... |
framework/arastorage:fix index memb release issue
index_load function, after alloc index, when find_index_api
return NULL, need to release index before return error. | @@ -275,6 +275,7 @@ db_result_t index_load(relation_t *rel, attribute_t *attr)
api = find_index_api(index->type);
if (api == NULL) {
DB_LOG_E("DB: No API for index type %d\n", index->type);
+ memb_free(&index_memb, index);
return DB_INDEX_ERROR;
}
|
Remove unused std::mutex member. | @@ -29,9 +29,6 @@ private:
void _UpdateDeviceCondition();
private:
-
- std::mutex m_lock_sendEvent;
-
NetworkType m_networkType;
NetworkCost m_networkCost { NetworkCost_Unmetered };
PowerSource m_powerSource { PowerSource_Charging };
|
Remove Codecov from cmake build files. | @@ -64,17 +64,6 @@ if(WITH_SANDBOX)
add_subdirectory(sandbox)
endif(WITH_SANDBOX)
-if(WITH_COVERAGE)
- if(CMAKE_COMPILER_IS_GNUCXX)
- include(CodeCoverage)
- setup_target_for_coverage(${PROJECT_NAME}_coverage tests coverage)
- endif()
-
- include(CTest)
- enable_testing()
- add_test(NAME pre-commit-tests COMMAND pre-co... |
emitter: Remove unnecessary code (empty variants do set a result). | @@ -3319,11 +3319,6 @@ static void setup_call_result(lily_emit_state *emit, lily_ast *ast,
if (return_type->flags & (TYPE_IS_UNRESOLVED | TYPE_HAS_SCOOP))
return_type = lily_ts_resolve_unscoop(emit->ts, return_type);
- if (ast->first_tree_type == tree_variant) {
- /* Variant trees don't have a result so skip over them.... |
netkvm: Unification and small optimization in RSS code
Use single call to OS without redundant temporary variables
when obtaining current CPU index. | @@ -121,13 +121,9 @@ BOOLEAN IsCompatibleAffinities(PGROUP_AFFINITY a1, PGROUP_AFFINITY a2)
static
CCHAR FindReceiveQueueForCurrentCpu(PPARANDIS_SCALING_SETTINGS RSSScalingSettings)
{
- PROCESSOR_NUMBER CurrProcNum;
ULONG CurrProcIdx;
- KeGetCurrentProcessorNumberEx(&CurrProcNum);
- CurrProcIdx = KeGetProcessorIndexFro... |
Definitions: Update Code Table 1.0 | 24 24 Version implemented on 6 November 2019
25 25 Version implemented on 6 May 2020
26 26 Version implemented on 16 November 2020
-# 27-254 Future versions
+27 27 Version implemented on 15 June 2021
+28 28 Pre-operational to be implemented by next amendment
+# 29-254 Future versions
255 255 Master tables not used. Loc... |
Don't increase size if frame_timing is false | @@ -209,7 +209,9 @@ parse_overlay_env(struct overlay_params *params,
if (params->height != 140)
heightChanged = true;
- int FrameTimeGraphHeight = 50;
+ int FrameTimeGraphHeight = 0;
+ if (params->enabled[OVERLAY_PARAM_ENABLED_frame_timing])
+ FrameTimeGraphHeight = 50;
if (!params->font_size)
params->font_size = 24.0f... |
Disable FME on amp/smp blocks with width or height not divisible by 8 | @@ -1235,7 +1235,7 @@ static void search_pu_inter_ref(inter_search_info_t *info,
break;
}
- if (cfg->fme_level > 0 && info->best_cost < *inter_cost) {
+ if (cfg->fme_level > 0 && info->best_cost < *inter_cost && info->width % 8 == 0 && info->height % 8 == 0) {
search_frac(info);
} else if (info->best_cost < UINT32_MAX)... |
SOVERSION bump to version 7.7.3 | @@ -72,7 +72,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 7)
set(SYSREPO_MINOR_SOVERSION 7)
-set(SYSREPO_MICRO_SOVERSION 2)
+set(SYSREPO_MICRO_SO... |
native-aliases: automatically determine IIG version to download | cd "$(dirname "${0}")"
if [ ! -e iig.xml ]; then
- curl "https://software.intel.com/sites/landingpage/IntrinsicsGuide/files/data-3.5.0.xml" > iig.xml
+ VERSION="$(curl -s 'https://software.intel.com/sites/landingpage/IntrinsicsGuide/' | grep -Po '(?<=intrinsicsguide.min.js\?)([0-9\.]+)')"
+ curl "https://software.intel... |
Address potential perf regression
Ensure platforms that don't have an assembly implementation for
mbedtls_get_unaligned_volatile_uint32() don't experience a performance
regression. | /*
* Define MBEDTLS_EFFICIENT_UNALIGNED_ACCESS for architectures where unaligned memory
* accesses are known to be safe and efficient.
+ */
+#if defined(__ARM_FEATURE_UNALIGNED)
+/* __ARM_FEATURE_UNALIGNED is defined by armcc, gcc 7, clang 9 and later versions */
+#define MBEDTLS_EFFICIENT_UNALIGNED_ACCESS
+#endif
+
+/... |
disable ci test: docs building and submodule sync
This commit needs reverting before esp32s2 is ready to release | @@ -411,11 +411,13 @@ build_docs:
- cd en
- make gh-linkcheck
- make html
- - ../check_doc_warnings.sh
+ # TODO: revert it before release esp32s2
+ # - ../check_doc_warnings.sh
- cd ../zh_CN
- make gh-linkcheck
- make html
- - ../check_doc_warnings.sh
+ # TODO: revert it before release esp32s2
+ # - ../check_doc_warnin... |
[Rust] amc_message_await allows awaiting for a message from anyone | @@ -52,11 +52,26 @@ pub trait HasEventField {
}
unsafe fn amc_message_await_unchecked<T>(
- from_service: &str,
+ from_service: Option<&str>,
) -> Result<AmcMessage<T>, core::str::Utf8Error> {
- let from_service_c_str = CString::new(from_service).unwrap();
let mut msg_ptr = core::ptr::null_mut();
+
+ // Does the caller... |
fix segfault in threshold | /* Copyright 2014. The Regents of the University of California.
- * Copyright 2015-2016. Martin Uecker.
+ * Copyright 2015-2017. Martin Uecker.
* All rights reserved. Use of this source code is governed by
* a BSD-style license which can be found in the LICENSE file.
*
* Authors:
- * 2013-2016 Martin Uecker <martin.uec... |
Update win_dev_serial_native_Windows_Devices_SerialCommunication_SerialDevice.cpp
Remove exception when TX operation is not terminated. | @@ -640,7 +640,7 @@ HRESULT Library_win_dev_serial_native_Windows_Devices_SerialCommunication_Serial
// check if there is anything the buffer
if(palUart->TxRingBuffer.Length() > 0)
{
-
+ /*
// check if there is a TX operation ongoing
if(palUart->TxOngoingCount > 0)
{
@@ -648,6 +648,9 @@ HRESULT Library_win_dev_serial_n... |
Disable handshake timeouts on lossy tests | @@ -536,6 +536,10 @@ static void test_bidirectional(void)
void test_lossy(void)
{
+ uint64_t handshake_timeout_backup = quic_ctx.handshake_timeout_rtt_multiplier;
+ /* loss tests tend to incur gigantic (and artificial) latencies, which easily trigger handshake timeout.
+ * for this test, we totally disable handshake ti... |
SOVERSION bump to version 6.1.2 | @@ -68,7 +68,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 6)
set(SYSREPO_MINOR_SOVERSION 1)
-set(SYSREPO_MICRO_SOVERSION 1)
+set(SYSREPO_MICRO_SO... |
Hide oc_main_poll()
Since the poll loop is now in the jni layer, there is no need
to expose oc_main_poll() as a public api.
Tested-by: IoTivity Jenkins | @@ -335,7 +335,7 @@ int jni_main_init(const oc_handler_t *handler)
return return_value;
}
%}
-%rename(mainPoll) oc_main_poll;
+%ignore oc_main_poll;
%ignore oc_main_shutdown;
%rename(mainShutdown) jni_main_shutdown;
%inline %{
|
extmod/moduhashlib: Make function objects STATIC.
These are not exported to anyone anyway. | @@ -121,8 +121,8 @@ STATIC mp_obj_t uhashlib_sha256_digest(mp_obj_t self_in) {
}
#endif
-MP_DEFINE_CONST_FUN_OBJ_2(uhashlib_sha256_update_obj, uhashlib_sha256_update);
-MP_DEFINE_CONST_FUN_OBJ_1(uhashlib_sha256_digest_obj, uhashlib_sha256_digest);
+STATIC MP_DEFINE_CONST_FUN_OBJ_2(uhashlib_sha256_update_obj, uhashlib_s... |
SOVERSION bump to version 2.0.13 | @@ -34,7 +34,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 2)
set(SYSREPO_MINOR_SOVERSION 0)
-set(SYSREPO_MICRO_SOVERSION 12)
+set(SYSREPO_MICRO_S... |
PostInput: fix replying with a link | @@ -42,7 +42,7 @@ export function PostInput(props) {
setDisabled(true);
const url = await promptUpload();
const { ship, name } = graphResource;
- await api.graph.addPost(ship, name, createPost([{ url }]));
+ await api.graph.addPost(ship, name, createPost([{ url }], index || ''));
} catch (e) {
// TODO: better handling
... |
Test EVP_get_[digest|cipher]byname() use the namemap
Following on from the previous commit, we test that if an algorithm has
a provider supplied alias in the namemap then EVP_get_digestbyname() and
EVP_get_cipherbyname() can still find it. | * https://www.openssl.org/source/license.html
*/
+#include <openssl/evp.h>
#include "internal/namemap.h"
#include "testutil.h"
@@ -55,9 +56,64 @@ static int test_namemap_stored(void)
&& test_namemap(nm);
}
+/*
+ * Test that EVP_get_digestbyname() will use the namemap when it can't find
+ * entries in the legacy method ... |
More fixes to image interpolation - implement range checking per corner in the
cell and use the top-left corner as the limiting pixel. | @@ -443,10 +443,22 @@ papplJobFilterImage(
for (lineptr = line + x; x < xend; x ++)
{
// Copy an inverted grayscale pixel...
- if (smoothing && yerr >= 0 && xerr >= 0 && (pixptr + xdir + ydir) >= pixels && (pixptr + xdir + ydir) < pixend)
- {
- pixel0 = ((xsize - xerr) * *pixptr + xerr * pixptr[xdir]) / xsize;
- pixel1... |
Add TRangeIterator and TDynamicIteratorAsSparseDynamic. | #pragma once
+#include <catboost/libs/index_range/index_range.h>
+
#include <util/generic/maybe.h>
#include <util/generic/ptr.h>
#include <util/system/compiler.h>
@@ -173,6 +175,27 @@ namespace NCB {
TBaseIterator End;
};
+
+ template <class TSize>
+ class TRangeIterator final : public IDynamicIterator<TSize> {
+ publi... |
Fixes an error occuring on old clang versions | @@ -727,10 +727,8 @@ void set_pkt_ctx(picoquic_packet_context_t *pkt_ctx, access_key_t ak, protoop_ar
}
void set_pkt_metadata(picoquic_cnx_t *cnx, picoquic_packet_t *pkt, int idx, protoop_arg_t val) {
- if (!cnx->current_plugin) {
+ if (!cnx->current_plugin)
printf("ERROR: set_pkt_metadata called outside a plugin conte... |
error.c re-generated once more | @@ -738,11 +738,6 @@ const char * mbedtls_low_level_strerr( int error_code )
return( "OID - output buffer is too small" );
#endif /* MBEDTLS_OID_C */
-#if defined(MBEDTLS_PADLOCK_C)
- case -(MBEDTLS_ERR_PADLOCK_DATA_MISALIGNED):
- return( "PADLOCK - Input data should be aligned" );
-#endif /* MBEDTLS_PADLOCK_C */
-
#if... |
rust: fix CStrMut.as_ref
Do not include null terminator in rust &str. | @@ -121,7 +121,21 @@ impl AsRef<str> for CStrMut {
buf = core::ptr::NonNull::dangling().as_ptr();
}
assert!(!buf.is_null());
- unsafe { core::str::from_utf8_unchecked(core::slice::from_raw_parts(buf, self.len)) }
+
+ // Find null terminator
+ let mut len = 0;
+ unsafe {
+ let mut b = buf;
+ while b.read() != 0 {
+ b = ... |
Replace prng_lfsr with prng_xorshift in audio.cpp
It's a better PRNG and still very simple. | namespace blit {
- uint32_t prng_lfsr = 0x32B71700;
- constexpr uint16_t prng_tap = 0xb874;
+ uint32_t prng_xorshift_state = 0x32B71700;
- uint32_t prng_lfsr_next() {
- uint8_t lsb = prng_lfsr & 1;
- prng_lfsr >>= 1;
-
- if (lsb) {
- prng_lfsr ^= prng_tap;
- }
- return prng_lfsr;
+ uint32_t prng_xorshift_next() {
+ uin... |
baseboard/brask/baseboard.c: Format with clang-format
BRANCH=none
TEST=none | #include "gpio_signal.h"
/* Wake up pins */
-const enum gpio_signal hibernate_wake_pins[] = {
-};
+const enum gpio_signal hibernate_wake_pins[] = {};
const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins);
|
apps: Fix the bug that didn't initialize structure | @@ -267,6 +267,7 @@ int main(int argc, char *argv[])
/* Wait the packet ready */
+ memset(&pfd, 0, sizeof(struct pollfd));
pfd.ptr = &priv.file;
pfd.events = POLLIN | POLLFILE;
ret = poll(&pfd, 1, -1);
|
upsampling_sse2.c: clear int sanitizer warnings
clears warnings of the form:
src/dsp/upsampling_sse2.c:169:1: runtime error: implicit conversion from
type 'int' of value -16 (32-bit, signed) to type 'unsigned long' changed
the value to (64-bit, unsigned) | @@ -121,7 +121,7 @@ static void FUNC_NAME(const uint8_t* top_y, const uint8_t* bottom_y, \
int uv_pos, pos; \
/* 16byte-aligned array to cache reconstructed u and v */ \
uint8_t uv_buf[14 * 32 + 15] = { 0 }; \
- uint8_t* const r_u = (uint8_t*)((uintptr_t)(uv_buf + 15) & ~15); \
+ uint8_t* const r_u = (uint8_t*)((uintpt... |
Testing: Do not suppress output of diff | @@ -39,7 +39,7 @@ do
if [ -f "$ref_num" ]; then
# Cannot use plain diff. We need to compare FLOAT NUMBERS with a tolerance
- perl number_compare.pl $ref_num $res_num >$REDIRECT 2> $REDIRECT
+ perl number_compare.pl $ref_num $res_num # >$REDIRECT 2> $REDIRECT
#numdiff $ref_num $res_num >$REDIRECT 2> $REDIRECT
fi
|
out_bigquery: URL-encode the OAuth request body. | @@ -225,8 +225,8 @@ static int bigquery_get_oauth2_token(struct flb_bigquery *ctx)
ret = flb_oauth2_payload_append(ctx->o,
"grant_type", -1,
- "urn:ietf:params:oauth:"
- "grant-type:jwt-bearer", -1);
+ "urn%3Aietf%3Aparams%3Aoauth%3A"
+ "grant-type%3Ajwt-bearer", -1);
if (ret == -1) {
flb_plg_error(ctx->ins, "error app... |
PVK decoder: prompt for PVK passphrase and not PEM | @@ -100,7 +100,7 @@ static int pvk2key_decode(void *vctx, OSSL_CORE_BIO *cin, int selection,
if (!ossl_pw_set_ossl_passphrase_cb(&pwdata, pw_cb, pw_cbarg))
goto end;
- key = ctx->desc->read_private_key(in, ossl_pw_pem_password, &pwdata,
+ key = ctx->desc->read_private_key(in, ossl_pw_pvk_password, &pwdata,
PROV_LIBCTX_... |
debug output for auto scaling | @@ -334,6 +334,8 @@ static void auto_norm_apply(const operator_data_t* _data, float mu, complex floa
complex float val = MD_ACCESS(N, sstrs, pos, scale);
+ debug_printf(DP_DEBUG1, "auto normalize %f\n", crealf(val));
+
md_zsmul2(N, xdims, io->strs, &MD_ACCESS(N, io->strs, pos, y),
io->strs, &MD_ACCESS(N, io->strs, pos,... |
Fixed flex shrink on zoom button | @@ -83,14 +83,20 @@ class AppToolbar extends Component {
</MenuItem>
))}
</ToolbarDropdownButton>
- <ToolbarButton style={{ width: 90, visibility: !showZoom && "hidden" }}>
+ <ToolbarButton
+ style={{
+ width: 80,
+ flexShrink: 0,
+ visibility: !showZoom && "hidden"
+ }}
+ >
<ToolbarButton onClick={this.onZoomOut} titl... |
revert OP_ABORT ope-code. | @@ -190,6 +190,8 @@ enum OPCODE {
OP_EXT2 = 0x67, //!< Z make 2nd operand (b) 16bit
OP_EXT3 = 0x68, //!< Z make 1st and 2nd operands 16bit
OP_STOP = 0x69, //!< Z stop VM
+
+ OP_ABORT = 0x6c, // only for mruby/c, TODO: remove
};
|
Fix showing incorrect status for environment tab when the process has exited | @@ -171,6 +171,13 @@ VOID PhpSetEnvironmentListStatusMessage(
_Inout_ PPH_ENVIRONMENT_CONTEXT Context,
_In_ ULONG Status
)
+{
+ if (Context->ProcessItem->State & PH_PROCESS_ITEM_REMOVED)
+ {
+ PhMoveReference(&Context->StatusMessage, PhCreateString(L"There are no environment variables to display."));
+ TreeNew_SetEmpty... |
roller: fix wrong ship quota | |= wat=@t
?~ who=(slaw %p wat) [~ ~]
=/ [exceeded=? next-quota=@ud] (quota-exceeded u.who)
+ =/ allow=(unit (unit @ud)) (~(get by allowances) u.who)
:+ ~ ~
:- %atom
!> ^- @ud
?: exceeded 0
- (sub quota.state (dec next-quota))
+ =/ max-quota=@ quota.state
+ ?: &(?=(^ allow) ?=(~ u.allow))
+ max-quota
+ =? max-quota &(?=... |
reorder include | <ClCompile Include="$(MSBuildThisFileDirectory)..\..\lib\http\HttpResponseDecoder.cpp" />
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\lib\offline\LogSessionDataProvider.cpp" />
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\lib\offline\MemoryStorage.cpp" />
+ <ClCompile Include="$(MSBuildThisFileDirector... |
Prevent stacked layout from crashing | @@ -246,7 +246,7 @@ static struct sway_container *container_at_stacked(struct sway_node *parent,
// Surfaces
struct sway_node *current = seat_get_active_child(seat, parent);
- return tiling_container_at(current, lx, ly, surface, sx, sy);
+ return current ? tiling_container_at(current, lx, ly, surface, sx, sy) : NULL;
}... |
Remove Persistent table code and comments from CreateCheckPoint(). | @@ -8832,20 +8832,6 @@ CreateCheckPoint(int flags)
MemSet(&checkPoint, 0, sizeof(checkPoint));
checkPoint.time = (pg_time_t) time(NULL);
- /*
- * The WRITE_PERSISTENT_STATE_ORDERED_LOCK gets these locks:
- * MirroredLock SHARED, and
- * PersistentObjLock EXCLUSIVE.
- * as well as set MyProc->inCommit = true.
- *
- * Th... |
examples/accel_i2c: Fix typos/grammar in comment. | @@ -9,8 +9,8 @@ from machine import I2C
import time
# Accelerometer needs to be powered on first. Even
-# though signal is called "AVDD", and there's separate
-# "DVDD", without AVDD, it won't event talk on I2C bus.
+# though the signal is called "AVDD", and there's a separate
+# "DVDD", without AVDD, it won't even tal... |
Fix a call to deprecated os.get() | @@ -35,7 +35,7 @@ int path_translate(lua_State* L)
if (lua_gettop(L) == 1) {
// Get target OS
lua_getglobal(L, "os");
- lua_getfield(L, -1, "get");
+ lua_getfield(L, -1, "target");
lua_call(L, 0, 1);
os = luaL_checkstring(L, -1);
lua_pop(L, 2);
|
nat: fix coverity 249194
Zero-initialize a variable.
Type: fix | @@ -1055,7 +1055,7 @@ nat44_ed_in2out_fast_path_node_fn_inline (vlib_main_t *vm,
ip_protocol_t proto0;
ip4_header_t *ip0;
snat_session_t *s0 = 0;
- clib_bihash_kv_16_8_t kv0, value0;
+ clib_bihash_kv_16_8_t kv0 = { 0 }, value0;
nat_translation_error_e translation_error = NAT_ED_TRNSL_ERR_SUCCESS;
nat_6t_flow_t *f = 0;
... |
in_systemd: fix invalid reference on exception (CID 288032) | @@ -68,15 +68,15 @@ struct flb_systemd_config *flb_systemd_config_create(struct flb_input_instance *
ret = stat(tmp, &st);
if (ret == -1) {
flb_errno();
- flb_free(ctx);
flb_plg_error(ctx->ins, "given path %s is invalid", tmp);
+ flb_free(ctx);
return NULL;
}
if (!S_ISDIR(st.st_mode)) {
flb_errno();
- flb_free(ctx);
fl... |
Disable if_supported network namespace, if the binary has netdriver compiled in | @@ -229,6 +229,10 @@ static bool cmdlineVerify(honggfuzz_t* hfuzz) {
LOG_E("Couldn't test binary for signatures");
return false;
}
+ if (hfuzz->exe.netDriver && hfuzz->linux.useNetNs == HF_MAYBE) {
+ LOG_I("The binary uses netdriver, disabling network namespacing");
+ hfuzz->linux.useNetNs = HF_NO;
+ }
if (!hfuzz->exe.... |
Makefile: Make it easier to find the docs
Ad a top level 'doc' target that builds the html docs when the user
types 'make doc'. Users who want other targets know that the docs live
under docs/, so can go looking there. | @@ -290,13 +290,16 @@ skiboot.info: coverage external/pflash/pflash.info external/gard/gard.info
lcov -q -a $@ -a external/gard/gard.info -o $@
lcov -q -r $@ $(LCOV_EXCLUDE) -o $@ --rc lcov_branch_coverage=1
+doc:
+ make -C doc html
+
tags:
find . -name '*.[chS]' | xargs ctags
TAGS:
find . -name '*.[chS]' | xargs etags... |
oidc-gen codeexchange communciate with path encoded in state | @@ -189,7 +189,8 @@ void handleCodeExchange(const struct arguments* arguments) {
codeState.state);
secFree(baseUri);
secFreeCodeState(codeState);
- char* res = ipc_cryptCommunicate(REQUEST_CODEEXCHANGE, uri);
+ char* res =
+ ipc_cryptCommunicateWithPath(socket_path, REQUEST_CODEEXCHANGE, uri);
secFree(socket_path);
sec... |
ulp_riscv: suppress -Wstringop-overflow | @@ -159,8 +159,12 @@ esp_err_t ulp_riscv_load_binary(const uint8_t* program_binary, size_t program_si
uint8_t* base = (uint8_t*) RTC_SLOW_MEM;
//Start by clearing memory reserved with zeros, this will also will initialize the bss:
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstringop-overflow"
+#prag... |
List available shortcut keys on error
Fixes <https://github.com/Genymobile/scrcpy/issues/1681>
Suggested-by: Moritz Schulz | @@ -532,7 +532,9 @@ parse_shortcut_mods_item(const char *item, size_t len) {
} else if (STREQ("rsuper", item, key_len)) {
mod |= SC_MOD_RSUPER;
} else {
- LOGW("Unknown modifier key: %.*s", (int) key_len, item);
+ LOGE("Unknown modifier key: %.*s "
+ "(must be one of: lctrl, rctrl, lalt, ralt, lsuper, rsuper)",
+ (int)... |
WIP: encodes but can't decode on the other end | ==
$(ret (snoc ret num), bits (slag n ((list @) bits)))
::
-++ polymod
+++ bech32-polymod
|= values=(list @)
+ ^- @
=/ gen=(list @ux)
~[0x3b6a.57b2 0x2650.8e6d 0x1ea1.19fa 0x3d42.33dd 0x2a14.62b3]
=/ chk=@ 1
::
++ verify-checksum
|= [hrp=tape data-and-checksum=(list @)]
- %- polymod
+ %- bech32-polymod
(weld (expand-hr... |
Skip computing MV cost twice in hexagon search
Changes the first step of hexagon search to skip the zero offset since
the cost of the motion vector has already been computed. | @@ -659,7 +659,7 @@ static void hexagon_search(inter_search_info_t *info, vector2d_t extra_mv)
int best_index = 0;
// Search the initial 7 points of the hexagon.
- for (int i = 0; i < 7; ++i) {
+ for (int i = 1; i < 7; ++i) {
if (check_mv_cost(info, mv.x + large_hexbs[i].x, mv.y + large_hexbs[i].y)) {
best_index = i;
}... |
doc: modify the directories of files needed | @@ -112,10 +112,14 @@ Build SOS and LaaG image:
$ sudo -s
# ./acrn-hypervisor/devicemodel/samples/up2/create-up2-images.sh --images-type all \
- --clearlinux-version 27050 --laag-json uos.json --acrn-code-path ~/acrn-hypervisor/
+ --clearlinux-version 27050 --laag-json uos.json --acrn-code-path /path/to/acrn-hypervisor... |
updates oidc-gen help output | @@ -51,7 +51,7 @@ static struct argp_option options[] = {
{0, 0, 0, 0, "Advanced:", 3},
{"output", 'o', "OUTPUT_FILE", 0, "When using Dynamic Client Registration the resulting client configuration will be stored in OUTPUT_FILE instead of inside the oidc-agent directory", 3},
{"cp", OPT_CERTPATH, "CERT_PATH", OPTION_ARG... |
DH: add CHANGES entry listing the deprecated DH functions. | programs respectively.
[Paul Dale]
+ *) All of the low level DH functions have been deprecated including:
+
+ DH_OpenSSL, DH_set_default_method, DH_get_default_method, DH_set_method,
+ DH_new_method, DH_bits, DH_size, DH_security_bits, DH_get_ex_new_index,
+ DH_set_ex_data, DH_get_ex_data, DH_generate_parameters_ex,
+ ... |
Modify comments to make them more inclusive | @@ -268,7 +268,7 @@ class UnicodeIssueTracker(LineIssueTracker):
heading = "Invalid UTF-8 or forbidden character:"
- # Only allow valid UTF-8, and only white-listed characters.
+ # Only allow valid UTF-8, and only other explicitly allowed characters.
# We deliberately exclude all characters that aren't a simple non-bla... |
board/pazquel/board.h: Format with clang-format
BRANCH=none
TEST=none | #include "gpio_signal.h"
#include "registers.h"
-enum adc_channel {
- ADC_VBUS,
- ADC_AMON_BMON,
- ADC_PSYS,
- ADC_CH_COUNT
-};
+enum adc_channel { ADC_VBUS, ADC_AMON_BMON, ADC_PSYS, ADC_CH_COUNT };
/* Motion sensors */
enum sensor_id {
@@ -92,11 +87,7 @@ enum sensor_id {
SENSOR_COUNT,
};
-enum pwm_channel {
- PWM_CH_K... |
fix deadlock issue when max connection reached. | @@ -561,8 +561,8 @@ static int register_new_miner(connection_list_element *connection, int index)
{
if(memcmp(elt->miner_data.id.data, conn_data->data, sizeof(xdag_hashlow_t)) == 0) {
if(elt->miner_data.connections_count >= g_connections_per_miner_limit) {
- close_connection(connection, index, "Max count of connections... |
VERSION bump to version 1.3.61 | @@ -31,7 +31,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 1)
set(SYSREPO_MINOR_VERSION 3)
-set(SYSREPO_MICRO_VERSION 60)
+set(SYSREPO_MICRO_VERSION 61)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
Fix swapped decorators in VppTestCase. | @@ -224,8 +224,8 @@ class VppTestCase(unittest.TestCase):
else:
raise Exception("Unrecognized DEBUG option: '%s'" % d)
- @classmethod
- def get_least_used_cpu(self):
+ @staticmethod
+ def get_least_used_cpu():
cpu_usage_list = [set(range(psutil.cpu_count()))]
vpp_processes = [p for p in psutil.process_iter(attrs=['pid'... |
build: bump version to 2.4.0 | project('criterion', 'c',
meson_version : '>= 0.51.0',
license : 'MIT',
- version : '2.3.3',
+ version : '2.4.0',
default_options : ['c_std=c11', 'cpp_std=c++11', 'warning_level=2'])
abi_version = '3.2.0'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.