message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
BugID:17342508:fix white scan issue | @@ -154,11 +154,6 @@ int dm_msg_proc_thing_service_property_get(_IN_ dm_msg_source_t *source, _IN_ dm
res = dm_msg_property_get(devid, request, (char **)data, data_len);
#endif
- if (res != SUCCESS_RETURN) {
- dm_log_err("DM Property Get Failed");
- return FAIL_RETURN;
- }
-
#ifdef DEPRECATED_LINKKIT
/* Response */
res... |
libbpf-tools: use raw_tp sched_switch instead of kprobe | @@ -62,7 +62,8 @@ static __always_inline void update_hist(struct task_struct *task,
histp = bpf_map_lookup_elem(&hists, &id);
if (!histp)
return;
- BPF_CORE_READ_STR_INTO(&histp->comm, task, comm);
+ bpf_probe_read_kernel_str(&histp->comm, sizeof(task->comm),
+ task->comm);
}
delta = ts - *tsp;
if (targ_ms)
@@ -75,20 +... |
move library/getopt into library/cpp/getopt: ^[a-b] paths | @@ -2,6 +2,7 @@ ALLOW contrib -> contrib
ALLOW contrib -> build
ALLOW contrib -> library/unittest
ALLOW contrib -> library/getopt
+ALLOW contrib -> library/cpp/getopt
ALLOW contrib -> library/resource
ALLOW contrib -> library/charset
ALLOW contrib -> library/svnversion
|
framework/st_things: fix memory leak
In cloud_manager, log_in_out_to_cloud makes a call to make_cloud_address
with ci_addr as NULL. Hence, we can free ipport. | @@ -1557,9 +1557,11 @@ int push_notification_to_cloud(const char *uri, OCRepPayload *payload)
static char *make_cloud_address(char *ip, char *port, const char *ci_addr)
{
char *ipport = (char *)ci_addr;
+ bool is_ci_addr_null = true;
THINGS_LOG_D(TAG, "ip=%s, port=%s, ci_addr=%s", ip, port, ci_addr);
if (ci_addr != NUL... |
Don't look for hexmate when we run CMake for metadata only | @@ -326,9 +326,11 @@ set(output_file "$<TARGET_FILE_DIR:${exe_target}>/${exe_target}.hex")
# Locate microchip hexmate.
set(MCHP_HEXMATE_PATH "" CACHE STRING "Path to microchip hexmate, usually this should be mplab's path")
find_program(hexmate_path hexmate PATHS ${MCHP_HEXMATE_PATH} PATH_SUFFIXES bin)
+if(NOT AFR_ENABL... |
Restore the space of prefix pointer in collection meta info. | @@ -127,6 +127,7 @@ typedef struct _list_meta_info {
uint8_t mflags; /* sticky, readable flags */
uint16_t itdist; /* distance from hash item (unit: sizeof(size_t)) */
uint32_t stotal; /* total space */
+ void *prefix; /* pointer to prefix meta info (NOT Used) */
list_elem_item *head;
list_elem_item *tail;
} list_meta_... |
Doxygen: Fixed typo in description for MSP and PSP access functions. | @@ -215,7 +215,7 @@ uint32_t __get_xPSR(void);
/**************************************************************************************************/
/** \brief Read the PSP register
\details
- The function reads the Program Status Pointer (PSP) value using the instruction \b MRS.
+ The function reads the Process Stack P... |
[Cita][#1193]modify Makefile cita not depend on eth | @@ -40,9 +40,6 @@ endif
ifeq ($(BOAT_PROTOCOL_USE_ETHEREUM)_$(BOAT_PROTOCOL_USE_QUORUM), 0_1)
$(error QUORUM depends on ETHEREUM, set 'BOAT_PROTOCOL_USE_ETHEREUM' to 1 if enable QUORUM)
endif
-ifeq ($(BOAT_PROTOCOL_USE_ETHEREUM)_$(BOAT_PROTOCOL_USE_CITA), 0_1)
- $(error CITA depends on ETHEREUM, set 'BOAT_PROTOCOL_USE_... |
cmd/kubectl-gadget/top: Make sort flag description less verbose | @@ -51,7 +51,7 @@ func addCommonTopFlags(
sortBySlice []string,
) {
command.Flags().IntVarP(&commonTopFlags.MaxRows, "max-rows", "r", defaultMaxRows, "Maximum rows to print")
- command.Flags().StringVarP(&commonTopFlags.SortBy, "sort", "", sortBySlice[0], fmt.Sprintf("Sort column, possible values are: %s", strings.Join... |
Fix axis vertical prototypes. | @@ -44,8 +44,8 @@ HRESULT openbor_get_axis_plane_lateral_int_property(ScriptVariant **varlist , Sc
HRESULT openbor_set_axis_plane_lateral_int_property(ScriptVariant **varlist , ScriptVariant **pretvar, int paramCount);
// Vertical plane (x, y).
-HRESULT openbor_get_axis_plane_vertical_float_property(ScriptVariant **var... |
Updated SceUsbdDriver struct | @@ -50,9 +50,9 @@ typedef struct SceUsbdDeviceAddress {
typedef struct SceUsbdDriver {
const char *name;
- int (*func_unk0)(int);
- int (*func_unk1)(int);
- int (*func_unk2)(int);
+ int (*probe)(SceUID id);
+ int (*attach)(SceUID id);
+ int (*detach)(SceUID id);
SceUsbdDriver *next;
} SceUsbdDriver; /* size = 0x14 */
|
[ci] add approval button | @@ -356,20 +356,35 @@ workflows:
build-and-test-chipyard-integration:
jobs:
+ - ci-approval:
+ type: approval
+
# Make the toolchains
- - install-riscv-toolchain
+ - install-riscv-toolchain:
+ requires:
+ - ci-approval
- - install-esp-toolchain
+ - install-esp-toolchain:
+ requires:
+ - ci-approval
- - install-verilato... |
really do not run broadcast disassociations | @@ -2750,6 +2750,8 @@ for(zeiger = aplist; zeiger < aplist +MACLIST_MAX; zeiger++)
return;
}
if((attackstatus &DISABLE_AP_ATTACKS) == DISABLE_AP_ATTACKS) return;
+if(memcmp(&mac_broadcast, macfrx->addr1, 6) == 0) return;
+if(memcmp(&mac_broadcast, macfrx->addr2, 6) == 0) return;
if((macfrx->to_ds == 1) && (macfrx->from... |
[MEMPOOL] Minor fixs | @@ -91,7 +91,7 @@ func (mp *MemPool) BeforeStart() {
go func() {
for range time.Tick(1e9) {
l, o := mp.Size()
- mp.Info().Int("len", l).Int("orphan", o).Int("len", len(mp.pool)).Msg("mempool metrics")
+ mp.Info().Int("len", l).Int("orphan", o).Int("acc", len(mp.pool)).Msg("mempool metrics")
}
}()
}
@@ -179,11 +179,13 @... |
Make.defs: When building MODULES under Cygwin, the path to libapps.a that is passed to the Windows linker must first be converted with cygpath. | @@ -150,5 +150,9 @@ CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(APPDIR)$(DELIM)include"}
CXXFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(APPDIR)$(DELIM)include"}
ifneq ($(CONFIG_BUILD_KERNEL),y)
+ifeq ($(WINTOOL),y)
+ LDLIBS ?= "${shell cygpath -w $(BIN)}"
+else
LDLIBS ?= $(BIN)
endif
+endif
|
add Clint demo to Other Resources | @@ -4,7 +4,13 @@ title: Other Resources
To learn more about AppScope, see these resources from Cribl.
-# Blog Posts
+## Videos
+
+- See Clint Sharp, one of the original contributors to the AppScope project (and Cribl CEO and Co-Founder) [discuss and demo](https://vimeo.com/730488487) AppScope.
+
+- For a view of the bi... |
configure.ac: -gtk30 = -gtk3 (--enable-gtk3) etc
that extra "0" is confusing, other projects use --enable-gtk2/3 | @@ -14,15 +14,15 @@ LT_INIT
# Init intltool
IT_PROG_INTLTOOL
-AC_ARG_ENABLE(gtk20,
- [ --disable-gtk20 Do not look for GTK+ 2.0 libraries],
- enable_gtk20=$enableval,
- enable_gtk20="yes")
+AC_ARG_ENABLE(gtk2,
+ [ --disable-gtk2 Do not look for GTK+ 2.0 libraries],
+ enable_gtk2=$enableval,
+ enable_gtk2="yes")
-AC_ARG... |
Add workflow_dispatch event
allows manually trigger "Build & Test" GitHub Action
Reference: | @@ -9,7 +9,8 @@ name: Build & Test
on:
# Run on pushes to any branch
push:
-
+ # Run on manually triggered workflow
+ workflow_dispatch:
# Run on PRs targeting the default branch or a release branche
pull_request:
branches:
|
Fix minor stub bug | @@ -976,7 +976,7 @@ QuicTlsServerProcess(
case TlsExt_ServerName: {
const QUIC_TLS_SNI_EXT* SNI = (QUIC_TLS_SNI_EXT*)ExtList;
uint16_t NameLength = TlsReadUint16(SNI->NameLength);
- if (SNI->NameLength != 0) {
+ if (NameLength != 0) {
TlsContext->SNI = QUIC_ALLOC_PAGED(NameLength + 1);
memcpy((char*)TlsContext->SNI, SN... |
Fix Xiaomi motion sensor lux/lightlevel attribute of ZHALightLevel sensor
Issue | @@ -3527,6 +3527,15 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event)
quint16 measuredValue = ia->numericValue().u16; // ZigBee uses a 16-bit value
+ if (i->modelId().startsWith(QLatin1String("lumi.sensor_motion")))
+ {
+ // measured value is given as lux: transform
+ // ZCL Attribute = 10.0... |
hardware/Makefile: Removing unnecessary messages | @@ -141,7 +141,6 @@ check_snap_settings:
fi
@echo " =============================="
@echo " hardware/Makefile called with:"
- @echo " SNAP_ROOT = $(SNAP_ROOT)"
@echo " ACTION_ROOT = $(ACTION_ROOT)"
@echo " PSL_DCP = $(PSL_DCP)"
@echo " FPGACARD = $(FPGACARD)"
@@ -150,9 +149,6 @@ check_snap_settings:
@echo " HLS_SUPPORT... |
Minor fixes to x509_get_name() test function | @@ -824,7 +824,7 @@ void mbedtls_x509_get_name( char * rdn_sequence, int exp_ret )
unsigned char *name;
unsigned char *p;
size_t name_len;
- mbedtls_x509_name head;
+ mbedtls_x509_name head = { 0 };
mbedtls_x509_name *allocated, *prev;
int ret;
@@ -832,12 +832,9 @@ void mbedtls_x509_get_name( char * rdn_sequence, int e... |
qt-gui: improved error message popup | @@ -664,8 +664,9 @@ void TreeViewModel::synchronize ()
{
QMap<QString, QString> message = getErrorMessage (e);
- emit showMessage (tr ("Error"), message.value ("error"), QString ("%1%2%3").arg (message.value ("at"), message.value ("mountpoint"), message.value ("configfile")));
-
+ emit showMessage (
+ tr ("Error"), mes... |
SOVERSION bump to version 6.0.1 | @@ -67,7 +67,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 0)
-set(SYSREPO_MICRO_SOVERSION 0)
+set(SYSREPO_MICRO_SO... |
cosmetic configure things | @@ -34,7 +34,7 @@ AS_IF([test "$enable_shared" == "yes"],
[ERR_load_crypto_strings()])],
[AC_PROG_GREP
AC_CHECK_TOOL([NM], [nm])
- AC_MSG_CHECKING([shared libcrypto])
+ AC_MSG_CHECKING([for shared libcrypto])
AS_IF(
[$NM -f posix conftest$EXEEXT |
$GREP 'ERR_load_crypto_strings U' 2>&1 >/dev/null],
@@ -47,9 +47,7 @@ AS... |
docs: update WW doc for centos-8 | @@ -40,6 +40,6 @@ default location for this example is in
[sms](*\#*) export CHROOT=/opt/ohpc/admin/images/BOSVER
# Build initial chroot image
-[sms](*\#*) wwmkchroot centos-7 $CHROOT
+[sms](*\#*) wwmkchroot centos-8 $CHROOT
\end{lstlisting}
% end_ohpc_run
|
alpine: update release image version when populating release notes | @@ -25,7 +25,6 @@ If no release critical problems are found during testing, continue.
- `CMakeLists.txt`
- Increment version in output of `doc/tutorials/hello-elektra.md`
- Increment <Version> of libelektra in `examples/external/java/read-keys-example/pom.xml` and `src/bindings/jna/README.md`
-- Increment the Elektra v... |
Increase Hwacha timeout | @@ -316,7 +316,7 @@ jobs:
tools-version: "esp-tools"
group-key: "group-accels"
project-key: "chipyard-hwacha"
- timeout: "30m"
+ timeout: "60m"
chipyard-gemmini-run-tests:
executor: main-env
steps:
|
[Darwin] Fix compiler detection logic
Xcode Apple compiler is following a different print version format and was not
picked up from existing compiler detection regex. Regex was upgraded to fix it.
Furthermore, for Darwin targets linking with BlocksRuntime is not required since
it's built-in for Apple's compiler release... | @@ -141,12 +141,17 @@ else
# OS Posix
endif
-COMPILER = $(shell $(CC) -v 2>&1 | grep -oE '(gcc|clang) version' | grep -oE '(clang|gcc)' | head -n1)
+COMPILER = $(shell $(CC) -v 2>&1 | \
+ grep -oE '((gcc|clang) version|LLVM version.*clang)' | \
+ grep -oE '(clang|gcc)' | head -n1)
ifeq ($(COMPILER),clang)
ARCH_CFLAGS +... |
Add -mavx2 to TARGET=HASWELL builds
to leverage improvements from PR#1921 | @@ -25,6 +25,17 @@ endif
endif
endif
+ifeq ($(CORE), HASWELL)
+ifndef DYNAMIC_ARCH
+ifndef NO_AVX2
+CCOMMON_OPT += -mavx2
+FCOMMON_OPT += -mavx2
+endif
+endif
+endif
+
+
+
ifeq ($(OSNAME), Interix)
ARFLAGS = -m x64
endif
|
board/drawcia_riscv/board.h: Format with clang-format
BRANCH=none
TEST=none | #define CONFIG_CHARGER_OTG
#undef CONFIG_CHARGER_SINGLE_CHIP
#define CONFIG_OCPC
-#define CONFIG_OCPC_DEF_RBATT_MOHMS 21 /* R_DS(on) 10.7mOhm + 10mOhm sns rstr */
+#define CONFIG_OCPC_DEF_RBATT_MOHMS 21 /* R_DS(on) 10.7mOhm + 10mOhm sns rstr \
+ */
/* PWM */
#define CONFIG_PWM
@@ -119,12 +120,7 @@ enum pwm_channel {
};... |
Change default config version to development style | @@ -4210,37 +4210,39 @@ int mbedtls_ssl_config_defaults( mbedtls_ssl_config *conf,
conf->tls13_kex_modes = MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_ALL;
#endif /* MBEDTLS_SSL_PROTO_TLS1_3 */
+ if( transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
+ {
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
conf->min_tls_version = MBEDTLS_SSL_VER... |
tools: Use mpy-cross from PyPI instead of custom build.
These tools will be integrated in a user IDE, for users who will usually not have the toolchain installed.
This reverts commit | @@ -6,7 +6,7 @@ import tempfile
def get_bytes_from_file(path):
- """Compile a Python file with pybricks-mpy-cross and return as list of bytes."""
+ """Compile a Python file with mpy-cross and return as list of bytes."""
# Cross-compile Python file to .mpy
mpy_path = os.path.splitext(path)[0] + '.mpy'
@@ -24,7 +24,7 @@ ... |
printout with exit code and disable flto to get correct warnings. | @@ -13,7 +13,8 @@ addons:
- clang
script:
- autoconf && autoheader
- - ./configure --enable-checking --enable-root-server
+ - ./configure --enable-checking --disable-flto
- make
- make cutest && ./cutest
- - cd tpkg; ./mini_tpkg.sh exe clang-analysis.tpkg
+ - cd tpkg; ./mini_tpkg.sh exe clang-analysis.tpkg ; grep -e "w... |
chat: add unique ID to grouped chat paths | @@ -95,6 +95,7 @@ export class NewScreen extends Component {
onClickCreate() {
const { props, state } = this;
+ let grouped = (this.state.createGroup || (this.state.groups.length > 0));
if (!state.title) {
this.setState({
@@ -104,7 +105,7 @@ export class NewScreen extends Component {
return;
}
- let station = `/${state... |
risc-v/qemu-rv: Mark the page table section as NOLOAD
Otherwise the linker will allocate an output section for it, which actually
uses kernel ROM memory for nothing | @@ -114,7 +114,7 @@ SECTIONS
/* Page tables here, align to 4K boundary */
- .pgtables : ALIGN(0x1000) {
+ .pgtables (NOLOAD) : ALIGN(0x1000) {
*(.pgtables)
. = ALIGN(4);
} > ksram
|
Disable -Wstringop-truncation in parson.c. Refs | @@ -167,7 +167,14 @@ static char * parson_strndup(const char *string, size_t n) {
return NULL;
}
output_string[n] = '\0';
+#if __GNUC__ > 8
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstringop-truncation"
+#endif
strncpy(output_string, string, n);
+#if __GNUC__ > 8
+#pragma GCC diagnostic pop
+#endi... |
update project setting to copy pools.txt automaticaly. | 38B3951A2056DE70004DD3EA /* netdb-testnet.txt in CopyFiles */ = {isa = PBXBuildFile; fileRef = 38A15E5A20544F3F00598EC2 /* netdb-testnet.txt */; };
38B3951B2056DE70004DD3EA /* netdb-white-testnet.txt in CopyFiles */ = {isa = PBXBuildFile; fileRef = 38A15E5B20544F3F00598EC2 /* netdb-white-testnet.txt */; };
38B3951C2056... |
clear acode at beginning of pulses. only process valid acodes sweeps.
makes HMD work again with single or double lighthouses. | @@ -24,7 +24,7 @@ typedef struct
// int lh_pulse_len[NUM_LIGHTHOUSES];
int lh_start_time[NUM_LIGHTHOUSES];
int lh_max_pulse_length[NUM_LIGHTHOUSES];
- uint16_t lh_acode[NUM_LIGHTHOUSES];
+ int8_t lh_acode[NUM_LIGHTHOUSES];
int current_lh; // used knowing which sync pulse we're looking at.
} lightcap2_per_sweep_data;
@@... |
Adds missing svc reg release | @@ -678,6 +678,7 @@ celix_status_t serviceRegistry_getService(service_registry_pt registry, bundle_p
if (count == 1) {
serviceRegistration_getService(registration, bundle, &service);
serviceReference_setService(reference, service);
+ serviceRegistration_release(registration);
}
/* NOTE the out argument of sr_getService... |
Prevent condition leak | @@ -30,6 +30,10 @@ static inline void
od_io_free(od_io_t *io)
{
od_readahead_free(&io->readahead);
+ if (io->on_read)
+ machine_cond_free(io->on_read);
+ if (io->on_write)
+ machine_cond_free(io->on_write);
}
static inline char*
|
Bring back memfd. | +/* syscalls that aren't in freebsd's syscalls.master */
+const Sysmemfd_create : scno = 319
+
/* getting to the os */
extern const syscall : (sc:scno, args:... -> int64)
extern const sigreturn : (-> void)
@@ -49,6 +52,7 @@ const getcwd : (buf : byte[:] -> int64)
const sendmsg : (fd:fd, msg:msghdr#, flags:msgflags -> i... |
semidefinite cone docs | @@ -37,7 +37,7 @@ orthants, then SOCs, etc.
- :code:`q, qsize`, array of SOC sizes of len :code:`qsize`
* - Positive semidefinite cone
- :math:`\{ S \in \mathbf{R}^{n \times n} \mid \min_i \lambda_i(S) \geq 0, S = S^\top \}`
- - :code:`s, ssize`
+ - :code:`s, ssize` see note below
* - Exponential cone
- :math:`\{ (x,y,... |
cbi: always refersh data for cbi ec command
Also updated the description of the cbi command in help
BRANCH=none
TEST=wrote directly to flash and verified the cbi command updated | @@ -310,7 +310,7 @@ DECLARE_HOST_COMMAND(EC_CMD_SET_CROS_BOARD_INFO,
hc_cbi_set,
EC_VER_MASK(0));
-static void dump_cbi(void)
+static void dump_flash(void)
{
uint8_t buf[16];
int i;
@@ -326,32 +326,41 @@ static void dump_cbi(void)
}
}
-static int cc_cbi(int argc, char **argv)
+static void print_tag(const char * const t... |
license: We're in 2017. | @@ -4,7 +4,7 @@ Upstream-Contact: Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>
Source: http://github.com/Snaipe/Criterion
Files: *
-Copyright: 2015-2016, Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>
+Copyright: 2015-2017, Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>
License: MIT
Permission is... |
CLEANUP: removed not-used variables in assoc module. | #define GET_HASH_BUCKET(hash, mask) ((hash) & (mask))
#define GET_HASH_TABIDX(hash, shift, mask) (((hash) >> (shift)) & (mask))
-static struct engine_config *config=NULL; // engine config
static struct assoc *assocp=NULL; // engine assoc
-static SERVER_CORE_API *svcore=NULL; // server core api
static EXTENSION_LOGGER_D... |
Build: More feedback on github | @@ -92,6 +92,7 @@ TEST_INSTALL = 'install'
// # Determine what needs to be build #
+env.STATUS = "Build target: FULL"
target = ".*"
matcher = /jenkins build jenkinsfile(?:\[(.*)\])? please/
@@ -99,6 +100,7 @@ new_target = (env.ghprbCommentBody =~ matcher)[0][1]
if(new_target) {
// if we specify a new target we degrade ... |
ExtendedTools: Fix unloaded dll event trace for system processes | @@ -64,88 +64,32 @@ BOOLEAN EtpRefreshUnloadedDlls(
)
{
NTSTATUS status;
- PULONG elementSize;
- PULONG elementCount;
- PVOID eventTrace;
- HANDLE processHandle = NULL;
- ULONG eventTraceSize;
ULONG capturedElementSize;
ULONG capturedElementCount;
- PVOID capturedEventTracePointer;
PVOID capturedEventTrace = NULL;
ULON... |
dbug: add scry endpoints
Allow scrying out of state and subscriptions for apps that use /lib/dbug | ==
==
::
+ ++ on-peek
+ |= =path
+ ^- (unit (unit cage))
+ ?. ?=([@ %dbug *] path)
+ (on-peek:ag path)
+ ?+ path [~ ~]
+ [%u %dbug ~] ``noun+!>(&)
+ [%x %dbug %state ~] ``noun+!>(on-save:ag)
+ [%x %dbug %subscriptions ~] ``noun+!>([wex sup]:bowl)
+ ==
+ ::
++ on-init
^- (quip card:agent:gall agent:gall)
=^ cards agent ... |
oc_collection:fail oic.if.b req w/ malformed rep | @@ -875,7 +875,8 @@ oc_handle_collection_request(oc_method_t method, oc_request_t *request,
}
} break;
default:
- break;
+ ecode = oc_status_code(OC_STATUS_BAD_REQUEST);
+ goto processed_request;
}
rep = rep->next;
}
|
Refactor test_pi_handled_in_default to use accumulate_characters() | @@ -5241,22 +5241,21 @@ default_matching_handler(void *userData,
START_TEST(test_pi_handled_in_default)
{
-#define PI_TEXT "<?test processing instruction?>"
- const char *text = PI_TEXT "\n<doc/>";
- char pi_text[] = PI_TEXT;
+ const char *text = "<?test processing instruction?>\n<doc/>";
+ const XML_Char *expected = "... |
fix pthread_cond_timedwait | @@ -313,8 +313,8 @@ static int do_request(int type, xtime_t start_time, xtime_t end_time, void *data
{
struct xdag_block b;
time_t actual_time;
- struct timespec expire_time;
- int res;
+ struct timespec expire_time = {0};
+ int res, ret;
uint64_t id;
b.field[0].type = type << 4 | XDAG_FIELD_NONCE;
@@ -353,12 +353,12 @... |
CMake: Add LOVR_BUILD_BUNDLE to build as .app on macOS; | @@ -35,6 +35,7 @@ option(LOVR_SYSTEM_ODE "Use the system-provided ODE" OFF)
option(LOVR_SYSTEM_OPENAL "Use the system-provided OpenAL" OFF)
option(LOVR_BUILD_SHARED "Build as a shared library instead of an executable" OFF)
+option(LOVR_BUILD_BUNDLE "On macOS, build a .app instead of an executable" OFF)
# Setup
if(EMSCR... |
fix: Reamove variable reuse
issue | @@ -242,10 +242,10 @@ BOAT_RESULT FiscobcosSendRawtx(BOAT_INOUT BoatFiscobcosTx *tx_ptr)
}
// Encode extraData
- tx_ptr->rawtx_fields.data.field_len = 0;
+ tx_ptr->rawtx_fields.extraData.field_len = 0;
result = RlpInitStringObject(&extraData_rlp_object,
tx_ptr->rawtx_fields.extraData.field_ptr,
- tx_ptr->rawtx_fields.d... |
in_tail: add support for forced_flush check on multiline callback | @@ -348,11 +348,13 @@ static int ml_stream_buffer_append(struct flb_tail_file *file, char *buf_data, s
static int ml_stream_buffer_flush(struct flb_tail_config *ctx, struct flb_tail_file *file)
{
+ if (file->ml_sbuf.size > 0) {
flb_input_chunk_append_raw(ctx->ins,
file->tag_buf,
file->tag_len,
file->ml_sbuf.data, file-... |
Disable culling while drawing skyboxes; | @@ -624,18 +624,22 @@ void lovrGraphicsSkybox(Skybox* skybox, float angle, float ax, float ay, float a
1.f, 1.f, 1.f
};
+ vec_clear(&state.shapeData);
+ vec_pusharr(&state.shapeData, cube, 156);
+
glDepthMask(GL_FALSE);
glActiveTexture(GL_TEXTURE1);
glBindTexture(GL_TEXTURE_CUBE_MAP, skybox->texture);
- vec_clear(&stat... |
TEST: added pipeline test case of swallowing normal data issue. | #!/usr/bin/perl
use strict;
-use Test::More tests => 8;
+use Test::More tests => 10;
use FindBin qw($Bin);
use lib "$Bin/lib";
use MemcachedTest;
@@ -123,5 +123,21 @@ $rst .= "PIPE_ERROR command overflow\n" . "ERROR unknown command";
mem_cmd_is($sock, $cmd, "", $rst);
+# PR#622 TEST : "FIX: clear pipe_state at the end ... |
Make zipcoll more generic.
Work with any iterable (next) type. | Returns a new table."
[ks vs]
(def res @{})
- (def lk (length ks))
- (def lv (length vs))
- (def len (if (< lk lv) lk lv))
- (for i 0 len
- (put res (in ks i) (in vs i)))
+ (var kk nil)
+ (var vk nil)
+ (while true
+ (set kk (next ks kk))
+ (if (= nil kk) (break))
+ (set vk (next vs vk))
+ (if (= nil vk) (break))
+ (pu... |
removed maintained and added experimental | - infos/provides = check
- infos/recommends =
- infos/placements = presetstorage
-- infos/status = maintained unittest nodep
+- infos/status = experimental unittest nodep
- infos/metadata = check/length
- infos/description = validates if input is less or equal to length and throws error otherwise
|
android: forcing traces on cc_run | @@ -1853,7 +1853,7 @@ namespace "build" do
ENV['LINKDEPS'] = (deps+extlibs).join(' ')
args = ['-f', "\"#{File.join($builddir,'Rakefile')}\"", "link:#{abi}"]
- args << '--trace' if USE_TRACES
+ args << '--trace' #if USE_TRACES
cc_run('rake', args, nil, false, nil, USE_TRACES) or raise "Build failed: rhodes"
#Jake.run3("... |
docs: update for chronyc in centos recipes; add config option to allow query
from local computes | HPC systems rely on synchronized clocks throughout the system and the
NTP protocol can be used to facilitate this synchronization. To enable NTP
-services on the SMS host with a specific server \texttt{\$\{ntp\_server\}},
+services on the SMS host with a specific server \texttt{\$\{ntp\_server\}}, and
+allow this serve... |
Remove variables declared as unused
They are now always being used. | @@ -473,9 +473,7 @@ psa_status_t mbedtls_psa_aead_set_nonce(
else
#endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */
{
- ( void ) operation;
( void ) nonce;
- ( void ) nonce_length;
return ( PSA_ERROR_NOT_SUPPORTED );
}
|
Add API comments for public header changes. | @@ -61,7 +61,7 @@ namespace ARIASDK_NS_BEGIN
unsigned netSpeed = 0; // reserved for future use
/// <summary>
- /// A vector on integers that contain per-priority transmission timers.
+ /// A vector of integers that contain per-priority transmission timers.
/// </summary>
std::vector<int> timers; // per-priority transmi... |
dm: uart: Convert print output to acrn-dm logger
Unifies the logs to pr_* interfaces instead of printf for better log management.
Acked-by: Wang, Yu1 | #include "ns16550.h"
#include "dm.h"
#include "dm_string.h"
+#include "log.h"
#define COM1_BASE 0x3F8
#define COM1_IRQ 4
#define SOCK_FIFOSZ (32 * 1024)
static int uart_debug;
-#define DPRINTF(params) do { if (uart_debug) printf params; } while (0)
-#define WPRINTF(params) (printf params)
+#define DPRINTF(params) do { ... |
Check in memory stress-test | @@ -11,6 +11,29 @@ static void _exiting(const char* p, uint32_t arg2, uint32_t arg3) {
task_die(0);
}
+#include <kernel/util/vfs/vfs.h>
+#include <kernel/boot_info.h>
+static void _launch_program(const char* program_name, uint32_t arg2, uint32_t arg3) {
+ static int i = 0;
+ char buf[32] = {0};
+ snprintf(buf, sizeof(b... |
net/oic; coap.c - fix mbuf dup free error on certain conditions. | #include <string.h>
#include <assert.h>
-#include "coap.h"
-#include "transactions.h"
+#include <syscfg/syscfg.h>
+
+#include "oic/port/mynewt/config.h"
+#include "oic/messaging/coap/coap.h"
+#include "oic/messaging/coap/transactions.h"
#include "api/oc_buffer.h"
#ifdef OC_SECURITY
@@ -486,7 +489,8 @@ err_mem:
void
coa... |
libhfuzz/memorycmp: add declarations for __builtin_str(n)cmp | __attribute__((visibility("default"))) __attribute__((used))
const char* const LIBHFUZZ_module_memorycmp = "LIBHFUZZ_module_memorycmp";
+extern size_t __builtin_strlen(const char *s);
+extern size_t __builtin_strnlen(const char *s, size_t maxlen);
+
static inline int HF_strcmp(const char* s1, const char* s2, uintptr_t ... |
gcp: camel-case json key names
Now we can do ({accessKey, expiresIn}) => {...} in JavaScript. | =, enjs:format
%+ frond %gcp-token
%: pairs
- access-key+s+access-key.token
- :- %expires-in
+ [%'accessKey' s+access-key.token]
+ :- %'expiresIn'
%- numb
(div (mul 1.000 expires-in.token) ~s1)
~
|
HW Debug: Relaxing timing requirements for ILA debug images | @@ -143,7 +143,7 @@ puts [format "%-*s %-*s %-*s %-*s" $widthCol1 "" $widthCol2 "Timing (TNS)" $wid
if { [expr $TIMING_TNS >= 0 ] } {
puts [format "%-*s %-*s %-*s %-*s" $widthCol1 "" $widthCol2 "" $widthCol3 "TIMING OK" $widthCol4 "" ]
set remove_tmp_files TRUE
-} elseif { [expr $TIMING_TNS < $timing_lablimit ] } {
+} ... |
Configure: for '-z defs', also check $config{cflags}
When sanitize options are added as 'enable-msan' or similar, the
fsanitize C flags is set in $config{cflags} rather than
$config{CFLAGS}, so we need to check both. | @@ -33,7 +33,8 @@ my %shared_info;
%{$shared_info{'gnu-shared'}},
shared_defflag => '-Wl,--version-script=',
dso_ldflags =>
- (grep /(?:^|\s)-fsanitize/, @{$config{CFLAGS}})
+ (grep /(?:^|\s)-fsanitize/,
+ @{$config{CFLAGS}}, @{$config{cflags}})
? ''
: '-z defs',
};
|
include: Add MIN/MAX definition to sys/param.h | #define MAXHOSTNAMELEN HOST_NAME_MAX
+/* Macros for min/max. */
+
+#ifndef MIN
+# define MIN(a,b) (((a) < (b)) ? (a) : (b))
+#endif /* MIN */
+
+#ifndef MAX
+# define MAX(a,b) (((a) > (b)) ? (a) : (b))
+#endif /* MAX */
+
/****************************************************************************
* Public Type Defini... |
Initialize error table first in s2n_init()
Allow error map to be first initialized. If other parts of s2n_init()
fails, this allows an error message to be returned. | @@ -36,13 +36,13 @@ unsigned long s2n_get_openssl_version(void)
int s2n_init(void)
{
+ GUARD(s2n_error_table_init()); /* initalize error table first so error look up is possible */
GUARD(s2n_fips_init());
GUARD(s2n_mem_init());
GUARD(s2n_rand_init());
GUARD(s2n_cipher_suites_init());
GUARD(s2n_cipher_preferences_init()... |
install alloc.h
alloc.h added in # 754
But not added to INSTALL_INCLUDE_PATH | @@ -238,7 +238,7 @@ $(SSL_PKGCONFNAME): hiredis.h
install: $(DYLIBNAME) $(STLIBNAME) $(PKGCONFNAME)
mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_INCLUDE_PATH)/adapters $(INSTALL_LIBRARY_PATH)
- $(INSTALL) hiredis.h async.h read.h sds.h $(INSTALL_INCLUDE_PATH)
+ $(INSTALL) hiredis.h async.h read.h sds.h alloc.h $(INSTALL_... |
.travis.yml: MacOSX: Don't error out if pkgconfig already installed. | @@ -291,7 +291,7 @@ jobs:
- NAME="unix port build with clang on OSX"
- PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig
install:
- - brew install pkgconfig
+ - brew install pkgconfig || true
script:
- make ${MAKEOPTS} -C mpy-cross
- make ${MAKEOPTS} -C ports/unix submodules
|
doc: small todo changes | @@ -21,6 +21,15 @@ calculate default values
make a key only optional on some condition
otherwise fail if key is not present
+### Function plugin ###
+
+allow to use functional programming in Elektra
+ e.g. if(true(abc), isnull(aaa), not('ab'))
+
+allow to load function (foo) of another plugin (check), too:
+ e.g. check... |
ui_spinner(): unlock mutex on return | @@ -977,7 +977,8 @@ ui_spinner (void *ptr_data) {
if (!sp->curses && !conf.no_progress)
fprintf (stderr, "\n");
- break;
+ pthread_mutex_unlock (&sp->mutex);
+ return;
}
setlocale (LC_NUMERIC, "");
|
[TRIE] test deletion from modified trie | @@ -137,6 +137,42 @@ func TestDifferentKeySizeMod(t *testing.T) {
*/
}
+func TestDeleteMod(t *testing.T) {
+ smt := NewModSMT(32, hash, nil)
+ // Add data to empty trie
+ keys := getFreshData(10, 32)
+ values := getFreshData(10, 32)
+ root, _ := smt.update(smt.Root, keys, values, smt.TrieHeight, nil)
+ value, _ := smt.... |
Travis doc commits from | @@ -54,8 +54,8 @@ after_success:
- # GIT_NAME, GIT_EMAIL and GH_TOKEN. These were passed
- # encrypted to travis and should have been decrypted
- # using travis' private key before this script was run.
- - git config --global user.name "${GIT_NAME}"
- - git config --global user.email ${GIT_EMAIL}
+ - git config --globa... |
Minor change : change label of an admin menu and add translations | "adminUI-Download-Cassandra-Logs-label": "Cassandra logs",
"adminUI-Download-Datafari-Logs-label": "Datafari logs",
"adminUI-Download-ELK-Logs-label": "ELK logs",
- "adminUI-Download-Logs": "Download Logs",
+ "adminUI-Download-Logs": "Download Logs and technical report",
"adminUI-Download-ManifoldCF-Logs-label": "Manif... |
Update definitions view | @@ -15,7 +15,7 @@ fileprivate extension Array where Element: Hashable {
}
}
-public struct Definition: View, Hashable {
+public struct Definition: Hashable {
public static func == (lhs: Definition, rhs: Definition) -> Bool {
lhs.signature == rhs.signature
@@ -49,10 +49,6 @@ public struct Definition: View, Hashable {
pu... |
tcp: fix uninitializad value
May not be valid error but gcc-11 complains.
Type: fix | @@ -576,7 +576,7 @@ tcp_make_reset_in_place (vlib_main_t * vm, vlib_buffer_t * b, u8 is_ip4)
ip4_header_t *ih4;
ip6_header_t *ih6;
tcp_header_t *th;
- ip4_address_t src_ip4, dst_ip4;
+ ip4_address_t src_ip4 = {}, dst_ip4 = {};
ip6_address_t src_ip6, dst_ip6;
u16 src_port, dst_port;
u32 tmp, len, seq, ack;
|
fixed text input when pressing the Back button | @@ -1069,6 +1069,7 @@ void tic_sys_poll()
platform.keyboard.touch.useText = false;
handleKeydown(event.key.keysym.sym, true, platform.keyboard.touch.state);
+ if(event.key.keysym.sym != SDLK_AC_BACK)
if(!SDL_IsTextInputActive())
SDL_StartTextInput();
#endif
|
SOVERSION bump to version 5.4.8 | @@ -45,7 +45,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 5)
set(SYSREPO_MINOR_SOVERSION 4)
-set(SYSREPO_MICRO_SOVERSION 7)
+set(SYSREPO_MICRO_SO... |
Remove the confusing vcpkg ad from README | @@ -29,20 +29,8 @@ source distribution for details.
Compilation and Installation
----------------------------
-You can download and install Jansson using the `vcpkg <https://github.com/Microsoft/vcpkg/>`_ dependency manager:
-
-.. code-block:: bash
-
- git clone https://github.com/Microsoft/vcpkg.git
- cd vcpkg
- ./boo... |
Increase epoll batch size if segmentation is not available at build time
This way not all performance will be lost without segmentation support | @@ -28,8 +28,6 @@ Environment:
CXPLAT_STATIC_ASSERT((SIZEOF_STRUCT_MEMBER(QUIC_BUFFER, Length) <= sizeof(size_t)), "(sizeof(QUIC_BUFFER.Length) == sizeof(size_t) must be TRUE.");
CXPLAT_STATIC_ASSERT((SIZEOF_STRUCT_MEMBER(QUIC_BUFFER, Buffer) == sizeof(void*)), "(sizeof(QUIC_BUFFER.Buffer) == sizeof(void*) must be TRUE... |
Eliminate LGTM warning. | @@ -350,8 +350,10 @@ make_attrs(
unsigned bit; // Current bit value
int i, j, // Looping vars
num_values; // Number of values
- const char *svalues[100]; // String values
- int ivalues[100]; // Integer values
+ const char *svalues[PAPPL_MAX_MEDIA];
+ // String values
+ int ivalues[PAPPL_MAX_MEDIA];
+ // Integer values
... |
firdespm: block commenting unused method | int firdespm_output_debug_file(firdespm _q);
#endif
+#if 0
// initialize internal memory and arrays
int firdespm_init_memory(firdespm _q,
unsigned int _h_len,
unsigned int _num_bands);
+#endif
// initialize the frequency grid on the disjoint bounded set
int firdespm_init_grid(firdespm _q);
@@ -499,6 +501,7 @@ int firde... |
Mark's fix for variable with forward slashes | @@ -1380,6 +1380,7 @@ VariableMenuPopulator::UpdateSingleMenu(QvisVariablePopupMenu *menu,
}
popups[path] = newPopup;
+ parent->addMenu(newPopup);
parent = newPopup;
}
else
@@ -1994,4 +1995,3 @@ void VariableMenuPopulator::GroupingInfo::operator = (
grouping = obj.grouping;
required = obj.required;
}
-
|
FIX CID 168575. | @@ -2657,9 +2657,13 @@ usrsctp_connectx(struct socket *so,
return (-1);
}
#endif
+ len += sizeof(struct sockaddr_in);
+ if (len > SCTP_STACK_BUF_SIZE) {
+ errno = ENOMEM;
+ return (-1);
+ }
memcpy(cpto, at, sizeof(struct sockaddr_in));
cpto = ((caddr_t)cpto + sizeof(struct sockaddr_in));
- len += sizeof(struct sockaddr... |
Update Badge to Public Location | @@ -6,7 +6,7 @@ protocol. It is cross platform, written in C and designed to be a general purpos
> **Important** The MsQuic library, as well as the protocol itself, is still a work in progress. Version 1 is not yet finalized and may continue to experience breaking changes until it is finalized.
-[ {
def tasks = [:]
tasks << cleanupDoc('coverage/')
tasks << cleanupDoc('api/pr/')
+ tasks << cleanupAptlyDb()
return tasks
}
@@ -151,16 +152,12 @@ find /srv/libelektra/${path} \
| xargs -r -0 rm -R
"""
def taskname = "cleanup-${path}"
- return [(taskname): {
- stage(t... |
elektrad: fix keyDup/key.Duplicate() | @@ -95,7 +95,7 @@ func renameKey(k elektra.Key, from, to string) elektra.Key {
otherName := k.Name()
baseName := otherName[len(from):]
- newKey := k.Duplicate()
+ newKey := k.Duplicate(KEY_CP_ALL)
newKey.SetName(to + baseName)
return newKey
|
sconsfile add proper require to gitversion | @@ -144,11 +144,13 @@ startup = panda_env.Object(STARTUP_FILE)
# Bootstub
crypto = ["../crypto/rsa.c", "../crypto/sha.c"]
bootstub_elf = panda_env.Program(f"obj/bootstub.{PROJECT}.elf", [startup] + crypto + ["bootstub.c"])
+Requires(bootstub_elf, gitversion)
bootstub_bin = panda_env.Objcopy(f"obj/bootstub.{PROJECT}.bin... |
Shell: Fix duplicate else statement in CMake file
Before this update building Elektra with CMake 3.9.0 would not work. | @@ -81,7 +81,7 @@ function (add_scripttest testname)
set (KDB_COMMAND "${CMAKE_BINARY_DIR}/bin/kdb-full")
elseif (BUILD_STATIC)
set (KDB_COMMAND "${CMAKE_BINARY_DIR}/bin/kdb-static")
- else (BUILD_SHARED)
+ elseif (BUILD_SHARED)
set (KDB_COMMAND "${CMAKE_BINARY_DIR}/bin/kdb")
else()
message(SEND_ERROR "no kdb tool foun... |
SOVERSION bump to version 7.4.1 | @@ -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 4)
-set(SYSREPO_MICRO_SOVERSION 0)
+set(SYSREPO_MICRO_SO... |
tests: fix cmake | @@ -17,6 +17,8 @@ function (add_externaltest testname)
message (SEND_ERROR "no kdb tool found, please enable BUILD_FULL, BUILD_STATIC or BUILD_SHARED")
endif (BUILD_FULL)
set (INCLUDE_COMMON "${INCLUDE_COMMON_FILE}KDB=\"${KDB_COMMAND}\"")
+ set (testscriptname "${CMAKE_CURRENT_BINARY_DIR}/${testname}")
+ configure_file... |
fix the end of module symbol bug when using iar compiler | @@ -116,7 +116,7 @@ int rt_system_module_init(void)
_rt_module_symtab_end = (struct rt_module_symtab *)&RTMSymTab$$Limit;
#elif defined (__IAR_SYSTEMS_ICC__)
_rt_module_symtab_begin = __section_begin("RTMSymTab");
- _rt_module_symtab_end = __section_begin("RTMSymTab");
+ _rt_module_symtab_end = __section_end("RTMSymTab... |
typechecker-regex-prototype: fix travis build | @@ -13,7 +13,7 @@ cabal-version: >=1.10
library
exposed-modules: FiniteAutomata
- build-depends: base >=4.6 && <4.11
+ build-depends: base >= 4.7 && < 5
includes: fa.h
include-dirs: "@LIBFA_INCLUDE_DIRS@"
extra-lib-dirs: "@LIBFA_LIBRARY_DIRS@"
|
misc/opts.h: remove unused macro OPTL_CFLOAT
This was added by accident in commit | @@ -79,7 +79,6 @@ typedef float opt_fvec3_t[3];
#define OPTL_INT(c, s, ptr, argname, descr) OPTL_ARG(c, s, opt_int, int, ptr, argname, descr)
#define OPTL_LONG(c, s, ptr, argname, descr) OPTL_ARG(c, s, opt_long, long, ptr, argname, descr)
#define OPTL_FLOAT(c, s, ptr, argname, descr) OPTL_ARG(c, s, opt_float, float, pt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.