message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
extmod/modlogger: don't use strncat
This is not available on stm32 builds. | @@ -97,19 +97,16 @@ void make_data_row_str(char *row, int32_t *data, uint8_t n) {
// Set initial row to empty string so we can concat to its
row[0] = 0;
- // String representation of one integer
- char value_str[max_val_strln];
for (uint8_t v = 0; v < n; v++) {
// Convert value to string
- if (snprintf(value_str, max_v... |
fix version; fix typo | @@ -53,6 +53,7 @@ make install BIN_PATH=${RPM_BUILD_ROOT}/usr MAN_PATH=${RPM_BUILD_ROOT}/usr/share
%config /etc/oidc-agent/privileges/socket.priv
%config /etc/oidc-agent/privileges/time.priv
%config /etc/oidc-agent/privileges/write.priv
+%config /etc/oidc-agent/pubclients.config
%doc /usr/share/man/man1/oidc-add.1.gz
%... |
check request mark
And put ++scry code back in. | ++ burb :: per ship
|= who/ship
~(able ~(ex ur urb) who)
+ :: :: ++scry:of
+ ++ scry :: read
+ |= {syd/@tas pax/path} ^- (unit gilt)
+ =^ mar pax =/(a (flop pax) [-.a (flop t.+.a)])
+ ?> ?=(_-:*gilt mar)
+ =- (biff - (flit |=(a/gilt =(-.a mar))))
+ ~ ::TODO
:: :: ++call:of
++ call :: invoke
|= $: :: hen: event cause
ty... |
jlink.sh; pass extra jtag command line arguments to JLinkExe. | @@ -53,7 +53,7 @@ jlink_load () {
# downloading somewhere in the flash. So need to figure out how to tell it
# not to do that, or report failure if gdb fails to write this file
#
- echo "shell sh -c \"trap '' 2; $JLINK_GDB_SERVER -device $JLINK_DEV -speed 4000 -if SWD -port 3333 -singlerun &\" " > $GDB_CMD_FILE
+ echo ... |
Fixing function definition for EN_getcurve | @@ -3648,7 +3648,7 @@ int DLLEXPORT EN_getpumptype(EN_ProjectHandle ph, int index, int *type) {
return (0);
}
-int DLLEXPORT EN_getcurvetype(EN_Project *p, int curveindex, int *type) {
+int DLLEXPORT EN_getcurvetype(EN_ProjectHandle ph, int curveindex, int *type) {
EN_Network *net = &p->network;
|
in_node_exporter_metrics: do not enqueue data before the collector start | static void update_metrics(struct flb_input_instance *ins, struct flb_ne *ctx)
{
- int ret;
-
/* Update our metrics */
ne_cpu_update(ctx);
ne_cpufreq_update(ctx);
@@ -56,12 +54,6 @@ static void update_metrics(struct flb_input_instance *ins, struct flb_ne *ctx)
ne_vmstat_update(ctx);
ne_netdev_update(ctx);
ne_filefd_upd... |
Correctly set the curve orders when each curve has a different order | @@ -243,6 +243,15 @@ InputCurveNode::compute(const MPlug& plug, MDataBlock& data)
&cvCounts.front(),
0, cvCounts.size()
));
+ if(curveInfo.order == HAPI_CURVE_ORDER_VARYING)
+ {
+ CHECK_HAPI(HAPI_SetCurveOrders(
+ Util::theHAPISession.get(),
+ myNodeId, 0,
+ &orders.front(),
+ 0, orders.size()
+ ));
+ }
HAPI_AttributeI... |
Fix Marvell CMake file | @@ -177,8 +177,9 @@ set(
"${mw320_dir}/sdk/src/wlan/wifidriver/incl"
"${AFR_KERNEL_DIR}/portable/GCC/ARM_CM4F"
"${mw320_dir}/sdk/src/incl/platform/os/freertos"
- "${AFR_MODULES_STANDARD_DIR}/freertos_plus_tcp/include"
- "${AFR_MODULES_STANDARD_DIR}/freertos_plus_tcp/source/portable/Compiler/GCC"
+ "${AFR_MODULES_FREERT... |
Fix stack resolver in travis build | @@ -38,7 +38,7 @@ matrix:
# The Stack builds. We can pass in arbitrary Stack arguments via the ARGS
# variable, such as using --stack-yaml to point to a different file.
- - env: BUILD=stack ARGS="--resolver lts-7"
+ - env: BUILD=stack ARGS="--resolver lts-8"
compiler: ": #stack 8.0.1"
addons:
apt:
|
Copy BUILD_ settings to the LAPACK make.inc | @@ -304,6 +304,18 @@ else
endif
ifeq ($(BUILD_LAPACK_DEPRECATED), 1)
-@echo "BUILD_DEPRECATED = 1" >> $(NETLIB_LAPACK_DIR)/make.inc
+endif
+ifeq ($(BUILD_SINGLE), 1)
+ -@echo "BUILD_SINGLE = 1" >> $(NETLIB_LAPACK_DIR)/make.inc
+endif
+ifeq ($(BUILD_DOUBLE), 1)
+ -@echo "BUILD_DOUBLE = 1" >> $(NETLIB_LAPACK_DIR)/make.in... |
add Access-Control-Allow-Origin: * | @@ -85,7 +85,8 @@ static void wrap_http(int fd, const char *content)
write(fd, "Connection: close\r\n",19);
write(fd, lbuf, strlen(lbuf));
write(fd, tbuf, strlen(tbuf));
- write(fd, "Content-Type: application/json\r\n\r\n", 34);
+ write(fd, "Content-Type: application/json\r\n", 32);
+ write(fd, "Access-Control-Allow-Or... |
re-org the tutorial section so it will not break the flow of build/run | @@ -33,10 +33,6 @@ sudo apt-get install -y libcurl4-openssl-dev
make echo-bot
```
-## Tutorial on how to make a bot
-
-Instructions on how to make a ping-pong bot is found [here](/docs/BUILDING_A_BOT.md).
-
## Run echo-bot
1. Get your bot token and paste it to `bot.config` to
replace `YOUR-BOT-TOKEN`. There are
@@ -55,... |
fix batch multiclass prediction on pre-quantized data | @@ -378,7 +378,7 @@ namespace NCB::NModelEvaluation {
treeEnd,
resultPtr
);
- resultPtr += subBlock.GetObjectsCount();
+ resultPtr += subBlock.GetObjectsCount() * ObliviousTrees->ApproxDimension;
}
}
|
Tie return value of mbld to results of specified targets
I'd like to have `mbld test' return non-0 when the tests fail. I think
this does it, but I may be over-simplifying.
mbld/main.myr | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
Tie return value of mbld to results of specified targets | @@ -15,7 +15,7 @@ use "syssel"
const main = {args : byte[:][:]
var b, runsrc, objdir, path, cmd
- var targname, tags, pid, ok, r
+ var targname, tags, pid, ok
cmd = std.optparse(args, &[
.argdesc = "[inputs...]",
@@ -104,15 +104,15 @@ const main = {args : byte[:][:]
ok = bld.buildtarg(b, "all")
else
match cmd.args[0]
-... |
Update vdp_spr.c
Fixed VDP_updateSprites() with DMA queue operation to prevent modify before DMA occurs. | // important to have a global structure here (consumes 640 bytes of memory)
VDPSprite vdpSpriteCache[MAX_VDP_SPRITE];
+// copy of the global structure needed for DMA queue as we can modify
+// global structure before DMA actually occurs (consumes 640 bytes of memory)
+VDPSprite vdpSpriteCacheQueue[MAX_VDP_SPRITE];
// k... |
Test that Doctype with an extra ID is rejected | @@ -6722,6 +6722,14 @@ START_TEST(test_short_doctype_3)
}
END_TEST
+START_TEST(test_long_doctype)
+{
+ const char *text = "<!DOCTYPE doc PUBLIC 'foo' 'bar' 'baz'></doc>";
+ expect_failure(text, XML_ERROR_SYNTAX,
+ "DOCTYPE with extra ID not rejected");
+}
+END_TEST
+
/*
* Namespaces tests.
*/
@@ -12208,6 +12216,7 @@ ma... |
Initial support for Quirky Tripper open close sensor made by SerComm | @@ -296,6 +296,7 @@ static const SupportedDevice supportedDevices[] = {
{ VENDOR_SERCOMM, "SZ-SRN12N", emberMacPrefix }, // Sercomm siren
{ VENDOR_SERCOMM, "SZ-SRN12N", energyMiMacPrefix }, // Sercomm siren
{ VENDOR_SERCOMM, "SZ-DWS04", emberMacPrefix }, // Sercomm open/close sensor
+ { VENDOR_SERCOMM, "Tripper", ember... |
Have hand-written decode_huffman_fast obey limits
This makes it pass "wuffs test -skipgen std/deflate". | @@ -155,24 +155,33 @@ wuffs_base__status c_wuffs_deflate__decoder__decode_huffman_fast(
// Load contextual state. Prepare to check that pdst and psrc remain within
// a_dst's and a_src's bounds.
+
uint8_t* pdst =
a_dst.private_impl.buf->data.ptr + a_dst.private_impl.buf->meta.wi;
uint8_t* qdst =
a_dst.private_impl.buf-... |
Additional Ring Sig Logs | @@ -825,6 +825,9 @@ int generateRingSignatureAB(data_chunk &keyImage, uint256 &txnHash, int nRingSiz
rv = 1; goto End;
}
+ printf("\n RingDbg: secret offset : %d, Ringsize: %d, C%d is :\n", nSecretOffset, nRingSize, nSecretOffset+1);
+ BN_print_fp(stdout, bnC);
+ printf("\n");
// c_{j+2} = h(P_1,...,P_n,s_{j+1}*G+c_{j+... |
allow enlive on the gpu | @@ -373,10 +373,6 @@ __attribute__((optimize("-fno-finite-math-only")))
static void proj_add(unsigned int D, const long dims[D], const long ostrs[D],
complex float* optr, const long v1_strs[D], complex float* v1, const long v2_strs[D], complex float* v2)
{
-#ifdef USE_CUDA
- if (cuda_ondevice(v1))
- error("md_zscalar i... |
ack previous on future nack | ++ on-hear-message-ack
|= [=message-num ok=? lag=@dr]
^+ message-pump
+ :: future nack implies positive ack on all earlier messages
+ ::
+ ?. ok
+ |- ^+ message-pump
+ :: base case: current message got nacked; handle same as ack
+ ::
+ ?: =(message-num current.state)
+ ^$(ok %.y)
+ :: recursive case: future message got... |
build/bsync: extending line width for more compact header with comment apis | @@ -4329,18 +4329,37 @@ void ofdmflexframesync_debug_print(ofdmflexframesync _q,
// TC : coefficients data type
// TI : input data type
#define LIQUID_BSYNC_DEFINE_API(BSYNC,TO,TC,TI) \
+ \
+/* Binary P/N synchronizer */ \
typedef struct BSYNC(_s) * BSYNC(); \
\
-BSYNC() BSYNC(_create)(unsigned int _n, TC * _v); \
+/* ... |
os/tools/check_package.py : Add sys.exit(1) for validation failure
If there is a validation failure, return exit(1). | @@ -41,6 +41,8 @@ LOADING_HIGH = 3
PACKAGE_TYPE_ELF = 1
+VERIFY_SUCCESS = True
+
target = sys.argv[1]
if target == "-h" or target == "--help" :
print("Usage :")
@@ -113,6 +115,7 @@ elif "app_" in target :
print("\tPackage Type : ELF(%d)" %package_type[0])
else :
print("\tPackage Type Invalid : %d" %package_type[0])
+ V... |
OcAppleKernelLib: Fix variable initialisation | @@ -819,6 +819,7 @@ InternalRelocateRelocation (
Length = Relocation->Size;
Type = (UINT8) Relocation->Type;
PcRelative = (Relocation->PcRelative != 0);
+ PairTarget = 0;
InvalidPcRel = FALSE;
ScatteredRelocation = NULL;
@@ -874,7 +875,9 @@ InternalRelocateRelocation (
}
}
+ //
// Length == 2
+ //
if (Length != 3) {
Co... |
filter NVMe error msgs as they are safe to ignore, see Xilinx AR61901 | else
echo "dont know where I am, leaving $P3 $PWD"; exit 12;
fi
- if [ "$PARM_FILE" != "" ];then cp ${SIMBASE}/${PARM_FILE} pslse.parms;fi # overwrite with specified parms file
+#if [ "$PARM_FILE" != "" ];then cp ${SIMBASE}/${PARM_FILE} pslse.parms;fi # overwrite with specified parms file
+ if [ "$PARM_FILE" != "" ];th... |
Fix: Ignore duplicate data blocks received when sending OTA status update to service | @@ -1543,13 +1543,17 @@ static void prvOTAUpdateTask( void * pvUnused )
}
}
else
- { /* We're actively receiving a file so update the job status as needed. */
+ {
+ if( xResult == eIngest_Result_Accepted_Continue )
+ {
+ /* We're actively receiving a file so update the job status as needed. */
/* First reset the moment... |
Also free tmp buffer after copy | @@ -454,7 +454,7 @@ pocl_exec_command (_cl_command_node * volatile node)
node->command.copy_image.dst_slicepitch,
tmp_rowpitch,
tmp_slicepitch);
-
+ free (tmp);
}
POCL_UPDATE_EVENT_COMPLETE(event);
POCL_DEBUG_EVENT_TIME(event, "Copy Buffer Rect ");
|
ip4_rewrite_inline: fix variable error | @@ -2348,7 +2348,7 @@ ip4_rewrite_inline (vlib_main_t * vm,
adj0->sub_type.midchain.fixup_func
(vm, adj0, b[0], adj0->sub_type.midchain.fixup_data);
adj1->sub_type.midchain.fixup_func
- (vm, adj1, b[1], adj0->sub_type.midchain.fixup_data);
+ (vm, adj1, b[1], adj1->sub_type.midchain.fixup_data);
}
if (is_mcast)
@@ -2360... |
sidebar: level padding-right | @@ -67,12 +67,12 @@ export function SidebarListHeader(props: {
<Icon icon="Plus" color="gray" pr='2'/>
</Link>
<Link to={`${props.baseUrl}/invites`}
- style={{ display: (props.workspace?.type === 'home') ? 'inline-block' : 'none', verticalAlign: 'bottom' }}>
+ style={{ display: (props.workspace?.type === 'home') ? 'inl... |
apps/ext_advertiser: Fix instance and sid values
Let's use instance number as sid also, this makes it easier to find
those instances in the air.
Also fix instance numbers in comments. | @@ -86,7 +86,7 @@ start_ext_max_events(uint8_t pattern, bool configure)
params.primary_phy = BLE_HCI_LE_PHY_1M;
params.secondary_phy = BLE_HCI_LE_PHY_1M;
params.tx_power = 127;
- params.sid = pattern % 16;
+ params.sid = 4;
/* allow larger interval, 400 * 0.625ms with 100 events will give up to
* ~2.5 seconds for insta... |
Travis: make a separate job for external tests
Some of the external tests do not run well with 'no-shared' | @@ -71,7 +71,17 @@ matrix:
sources:
- ubuntu-toolchain-r-test
compiler: gcc-5
- env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug --coverage no-asm enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 enable-ssl3 enable-ssl3-method enable-nextprotoneg enable-weak-ssl-ciphers enable-external-tests no-shared -DPEDANTIC -DFUZZING... |
acrn-config: modify the key of vuart base
Return correct key of vuart base to webUI for parsing.
Acked-by: Victor Sun | @@ -718,14 +718,14 @@ def avl_vuart_ui_select(scenario_info):
vm_type = get_order_type_by_vmid(vm_i)
if vm_type == "SOS_VM":
- key = "vm={}:vuart=0,base".format(vm_i)
+ key = "vm={},vuart=0,base".format(vm_i)
tmp_vuart[key] = ['SOS_COM1_BASE', 'INVALID_COM_BASE']
- key = "vm={}:vuart=1,base".format(vm_i)
+ key = "vm={}... |
quic: refactor connection search fn
Type: refactor | @@ -1715,19 +1715,23 @@ tx_end:
static inline int
quic_find_packet_ctx (quic_rx_packet_ctx_t * pctx, u32 caller_thread_index)
{
- quic_ctx_t *ctx_;
- quicly_conn_t *conn_;
clib_bihash_kv_16_8_t kv;
clib_bihash_16_8_t *h;
+ quic_ctx_t *ctx;
+ u32 index, thread_id;
h = &quic_main.connection_hash;
quic_make_connection_key... |
some injection test improvements | @@ -6479,13 +6479,16 @@ qsort(scanlist, scanlistmax, SCANLIST_SIZE, sort_scanlist_by_hit);
for(zeiger = scanlist; zeiger < scanlist +SCANLIST_MAX; zeiger++)
{
if(zeiger->count == 0) break;
- if((zeiger->channel < 36) && (zeiger->hit > 0)) inject24 = true;
- if(((zeiger->channel >= 36) && (zeiger->channel < 200)) && (ze... |
zephyr/test/drivers/src/keyboard_scan.c: Format with clang-format
BRANCH=none
TEST=none | int emulate_keystate(int row, int col, int pressed)
{
- const struct device *dev =
- DEVICE_DT_GET(DT_NODELABEL(cros_kb_raw));
+ const struct device *dev = DEVICE_DT_GET(DT_NODELABEL(cros_kb_raw));
return emul_kb_raw_set_kbstate(dev, row, col, pressed);
}
|
Fixes on bsd for os/cpu-count. | @@ -232,7 +232,7 @@ JANET_CORE_FN(os_cpu_count,
const int name[2] = {CTL_HW, HW_NCPUONLINE};
int result = 0;
size_t len = sizeof(int);
- if (-1 == sysctl(name, 2, &result, &len, sizeof(result), NULL, 0)) {
+ if (-1 == sysctl(name, 2, &result, &len, ,NULL, 0)) {
return dflt;
}
return janet_wrap_integer(result);
@@ -241,... |
Minify HTML report app.js upon compiling program. | @@ -93,14 +93,19 @@ endif
# Charts.js
chartsjs.h: bin2c$(EXEEXT) resources/js/charts.js
if HAS_SEDTR
- cat resources/js/charts.js | sed -E "s@(;)\s?//..*@\1@g" | sed -E "s@^[ \t]*//..*@@g" | sed "s/^[ \t]*//" | sed "/^$$/d" | tr -d "\r\n" > resources/js/charts.js.tmp
+ cat resources/js/charts.js | sed -E "s@(,|;)[ \t]*... |
doc: update release notes for v2.7 on configuration upgrades
This patch updates recommendations to upgrade from a prior ACRN version
for v2.7, and updates the what's new summary. | @@ -85,6 +85,24 @@ Update Scenario Names
VMs and the Service VM provides resource emulation and sharing for
post-launched User VMs, all in the same system configuration.
+User-Friendly VM names
+ Instead of using a UUID as the User VM identifier, we're now using a
+ user-friendly VM name.
+
+Extend Use of CAT Cache Tun... |
Fixed a bug in Velocyto. | @@ -134,7 +134,7 @@ void Transcriptome::classifyAlign (Transcript **alignG, uint64 nAlignG, ReadAnno
if (aStatus==AlignVsTranscript::Concordant)
aStatus=AlignVsTranscript::Exon;
- if (!aStatus==AlignVsTranscript::ExonIntronSpan) {
+ if (aStatus!=AlignVsTranscript::ExonIntronSpan) {
reAnn.set(AlignVsTranscript::ExonIntr... |
Fix empty string consumption | @@ -244,6 +244,7 @@ static size_t resp_parse(resp_parser_s *parser, const void *buffer,
resp_on_start_string(parser, 0);
resp_on_end_string(parser);
--parser->obj_countdown;
+ eol += 2; /* consume the extra "\r\n" */
} else {
if (resp_on_start_string(parser, i)) {
pos = eol + 1;
|
zephyr: sort CMakeLists sources
Sort a few out-of-order configs in zephyr/CMakeLists.txt.
This is done in a separate CL to avoid clutter with the
following change.
BRANCH=none
TEST=zmake testall | @@ -159,17 +159,16 @@ zephyr_sources_ifdef(CONFIG_PLATFORM_EC_POWERSEQ_INTEL
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_POWERSEQ_HOST_SLEEP
"${PLATFORM_EC}/power/host_sleep.c")
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_PANIC "${PLATFORM_EC}/common/panic_output.c")
+zephyr_sources_ifdef(CONFIG_PLATFORM_EC_PWM "${PLATFORM_EC}... |
Update help message for flag `--hba_hostnames` | @@ -129,7 +129,7 @@ def parseargs():
'if the warm master standby host has failed. This option will '
'need to shutdown the GPDB array to be able to complete the request')
optgrp.add_option('', '--hba_hostnames', action='store_true', dest='hba_hostnames',
- help='add fully-qualified domain names to pg_hba.conf')
+ help=... |
Update some sr.ht configs. | @@ -6,15 +6,15 @@ packages:
tasks:
- with-epoll: |
cd janet
- meson setup build --buildtype=release
- cd build
+ meson setup with-epoll --buildtype=release
+ cd with-epoll
meson configure -Depoll=true
ninja
ninja test
- no-epoll: |
cd janet
- meson setup build --buildtype=release
- cd build
+ meson setup no-epoll --bui... |
examples/qencoder: fix nxstyle warning and errors | @@ -242,7 +242,7 @@ int main(int argc, FAR char *argv[])
{
printf("qe_main: open %s failed: %d\n", g_qeexample.devpath, errno);
exitval = EXIT_FAILURE;
- goto errout_with_dev;
+ goto errout;
}
/* Reset the count if so requested */
|
Changed broken link to new address of udev rules
Changed and checked that it should work with the new link.
Also changed the number of files to 4 since there are 4 udev rule files in the directory. | @@ -81,7 +81,7 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", \
and the `idVendor` of `0483` and `idProduct` of `374b` matches the vendor id from the `lsusb` output.
-Make sure that you have all 3 files from here: https://github.com/stlink-org/stlink/tree/master/etc/udev/rules.d in your `/etc/... |
Memory leaks in encoding BUFR (part 1) | @@ -1354,6 +1354,7 @@ static int encode_new_element(grib_context* c, grib_accessor_bufr_data_array* se
}
else {
err = encode_string_value(c, buff, pos, bd, self, csval);
+ grib_context_free(c, csval);
}
}
else {
|
Fix typo (`UDB` -> `UDP`) | @@ -5,6 +5,6 @@ We're using Cribl LogStream setup with a few sourceswe can connect to.
* TCP:10090 is configured as an AppScope source using TLS and the cert/key pair in /tmp
* TCP:10091 is another AppScope source using plain TCP
* TCP:10070 is a TCP JSON source
-* UDP:8125 is a UDB metrics source
+* UDP:8125 is a UDP ... |
runtime/net: always free rx buffers in icmp | @@ -56,11 +56,8 @@ void net_rx_icmp(struct mbuf *m, struct ip_hdr *iphdr, uint16_t len)
break;
default:
log_err("icmp: type %d not yet supported", icmp_hdr->type);
- goto drop;
+ break;
}
- return;
-
-drop:
mbuf_free(m);
}
|
crypto/provider_core.c: Avoid calling unlock two times | @@ -641,7 +641,7 @@ int ossl_provider_add_to_store(OSSL_PROVIDER *prov, OSSL_PROVIDER **actualprov,
if (!ossl_provider_up_ref(actualtmp)) {
ERR_raise(ERR_LIB_CRYPTO, ERR_R_MALLOC_FAILURE);
actualtmp = NULL;
- goto err;
+ return 0;
}
*actualprov = actualtmp;
}
@@ -665,8 +665,6 @@ int ossl_provider_add_to_store(OSSL_PROV... |
Android: update default build.yml | @@ -110,7 +110,10 @@ uwp:
android:
#manifest_template: 'AndroidManifest.erb'
- version: 4.4.2
+ version: 7.0
+ abis:
+ - arm
+ - aarch64
## Note: in order to simplify debugging only app messages and system channels with priority informative and higher, and any errors are enabled by default
logcatFilter: APP:I StrictMod... |
Change to only build cli by default | @@ -24,12 +24,12 @@ build/debug build/release: | build
debug_cli: | build/debug
@cc $(basic_flags) $(debug_flags) $(sanitize_flags) $(cli_source_files) -o build/debug/orca $(library_flags)
-.PHONY: debug_ui
-debug_ui: | build/debug
- @cc $(basic_flags) $(debug_flags) $(sanitize_flags) $(tui_source_files) -o build/debug... |
cosmetics and update | @@ -42,6 +42,7 @@ long options:
--all : convert all possible hashes instead of only the best one
that can lead to much overhead hashes
use hcxhashtool to filter hashes
+ need hashcat --nonce-error-corrections >= 8
--eapoltimeout=<digit> : set EAPOL TIMEOUT (milliseconds)
: default: 5000 ms
--nonce-error-corrections=<di... |
Permanently enable isatty check to ignore SIGWINCH. | @@ -2629,16 +2629,16 @@ option_list = (
'being started separately using the generated \'apachectl\' '
'script.'),
- optparse.make_option('--isatty', action='store_true', default=False,
- help='Flag indicating whether should assume being run in an '
- 'interactive terminal session. In this case Apache will not '
- 'repl... |
Switched by to ConcurrentQueue | @@ -21,14 +21,12 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
-using System.Globalization;
using System.IO;
using System.Net;
using System.Reactive;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using Syst... |
Make the path detection more flexible | @@ -39,7 +39,7 @@ namespace clap {
: srcRoot_(computeSrcRoot(pluginPath)), buildRoot_(computeBuildRoot(pluginPath)), pluginName_(pluginName) {}
static std::string computeSrcRoot(const std::string &pluginPath) {
- static const std::regex r("(/.*)/cmake-builds/.*$", std::regex::optimize);
+ static const std::regex r("(/.... |
Improvement in EPS32 GpioPin toogle | @@ -154,15 +154,7 @@ HRESULT Library_win_dev_gpio_native_Windows_Devices_Gpio_GpioPin::Toggle___VOID(
(driveMode == GpioPinDriveMode_OutputOpenSourcePullDown))
{
// ESP32 GPIO API doesn't offer a 'toggle', so need to rely on the last output value field and toggle that one
- GpioPinValue state = (GpioPinValue)pThis[ FIE... |
BugID:22475679: fixed implicite declairation | #include "linkkit/wrappers/wrappers_defs.h"
#include "linkkit/wrappers/wrappers_os.h"
#include "ulog/ulog.h"
+#include "aos/kernel.h"
#ifndef NULL
#define NULL ((void *)0)
#define DEBUG_PRINTF(fmt, ...)
//#define DEBUG_PRINTF printf
+extern void aos_get_mac_hex(unsigned char mac[MAC_ADDRESS_SIZE]);
+extern void aos_get... |
[core] stricter validation of request-URI begin
check that request-URI begins with '/', "http://", "https://",
or is OPTIONS * request, or else reject with 400 Bad Request unless
server.http-parseopt-header-strict = "disable" (default is enabled)
x-ref: | @@ -635,9 +635,15 @@ int http_request_parse(server *srv, connection *con) {
reqline_hostlen = nuri - reqline_host;
buffer_copy_string_len(con->request.uri, nuri, proto - nuri - 1);
- } else {
+ } else if (!http_header_strict
+ || (HTTP_METHOD_OPTIONS == con->request.http_method && uri[0] == '*' && uri[1] == '\0')) {
/*... |
Add go installation instructions. | @@ -27,11 +27,15 @@ Conan (C/C++):
https://conan.io/center/tinyspline
NuGet (C#):
-
```xml
<PackageReference Include="tinyspline" version="0.4.0.1" />
```
+Go:
+```bash
+go get github.com/tinyspline/go@v0.4.0
+```
+
Luarocks (Lua):
```bash
luarocks install --server=https://tinyspline.github.io/lua tinyspline
|
website: fix feed urls | @@ -81,7 +81,7 @@ module.exports = function(grunt) {
feed.item({
title: post.title,
description: content,
- url: self.data.post_url + guid + ".html",
+ url: self.data.feed.post_url + guid + ".html",
guid: guid,
date: new Date(Date.parse(post.date)).toUTCString()
});
|
Bug fix when sending to the same network prefix | @@ -103,9 +103,9 @@ owerror_t forwarding_send(OpenQueueEntry_t* msg) {
msg->l3_sourceAdd.type=ADDR_128B;
packetfunctions_ip128bToMac64b(&(msg->l3_destinationAdd),&temp_dest_prefix,&temp_dest_mac64b);
- //xv poipoi -- get the src prefix as well
- packetfunctions_ip128bToMac64b(&(msg->l3_sourceAdd),&temp_src_prefix,&temp... |
Add storage/remote test for unknown user/group name. | @@ -210,6 +210,11 @@ testRun(void)
storagePutP(storageNewWriteP(storagePgWrite, STRDEF("test"), .timeModified = 1555160001), BUFSTRDEF("TESTME"));
+#ifdef TEST_CONTAINER_REQUIRED
+ storagePutP(storageNewWriteP(storagePgWrite, STRDEF("noname"), .timeModified = 1555160002), BUFSTRDEF("NONAME"));
+ HRN_SYSTEM_FMT("sudo ch... |
travis: use default Ruby version unless defined explicitly | @@ -107,7 +107,7 @@ env:
- S3_JOB_DIR="$TRAVIS_COMMIT"/"$TRAVIS_OS_NAME"
- S3_DEPLOY_DIR="$TRAVIS_REPO_SLUG"/"$TRAVIS_BRANCH"
- QTDIR="$HOME/Qt5.13.2/5.13.2/clang_64"
- - RHO_RUBY="${RHO_RUBY:=2.7.0}"
+ - RHO_RUBY="${RHO_RUBY:=RUBY_VERSION}"
- ANDROID_ABIS="${ANDROID_ABIS:=arm,aarch64}"
#osx_image: xcode9.1
|
plugins: fix enum link | @@ -78,7 +78,7 @@ sudo kdb umount user/tests/together
```
The approach is not limited to validation via regular expressions, but
-any values-validation plugin can be used, e.g. [enum](/src/plugins/enum).
+any values-validation plugin can be used, e.g. [type](/src/plugins/type).
For a full list refer to the section "Val... |
[hardware] Fix hard-coded parameters | @@ -28,7 +28,6 @@ module axi_rab_wrap #(
parameter type axi_resp_t = logic,
parameter type axi_lite_req_t = logic,
parameter type axi_lite_resp_t = logic
-
) (
input logic clk_i,
input logic rst_ni,
@@ -69,8 +68,8 @@ module axi_rab_wrap #(
.AXI_DATA_WIDTH (AxiDataWidth ),
.AXI_S_ADDR_WIDTH (AxiAddrWidth ),
.AXI_M_ADDR_... |
Change to split highlighting prediction based on is_playing | @@ -1418,7 +1418,7 @@ staticni void ged_draw(Ged *a, WINDOW *win, char const *filename,
// mark buffer that it produces, then roll back the glyph buffer to where it
// was before. This should produce results similar to having specialized UI
// code that looks at each glyph and figures out the ports, etc.
- if (a->needs... |
Change the state context extension so it only provide a load method | /// @page state-context extension
/// @brief extended state handling
///
-/// This extension let the host specify how the plugin state should be saved or loaded
-/// by setting a context prior to the save or load operation.
+/// This extension let the host specify how the plugin state should be loaded.
///
-/// If unsp... |
[KBJ] Correct check for deleting INFO/END when rlen == len(ref) | @@ -1170,9 +1170,9 @@ cdef inline bcf_sync_end(VariantRecord record):
# If INFO/END is not defined in the header, it doesn't exist in the record
if end_id >= 0:
info = bcf_get_info(hdr, record.ptr, b'END')
- if info and not info.vptr:
+ if info and info.vptr:
if bcf_update_info(hdr, record.ptr, b'END', NULL, 0, info.ty... |
[mod_accesslog] reformat numeric timestamp code | @@ -870,7 +870,6 @@ static int log_access_record (const request_st * const r, buffer * const b, form
} else {
buffer * const ts_accesslog_str = &parsed_format->ts_accesslog_str;
/* cache the generated timestamp (only if ! FORMAT_FLAG_TIME_BEGIN) */
- struct tm *tmptr;
time_t t;
struct tm tm;
@@ -886,24 +885,19 @@ stati... |
chip/mt_scp/mt818x/registers.h: Format with clang-format
BRANCH=none
TEST=none | #define SCP_CACHE_ENTRY_BASE(x) (SCP_CACHE_SEL(x) + 0x2000)
#define SCP_CACHE_ENTRY(x, reg) REG32(SCP_CACHE_ENTRY_BASE(x) + (reg)*4)
#define SCP_CACHE_END_ENTRY_BASE(x) (SCP_CACHE_SEL(x) + 0x2040)
-#define SCP_CACHE_END_ENTRY(x, reg) REG32(SCP_CACHE_END_ENTRY_BASE(x) + \
- (reg)*4)
+#define SCP_CACHE_END_ENTRY(x, reg) ... |
ta: remove unnecessary variable definition/initialization | @@ -1213,7 +1213,6 @@ static lv_res_t lv_ta_scrollable_signal(lv_obj_t * scrl, lv_signal_t sign, void
if(ext->label) {
if(lv_obj_get_width(ta) != lv_area_get_width(param) ||
lv_obj_get_height(ta) != lv_area_get_height(param)) {
- lv_obj_t * scrl = lv_page_get_scrl(ta);
lv_style_t * style_scrl = lv_obj_get_style(scrl);
... |
Fix Windows image builds | @@ -98,7 +98,8 @@ def buildWindowsManagedImage(String os_series, String img_name_suffix, String la
def managed_image_name_id = image_id
def gallery_image_version = image_version
def vm_rg_name = "build-${managed_image_name_id}-${img_name_suffix}-${BUILD_NUMBER}"
- def vm_name = "${os_series}-vm"
+ // Azure VM names mus... |
iOS doc script fix | @@ -10,10 +10,13 @@ distDir="${baseDir}/dist/ios"
rm -rf ${tempDir}
mkdir -p ${tempDir}
mkdir -p ${tempDir}/ui
+mkdir -p ${tempDir}/utils
cp -r ${distDir}/CartoMobileSDK.framework/Headers/CartoMobileSDK.h ${tempDir}/CartoMobileSDK.h
cp -r ${baseDir}/generated/ios-objc/proxies/* ${tempDir}
cp -r ${baseDir}/ios/objc/ui/M... |
tests/run-tests: minimal: Exclude recently added subclass_native_init.py.
It relies on MICROPY_CPYTHON_COMPAT being defined. | @@ -313,6 +313,7 @@ def run_tests(pyb, tests, args, base_path="."):
skip_tests.add('misc/rge_sm.py') # too large
elif args.target == 'minimal':
skip_tests.add('basics/class_inplace_op.py') # all special methods not supported
+ skip_tests.add('basics/subclass_native_init.py')# native subclassing corner cases not support... |
use more portable variable initialization | @@ -141,6 +141,8 @@ static struct flb_http_client *flb_aws_client_mock_vtable_request(
struct flb_aws_client *aws_client, int method, const char *uri, const char *body,
size_t body_len, struct flb_aws_header *dynamic_headers, size_t dynamic_headers_len)
{
+ int h;
+ int i;
int ret;
/* Get access to mock */
@@ -168,7 +1... |
Use more reliable NMemInfo::GetMemInfo().RSS instead of TRusage::Get().Rss. Also more consistent with other catboost libs. | #include <catboost/libs/logging/logging.h>
-#include <util/system/rusage.h>
+#include <util/system/mem_info.h>
inline void DumpMemUsage(const TString& msg) {
- CATBOOST_DEBUG_LOG << "Mem usage: " << msg << ": " << TRusage::Get().Rss << Endl;
+ CATBOOST_DEBUG_LOG << "Mem usage: " << msg << ": " << NMemInfo::GetMemInfo()... |
libs/libc/stdio: fix ungetc operation
Do not modify errno in case of failure
Return EOF if the value of c equals to EOF | @@ -43,11 +43,10 @@ int ungetc(int c, FAR FILE *stream)
int nungotten;
#endif
- /* Verify that a non-NULL stream was provided */
+ /* Verify that a non-NULL stream was provided and c is not EOF */
- if (!stream)
+ if (!stream || c == EOF)
{
- set_errno(EBADF);
return EOF;
}
@@ -55,7 +54,6 @@ int ungetc(int c, FAR FILE ... |
zephyr: disable flash storage
This code fails to compile (see b/176828988). Disable by default
until this code can be compiled.
BRANCH=none
TEST=less compile errors | @@ -102,9 +102,9 @@ config PLATFORM_EC_EXTPOWER_GPIO
project should define a GPIO pin named GPIO_AC_PRESENT, with
extpower_interrupt configured as the handler in gpio_map.h.
+# TODO(b/176828988): enable by default once the code can compile
config PLATFORM_EC_FLASH
bool "Enable flash support"
- default y
help
Enables ac... |
make sure verilator builds correctly | @@ -14,7 +14,7 @@ default: $(sim)
debug: $(sim_debug)
-CXXFLAGS := $(CXXFLAGS) -O1 -std=c++11 -I$(RISCV)/include
+CXXFLAGS := $(CXXFLAGS) -O1 -std=c++11 -I$(RISCV)/include -D__STDC_FORMAT_MACROS
LDFLAGS := $(LDFLAGS) -L$(RISCV)/lib -Wl,-rpath,$(RISCV)/lib -L$(sim_dir) -lfesvr -lpthread
include $(base_dir)/Makefrag
|
A bad commit | @@ -59,4 +59,4 @@ If this config does not work for you, try the flavor "tap-preferred" and a short
If you want to use a tap-hold with a keycode from a different code page, you have to define another behavior with another "bindings" parameter.For example, if you want to use SHIFT and volume up, define the bindings like ... |
gta vc update | @@ -673,7 +673,7 @@ void ApplyIniOptions()
fCustomRadarPosYIV = 116.0f - 7.5f;
pattern = hook::pattern("D9 05 ? ? ? ? D8 CB DA 2C 24 DE C1");
- injector::WriteMemory<float>(*pattern.count(1).get(0).get<uint32_t*>(2), fCustomRadarPosYIV); //0x68FD34
+ injector::WriteMemory<float>(*pattern.count(1).get(0).get<uint32_t*>(... |
taniks: undefine unnecessary PD config
Taniks doesn't support USB4, so this config is not needed.
BRANCH=none
TEST=make -j BOARD=taniks | #define USB_PORT_COUNT 1
#define CONFIG_USB_PORT_POWER_DUMB
-/* USB Type C and USB PD defines */
-#define CONFIG_USB_PD_REQUIRE_AP_MODE_ENTRY
-
#define CONFIG_IO_EXPANDER
#define CONFIG_IO_EXPANDER_NCT38XX
#define CONFIG_IO_EXPANDER_PORT_COUNT 1
+/* USB Type C and USB PD defines */
#define CONFIG_USB_PD_TCPM_PS8815
#de... |
mmapstorage: check return value of close() | @@ -827,7 +827,11 @@ int ELEKTRA_PLUGIN_FUNCTION (mmapstorage, get) (Plugin * handle ELEKTRA_UNUSED,
if (sbuf.st_size == 0)
{
// empty mmap file
- close (fd);
+ if (close (fd) != 0)
+ {
+ ELEKTRA_LOG_WARNING ("could not close");
+ goto error;
+ }
return ELEKTRA_PLUGIN_STATUS_SUCCESS;
}
|
[cmake] ABI -> SO_current 6 | @@ -33,7 +33,7 @@ set(SICONOS_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
# If any interfaces have been removed since the last public release, then set
# age to 0.
-set(SO_current 5)
+set(SO_current 6)
set(SO_revision 0)
set(SO_age 0)
|
Sane World View
The z=0 plane is now initially aligned to the
device's z=0 plane during calibration.
(works really well for the tracker, which is
oriented with Z in the proper direction when
sitting on a horizontal surface) | @@ -895,9 +895,9 @@ void getNormalizedAndScaledRotationGradient(FLT *vectorToScale, FLT desiredMagni
static void WhereIsTheTrackedObjectAxisAngle(FLT *posOut, FLT *rotation, Point lhPoint)
{
- posOut[0] = lhPoint.x;
- posOut[1] = lhPoint.y;
- posOut[2] = lhPoint.z;
+ posOut[0] = -lhPoint.x;
+ posOut[1] = -lhPoint.y;
+ ... |
Generate ETIMEDOUT when remaining_time is reached and EHOSTDOWN when all addresses are tried | @@ -238,7 +238,10 @@ httpAddrConnect2(
}
if (!addrlist && nfds == 0)
+ {
+ errno = EHOSTDOWN;
break;
+ }
/*
* See if we can connect to any of the addresses so far...
@@ -369,6 +372,9 @@ httpAddrConnect2(
remaining -= 250;
}
+ if (remaining <= 0)
+ errno = ETIMEDOUT;
+
while (nfds > 0)
{
nfds --;
|
use oidc_proto_state_destroy instead of json_decref | @@ -516,7 +516,7 @@ int oidc_proto_authorization_request(request_rec *r,
}
/* cleanup */
- json_decref(proto_state);
+ oidc_proto_state_destroy(proto_state);
/* see if we need to preserve POST parameters through Javascript/HTML5 storage */
if (oidc_post_preserve_javascript(r, authorization_request, NULL,
|
plugins BUGFIX set correct validation error code | @@ -489,7 +489,7 @@ lyplg_type_validate_patterns(struct lysc_pattern **patterns, const char *str, si
return ly_err_new(err, LY_EVALID, LYVE_DATA, NULL, eapptag, patterns[u]->emsg);
} else {
const char *inverted = patterns[u]->inverted ? "inverted " : "";
- return ly_err_new(err, LY_EVALID, 0, NULL, eapptag,
+ return ly... |
ssl client: add key_opaque_algs command line option | @@ -115,6 +115,7 @@ int main( void )
#define DFL_USE_SRTP 0
#define DFL_SRTP_FORCE_PROFILE 0
#define DFL_SRTP_MKI ""
+#define DFL_KEY_OPAQUE_ALG "none"
#define GET_REQUEST "GET %s HTTP/1.0\r\nExtra-header: "
#define GET_REQUEST_END "\r\n\r\n"
@@ -343,6 +344,13 @@ int main( void )
#define USAGE_SERIALIZATION ""
#endif
+... |
Fix call to mbedtls_pk_wrap_as_opaque(): use usage variable instead PSA_KEY_USAGE_SIGN_HASH | @@ -1747,8 +1747,7 @@ int main( int argc, char *argv[] )
}
if( ( ret = mbedtls_pk_wrap_as_opaque( &pkey, &key_slot, psa_alg,
- PSA_KEY_USAGE_SIGN_HASH,
- psa_alg2 ) ) != 0 )
+ usage, psa_alg2 ) ) != 0 )
{
mbedtls_printf( " failed\n ! "
"mbedtls_pk_wrap_as_opaque returned -0x%x\n\n", (unsigned int) -ret );
|
prevent to access heap overflow | @@ -884,7 +884,10 @@ sixel_decode_raw(
}
*ncolors = image.ncolors + 1;
- *palette = (unsigned char *)sixel_allocator_malloc(allocator, (size_t)(*ncolors * 3));
+ int alloc_size = *ncolors;
+ if (alloc_size < 256) // memory access range should be 0 <= 255 (in write_png_to_file)
+ alloc_size = 256;
+ *palette = (unsigned... |
Fix typo in comment of flushAppendOnlyFile | @@ -364,7 +364,7 @@ ssize_t aofWrite(int fd, const char *buf, size_t len) {
/* Write the append only file buffer on disk.
*
* Since we are required to write the AOF before replying to the client,
- * and the only way the client socket can get a write is entering when the
+ * and the only way the client socket can get a... |
api/rootfingerprint: add unit tests | @@ -28,3 +28,37 @@ pub fn process() -> Result<Response, Error> {
fingerprint: fingerprint.to_vec(),
}))
}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ use bitbox02::keystore::lock;
+ use bitbox02::testing::mock_unlocked_using_mnemonic;
+
+ #[test]
+ fn test_process() {
+ lock();
+ assert_eq!(process(), Err(Error::G... |
Fixing uninitialized ncpu value on unsupported platforms.
Thanks to
This closes issue on GitHub. | @@ -91,9 +91,12 @@ nxt_lib_start(const char *app, char **argv, char ***envp)
#elif (NXT_HPUX)
n = mpctl(MPC_GETNUMSPUS, NULL, NULL);
+#else
+ n = 0;
+
#endif
- nxt_debug(&nxt_main_task, "ncpu: %ui", n);
+ nxt_debug(&nxt_main_task, "ncpu: %d", n);
if (n > 1) {
nxt_ncpu = n;
|
tweak install path for use with slurm/MPI stacks | @@ -23,7 +23,7 @@ Source1: OHPC_macros
BuildRequires: libevent-devel
-%global install_path %{OHPC_LIBS}/%{pname}/%version
+%global install_path %{OHPC_LIBS}/%{pname}
%description
The Process Management Interface (PMI) has been used for quite some time as a
@@ -86,8 +86,8 @@ EOF
%changelog
* Tue Sep 26 2017 Karl W Schul... |
st.c: Fix copy+paste oops. (fixes | @@ -200,8 +200,8 @@ int lily_hash_take(lily_state *s, lily_hash_val *table, lily_value *boxed_key)
ptr->next = ptr->next->next;
table->num_entries--;
- lily_stack_push_and_destroy(s, ptr->boxed_key);
- lily_stack_push_and_destroy(s, ptr->record);
+ lily_stack_push_and_destroy(s, tmp->boxed_key);
+ lily_stack_push_and_d... |
sidebarlistheader: fixing potential undefined ref | @@ -45,7 +45,7 @@ export function SidebarListHeader(props: {
const metadata = associations?.groups?.[groupPath]?.metadata;
const memberMetadata =
- groupPath ? metadata.vip === 'member-metadata' : false;
+ groupPath && metadata ? metadata.vip === 'member-metadata' : false;
const isAdmin = memberMetadata || (role === 'a... |
thread: %group-leave-graph now compiles | (pure:m !>(~))
::
:: get graphs associated with group and archive them
+;< =associations:met bind:m
+ %+ scry associations:met
+ ;: weld
+ /gx/metadata-store/resource/group
+ (en-path:res resource.update)
+ /noun
+ ==
=/ graphs=(list path)
- %+ turn
- %~ tap in
- %~ key by
- ^- associations:met
- %+ scry
- %noun
- (wel... |
tcp: fix skipping RSTs in SYN_SENT state
Type: fix | @@ -215,6 +215,7 @@ tcp_rcv_rst (tcp_worker_ctx_t * wrk, tcp_connection_t * tc)
break;
case TCP_STATE_SYN_SENT:
/* Do not program ntf because the connection is half-open */
+ tc->rst_state = tc->state;
tcp_handle_rst (tc);
break;
case TCP_STATE_ESTABLISHED:
|
proc: detach thread from the process before it is zombified | @@ -510,6 +510,7 @@ void proc_threadDestroy(void)
int zombie = 0;
hal_spinlockSet(&threads_common.spinlock);
+ thr->process = NULL;
if (proc != NULL) {
LIST_REMOVE_EX(&proc->threads, thr, procnext, procprev);
zombie = (proc->threads == NULL);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.