message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Put command input bellow output | @@ -245,6 +245,13 @@ void Overlay::Render(IDXGISwapChain3* pSwapChain)
static std::vector<std::string> s_consoleResult;
static char command[512] = { 0 };
+ const auto result = ImGui::ListBoxHeader("List", s_consoleResult.size(), 15);
+ for (auto& item : s_consoleResult)
+ ImGui::Selectable(item.c_str());
+
+ if (result... |
build: adding GitHub CI badge for core tests | @@ -5,7 +5,7 @@ liquid-dsp
Software-Defined Radio Digital Signal Processing Library -
[https://liquidsdr.org](https://liquidsdr.org)
-[](https://travis-ci.org/jgaeddert/liquid-dsp)
+[blas_memory_alloc(1);
#ifdef SMP
+ // see graph in issue #1820 for explanation and room for improvement
+ if (n<362) {
+ nthreads = 1 ;
+ } else {
nthreads = num_cpu_avail(2);
+ };
if (nthreads == 1) ... |
Fix null deref in H3 request format | @@ -672,8 +672,9 @@ uint8_t * h3zero_create_request_header_frame(uint8_t * bytes, uint8_t * bytes_ma
/* Path: doc_name. Use literal plus reference format */
bytes = h3zero_qpack_literal_plus_ref_encode(bytes, bytes_max, H3ZERO_QPACK_CODE_PATH, path, path_length);
/*Authority: host. Use literal plus reference format */
... |
snappy: limit max input current for safety
Max = Max * 89%
BRANCH=reef
TEST=make buildall
Commit-Ready: Bruce Wan
Tested-by: Bruce Wan | @@ -606,6 +606,7 @@ void board_set_charge_limit(int port, int supplier, int charge_ma,
if (bd9995x_bc12_enable_charging(port, bc12_enable))
return;
+ charge_ma = (charge_ma * 89) / 100;
charge_set_input_current_limit(MAX(charge_ma,
CONFIG_CHARGER_INPUT_CURRENT), charge_mv);
}
|
Clarify README comment | @@ -19,7 +19,8 @@ want to build with `-Dent_compat=true`. This tells libent not to try to
use getentropy, which might result in a program that can run against
an older libc version on some platforms. (`ent_compat` does nothing on
OpenBSD; we claim that 5.6 is old enough for anyone's purposes who wants
-to use this libr... |
os/include/tinyara/wqueue.h : Modify hpwork default priority description
The priority of hpwork-queue should be less than binary manager.
So it was decreased to 201, but the description was not.
Fix the description. | * if memory reclamation is of high priority). If CONFIG_SCHED_HPWORK
* is enabled, then the following options can also be used:
* CONFIG_SCHED_HPWORKPRIORITY - The execution priority of the high-
- * priority worker thread. Default: 224
+ * priority worker thread. Default: 201
* CONFIG_SCHED_HPWORKSTACKSIZE - The stack... |
[core] add include sys/poll.h on Solaris (fixes
x-ref:
"fdevent_solaris_port.c header missing on Solaris 10" | #ifdef FDEVENT_USE_SOLARIS_PORT
+#include <sys/poll.h>
static const int SOLARIS_PORT_POLL_READ = POLLIN;
static const int SOLARIS_PORT_POLL_WRITE = POLLOUT;
static const int SOLARIS_PORT_POLL_READ_WRITE = POLLIN & POLLOUT;
|
doh. totally forgot to commit this change too from last night. | @@ -18,6 +18,14 @@ This will build the loader tool at `tools/src/32Blit`.
You should ideally add this directory to your `PATH` or alternatively copy this utility somewhere your system can find it.
+>Additional info:
+> - A guide on adding a directory to your PATH
+>https://www.architectryan.com/2012/10/02/add-to-the-pa... |
Fix FFTviewer crash when forwarding X11 over SSH | @@ -34,7 +34,7 @@ target_include_directories(oglGraph PUBLIC
if (APPLE)
set(GL_LIBS "-framework OpenGL" "-framework GLUT")
elseif (UNIX)
- set(GL_LIBS ${OPENGL_LIBRARIES})
+ set(GL_LIBS GL ${OPENGL_LIBRARIES})
endif()
if(UNIX)
|
[drivers/serial]modify annotation | * add TCFLSH and FIONREAD support.
* 2018-12-08 Ernest Chen add DMA choice
* 2020-09-14 WillianChan add a line feed to the carriage return character
- when using interrupt tx
+ * when using interrupt tx
*/
#include <rthw.h>
|
Add PhLCIDToLocaleName | @@ -261,6 +261,34 @@ PPH_STRING PhGetUserDefaultLocaleName(
return NULL;
}
+// rev from LCIDToLocaleName
+PPH_STRING PhLCIDToLocaleName(
+ _In_ LCID lcid
+ )
+{
+ UNICODE_STRING localeNameUs;
+ WCHAR localeName[LOCALE_NAME_MAX_LENGTH];
+
+ RtlInitEmptyUnicodeString(&localeNameUs, localeName, sizeof(localeName));
+
+ if... |
remove -flto | @@ -29,8 +29,7 @@ DEPS = $(addsuffix .d,$(addprefix $(BUILD_DIR)/,$(basename $(SOURCE))))
COMMON_FLAGS = -Wall -MMD -MP --specs=nano.specs --specs=nosys.specs \
-fsingle-precision-constant -fno-exceptions -fstack-usage \
- -ffunction-sections -fdata-sections -fno-strict-aliasing \
- -flto -ffast-math
+ -ffunction-secti... |
viosock: fix using spinlock in paged code | @@ -68,11 +68,6 @@ typedef struct _VIOSOCK_RX_PKT
};
}VIOSOCK_RX_PKT, *PVIOSOCK_RX_PKT;
-PVIOSOCK_RX_CB
-VIOSockRxCbAdd(
- IN PDEVICE_CONTEXT pContext
-);
-
BOOLEAN
VIOSockRxCbInit(
IN PDEVICE_CONTEXT pContext
@@ -84,7 +79,6 @@ VIOSockRxCbCleanup(
);
#ifdef ALLOC_PRAGMA
-#pragma alloc_text (PAGE, VIOSockRxCbAdd)
#pragm... |
options/posix: fix inet_aton | @@ -89,26 +89,26 @@ int inet_aton(const char *string, struct in_addr *dest) {
switch (i) {
case 0:
- dest->s_addr = array[0];
+ dest->s_addr = htonl(array[0]);
break;
case 1:
if (array[0] > 255 || array[1] > 0xffffff)
return 0;
- dest->s_addr = (array[0] << 24) | array[1];
+ dest->s_addr = htonl((array[0] << 24) | arra... |
BugID:18105968: fix the problem of freqband mask | static void LoraTxData(lora_AppData_t *AppData)
{
- uint8_t index = 0;
+ uint8_t i = 0;
- for (index = 0; index < AppData->BuffSize; index++) {
- AppData->Buff[index] = '0' + index;
+ for (i = 0; i < AppData->BuffSize; i++) {
+ AppData->Buff[i] = '0' + i;
}
- AppData->Port = 100;
+ AppData->Port = 10;
DBG_LINKWAN("tx, ... |
hfnetdriver: log msg for sleep | @@ -218,7 +218,7 @@ void netDriver_waitForServerReady(uint16_t portno) {
}
LOG_I(
"Honggfuzz Net Driver (pid=%d): Waiting for the TCP server process to start accepting "
- "TCP connections at 127.0.0.1:%" PRIu16 " ...",
+ "TCP connections at 127.0.0.1:%" PRIu16 ". Sleeping for 1 second....",
(int)getpid(), portno);
sle... |
change antenna names on LimeSDR Mini | @@ -123,9 +123,9 @@ int LMS7_LimeSDR_mini::SetFrequency(bool isTx, unsigned chan, double f_Hz)
std::vector<std::string> LMS7_LimeSDR_mini::GetPathNames(bool dir_tx, unsigned chan) const
{
if (dir_tx)
- return {"NONE", "TX_PATH1", "TX_PATH2"};
+ return {"NONE", "BAND1", "BAND2"};
else
- return {"NONE", "LNA_H", "LNA_L(N... |
Make USE_TRMM depend on TARGET_CORE not TARGET
Fixes (and possibly other DTRMM-related failures on Haswell and related architectures when built with cmake) | @@ -121,7 +121,7 @@ function (build_core TARGET_CORE KDIR TSUFFIX KERNEL_DEFINITIONS)
# Makefile.L3
set(USE_TRMM false)
- if (ARM OR ARM64 OR "${TARGET}" STREQUAL "LONGSOON3B" OR "${TARGET}" STREQUAL "GENERIC" OR "${CORE}" STREQUAL "generic" OR "${TARGET}" STREQUAL "HASWELL" OR "${CORE}" STREQUAL "haswell" OR "{CORE}" ... |
rbd:free owners when rbd_lock_break timeout | @@ -423,7 +423,7 @@ static int tcmu_rbd_lock_break(struct tcmu_device *dev, char **orig_owner)
tcmu_dev_err(dev, "Could not break lock from %s. (Err %d)\n",
owners[0], ret);
if (ret == -ETIMEDOUT)
- return ret;
+ goto free_owners;
ret = -EAGAIN;
if (!*orig_owner) {
|
Fixed load function for test | @@ -25,8 +25,8 @@ void environment::SetUp() {
const char * py_scripts[] = { "example.py" };
const char * cs_scripts[] = { "hello.cs" };
- metacall_load_from_files(py_scripts, 1);
- metacall_load_from_files(cs_scripts, 1);
+ metacall_load_from_file(py_scripts, 1);
+ metacall_load_from_file(cs_scripts, 1);
}
void environ... |
sanitizer-coverage-level seems to be sancov option only | @@ -313,7 +313,7 @@ static void commonOpts(int* j, char** args) {
args[(*j)++] = "-Wno-unused-command-line-argument";
args[(*j)++] = "-fsanitize-coverage=trace-pc-guard,trace-cmp,trace-div,indirect-calls";
args[(*j)++] = "-mllvm";
- args[(*j)++] = "-sanitizer-coverage-level=3";
+ args[(*j)++] = "-sanitizer-coverage-pru... |
vapi: compile vpp-api folder before the plugins
Allows to use vapi symbols in a plugin.
Type: feature | @@ -180,8 +180,8 @@ if(VPP_HOST_TOOLS_ONLY)
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
find_package(OpenSSL)
set(SUBDIRS
- vppinfra svm vlib vlibmemory vlibapi vnet vpp vat vat2 vcl plugins
- vpp-api tools/vppapigen tools/g2 tools/perftool cmake pkg
+ vppinfra svm vlib vlibmemory vlibapi vnet vpp vat vat2 vcl vpp-... |
Free the MPI Info object in PIOc_finalize(). | @@ -805,6 +805,10 @@ int PIOc_finalize(int iosysid)
if (ios->my_comm != MPI_COMM_NULL)
ios->my_comm = MPI_COMM_NULL;
+ /* Free the MPI Info object. */
+ if (ios->info != MPI_INFO_NULL)
+ MPI_Info_free(&ios->info);
+
/* Delete the iosystem_desc_t data associated with this id. */
LOG((2, "About to delete iosysid %d.", io... |
Win_ip:send_msg:set srcaddr if not saved apriori | @@ -164,9 +164,8 @@ get_network_addresses()
OC_ERR("not enough memory to run GetAdaptersAddresses");
return NULL;
}
- dwRetVal =
- GetAdaptersAddresses(family,
- GAA_FLAG_INCLUDE_PREFIX | GAA_FLAG_SKIP_ANYCAST |
+ dwRetVal = GetAdaptersAddresses(
+ family, GAA_FLAG_INCLUDE_PREFIX | GAA_FLAG_SKIP_ANYCAST |
GAA_FLAG_SKIP... |
Don't hardcode version in docs conf.py, let readthedocs fill it in | @@ -61,9 +61,9 @@ author = u'Berkeley Architecture Research'
# built documents.
#
# The short X.Y version.
-version = u'0.1'
+version = u''
# The full version, including alpha/beta/rc tags.
-release = u'0.1'
+release = u''
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of suppor... |
fix datagram.plugin file | @@ -15,10 +15,10 @@ process_frame param 0x2c replace process_datagram_frame.o
process_frame param 0x2d replace process_datagram_frame.o
process_frame param 0x2e replace process_datagram_frame.o
process_frame param 0x2f replace process_datagram_frame.o
-notify_frame 0x2c replace notify_datagram_frame.o
-notify_frame 0x2... |
Fix dark theme menubar accelerators and text alignment | @@ -914,8 +914,14 @@ BOOLEAN PhThemeWindowDrawItem(
case ODT_MENU:
{
PPH_EMENU_ITEM menuItemInfo = (PPH_EMENU_ITEM)DrawInfo->itemData;
+ ULONG drawTextFlags = DT_SINGLELINE | DT_NOCLIP;
HFONT oldFont = NULL;
+ if (DrawInfo->itemState & ODS_NOACCEL)
+ {
+ drawTextFlags |= DT_HIDEPREFIX;
+ }
+
if (PhpMenuFontHandle)
{
ol... |
add while loop to read_data in vna.py | -#!/usr/bin/env python
+#!/usr/bin/env python3
# Control program for the Red Pitaya vector network analyzer
# Copyright (C) 2016 Pavel Demin
@@ -192,6 +192,7 @@ class VNA(QMainWindow, Ui_VNA):
self.dutSweep.setEnabled(True)
def read_data(self):
+ while(self.socket.bytesAvailable() > 0):
if not self.reading:
self.socket... |
nco: rounding phase index appropriately | @@ -348,9 +348,7 @@ uint32_t NCO(_constrain)(float _theta)
// compute index for sine look-up table
unsigned int NCO(_index)(NCO() _q)
{
- // TODO: round appropriately
- unsigned int index = (_q->theta >> 22);
- assert(index < 1024);
- return index;
+ //return (_q->theta >> 22) & 0x3ff; // round down
+ return ((_q->thet... |
Fix verify host callback for wildcard certificates in s2nc | @@ -84,9 +84,9 @@ struct verify_data {
static uint8_t unsafe_verify_host(const char *host_name, size_t host_name_len, void *data) {
struct verify_data *verify_data = (struct verify_data *)data;
- char *offset = strstr(host_name, "*.");
- if (offset) {
- return (uint8_t)(strcasecmp(verify_data->trusted_host, offset + 2)... |
Fixed c++ include usage for esp_core_dump.h | #include "esp_err.h"
#include "esp_private/panic_internal.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**************************************************************************************/
/******************************** EXCEPTION MODE API **********************************/
/************************************... |
Fix closing volume on standby stop | @@ -1748,6 +1748,7 @@ struct ocf_mngt_cache_stop_context {
ocf_ctx_t ctx;
char cache_name[OCF_CACHE_NAME_SIZE];
int cache_write_error;
+ bool close_volume;
};
static void ocf_mngt_cache_stop_wait_metadata_io_finish(void *priv)
@@ -2442,6 +2443,17 @@ static void _ocf_mngt_cache_load(ocf_cache_t cache,
OCF_PL_NEXT_RET(pi... |
test/host_command.c: Format with clang-format
BRANCH=none
TEST=none | @@ -209,8 +209,8 @@ static int test_hostcmd_reuse_response_buffer(void)
ccprintf("\nBuffer contents after process 0x%ph\n",
HEX_BUF(resp_buf, BUFFER_SIZE));
- TEST_EQ(calculate_checksum(resp_buf,
- sizeof(*resp) + resp->data_len), 0, "%d");
+ TEST_EQ(calculate_checksum(resp_buf, sizeof(*resp) + resp->data_len), 0,
+ "%... |
Reject unencrypted | @@ -238,8 +238,14 @@ csma_security_parse_frame(void)
}
if(packetbuf_attr(PACKETBUF_ATTR_SECURITY_LEVEL) == 0) {
+ /* From https://github.com/contiki-ng/contiki-ng/issues/1610 */
+ /* This should reject unencrypted packets */
+ #ifdef LLSEC802154_REJECT_INSECURE
+ return FRAMER_FAILED;
+ #else
/* No security - no more p... |
Remove extra signal check in procsignal_sigusr1_handler
PROCSIG_WALSND_INIT_STOPPING is checked twice under
procsignal_sigusr1_handler, so remove the extra one and
also rearrange the check order to align with upstream. | @@ -287,12 +287,6 @@ procsignal_sigusr1_handler(SIGNAL_ARGS)
if (CheckProcSignal(PROCSIG_NOTIFY_INTERRUPT))
HandleNotifyInterrupt();
- if (CheckProcSignal(PROCSIG_QUERY_FINISH))
- QueryFinishHandler();
-
- if (CheckProcSignal(PROCSIG_WALSND_INIT_STOPPING))
- HandleWalSndInitStopping();
-
if (CheckProcSignal(PROCSIG_PAR... |
Now if you try to resolve v6 addresses, we try. | @@ -73,6 +73,7 @@ const __init__ = {
}
const resolve = {host
+ /*TODO: v4 and v6 */
-> resolverec(host, `DnsA)
}
@@ -85,7 +86,7 @@ const resolverec = {host, t
| `Some hinf:
-> `Ok sldup([hinf][:])
| `None:
- -> dnsresolve(host, rectype(`DnsA))
+ -> dnsresolve(host, rectype(t))
;;
}
|
pybricks/common/LightGrid: add char method | #include <pbdrv/pwm.h>
-#include "py/obj.h"
#include "py/mphal.h"
+#include "py/obj.h"
+#include "py/objstr.h"
#include <pybricks/common.h>
@@ -41,6 +42,21 @@ typedef struct _common_LightGrid_obj_t {
uint8_t size;
} common_LightGrid_obj_t;
+// pybricks._common.LightGrid.char
+STATIC mp_obj_t common_LightGrid_char(size_... |
Add arch data for cross-compiling to CORE2
for | @@ -106,7 +106,25 @@ if (DEFINED CORE AND CMAKE_CROSSCOMPILING AND NOT (${HOST_OS} STREQUAL "WINDOWSS
file(APPEND ${TARGET_CONF_TEMP}
"#define ${TCORE}\n"
"#define CHAR_CORENAME \"${TCORE}\"\n")
- if ("${TCORE}" STREQUAL "ARMV7")
+ if ("${TCORE}" STREQUAL "CORE2")
+ file(APPEND ${TARGET_CONF_TEMP}
+ "#define L1_DATA_SI... |
tools: Fix bindsnoop for kernel v5.6
Commit ("sock: Make sk_protocol a 16-bit value") reorganizes
the layout of struct sock and make sk_protocol a field of u16. This makes
the bindsnoop print `UNKN` for its `PROT` field.
See ([0]) and ([1]) for more details.
[0]:
[1]: | # 14-Feb-2020 Pavel Dubovitsky Created this.
from __future__ import print_function, absolute_import, unicode_literals
-from bcc import BPF, DEBUG_SOURCE
+from bcc import BPF
from bcc.containers import filter_by_containers
from bcc.utils import printb
import argparse
@@ -243,10 +243,14 @@ static int bindsnoop_return(str... |
Return error on WINC SPI bus init fail. | @@ -142,7 +142,10 @@ sint8 nm_bus_init(void *pvinit)
SPI_HANDLE.Init.CRCPolynomial = 7;
// Init SPI
- HAL_SPI_Init(&SPI_HANDLE);
+ HAL_SPI_DeInit(&SPI_HANDLE);
+ if (HAL_SPI_Init(&SPI_HANDLE) != HAL_OK) {
+ result = M2M_ERR_BUS_FAIL;
+ }
nm_bsp_reset();
WINC_CS_HIGH();
|
Fix horizontal rotation bug in Oculus spatializer | @@ -245,8 +245,9 @@ static uint32_t oculus_tail(float* scratch, float* output, uint32_t frames) {
// Oculus math primitives
+ // Note: Mirror on YZ plane. There appears to be some difference between Lovr and Oculus Audio quaternions.
static void oculusUnpackQuat(ovrQuatf* oq, float* lq) {
- oq->x = lq[0]; oq->y = lq[1]... |
libnet: adding timeout message to ping | @@ -136,8 +136,9 @@ ping_send(struct raw_pcb *raw, ip_addr_t *addr)
iecho->chksum = inet_chksum(iecho, ping_size);
- results[ping_seq_num & (PING_RESULT_MAX - 1)].t_start = rdtsc();
results[ping_seq_num & (PING_RESULT_MAX - 1)].t_end = 0;
+ results[ping_seq_num & (PING_RESULT_MAX - 1)].received = 0;
+ results[ping_seq_... |
docs: describe all packages | @@ -65,7 +65,7 @@ Packages
--------
Requirements differ, so we broke HsLua into multiple packages.
-These are the packages that make up HsLua:
+These are the base packages that make up HsLua:
- **lua**: Raw bindings to the Lua interpreter; ships with a
full Lua implementation, but can be configured to use a
@@ -86,3 +8... |
king: ames bounded q, now with logging and fifo | @@ -6,6 +6,7 @@ module Urbit.Vere.Ames (ames, ames') where
import Urbit.Prelude
+import Control.Concurrent.STM.TVar (stateTVar)
import Network.Socket hiding (recvFrom, sendTo)
import Urbit.Arvo hiding (Fake)
import Urbit.King.Config
@@ -24,16 +25,26 @@ import Urbit.Vere.Ames.UDP (UdpServ(..), fakeUdpServ, realUdpServ)
... |
sysrepo BUGFIX convert any node changes from lyd to sr
Fixes | @@ -3585,8 +3585,10 @@ sr_lyd_node2sr_val(const struct lyd_node *node, const char *value_str, const cha
sr_val_t *sr_val;
LY_DATA_TYPE value_type;
const struct lyd_node_leaf_list *leaf;
+ struct lyd_node_anydata *any;
struct lys_type *type;
struct lys_node_list *slist;
+ struct lyd_node *tree;
sr_val = calloc(1, sizeof... |
[RAFT] cause an error if more than one tx of cluster change is included in a block, | @@ -17,6 +17,7 @@ var (
entLogger *log.Logger
ErrNotSupportedMethod = errors.New("Not supported Enterprise Tx")
+ ErrTxEnterpriseAlreadyIncludeChangeCluster = errors.New("Enterprise Tx of Change cluster type already included in the block")
)
type EnterpriseContext struct {
@@ -108,6 +109,11 @@ func ExecuteEnterpriseTx(... |
[core] quicker graceful shutdown
close connections in keep-alive that are waiting for next request
disable keep-alive on existing connections
remove bandwidth write limits
reduce remaining linger timeout (on already finished requests)
to be (from zero) *up to* one more second, but no more | @@ -698,6 +698,42 @@ static void show_help (void) {
write_all(STDOUT_FILENO, b, strlen(b));
}
+static void server_graceful_shutdown_maint (server *srv) {
+ connections *conns = srv->conns;
+ for (size_t ndx = 0; ndx < conns->used; ++ndx) {
+ connection * const con = conns->ptr[ndx];
+ int changed = 0;
+
+ if (con->stat... |
improvement(kscan): use ARRAY_SIZE macro | @@ -38,8 +38,7 @@ struct kscan_composite_data {
};
static int kscan_composite_enable_callback(struct device *dev) {
- for (int i = 0; i < sizeof(kscan_composite_children) / sizeof(kscan_composite_children[0]);
- i++) {
+ for (int i = 0; i < ARRAY_SIZE(kscan_composite_children); i++) {
const struct kscan_composite_child... |
Update golangci configuration to allow long lines for go:generate
go:generate doesn't allow a command to span multiple lines. | @@ -8,10 +8,12 @@ issues:
linters:
- dupl
- gofumpt
- - lll
- linters:
- goerr113
text: do not define dynamic errors, use wrapped static errors instead
+ - linters:
+ -lll
+ source: "^//go:generate " # exclude lll issues for long lines with go:generate
linters:
disable-all: true
enable:
|
Fix memory leak when switching render projection | @@ -478,6 +478,10 @@ namespace carto {
glPixelStorei(GL_PACK_ALIGNMENT, 1);
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+ // If the surface was lost, properly signal about this
+ if (_surfaceCreated) {
+ onSurfaceDestroyed();
+ }
_surfaceCreated = true;
// Reset frame buffer manager
@@ -893,9 +897,6 @@ namespace carto {
// ... |
added some more md5 hash stuff | @@ -232,7 +232,7 @@ for(y = 1900; y <= thisyear; y++)
return;
}
/*===========================================================================*/
-void keywritemd5asciimac(unsigned long long int mac_in)
+void keywritemd5mac(unsigned long long int mac_in)
{
MD5_CTX ctxmd5;
int k;
@@ -246,6 +246,18 @@ MD5_Init(&ctxmd5);
MD... |
reinstated ++poke-lens-command with changes | |= act/sole-action ~| poke+act %. act
(wrap he-type):arm
::
+++ poke-lens-command
+ |= com/command:^^^^lens ~| poke-lens+com %. com
+ (wrap he-lens):arm
+::
++ poke-json
|= jon/json
^- {(list move) _+>.$}
|
implement setting negative numbers | @@ -170,7 +170,7 @@ const get = (path) =>
// set value at given `path`
const set = (path, value) =>
- safeExec(escapeValues`kdb set ${path} ${value}`)
+ safeExec(escapeValues`kdb set ${path} -- ${value}`)
// move value from given `path` to `destination`
const mv = (path, destination) =>
|
Clarified TODO. | ::
?= $~
(rush (fall han.man.new '') ;~(pfix sig fed:ag))
- ::TODO %+ syntax errors?
+ ::TODO calling with %+ gives syntax error
==
==
+>
|
Deploy final Constitution alongside other contracts
Putting it at the beginning of the queue. Important since the contract
deployment is most likely to hit block gas limits. | [%address polls]
[%address claims]
==
+ ~& ['Deploying constitution-final...' +(nonce)]
+ =^ constit-final this
+ %+ do-deploy 'constitution-final'
+ :~ [%address constit]
+ [%address ships]
+ [%address polls]
+ [%address claims]
+ ==
=. constitution constit
~& 'Transferring contract ownership...'
=. this
(deposit-gala... |
crashlog: fix build issue under latest clearlinux
gcc in latest clearlinux enabled the pointer-sign warning as
default. This breaks the acrn-crashlog build.
Make acrn-crashlog build issue fixed by convert to correct
pointer type. | @@ -231,7 +231,7 @@ int loopdev_check_parname(const char *loopdev, const char *parname)
/* only look into the primary super block */
if (super.s_volume_name[0]) {
close(fd);
- return !strcmp(super.s_volume_name, parname);
+ return !strcmp((const char *)super.s_volume_name, parname);
}
break;
}
|
Modified sao_band_ddistortion_avx2 | @@ -587,23 +587,19 @@ static int sao_band_ddistortion_avx2(const encoder_state_t * const state,
//int band = (rec_data[y * block_width + x] >> shift) - band_pos;
- __m256i band_epi32 = _mm256_loadu_si256((__m256i*)&rec_data[y * block_width + x]);
+ __m256i band_epi32 = _mm256_cvtepu8_epi32(_mm_loadl_epi64((__m128i*)&(r... |
when LTO is available, build with LTO
Fixes: PJK/libcbor#140 | @@ -123,12 +123,37 @@ install(FILES ${PROJECT_BINARY_DIR}/cbor/configuration.h DESTINATION include/cbo
# Make the header visible at compile time
include_directories(${PROJECT_BINARY_DIR})
+# CMake >= 3.9.0 enables LTO for GCC and Clang with INTERPROCEDURAL_OPTIMIZATION
+# Policy CMP0069 enables this behavior when we se... |
Fix SEGV in DeRestPluginPrivate::readBindingTable() | @@ -115,7 +115,7 @@ bool DeRestPluginPrivate::readBindingTable(RestNodeBase *node, quint8 startIndex
{
DBG_Assert(node != 0);
- if (!node && node->node())
+ if (!node || !node->node())
{
return false;
}
|
Fix uninitialized ProcMountNS in USDT Context | @@ -285,7 +285,8 @@ void Context::each_uprobe(each_uprobe_cb callback) {
}
}
-Context::Context(const std::string &bin_path) : loaded_(false) {
+Context::Context(const std::string &bin_path)
+ : mount_ns_instance_(new ProcMountNS(-1)), loaded_(false) {
std::string full_path = resolve_bin_path(bin_path);
if (!full_path.e... |
Account for pool realloc when importing FIB entries during VRF export | @@ -244,6 +244,12 @@ fib_attached_export_import (fib_entry_t *fib_entry,
{
fib_entry_delegate_t *fed;
fib_ae_import_t *import;
+ fib_node_index_t fei;
+
+ /*
+ * save index for later post-realloc retreival
+ */
+ fei = fib_entry_get_index(fib_entry);
pool_get(fib_ae_import_pool, import);
@@ -292,11 +298,13 @@ fib_attac... |
Fix gpcloud's staging server concourse job
USE_PGXS=1 is mandatory, and it's no need to compile if not overwriting. | @@ -13,8 +13,8 @@ function gen_env(){
source /usr/local/greenplum-db-devel/greenplum_path.sh
cd "\${1}/gpdb_src/gpAux/extensions/gpcloud"
- make
- make gpcheckcloud
+ make USE_PGXS=1
+ make gpcheckcloud USE_PGXS=1
EOF
chown -R gpadmin:gpadmin $(pwd)
@@ -50,9 +50,13 @@ function _main() {
time configure
time install_gpdb... |
Documentation change only: tweaked README.md of log_ram | @@ -27,8 +27,8 @@ The pattern of usage is as follows:
By convention, if no parameter is required for a log item then 0 is used.
- Near the start of your code, add a call to `uLogRamInit()`, passing in a pointer to a logging buffer of size `U_LOG_RAM_STORE_SIZE` bytes, or passing `NULL` to have it `malloc()` logging spa... |
NUMERICSTRING support | @@ -140,6 +140,7 @@ int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags,
switch (type) {
case V_ASN1_PRINTABLESTRING:
case V_ASN1_T61STRING:
+ case V_ASN1_NUMERICSTRING:
case V_ASN1_UTF8STRING:
case V_ASN1_IA5STRING:
if (BIO_write(bp, (char *)bs->data, bs->length)
|
sysdeps/managarm: Add more error handling to sys_msg_send | @@ -1124,6 +1124,16 @@ int sys_msg_send(int sockfd, const struct msghdr *hdr, int flags, ssize_t *lengt
return ENOTCONN;
}else if(resp.error() == managarm::fs::Errors::WOULD_BLOCK) {
return EAGAIN;
+ }else if(resp.error() == managarm::fs::Errors::HOST_UNREACHABLE) {
+ return EHOSTUNREACH;
+ }else if(resp.error() == man... |
fix instructions where RPMs are lying | @@ -128,7 +128,7 @@ To build an rpm package and install it run the following commands inside the oid
```
make rpm
-sudo yum install ../oidc-agent-<version>-1.x86_64.rpm
+sudo yum install ./rpm/rpmbuild/RPMS/<arch>/oidc-agent-<version>-1.<arch>.rpm
```
#### Building Binaries
|
fix CUDA strided memcpy | @@ -647,14 +647,13 @@ void md_copy2(unsigned int D, const long dim[D], const long ostr[D], void* optr,
size_t sizes[2] = { size, size };
int skip = min_blockdim(2, ND, tdims, nstr2, sizes);
+ long ostr2 = (*nstr2[0])[skip];
+ long istr2 = (*nstr2[1])[skip];
- if (use_gpu && (ND - skip > 0)) {
+ if (use_gpu && (ND - ski... |
Improvement in CMakeLists.txt | @@ -31,14 +31,15 @@ message(STATUS "VMA_DEBUG_INITIALIZE_ALLOCATIONS = ${VMA_DEBUG_INITIALIZE_ALLOCA
message(STATUS "VMA_DEBUG_GLOBAL_MUTEX = ${VMA_DEBUG_GLOBAL_MUTEX}")
message(STATUS "VMA_DEBUG_DONT_EXCEED_MAX_MEMORY_ALLOCATION_COUNT = ${VMA_DEBUG_DONT_EXCEED_MAX_MEMORY_ALLOCATION_COUNT}")
-IF(VMA_BUILD_SAMPLE)
- SET... |
crashes when moving mouse over keys in sfx mode | @@ -474,7 +474,7 @@ bool fromClipboard(void* data, s32 size, bool flip, bool remove_white_spaces)
void showTooltip(const char* text)
{
- strcpy(studio.tooltip.text, text);
+ strncpy(studio.tooltip.text, text, sizeof studio.tooltip.text - 1);
}
static void drawExtrabar(tic_mem* tic)
|
[bsp][CME_M7] update scons config: disable IAR support. | @@ -15,8 +15,10 @@ elif CROSS_TOOL == 'keil':
PLATFORM = 'armcc'
EXEC_PATH = 'C:/Keil'
elif CROSS_TOOL == 'iar':
- PLATFORM = 'iar'
- EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
+ print('================ERROR============================')
+ print('Not support iar yet!')
+ print('=======... |
guybrush: Remove undef of ADC and SWITCH
BRANCH=none
TEST=Build | /* Optional features */
#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */
-/* Config options automatically enabled, re-enable once support added */
-#undef CONFIG_ADC
-#undef CONFIG_SWITCH
-
#undef CONFIG_UART_TX_BUF_SIZE
#define CONFIG_UART_TX_BUF_SIZE 4096
|
output: do not count number of records upon return, use the cached number | @@ -477,7 +477,7 @@ static inline void flb_output_return(int ret, struct flb_thread *th) {
#ifdef FLB_HAVE_METRICS
if (out_th->o_ins->metrics) {
if (ret == FLB_OK) {
- records = flb_mp_count(task->buf, task->size);
+ records = task->records;
flb_metrics_sum(FLB_METRIC_OUT_OK_RECORDS, records,
out_th->o_ins->metrics);
f... |
fix PR issue: 'SIZE_MAX' to 'UINT64_MAX' | @@ -100,14 +100,14 @@ static uint64_t destroy_expired_locked(h2o_socketpool_t *pool)
__sync_sub_and_fetch(&pool->_shared.pooled_count, 1);
}
}
- return SIZE_MAX;
+ return UINT64_MAX;
}
/* caller should lock the mutex */
static void check_pool_expired_locked(h2o_socketpool_t *pool)
{
uint64_t next_expired = destroy_expi... |
lower priority so '.nan' parses properly | ;~ pose
(stag %is bip:ag)
(stag %if lip:ag)
- (stag %f ;~(pose (cold & (just 'y')) (cold | (just 'n'))))
royl
+ (stag %f ;~(pose (cold & (just 'y')) (cold | (just 'n'))))
==
--
++ scot |=(mol/dime ~(rent co %$ mol))
|
CONTRIB-321: Add missing unused modules to ignore list | @@ -162,6 +162,10 @@ def check_imports(no_check=None, extra=[], skip_func=None):
"gevent.win32util",
"library.python.ctypes.__init__",
+ "celery.events.cursesmon",
+ "billiard.popen_forkserver",
+ "billiard.forkserver",
+ "celery.contrib.sphinx",
] + list(no_check or [])
if sys.version_info.major == 3:
|
stm32/mphalport: Fix GPIO clock enable for L0 MCUs. | @@ -121,7 +121,7 @@ void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio) {
#define AHBxENR_GPIOAEN_Pos RCC_AHB4ENR_GPIOAEN_Pos
#elif defined(STM32L0)
#define AHBxENR IOPENR
- #define AHBxENR_GPIOAEN_Pos RCC_IOPENR_GPIOAEN
+ #define AHBxENR_GPIOAEN_Pos RCC_IOPENR_IOPAEN_Pos
#elif defined(STM32L4)
#define AHBxENR AHB2ENR
#d... |
Fixed #ifdefs needed for --disable-client to work | @@ -913,6 +913,7 @@ static int create_ssdp_sock_reqv4(
return UPNP_E_SUCCESS;
}
+#endif /* INCLUDE_CLIENT_APIS */
#ifdef UPNP_ENABLE_IPV6
/*!
@@ -1131,6 +1132,7 @@ error_handler:
}
#endif /* IPv6 */
+#ifdef INCLUDE_CLIENT_APIS
/*!
* \brief Creates the SSDP IPv6 socket to be used by the control point.
*/
|
Remove trailing whitespace from commands as parameters | @@ -877,6 +877,13 @@ static FAR char *nsh_filecat(FAR struct nsh_vtbl_s *vtbl, FAR char *s1,
index += nbytesread;
}
+ /* Remove trailing whitespace */
+
+ for (;
+ index > s1size &&
+ strchr(g_token_separator, argument[index - 1]) != NULL;
+ index--);
+
/* Make sure that the new string is null terminated */
argument[in... |
added methond to write meta_info_line | @@ -59,6 +59,11 @@ namespace ebi
}
+ virtual void write_meta_info(std::string &meta_info_line)
+ {
+
+ }
+
virtual void write_warning(std::string &warning)
{
@@ -129,6 +134,11 @@ namespace ebi
file << vcf_line;
}
+ virtual void write_meta_info(std::string &meta_info_line) override
+ {
+ file << meta_info_line;
+ }
+
pr... |
usage-guide: fix s2n_mode description | @@ -277,9 +277,7 @@ an error "category". See [Error Handling](#error-handling) for more detail.
typedef enum { S2N_SERVER, S2N_CLIENT } s2n_mode;
```
-**s2n_mode** is used to declare connections as server or client type,
-respectively. At this time, s2n does not function as a client and only
-S2N_SERVER should be used.... |
test/restore: remove include of remaining .c file
And group includes. | #include <stdio.h>
#include <cmocka.h>
-#include <backup/backup.h>
-#include <backup/restore.h>
+#include <FatFs/source/ff.h>
#include <pb_decode.h>
#include <pb_encode.h>
-#include <util.h>
+#include <wally_crypto.h>
-#include <FatFs/source/ff.h>
#include <assert_sd.h>
+#include <backup/backup.h>
+#include <backup/res... |
Analysis workflow, build libs only. | @@ -270,11 +270,15 @@ jobs:
# from the Configure script
sed -e 's/use Pod::Usage//' < Configure > Configure.fix
./Configure.fix no-shared no-asm -DOPENSSL_NO_CAPIENG mingw64 --prefix="/$prepath/openssl"
- make
+ # make the libs only, build faster
+ #make
+ make build_libs
grep INSTALLTOP= Makefile
grep DESTDIR= Makefil... |
tools/nfsslower: fix on v3-only systems
The nfs4_file_open tracepoints are part of nfsv4.ko, which may
not be loaded on systems using NFSv3 only. Do not attempt to
attach probes in this case. For nfsdist.py, a similar issue has
already been addressed likewise in commit | @@ -417,16 +417,18 @@ b = BPF(text=bpf_text,
cflags=["-Wno-tautological-constant-out-of-range-compare"])
b.attach_kprobe(event="nfs_file_read", fn_name="trace_rw_entry")
b.attach_kprobe(event="nfs_file_write", fn_name="trace_rw_entry")
-b.attach_kprobe(event="nfs4_file_open", fn_name="trace_file_open_entry")
b.attach_k... |
Updated index.json. | },
"url": "https://github.com/ROBOTIS-GIT/OpenCR/releases/download/1.4.2/opencr_core_1.4.2.tar.bz2",
"archiveFileName": "opencr_core_1.4.2.tar.bz2",
- "checksum": "SHA-256:47fd04506b0754cef1bc68151909e75c6d83f7d6011f8b63d48588020e64ea9c",
- "size": "2507212",
+ "checksum": "SHA-256:f4e8177abf00014107243bbaf5a2c0c0ac83f... |
build: realigned columns and set in_unix_socket to disabled by default | @@ -147,7 +147,7 @@ option(FLB_IN_SYSLOG "Enable Syslog input plugin" Yes)
option(FLB_IN_TAIL "Enable Tail input plugin" Yes)
option(FLB_IN_UDP "Enable UDP input plugin" Yes)
option(FLB_IN_TCP "Enable TCP input plugin" Yes)
-option(FLB_IN_UNIX_SOCKET "Enable Unix socket input plugin" Yes)
+option(FLB_IN_UNIX_SOCKET "En... |
Utilities: Check variables for NULL before FreePool in TestDiskImage | @@ -144,10 +144,18 @@ ContinueDmgLoop:
OcAppleDiskImageFreeContext (&DmgContext);
}
+ if (Dmg != NULL) {
FreePool (Dmg);
+ }
+
+ if (Chunklist != NULL) {
FreePool (Chunklist);
+ }
+
+ if (UncompDmg != NULL) {
FreePool (UncompDmg);
}
+ }
return 0;
}
|
Adds curl into the 'Requires' | @@ -44,6 +44,7 @@ Requires: zstd
Requires: file
Requires: gnupg2
Requires: git
+Requires: curl
%global install_path %{OHPC_ADMIN}/%{pname}/%version
# Turn off the brp-python-bytecompile script
|
wsman-win-client-transport: Fix NULL dereferencing issues in wsmc_handler | @@ -374,6 +374,12 @@ wsmc_handler(WsManClient * cl, WsXmlDocH rqstDoc, void *user_data)
if(cl->proxy_data.proxy_username)
{
proxy_username = convert_to_unicode(cl->proxy_data.proxy_username);
+ if (proxy_username == NULL) {
+ lastErr = GetLastError();
+ dwStatusCode = 400;
+ error("could not convert proxy_username to u... |
README.md: Use version 2.05.09 | @@ -28,11 +28,11 @@ Raspbian Wheezy and Qt4 is no longer maintained.
### Install deCONZ
1. Download deCONZ package
- wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.08-qt5.deb
+ wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.09-qt5.deb
2. Install deCONZ package
- sudo dpkg -i deconz... |
admin/lmod-defaults: fix license metadata | @@ -15,7 +15,7 @@ Summary: OpenHPC default login environments
Name: lmod-defaults-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
Version: 1.3.3
Release: 1
-License: BSD
+License: Apache-2.0
Group: %{PROJ_NAME}/admin
URL: https://github.com/openhpc/ohpc
BuildArch: noarch
|
sysdeps/managarm: Implement TIOCSCTTY | @@ -2763,6 +2763,51 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) {
*result = resp.result();
return 0;
}
+ case TIOCSCTTY: {
+ HelAction actions[4];
+ globalQueue.trim();
+
+ managarm::fs::CntRequest<MemoryAllocator> req(getSysdepsAllocator());
+ req.set_req_type(managarm::fs::CntReqType::PT_I... |
add two valgrind suppressions for openssl on freebsd | fun:pthread_once
fun:CRYPTO_THREAD_run_once
}
+{
+ <OPENSSL-3>
+ Memcheck:Param
+ sendmsg(sendmsg.msg_control)
+ fun:_sendmsg
+ obj:/lib/libthr.so.3
+ fun:sendmsg
+ obj:/usr/local/lib/libcrypto.so.10
+ fun:BIO_write
+ obj:/usr/local/lib/libssl.so.10
+ obj:/usr/local/lib/libssl.so.10
+ obj:/usr/local/lib/libssl.so.10
+ ... |
Fix pipelining by processing even when `sock_read` fails | @@ -507,9 +507,10 @@ static inline void http1_consume_data(intptr_t uuid, http1pr_s *p) {
}
}
- if (!pipeline_limit)
+ if (!pipeline_limit) {
facil_force_event(uuid, FIO_EVENT_ON_DATA);
}
+}
/** called when a data is available, but will not run concurrently */
static void http1_on_data(intptr_t uuid, protocol_s *protoc... |
Enable data quality checks | @@ -381,6 +381,10 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len)
else if (val[i] < min) min = val[i];
}
+ if ((err = grib_check_data_values_range(hand, min, max)) != GRIB_SUCCESS) {
+ return err;
+ }
+
if (min == max) {
is_constant_field = 1;
} else {
|
sandbox/firdes_length_test: fixing typo to allow compilation | @@ -36,7 +36,7 @@ int main(int argc, char*argv[]) {
case 't': ft = atof(optarg); break;
case 'a': as_min = atof(optarg); break;
case 'A': as_max = atof(optarg); break;
- case 'n': num_Aa = atoi(optarg); break;
+ case 'n': num_as = atoi(optarg); break;
default:
exit(1);
}
|
Change AppleProcessorMajorXeonScalable back into AppleProcessorMajorXeonW into a flag on DetectAppleMajorType. | STATIC
UINT8
DetectAppleMajorType (
- CONST CHAR8 *BrandString
+ IN CONST CHAR8 *BrandString,
+ OUT BOOLEAN *IsXeonScalable OPTIONAL
)
{
CONST CHAR8 *BrandInfix;
+ if (IsXeonScalable) {
+ *IsXeonScalable = FALSE;
+ }
+
BrandInfix = AsciiStrStr (BrandString, "Core");
if (BrandInfix != NULL) {
while ((*BrandInfix != ' ')... |
[io] mechanics_io: fix static/dynamic bodies order for perm. inters | @@ -1533,14 +1533,24 @@ class Hdf5():
body1_name = pinter.attrs['body1_name']
body2_name = pinter.attrs['body2_name']
+ try:
ds1 = \
- Kernel.cast_NewtonEulerDS(topo.getDynamicalSystem(body1_name))
+ Kernel.cast_NewtonEulerDS(
+ topo.getDynamicalSystem(body1_name))
+ except:
+ ds1 = None
+
try:
ds2 = \
- Kernel.cast_Ne... |
in_winlog: Avoid SIGSEGV on invalid message placeholders
It was found that Event Log templates sometimes contain "extra"
placeholders (e.g. contain "%9" where evt->NumStrings is 8).
This seems to be a bug of Windows event system.
Mitigate that bug by always preparing a larger pointer buffer. | #define FMT_EVTLOG L"SYSTEM\\CurrentControlSet\\Services\\EventLog\\%S\\%s"
#define FMT_EVTALT L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WINEVT\\Publishers\\%s"
+/* 127 is the max number of function params */
+#define PARAM_MAXNUM 127
+
#define SRCNAME(evt) ((wchar_t *) ((char *) (evt) + sizeof(EVENTLOGRECORD)))
... |
img2webp: treat -loop as a no-op w/single images
or in cases where duplicates have been reduced to one | @@ -85,10 +85,15 @@ static int ReadImage(const char filename[], WebPPicture* const pic) {
static int SetLoopCount(int loop_count, WebPData* const webp_data) {
int ok = 1;
WebPMuxError err;
+ uint32_t features;
WebPMuxAnimParams new_params;
WebPMux* const mux = WebPMuxCreate(webp_data, 1);
if (mux == NULL) return 0;
+ e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.