message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
data tree BUGFIX set default flags for NP conts
... as mentioned in the docs. | @@ -576,6 +576,9 @@ lyd_create_inner(const struct lysc_node *schema, struct lyd_node **node)
in->schema = schema;
in->prev = (struct lyd_node *)in;
in->flags = LYD_NEW;
+ if ((schema->nodetype == LYS_CONTAINER) && !(schema->flags & LYS_PRESENCE)) {
+ in->flags |= LYD_DEFAULT;
+ }
/* do not hash list with keys, we need ... |
distro-packages/python-rpm-macros: fix suse check | --- a/functions.lua 2017-12-07 11:46:04.000000000 -0800
-+++ b/functions.lua 2018-01-26 09:32:27.000000000 -0800
-@@ -56,10 +56,23 @@
++++ b/functions.lua 2018-01-26 12:20:28.000000000 -0800
+@@ -56,10 +56,27 @@
end
function package_name(flavor, modname, subpkg, append)
+ local compiler_family = rpm.expand("%compiler_f... |
Add missing functions to `psp2kern/kernel/rtc.h` | @@ -19,6 +19,25 @@ typedef struct SceRtcTick {
int ksceRtcSetCurrentTick(SceRtcTick *tick);
int ksceRtcGetCurrentTick(SceRtcTick *tick);
+/**
+ * Get current real time clock time.
+ *
+ * @param[out] time - see ::SceDateTime.
+ * @param[in] time_zone - The time zone the return value will be.
+ *
+ * @return 0 on succes... |
http_client: allow empty password on basic auth | @@ -907,7 +907,13 @@ int flb_http_basic_auth(struct flb_http_client *c,
*/
len_u = strlen(user);
+
+ if (passwd) {
len_p = strlen(passwd);
+ }
+ else {
+ len_p = 0;
+ }
p = flb_malloc(len_u + len_p + 2);
if (!p) {
|
try osx builds | @@ -24,7 +24,8 @@ jobs:
python -m pip install --upgrade pip
pip install cython pytest pytest-pep8
- - name: Build wheels
+ - name: Install build prerequisites
+ if: runner.os == 'Linux'
uses: pypa/cibuildwheel@v2.1.2
env:
CIBW_BUILD: cp36-* cp37-* cp38-*
@@ -32,6 +33,23 @@ jobs:
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
... |
Analysis workflow, set up Configure. | @@ -250,19 +250,11 @@ jobs:
cd ..
export prepath=`pwd`
echo prepath=${prepath}
- echo "yum -y install perl-CPAN"
- yum -y install perl-CPAN
- echo "yum -y install Pod::Usage"
- yum -y install Pod::Usage
- echo "cpan Pod::Usage"
- cpan Pod::Usage
- #echo "curl cpanm"
- #curl -L -k -s -S -o cpanm https://cpanmin.us/
- #e... |
already defined in bt_target.h | #define L2CAP_EXTFEA_EXT_WINDOW 0x00000100 /* Extended Window Size */
#define L2CAP_EXTFEA_UCD_RECEPTION 0x00000200 /* Unicast Connectionless Data Reception */
-/* Mask for locally supported features used in Information Response (default to none) */
-#ifndef L2CAP_EXTFEA_SUPPORTED_MASK
-#define L2CAP_EXTFEA_SUPPORTED_M... |
util/find-doc-nits: ignore tsget.pod name
It's a separate script, not an openssl sub-command | @@ -884,7 +884,7 @@ if ( $opt_n ) {
# If not given args, check that all man1 commands are named properly.
if ( scalar @ARGV == 0 ) {
foreach (glob('doc/man1/*.pod')) {
- next if /CA.pl/ || /openssl.pod/;
+ next if /CA.pl/ || /openssl\.pod/ || /tsget\.pod/;
err("$_ doesn't start with openssl-") unless /openssl-/;
}
}
|
[kernel][kservice] add comment | @@ -1177,6 +1177,12 @@ void rt_kprintf(const char *fmt, ...)
RTM_EXPORT(rt_kprintf);
#endif
+/**
+ * This function will convert Time (Restartable)
+ *
+ * @param timep the timestamp
+ * @param result the structure to stores information
+ */
struct tm *rt_gmtime_r(const time_t *timep, struct tm *result)
{
#define IS_LEA... |
apps/system/usrsock_rpmsg/usrsock_rpmsg_server.c: Fix usrsock_rpmsg_server.c:554:7: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]. | @@ -551,7 +551,7 @@ static int usrsock_rpmsg_accept_handler(struct rpmsg_endpoint *ept,
struct usrsock_rpmsg_s *priv = priv_;
socklen_t outaddrlen = req->max_addrlen;
socklen_t inaddrlen = req->max_addrlen;
- int i;
+ int i = 0;
int retr;
int ret = -EBADF;
|
Scale cellpadding based on font_size | @@ -2103,7 +2103,7 @@ void convert_colors(bool do_conv, struct swapchain_stats& sw_stats, struct overl
style.Colors[ImGuiCol_PlotHistogram] = convert(params.frametime_color);
style.Colors[ImGuiCol_WindowBg] = convert(params.background_color);
style.Colors[ImGuiCol_Text] = convert(params.text_color);
- style.CellPadding... |
[mod_dirlisting] quiet coverity false positive | @@ -884,6 +884,12 @@ static int http_list_directory(request_st * const r, plugin_data * const p, buff
* so this should actually not be a buffer-overflow-risk
*/
if (dsz > name_max) continue;
+ #ifdef __COVERITY__
+ /* For some reason, Coverity overlooks the strlen() performed
+ * a few lines above and thinks memcpy() b... |
Fix default value in tab script event fields | @@ -135,7 +135,7 @@ const ScriptEventFormField = memo(
return (
<TabBar
variant="scriptEvent"
- value={String(value || "")}
+ value={String(value || Object.keys(field.values || {})[0])}
values={field.values || {}}
onChange={onChange}
/>
|
Make string overloads use stackalloc for smaller strings. | @@ -94,7 +94,7 @@ internal sealed class CStrOverloadsGenerator : IIncrementalGenerator
foreach (string overloadParamName in overloadParamNames)
{
builder.AppendLine(
- $"Span<byte> {overloadParamName}Bytes = new Span<byte>(new byte[{overloadParamName}.Length + 1]);");
+ $"Span<byte> {overloadParamName}Bytes = {overload... |
Mention crash on Android 12 on old scrcpy in FAQ | @@ -222,6 +222,27 @@ scrcpy -m 800
You could also try another [encoder](README.md#encoder).
+If you encounter this exception on Android 12, then just upgrade to scrcpy >=
+1.18 (see [#2129]):
+
+```
+> ERROR: Exception on thread Thread[main,5,main]
+java.lang.AssertionError: java.lang.reflect.InvocationTargetException
... |
Use the correct time unit in BackoffSweeper backend
Commit used the wrong time unit (expect Ms, passed with Us)
in BackoffSweeper backend which makes it cannot re-calculate the CPU shares
in time and the normal backends will sleep more CPU ticks than before in
CHECK_FOR_INTERRUPTS and cause a performance downgrade. | @@ -1208,7 +1208,7 @@ BackoffSweeperLoop(void)
/* Sleep a while. */
rc = WaitLatch(&MyProc->procLatch,
WL_LATCH_SET | WL_TIMEOUT | WL_POSTMASTER_DEATH,
- gp_resqueue_priority_sweeper_interval * 1000L);
+ gp_resqueue_priority_sweeper_interval);
ResetLatch(&MyProc->procLatch);
/* emergency bailout if postmaster has died ... |
[ctr/lua] Fix return counts | @@ -64,14 +64,14 @@ const char *vm_pcall(lua_State *L, int argc, int *nresult)
{
int err;
const char *errMsg = NULL;
- int nr = lua_gettop(L);
+ int nr = lua_gettop(L) - argc - 1;
err = lua_pcall(L, argc, LUA_MULTRET, 0);
if (err != 0) {
errMsg = strdup(lua_tostring(L, -1));
return errMsg;
}
- *nresult = lua_gettop(L) ... |
linux: missing subproc_checkTimeLimit and subproc_checkTermination | @@ -310,6 +310,10 @@ void arch_reapChild(honggfuzz_t * hfuzz, fuzzer_t * fuzzer)
PLOG_F("sigtimedwaid(SIGNAL_WAKE|SIGCHLD), 0.25s");
continue;
}
+ if (sig == -1) {
+ subproc_checkTimeLimit(hfuzz, fuzzer);
+ subproc_checkTermination(hfuzz, fuzzer);
+ }
if (subproc_persistentModeRoundDone(hfuzz, fuzzer)) {
break;
}
|
[doc/man3] documentation: BN_cmp manpage updates | =head1 NAME
-BN_cmp, BN_ucmp, BN_is_zero, BN_is_one, BN_is_word, BN_is_odd - BIGNUM comparison and test functions
+BN_cmp, BN_ucmp, BN_is_zero, BN_is_one, BN_is_word, BN_abs_is_word, BN_is_odd - BIGNUM comparison and test functions
=head1 SYNOPSIS
#include <openssl/bn.h>
- int BN_cmp(BIGNUM *a, BIGNUM *b);
- int BN_ucm... |
fix ci install libsdl-dev error | @@ -230,7 +230,7 @@ jobs:
shell: bash
run: |
sudo apt-get update
- sudo apt-get -qq install gcc-multilib libsdl-dev libncurses5-dev scons
+ sudo apt-get -qq install gcc-multilib libncurses5-dev scons
sudo python -m pip install --upgrade pip -qq
pip install requests -qq
git config --global http.postBuffer 524288000
|
Added content type application/cbor to coap-constants | @@ -166,7 +166,8 @@ typedef enum {
APPLICATION_FASTINFOSET = 48,
APPLICATION_SOAP_FASTINFOSET = 49,
APPLICATION_JSON = 50,
- APPLICATION_X_OBIX_BINARY = 51
+ APPLICATION_X_OBIX_BINARY = 51,
+ APPLICATION_CBOR = 60
} coap_content_format_t;
/**
|
doc: PG 14 relnotes fixes
Items related to logical replication attribution and BRIN indexes
Reported-by: Tomas Vondra, John Naylor
Discussion: | @@ -976,8 +976,8 @@ Author: Tomas Vondra <tomas.vondra@postgresql.org>
</para>
<para>
- This allows bloom indexes to be used effectively with data that
- is not physically localized in the heap.
+ This allows <acronym>BRIN</acronym> indexes to be used effectively
+ with data that is not physically localized in the heap... |
update error handling in chown and chmod | @@ -320,9 +320,7 @@ static Value chmodNative(DictuVM *vm, int argCount, Value *args) {
int i = strtol(mode->chars, 0, 8);
if (chmod(file->chars, i) == -1) {
- char errMsg[1024];
- sprintf(errMsg, "%s", strerror(errno));
- return newResultError(vm, errMsg);
+ ERROR_RESULT;
}
return newResultSuccess(vm, EMPTY_VAL);
@@ -3... |
GetGCCRoot() for usual toolchain dir structures
So don't depend on any special assumptions. See comments in the codes. | @@ -37,6 +37,24 @@ def GetGCCRoot(rtconfig):
else:
root_path = os.path.join(exec_path, '..', prefix)
+ # Usually the cross compiling gcc toolchain has directory as:
+ #
+ # bin
+ # lib
+ # share
+ # arm-none-eabi
+ # bin
+ # include
+ # lib
+ # share
+ prefix = rtconfig.PREFIX
+ if prefix.endswith('-'):
+ prefix = pref... |
EV3: print to IDE by default
same behavior as BOOST terminal print | @@ -8,15 +8,16 @@ Contained in set:
LEGO ID: 95646
"""
+from sys import stderr
+from builtins import print as builtinprint
+
# import those features of the EV3 brick that are already written in MicroPython-style C code.
from ev3brick_c import *
-from ev3devio import write_int
-from sys import stderr
-def terminal(*args... |
refactor(platform): update ime selection in the linux | * POSSIBILITY OF SUCH DAMAGE.
*/
+#include <LCUI_Build.h>
+
+#ifdef LCUI_BUILD_IN_LINUX
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
-#include <LCUI_Build.h>
-
-#ifdef LCUI_BUILD_IN_LINUX
#include <LCUI/LCUI.h>
#include <LCUI/input.h>
#include <LCUI/gui/widget.h>
#include <LCUI/platform... |
pbio/observer: Don't stall on coast.
When coasting, the stall flag should never be raised. | @@ -65,7 +65,14 @@ void pbio_observer_get_estimated_state(pbio_observer_t *obs, int32_t *speed_num,
*speed_num = obs->speed_numeric;
}
-static void update_stall_state(pbio_observer_t *obs, uint32_t time, int32_t voltage, int32_t feedback_voltage) {
+static void update_stall_state(pbio_observer_t *obs, uint32_t time, pb... |
update spinbox object when int value change | @@ -165,6 +165,8 @@ void lv_spinbox_set_int(const lv_obj_t * spinbox, int32_t i)
i = ext->rangeMin;
ext->valueDigit = i;
+
+ lv_spinbox_updatevalue(spinbox);
}
void lv_spinbox_set_digit_format(const lv_obj_t * spinbox, uint8_t digit_count, uint8_t separator_position)
|
h2olog: define a struct to represent a req line | from bcc import BPF, USDT
import getopt, sys
+bpf = """
+#define MAX_STR_LEN 128
+
+/*
+ * "req_line_t" represents an individual log line for a given request.
+ * This structure is pushed into the BPF ring buffer for later collection
+ * by the user-space script (Python part of this script).
+ */
+struct req_line_t {
+... |
Added missing #include <cstdio>
For snprintf, for compatibility with GCC 13.
Fixes - thanks ! | @@ -2614,6 +2614,10 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeStatsString(
#include <bit> // For std::popcount
#endif
+#if VMA_STATS_STRING_ENABLED
+ #include <cstdio> // For snprintf
+#endif
+
/*******************************************************************************
CONFIGURATION SECTION
|
clean up ra-console init code | ++ ra-console :: console subscribe
|= {her/ship pax/path}
^+ +>
- =+ man=`knot`?~(pax (main her) ?>(?=($~ t.pax) i.pax))
- =+ ^= she ^- shell
- [her man 0 *sole-share ~ [[%& our.hid man] ~ ~] [~ ~] ~ *cabal ~]
- sh-abet:~(sh-peer sh ~ she)
+ =/ man/knot
+ ?+ pax !!
+ $~ (main her)
+ {@ta $~} i.pax
+ ==
+ =/ she/shell
+... |
NetworkTools: Remove unsed SelectFont | @@ -447,13 +447,13 @@ INT_PTR CALLBACK NetworkPingWndProc(
{
if (PhGetIntegerSetting(L"GraphShowText"))
{
- HDC hdc = Graph_GetBufferedContext(context->PingGraphHandle);
+ HDC hdc;
PhMoveReference(&context->PingGraphState.Text,
PhFormatString(L"%lu ms", context->CurrentPingMs)
);
- SelectFont(hdc, PhApplicationFont);
+... |
Add a CMS test for a bad encryption algorithm | @@ -50,7 +50,7 @@ my ($no_des, $no_dh, $no_dsa, $no_ec, $no_ec2m, $no_rc2, $no_zlib)
$no_rc2 = 1 if disabled("legacy");
-plan tests => 16;
+plan tests => 17;
ok(run(test(["pkcs7_test"])), "test pkcs7");
@@ -887,6 +887,24 @@ subtest "CMS Check that bad attributes fail when verifying signers\n" => sub {
}
};
+subtest "CM... |
changing cmake to which will pick up /usr/local/cmake from aomp_common_args | @@ -39,7 +39,7 @@ AOMP_GPU=${AOMP_GPU:-$DETECTED_GPU}
# Check cmake version
cmake_regex="(([0-9])+\.([0-9]+)\.[0-9]+)"
-cmake_ver_str=$(cmake --version)
+cmake_ver_str=$($AOMP_CMAKE --version)
if [[ "$cmake_ver_str" =~ $cmake_regex ]]; then
cmake_ver=${BASH_REMATCH[1]}
cmake_major_ver=${BASH_REMATCH[2]}
@@ -68,7 +68,7 ... |
dm:send shutdown to life_mngr on SOS
it will send shutdown command to life_mngr on SOS
after the UOS has poweroff itself
Acked-by: Wang, Yu1 | @@ -319,6 +319,21 @@ void pm_by_vuart_init(struct vmctx *ctx)
void pm_by_vuart_deinit(struct vmctx *ctx)
{
+ /* it indicates that acrn-dm has received shutdown command
+ * from UOS in this state, and it will send shutdown command
+ * to life_mngr running on SOS to shutdown system after UOS
+ * has poweroff itself.
+ */... |
fix(usb): add USB_DC_CLEAR_HALT to supported states
See for
information on halted USB endpoints | @@ -34,6 +34,7 @@ enum zmk_usb_conn_state zmk_usb_get_conn_state() {
case USB_DC_SUSPEND:
case USB_DC_CONFIGURED:
case USB_DC_RESUME:
+ case USB_DC_CLEAR_HALT:
return ZMK_USB_CONN_HID;
case USB_DC_DISCONNECTED:
|
Documentation: Fix format of block quote | @@ -229,8 +229,10 @@ So you can't have different configuration files for the same mountpoints in othe
Because of the same reason you cannot have different configuration file names or syntax for the same mountpoint in the `user` namespace.
This is one of the reasons why Elektra promotes this [naming convention](/doc/hel... |
Trembyle: Fix HDMI retimer suspend / resume
BRANCH=none
TEST=none | #include "driver/accel_kionix.h"
#include "driver/accel_kx022.h"
#include "driver/retimer/pi3dpx1207.h"
+#include "driver/retimer/pi3hdx1204.h"
#include "driver/retimer/ps8811.h"
#include "driver/temp_sensor/sb_tsi.h"
#include "driver/usb_mux/amd_fp5.h"
@@ -184,12 +185,11 @@ const int usb_port_enable[USBA_PORT_COUNT] =... |
leave open-file limit headroom | @@ -3501,6 +3501,8 @@ static void __attribute__((constructor)) fio_lib_init(void) {
--rlim.rlim_cur;
getrlimit(RLIMIT_NOFILE, &rlim);
capa = rlim.rlim_cur;
+ if (capa > 1024) /* leave a slice of room */
+ capa -= 16;
}
/* initialize memory allocator */
fio_mem_init();
|
kernel/sem_wait.c : Add comment about semcount increasing awakened by signal or timeout
If a semaphore is awakened by signal or timeout, its semcount was increased from sem_waitirq.
In the sem_wait code, there is no mention about semcount restore, so added the description about this. | @@ -221,9 +221,8 @@ int sem_wait(FAR sem_t *sem)
* latter cases be examining the errno value.
*
* In the event that the semaphore wait was interrupted by a signal or
- * a timeout, certain semaphore clean-up operations have already been
- * performed (see sem_waitirq.c). Specifically:
- *
+ * a timeout, certain semapho... |
jni: resolve JAVA_HOME only if not empty | @@ -3,9 +3,10 @@ include (LibAddBinding)
include (SafeCheckSymbolExists)
if (DEPENDENCY_PHASE)
+ if ($ENV{JAVA_HOME})
# resolve full path to avoid invalid RPATH (e.g. on Fedora 35)
- set (JAVA_HOME_TEMP $ENV{JAVA_HOME})
- get_filename_component (JAVA_HOME ${JAVA_HOME_TEMP} REALPATH)
+ get_filename_component (JAVA_HOME ... |
target-test.yml: Add EXAMPLE_ETH_OTA runner to OTA on ethernet based runners | @@ -115,10 +115,9 @@ example_test_001D:
example_test_OTA:
extends: .example_test_esp32_template
- parallel: 2
tags:
- ESP32
- - Example_WIFI_OTA
+ - EXAMPLE_ETH_OTA
example_test_protocols:
extends: .example_test_esp32_template
|
Fixed small bug in extern_init.c, test now passes. | @@ -15,6 +15,6 @@ int main(){
fprintf(stderr, "BEFORE colstat[0..2] %d %d %d \n", colstat[0], colstat[1], colstat[2]);
#pragma omp target update from(colstat)
fprintf(stderr, "AFTER colstat[0..2] %d %d %d \n", colstat[0], colstat[1], colstat[2]);
- return (colstat[0] == 1 && colstat[1] == 1111 && colstat[2] == 2) ? 0 :... |
apps/cmp.c: check and exit on engine load error | @@ -2716,8 +2716,13 @@ int cmp_main(int argc, char **argv)
if (opt_batch)
set_base_ui_method(UI_null());
- if (opt_engine != NULL)
+ if (opt_engine != NULL) {
engine = setup_engine_methods(opt_engine, 0 /* not: ENGINE_METHOD_ALL */, 0);
+ if (engine == NULL) {
+ CMP_err1("cannot load engine %s", opt_engine);
+ goto err... |
make test: BFD tests speedup | @@ -375,7 +375,6 @@ class BFDCommonCode:
def bfd_session_up(self):
""" Bring BFD session up """
- self.pg_enable_capture([self.pg0])
self.logger.info("BFD: Waiting for slow hello")
p, timeout = self.wait_for_bfd_packet(2)
self.logger.info("BFD: Sending Init")
@@ -491,6 +490,7 @@ class BFD4TestCase(VppTestCase, BFDCommo... |
avcodec: Return EPROTO when encountering missing fragments in H264 stream, to trigger intra-frame request | @@ -333,6 +333,7 @@ int decode_h264(struct viddec_state *st, struct vidframe *frame,
" ignoring NAL\n");
fragment_rewind(st);
++st->stats.n_lost;
+ return EPROTO;
}
st->frag_start = st->mb->pos;
@@ -351,7 +352,7 @@ int decode_h264(struct viddec_state *st, struct vidframe *frame,
if (!st->frag) {
debug("avcodec: ignorin... |
fpsensor: Use global fingerprint OWNERS file
BRANCH=none
TEST=none | # Don't inherit owners from elsewhere in the manifest
set noparent
-hesling@chromium.org
-jora@google.com
-josienordrum@google.com
-tomhughes@chromium.org
-yichengli@chromium.org
+include chromiumos/platform2:/biod/OWNERS
|
Remind people to have 'Fixes #XXXX' in the commit message
It's of course also possible to just add them to the PR description,
but having these lines in the commit messages provide better
automation. | @@ -3,7 +3,9 @@ Thank you for your pull request. Please review these requirements:
Contributors guide: https://github.com/openssl/openssl/blob/master/CONTRIBUTING
-Other than that, provide a description above this comment if there isn't one already, and if it fixes a github issue, add 'Fixes #XXXX' (without quotes) as ... |
rune/libenclave: drop invalid fields in Quote
Dropping invalid fields in Quote to avoid invalid Attestation
Evidence Payload error(ErrorCode: 400). | @@ -355,5 +355,5 @@ func GetQuote(report []byte, spid string, linkable bool) ([]byte, error) {
logrus.Debugf(" Signature Length: %d\n",
q.SigLen)
- return resp.GetQuote.GetQuote(), nil
+ return quote[0 : q.SigLen+QuoteLength], nil
}
|
sole: include details in stack trace | |= sole-change
^- {sole-edit sole-share}
?. &(=(his.ler his.ven) (lte own.ler own.ven))
- ~& [%receive-sync his+[his.ler his.ven] own+[own.ler own.ven]]
+ ~| [%receive-sync his+[his.ler his.ven] own+[own.ler own.ven]]
!!
?> &(=(his.ler his.ven) (lte own.ler own.ven))
?> |(!=(own.ler own.ven) =(`@`0 haw) =(haw (sham buf... |
Add TSCH timeslot element description, based on initial work by Rajeev Pinare | #include "net/mac/tsch/tsch.h"
/**
- * \brief The default timeslot timing in the standard is a guard time of
+ * \brief TSCH timing attributes and description. All timings are in usec.
+ *
+ * CCAOffset -> time between the beginning of timeslot and start of CCA
+ * CCA -> duration of CCA (CCA is NOT ENABLED by default)... |
Also test C17 | @@ -35,8 +35,9 @@ endmacro()
clap_compile_cpp(c11 c 11 11)
clap_compile_cpp(cpp11 cc 11 11)
clap_compile_cpp(cpp14 cc 11 14)
-clap_compile_cpp(cpp17 cc 11 17)
-clap_compile_cpp(cpp20 cc 11 20)
+clap_compile_cpp(c17 c 17 17)
+clap_compile_cpp(cpp17 cc 17 17)
+clap_compile_cpp(cpp20 cc 17 20)
add_library(clap-plugin-temp... |
add Microsoft Visual C++ Redistributable to instructions for sdr_transceiver | </li>
<li>Connect an antenna to the IN1 connector on the Red Pitaya board.</li>
<li>Download and install <a href="https://www.dropbox.com/sh/5fy49wae6xwxa8a/AAAdAcU238cppWziK4xPRIADa/sdr/sdrsharp_v1.0.0.1361_with_plugins.zip?dl=1">SDR#</a> or <a href="http://www.hdsdr.de/" target="_blank">HDSDR</a>.</li>
+<li>Download ... |
Made foreign bit field unsigned in evp.h
Fixes | @@ -686,7 +686,7 @@ struct evp_pkey_st {
#ifndef FIPS_MODULE
STACK_OF(X509_ATTRIBUTE) *attributes; /* [ 0 ] */
int save_parameters;
- int foreign:1; /* the low-level key is using an engine or an app-method */
+ unsigned int foreign:1; /* the low-level key is using an engine or an app-method */
CRYPTO_EX_DATA ex_data;
#... |
opae-c: link libopae-c with pthreads
Not linking opae-c with pthreads placed the burden on applications to
link with the library. This change adds -lpthread to the opae-c link
line where it rightly belongs. It also adds -pthread to the opae-c
compile line. | @@ -65,7 +65,10 @@ target_link_libraries(opae-c
m
safestr
${libjson-c_LIBRARIES}
- ${libuuid_LIBRARIES})
+ ${libuuid_LIBRARIES}
+ ${CMAKE_THREAD_LIBS_INIT})
+
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
# Define headers for this library. PUBLIC headers are used for
# compiling the library, and will be added to cons... |
Detect ASE in host_exerciser to adjust timeout for simulation | @@ -57,6 +57,7 @@ public:
he_lpbk_ctl_.value = 0;
he_lpbk_api_ver_ = 0;
he_lpbk_atomics_supported_ = false;
+ is_ase_sim_ = false;
}
virtual ~host_exerciser_cmd() {}
@@ -188,6 +189,11 @@ public:
{
/* Wait for test completion */
uint32_t timeout = HELPBK_TEST_TIMEOUT;
+ if (is_ase_sim_) {
+ // Much longer timeout when r... |
input_chunk: fix log format specifier (CID 304413) | @@ -136,7 +136,7 @@ struct flb_input_chunk *flb_input_chunk_create(struct flb_input_instance *in,
CIO_OPEN, FLB_INPUT_CHUNK_SIZE, &err);
if (!chunk) {
flb_error("[input chunk] could not create chunk file: %s:%s",
- storage->stream, name);
+ storage->stream->name, name);
return NULL;
}
|
Whitespace - wrap sone long lines | @@ -367,9 +367,11 @@ void compute_angular_endpoints_1plane(
}
int samplecount = bsd->decimation_tables[i]->weight_count;
- compute_angular_endpoints_for_quant_levels(samplecount,
+ compute_angular_endpoints_for_quant_levels(
+ samplecount,
decimated_quantized_weights + i * MAX_WEIGHTS_PER_BLOCK,
- decimated_weights + i... |
yin parser CHANGE add support for modifier element | @@ -491,6 +491,48 @@ yin_pasrse_reqinstance(struct yin_parser_ctx *ctx, struct yin_arg_record *attrs,
return yin_parse_content(ctx, subelems, 1, data, YANG_REQUIRE_INSTANCE, NULL, &type->exts);
}
+/**
+ * @brief Parse modifier element.
+ *
+ * @param[in,out] ctx Yin parser context for logging and to store current state... |
ur: refactors ur_met, deduplicating and using bloq-conversion macros | @@ -505,40 +505,16 @@ ur_bytes(ur_root_t *r, ur_nref ref, uint8_t **byt, uint64_t *len)
uint64_t
ur_met(ur_root_t *r, uint8_t bloq, ur_nref ref)
{
- assert( !ur_deep(ref) );
-
- // these cases are the same, except for the
- // bit-width calculation and the width of their operands
- //
- switch ( ur_nref_tag(ref) ) {
- ... |
VERSION bump to version 2.0.212 | @@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 211)
+set(LIBYANG_MICRO_VERSION 212)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}... |
Increase LOD bias for mipmapping
Mipmapping caused too much blurring.
Using a LOD bias of -1 instead of -0.5 seems a better compromise to
avoid low-quality downscaling while keeping sharp edges in any case.
Refs <https://github.com/Genymobile/scrcpy/issues/1394>
Refs <https://github.com/Genymobile/scrcpy/issues/40#issu... | @@ -217,7 +217,7 @@ create_texture(struct screen *screen) {
// Enable trilinear filtering for downscaling
gl->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,
GL_LINEAR_MIPMAP_LINEAR);
- gl->TexParameterf(GL_TEXTURE_2D, GL_TEXTURE_LOD_BIAS, -.5f);
+ gl->TexParameterf(GL_TEXTURE_2D, GL_TEXTURE_LOD_BIAS, -1.f);
SDL_GL... |
controller/ble_ll_scan: For callouts number of ticks are used | @@ -3431,20 +3431,16 @@ ble_ll_set_ext_scan_params(const uint8_t *cmdbuf, uint8_t len)
static void
ble_ll_scan_duration_period_timers_restart(struct ble_ll_scan_sm *scansm)
{
- ble_npl_time_t now;
-
- now = ble_npl_time_get();
-
ble_npl_callout_stop(&scansm->duration_timer);
ble_npl_callout_stop(&scansm->period_timer);... |
Updated readme to version 1.5 | -SGDK 1.41 (september 2019)
-Copyright 2019 Stephane Dallongeville
+SGDK 1.5 (april 2020)
+Copyright 2020 Stephane Dallongeville
Patreon: https://www.patreon.com/SGDK
Github: https://github.com/Stephane-D/SGDK
@@ -21,12 +21,12 @@ First, you need to know that SGDK uses C language (assembly is also possible) so
It's also... |
Remove descriptions and defaults for already set variables | @@ -142,28 +142,16 @@ config ZMK_BLE_PASSKEY_ENTRY
bool "Experimental: Requiring typing passkey from host to pair BLE connection"
default n
-config BT_GAP_AUTO_UPDATE_CONN_PARAMS
- bool "Automatic Update of Connection Parameters"
- default y
-
-config BT_GAP_PERIPHERAL_PREF_PARAMS
- bool "Configure peripheral preferred... |
Improve error messages for invalid view index; | @@ -3555,23 +3555,23 @@ void lovrPassReset(Pass* pass) {
}
void lovrPassGetViewMatrix(Pass* pass, uint32_t index, float* viewMatrix) {
- lovrCheck(index < pass->cameraCount, "Invalid view index '%d'", index);
+ lovrCheck(index < pass->cameraCount, "Trying to use view '%d', but Pass view count is %d", index + 1, pass->c... |
hongguzz.c: missing comma | @@ -361,7 +361,7 @@ int main(int argc, char** argv) {
char tmstr[64];
util_getLocalTime("%F.%H.%M.%S", tmstr, sizeof(tmstr), time(NULL));
LOG_I("Start time:'%s' bin:'%s', input:'%s', output:'%s', persistent:%s, stdin:%s, "
- "mutation_rate:%u, timeout:%ld, max_runs:%zu, threads:%zu, minimize:%s git_commit:%s",
+ "mutat... |
esp_pm: temporarily disable failing test | @@ -154,7 +154,8 @@ TEST_CASE("Automatic light occurs when tasks are suspended", "[pm]")
}
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32S2, ESP32S3)
-TEST_CASE("Can wake up from automatic light sleep by GPIO", "[pm]")
+// Fix failure on ESP32 when running alone; passes when the previous test is run before this one
+TEST_CA... |
[libc] redirecting header sys/signal to signal | extern "C" {
#endif /* __cplusplus */
+#ifdef RT_USING_MUSLLIBC
+#include <signal.h>
+#else
+
#include <stdint.h>
#include <sys/types.h>
@@ -229,6 +233,8 @@ int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact)
#define SIG_IGN ((void (*)(int)) 1)
#endif
+#endif /* RT_USING_MUSLLIBC */
+
#ifde... |
SW: Adding -funroll-all-loops to improve performance for software | @@ -86,9 +86,13 @@ endif
CFLAGS ?= -W -Wall -Werror -Wwrite-strings -Wextra -O2 -g \
-Wmissing-prototypes # -Wstrict-prototypes -Warray-bounds
+
CFLAGS += -DGIT_VERSION=\"$(VERSION)\" \
-I. -I../include -D_GNU_SOURCE=1
+# Optimizations
+CFLAGS += -funroll-all-loops
+
# Force 32-bit build
# This is needed to generate th... |
move symbolic links from files macro to postun macro | @@ -52,12 +52,15 @@ echo "DONE POST INSTALL SCRIPT FROM spec file RUNNING IN $PWD"
%files
%defattr(-,root,root)
%{_prefix}/lib/aomp___VERSION2_STRING/*
-%{_prefix}/bin/aompversion
-%{_prefix}/bin/mymcpu
-%{_prefix}/bin/mygpu
-%{_prefix}/bin/cloc.sh
-%{_prefix}/../etc/profile.d/aomp.sh
-%{_prefix}/../etc/profile.d/aomp.... |
virtio: use current_data as l2_hdr_offset
Type: fix
virtio transmit node uses header offsets to set the
appropriate metadata for packet with offloads. But
l2_hdr_offset is not correctly set by previous node(s).
This patch makes use of curren_data field as l2_hdr_offset. | @@ -309,8 +309,7 @@ set_checksum_offsets (vlib_buffer_t *b, vnet_virtio_net_hdr_v1_t *hdr,
const int is_l2)
{
vnet_buffer_oflags_t oflags = vnet_buffer (b)->oflags;
- i16 l4_hdr_offset =
- vnet_buffer (b)->l4_hdr_offset - vnet_buffer (b)->l2_hdr_offset;
+ i16 l4_hdr_offset = vnet_buffer (b)->l4_hdr_offset - b->current_... |
net/local_connect:Align the returned error code with Linux
When using PIPE connect to a file, ENOTSOCK or ECONNREFUSED should be returned
and when using PIPE connect to invalid pipe name, ENOENT should be returned in libuv | #include <nuttx/net/net.h>
#include <arch/irq.h>
+#include <sys/stat.h>
#include "utils/utils.h"
#include "socket/socket.h"
@@ -241,6 +242,8 @@ int psock_local_connect(FAR struct socket *psock,
FAR const char *unpath = unaddr->sun_path;
FAR struct local_conn_s *conn = NULL;
uint8_t type = LOCAL_TYPE_PATHNAME;
+ struct ... |
win32: update for MSVC version setting in build.yml | @@ -128,6 +128,17 @@ namespace "build" do
def set_vcvarsall()
if $vcvarsall == nil
$vs_version = nil
+
+ msvc_version = $app_config["win32"]["msvc"] if $app_config && $app_config["win32"] && $app_config["win32"]["msvc"]
+ if (msvc_version == "2015" or msvc_version == "2017" or msvc_version == "2019")
+ $vs_version = ms... |
Assert non-recursive usage of mutexes | @@ -43,6 +43,8 @@ sc_mutex_destroy(sc_mutex *mutex) {
void
sc_mutex_lock(sc_mutex *mutex) {
+ // SDL mutexes are recursive, but we don't want to use recursive mutexes
+ assert(!sc_mutex_held(mutex));
int r = SDL_LockMutex(mutex->mutex);
#ifndef NDEBUG
if (r) {
@@ -59,6 +61,7 @@ sc_mutex_lock(sc_mutex *mutex) {
void
sc_... |
revert r6252682 | @@ -18,7 +18,7 @@ void LockMemory(const void* addr, size_t len) {
#if defined(_unix_)
const size_t pageSize = NSystemInfo::GetPageSize();
if (mlock(AlignDown(addr, pageSize), AlignUp(len, pageSize)))
- /*ythrow yexception() << LastSystemErrorText()*/;
+ ythrow yexception() << LastSystemErrorText();
#elif defined(_win_)... |
YAML CPP: Update name and docu of function | @@ -220,16 +220,15 @@ void addEmptyArrayElements (YAML::Node & sequence, unsigned long long const numb
}
/**
- * @brief This function adds a key that is either, element of an array, or an array parent to a YAML node.
+ * @brief This function adds a key to a YAML node.
*
* @param data This node stores the data specified... |
os.Exit(..) skips resource-cleaning deferred calls | @@ -17,15 +17,21 @@ func run() int {
var vx, vy = make([]int16, 3), make([]int16, 3)
var err error
+ if err = sdl.Init(sdl.INIT_EVERYTHING); err != nil {
+ fmt.Fprintf(os.Stderr, "Failed to initialize SDL: %s\n", err)
+ return 1
+ }
+ defer sdl.Quit()
+
if window, err = sdl.CreateWindow(winTitle, sdl.WINDOWPOS_UNDEFINE... |
jael: remove TODO, fix comment | :: [%vega ~]
::
%vega
- +>.$::
+ +>.$
+ ::
:: in response to memory pressure
:: [%trim p=@ud]
::
%trim
- ::TODO consider %ruin-ing long-offline comets
+>.$
::
:: watch private keys
=| lex=state-2
|= $: :: now: current time
:: eny: unique entropy
- :: ski: namespace resolver
+ :: rof: namespace resolver
::
now=@da
eny=@... |
sailfish: removing import of keepalive | @@ -3,7 +3,7 @@ import Sailfish.Silica 1.0
import QtWebKit 3.0
import QtMultimedia 5.5
import QtWebKit.experimental 1.0
-import Nemo.KeepAlive 1.1
+//import Nemo.KeepAlive 1.1
Page {
id: mainPage
|
fix wording per Eng | @@ -19,7 +19,7 @@ Assets are available via Docker and the Cribl CDN at the links below.
AppScope 1.2.0 introduces substantial new functionality:
-- The new `scope start` command, which takes a **filter list** as an argument. The filter list has an allowlist section for specifying which processes to scope, and an option... |
nimble/ll: Fix start time calculations | @@ -1705,9 +1705,9 @@ ble_ll_sched_aux_scan(struct ble_mbuf_hdr *ble_hdr,
start_time = ble_hdr->beg_cputime + off_ticks;
start_time_rem_usecs = ble_hdr->rem_usecs + off_rem_usecs;
- if (start_time_rem_usecs > 30) {
+ if (start_time_rem_usecs >= 31) {
start_time++;
- start_time_rem_usecs -= 30;
+ start_time_rem_usecs -=... |
l2: change prefetch to prefetchw
L2 prefetches the vlib_buffer_t and then immediately writes to l2 split
horizon group. Changing to the prefetch to a prefetchw.
Type: improvement | @@ -252,10 +252,10 @@ l2input_node_inline (vlib_main_t * vm,
/* Prefetch next iteration. */
{
/* Prefetch the buffer header and packet for the N+2 loop iteration */
- vlib_prefetch_buffer_header (b[4], LOAD);
- vlib_prefetch_buffer_header (b[5], LOAD);
- vlib_prefetch_buffer_header (b[6], LOAD);
- vlib_prefetch_buffer_... |
Fixed uninitialized variables warning | @@ -116,7 +116,7 @@ celix_status_t pubsubAdmin_create(bundle_context_pt context, pubsub_admin_pt *ad
if (mc_ip == NULL) {
const char *mc_prefix = NULL;
const char *interface = NULL;
- int b0, b1, b2, b3;
+ int b0 = 0, b1 = 0, b2 = 0, b3 = 0;
bundleContext_getProperty(context,PSA_MULTICAST_IP_PREFIX , &mc_prefix);
if(mc... |
[CUDA] Use POCL_MSG_ERR for module verification output | @@ -93,10 +93,10 @@ int pocl_ptx_gen(const char *bc_filename, const char *ptx_filename,
(*module)->dump();
// Verify module
- std::string err;
- llvm::raw_string_ostream errs(err);
+ std::string error;
+ llvm::raw_string_ostream errs(error);
if (llvm::verifyModule(*module->get(), &errs)) {
- printf("\n%s\n", err.c_str(... |
Refactoring: make local function static | @@ -91,7 +91,7 @@ static bufr_descriptors_array* grib_bufr_descriptors_array_resize_to(bufr_descri
return v;
}
-bufr_descriptors_array* grib_bufr_descriptors_array_resize(bufr_descriptors_array* v)
+static bufr_descriptors_array* grib_bufr_descriptors_array_resize(bufr_descriptors_array* v)
{
const int newsize = v->inc... |
VMS build: typo in build file template, generatesrc | @@ -766,7 +766,7 @@ reconfigure reconf :
$target : $args{generator}->[0] $deps $mkdef
\$(PERL) $mkdef$ord_ver --ordinals $args{generator}->[0] --name $ord_name "--OS" "VMS"$case_insensitive > $target
EOF
- } elsif ($target !~ /\.[sS]$/) {
+ } elsif ($args{src} !~ /\.[sS]$/) {
my $target = $args{src};
if ($args{generato... |
partially revert, snapshot params in init and fit now | @@ -1851,6 +1851,12 @@ class CatBoostClassifier(CatBoost):
bagging_temperature : float, [default=None]
Controls intensity of Bayesian bagging. The higher the temperature the more aggressive bagging is.
Typical values are in range [0, 1] (0 - no bagging, 1 - default).
+ save_snapshot : bool, [default=None]
+ Enable prog... |
input: chunk: expose release_tag() and get_tag() interfaces | @@ -48,5 +48,8 @@ int flb_input_chunk_append_raw(struct flb_input_instance *in,
char *tag, size_t tag_len,
void *buf, size_t buf_size);
void *flb_input_chunk_flush(struct flb_input_chunk *ic, size_t *size);
+int flb_input_chunk_release_lock(struct flb_input_chunk *ic);
+int flb_input_chunk_get_tag(struct flb_input_chun... |
CI: More MSVC 2022 support | @@ -181,6 +181,7 @@ if not exist "%LR_ROOT%" (
set MSVS_GENERATORS[2015]=Visual Studio 14 2015
set MSVS_GENERATORS[2017]=Visual Studio 15 2017
set MSVS_GENERATORS[2019]=Visual Studio 16 2019
+ set MSVS_GENERATORS[2022]=Visual Studio 17 2022
set CMAKE_GENERATOR=!MSVS_GENERATORS[%APPVEYOR_BUILD_WORKER_IMAGE:~14,4%]!
:: S... |
nimble/ll: Add 'ignored' flag to ble_hdr flags
This flag will be used by scanner to indicate that PDU is not valid and
shall be simply ignored. It's pretty much the same as failed CRC, but it
should be easier to debug if we have separate flags for both cases. | @@ -82,6 +82,7 @@ struct ble_mbuf_hdr_rxinfo
};
/* Flag definitions for rxinfo */
+#define BLE_MBUF_HDR_F_IGNORED (0x8000)
#define BLE_MBUF_HDR_F_SCAN_REQ_TXD (0x4000)
#define BLE_MBUF_HDR_F_INITA_RESOLVED (0x2000)
#define BLE_MBUF_HDR_F_EXT_ADV_SEC (0x1000)
@@ -115,6 +116,9 @@ struct ble_mbuf_hdr
uint32_t rem_usecs;
}... |
changelog for debian build | -aomp (0.5-5) UNRELEASED; urgency=medium
+aomp (0.6-0) UNRELEASED; urgency=medium
* Initial release of aomp is 0.3-2
* Please see example in /opt/rocm/aomp/examples/vmuldemo
@@ -96,12 +96,19 @@ aomp (0.5-5) UNRELEASED; urgency=medium
* use of debug runtime libraries.
* Temporary solution for device archive libraries wh... |
Update the guide | @@ -118,7 +118,7 @@ Elektra web consists of multiple components:
In order to test API on localhost, your have to start elektrad instance. You can do it in two ways:
-- run manually
+- run manually (if you would like to start it manually or you don't have eletrad-web tool installed)
- `cd libelektra/src/tools/web`
- `cd... |
Clear outputs in PKCS12_parse error handling. | @@ -34,6 +34,12 @@ int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,
{
STACK_OF(X509) *ocerts = NULL;
X509 *x = NULL;
+
+ if (pkey)
+ *pkey = NULL;
+ if (cert)
+ *cert = NULL;
+
/* Check for NULL PKCS12 structure */
if (!p12) {
@@ -42,11 +48,6 @@ int PKCS12_parse(PKCS12 *p12, const char *pas... |
Fill out the VmaAllocationInfo parameter passed to vmaAllocateMemory, vmaAllocateMemoryForBuffer, and vmaAllocateMemoryForImage. | @@ -5112,16 +5112,18 @@ VkResult vmaAllocateMemory(
VMA_DEBUG_GLOBAL_MUTEX_LOCK
- return allocator->AllocateMemory(
+ VkResult result = allocator->AllocateMemory(
*pVkMemoryRequirements,
*pVmaMemoryRequirements,
VMA_SUBALLOCATION_TYPE_UNKNOWN,
pAllocation);
- if(pAllocationInfo)
+ if(pAllocationInfo && result == VK_SUC... |
shoe: allow scrying into the underlying shoe app
For some reason we were never passing +on-peek calls on to the underlying agent. | ++ on-peek
|= =path
^- (unit (unit cage))
- ?. =(/x/dbug/state path) ~
+ ?. =(/x/dbug/state path) (on-peek:og path)
``noun+(slop on-save:og !>(shoe=state))
::
++ on-agent
|
http_auth.c: Fix crash when opaque field is not present in challenge string
Closes: | @@ -72,6 +72,7 @@ char *http_auth_digest(const char *username, const char *password, esp_http_auth
char *ha1, *ha2 = NULL;
char *digest = NULL;
char *auth_str = NULL;
+ char *temp_auth_str = NULL;
if (username == NULL ||
password == NULL ||
@@ -123,8 +124,13 @@ char *http_auth_digest(const char *username, const char *p... |
Update docs/Generators/Top-Testharness.rst | @@ -16,7 +16,7 @@ The top-level module of a Rocket Chip SoC is composed via cake-pattern. Specific
BaseSubsystem
^^^^^^^^^^^^^^^^^^^^^^^^^
-The ``BaseSubsystem`` is defined in ``generators/rocketchip/src/main/scala/subsystem/BaseSubsystem.scala``. Looking at the ``BaseSubsystem`` abstract class, we see that this class ... |
add plus configuration mixer | @@ -248,10 +248,18 @@ void motor_mixer_calc(float mix[4]) {
} else {
// normal mode, we set mix according to pidoutput
- mix[MOTOR_FR] = state.throttle - state.pidoutput.axis[ROLL] - state.pidoutput.axis[PITCH] + state.pidoutput.axis[YAW]; // FR
- mix[MOTOR_FL] = state.throttle + state.pidoutput.axis[ROLL] - state.pido... |
Add support to TP when converting to grib2 | "avgas" = {timeRangeIndicator=128;}
"avgad" = {timeRangeIndicator=130;}
"avgid" = {timeRangeIndicator=133;}
+
+
+
+# TP
+"accum" = {timeRangeIndicator=0;indicatorOfParameter=228;gribTablesVersionNo=128;centre=98;}
+
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.