message
stringlengths
6
474
diff
stringlengths
8
5.22k
Terminate when both suid bit and filecaps are set
#include "stringop.h" #include "sway.h" #include "log.h" +#include "util.h" static bool terminate_request = false; static int exit_value = 0; @@ -209,6 +210,27 @@ static void security_sanity_check() { #endif } +static void executable_sanity_check() { +#ifdef __linux__ + struct stat sb; + char *exe = realpath("/proc/sel...
sysrepo BUGFIX avoid fake inserts They cause problems when freeing.
@@ -4944,7 +4944,10 @@ sr_change_ly2sr(const struct lyd_node *node, const char *value_str, const char * sr_errinfo_new_ly(&err_info, LYD_CTX(node)); goto cleanup; } - node_dup->parent = node->parent; + if (node->parent && lyd_insert_child(lyd_parent(node), node_dup)) { + sr_errinfo_new_ly(&err_info, LYD_CTX(node)); + g...
Make clear error message if opt_<number> fails for opt_long(opt_int)/opt_ulong/opt_imax/opt_umax
@@ -326,6 +326,30 @@ int opt_int(const char *value, int *result) return 1; } +static void opt_number_error(const char *v) +{ + size_t i = 0; + struct strstr_pair_st { + char *prefix; + char *name; + } b[] = { + {"0x", "a hexadecimal"}, + {"0X", "a hexadecimal"}, + {"0", "an octal"} + }; + + for (i = 0; i < OSSL_NELEM(b...
chat-js: resubscribe on error, not just on quit
@@ -21,7 +21,10 @@ export class Subscription { subscribe(path, app) { api.bind(path, 'PUT', api.authTokens.ship, app, this.handleEvent.bind(this), - this.handleError.bind(this), + (err) => { + console.log(err); + this.subscribe(path, app); + }, () => { this.subscribe(path, app); }); @@ -48,10 +51,6 @@ export class Subs...
out_influxdb: add support for IPv6
@@ -229,7 +229,7 @@ static char *influxdb_format(char *tag, int tag_len, int cb_influxdb_init(struct flb_output_instance *ins, struct flb_config *config, void *data) { - int io_type; + int io_flags = 0; char *tmp; struct flb_upstream *upstream; struct flb_influxdb_config *ctx; @@ -251,10 +251,10 @@ int cb_influxdb_init...
Add check for phsvc when showing kph errors
@@ -801,7 +801,7 @@ VOID PhInitializeKph( if (!RtlDoesFileExists_U(kprocesshackerFileName->Buffer)) { - if (PhGetIntegerSetting(L"EnableKphWarnings")) + if (PhGetIntegerSetting(L"EnableKphWarnings") && !PhStartupParameters.PhSvc) PhpShowKphError(L"The Process Hacker kernel driver 'kprocesshacker.sys' was not found in t...
interface: fix format_vnet_interface_output_trace format vlib_buffer_t::flags into interface output trace Type: fix
@@ -85,9 +85,8 @@ format_vnet_interface_output_trace (u8 * s, va_list * va) else { si = vnet_get_sw_interface (vnm, t->sw_if_index); - s = - format (s, "%U ", format_vnet_sw_interface_name, vnm, si, - t->flags); + s = format (s, "%U flags 0x%08x", format_vnet_sw_interface_name, vnm, + si, t->flags); } s = format (s, "\...
[core] use TCP_CORK w/ TLS if cq length > 16k use TCP_CORK (on Linux) with TLS if cq length > 16k
@@ -290,7 +290,7 @@ connection_write_chunkqueue (connection * const con, chunkqueue * const restrict /* Linux: put a cork into socket as we want to combine write() calls * but only if we really have multiple chunks including non-MEM_CHUNK * (or if multiple chunks and TLS), and only if TCP socket */ - if (NULL != c || c...
try a more concise rdbTryIntegerEncoding using string2ll rather than strtoll. when string2ll was made to replace isStringRepresentableAsLongLong (which was similar to what rdbTryIntegerEncoding does), rdbTryIntegerEncoding was probably forgotten.
@@ -318,18 +318,11 @@ void *rdbLoadIntegerObject(rio *rdb, int enctype, int flags, size_t *lenptr) { * encoded as integers to save space */ int rdbTryIntegerEncoding(char *s, size_t len, unsigned char *enc) { long long value; - char *endptr, buf[32]; - - /* Check if it's possible to encode this value as a number */ - v...
changed loglevel to debug.
@@ -147,7 +147,7 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev, (void)arg; #if 1 - info(".... ebuacip: [ ua=%s call=%s ] event: %s (%s)\n", + debug(".... ebuacip: [ ua=%s call=%s ] event: %s (%s)\n", ua_aor(ua), call_id(call), uag_event_str(ev), prm); #endif
net/test: Fix nm_socket and oic tests Those requires interface to be both UP and RUNNING to be able to send messages. Make sure to check both to avoid failing tests depending on network interfaces order ie if not connected interface is listed before connected ones.
@@ -562,6 +562,11 @@ sock_find_multicast_if(void) if ((itf.mif_flags & MN_ITF_F_UP) == 0) { continue; } + + if ((itf.mif_flags & MN_ITF_F_LINK) == 0) { + continue; + } + if (itf.mif_flags & MN_ITF_F_MULTICAST) { return itf.mif_idx; }
Fix gettimeofday() on OSX. They added an arg. We need to as well.
@@ -840,7 +840,7 @@ extern const __osx_fork : (-> pid) extern const __osx_pipe : (fd : fd[2]# -> int64) extern const __osx_getpid : (-> pid) extern const __osx_lseek : (fd:fd, off:off, whence:whence -> off) -extern const __osx_gettimeofday : (tv : timeval#, tz : timezone# -> int) +extern const __osx_gettimeofday : (tv ...
stress: add missing declaration.
@@ -28,6 +28,15 @@ class SqrtWorker : public SyntheticWorker { void Work(uint64_t n); }; +class AsmSqrtWorker : public SyntheticWorker { + public: + AsmSqrtWorker() {} + ~AsmSqrtWorker() {} + + // Performs n iterations of sqrt(). + void Work(uint64_t n); +}; + class StridedMemtouchWorker : public SyntheticWorker { publ...
Fix uninitialized return `struct sockaddr_in` also has a `sin_zero` member that needs to be initialized Coverity CID
@@ -317,7 +317,7 @@ static socklen_t parse_hostport(h2o_mem_pool_t *pool, h2o_iovec_t host, h2o_iove 4 && parsed_len == host.len && d1 <= UCHAR_MAX && d2 <= UCHAR_MAX && d3 <= UCHAR_MAX && d4 <= UCHAR_MAX) { if (sscanf(port.base, "%" SCNd32 "%n", &_port, &parsed_len) == 1 && parsed_len == port.len && _port <= USHRT_MAX...
tests: improve RCU test Now tests synchronize_rcu()
#include <runtime/rcu.h> #define N 1000000 -#define NCORES 4 +#define NTHREADS 100 #define FIRST_VAL 0x1000000 #define SECOND_VAL 0x2000000 @@ -52,39 +52,65 @@ static void read_handler(void *arg) waitgroup_done(wg_parent); } +static void spawn_rcu_readers(waitgroup_t *wg, int readers) +{ + int ret, i; + + log_info("cre...
Comment-out debug poll wait. Tested-by: IoTivity Jenkins
@@ -74,7 +74,7 @@ public class ObtMain { } else { long now = OCClock.clockTime(); long timeToWait = (NANOS_PER_SECOND / OCClock.OC_CLOCK_SECOND) * (next_event - now); - System.out.println("Poll time to wait : " + timeToWait); +// System.out.println("Poll time to wait : " + timeToWait); cv.awaitNanos(timeToWait); } } ca...
Reenable ring signature tests now that we've monorepoed.
:: =/ public-key-set (sy (turn (gulf 1 5) scalarmult-base:ed:crypto)) |% -++ disabled-test-basic-unlinked +++ test-basic-unlinked =/ unlinked %- sign:raw:ring :* hello-world !> %.y !> (verify:raw:ring hello-world empty-scope public-key-set unlinked) :: -++ disabled-test-linked-different-message-same-key-same-scope +++ ...
pg_upgrade: Resolve test FIXME We don't drop partitioned tables with indexes for the pg_upgrade regression test on GPDB7. Remove the commented out commands and FIXME. Authored-by: Brent Doil
-- exist at the time of running upgrades. If objects are to be manipulated -- in other databases, make sure to change to the correct database first. --- GPDB_12_MERGE_FIXME: We don't need to drop partitioned table with indexes --- anymore, do we? ---partition tables with indexes requires dropping for now ---NOTE: 'isol...
config_format: dump api now handles groups information
@@ -389,21 +389,44 @@ static char *section_type_str(int type) static void dump_section(struct flb_cf_section *s) { struct mk_list *head; + struct mk_list *p_head; struct flb_kv *kv; + struct flb_cf_group *g; printf("> section:\n name: %s\n type: %s\n", s->name, section_type_str(s->type)); if (mk_list_size(&s->propertie...
tests CHANGE add range compilation test
@@ -891,6 +891,22 @@ test_type_range(void **state) assert_non_null(((struct lysc_type_num*)type)->range->parts); assert_int_equal(1, LY_ARRAY_SIZE(((struct lysc_type_num*)type)->range->parts)); + assert_non_null(mod = lys_parse_mem(ctx, "module j {namespace urn:j;prefix j;" + "typedef mytype {type uint8 {range 1..100{d...
Compression package fix
<arg value="${installer.build.dir}/datafari/DEBIAN" /> </exec> <exec executable="dpkg-deb"> - <arg value="-z0" /> <arg value="-b" /> <arg value="${installer.build.dir}/datafari" /> </exec>
update test description to BDD
@@ -41,8 +41,10 @@ class test_progress(unittest.TestCase): def test_notty(self): """test_notty - Given the progress object time is set to a valid time and out stream - The tool runs successfully with output stream to stdout + Given a valid progress object + When the time is set to a valid integer and stream is set to a...
zephyr/shim/src/adc.c: Format with clang-format BRANCH=none TEST=none
@@ -35,8 +35,8 @@ LOG_MODULE_REGISTER(shim_adc, LOG_LEVEL_ERR); }, \ }, #ifdef CONFIG_ADC_CHANNELS_RUNTIME_CONFIG -struct adc_t adc_channels[] = { DT_FOREACH_CHILD( - DT_INST(0, named_adc_channels), ADC_CHANNEL_COMMA) }; +struct adc_t adc_channels[] = { DT_FOREACH_CHILD(DT_INST(0, named_adc_channels), + ADC_CHANNEL_COM...
tap: enable gso/csum offload for tun Type: improvement
@@ -179,7 +179,6 @@ tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args) { vif->type = VIRTIO_IF_TYPE_TUN; ifr.ifr_flags |= IFF_TUN; - args->tap_flags &= ~(TAP_FLAG_GSO | TAP_FLAG_CSUM_OFFLOAD); } else { @@ -808,9 +807,6 @@ tap_csum_offload_enable_disable (vlib_main_t * vm, u32 sw_if_index, vif = pool_elt_at_i...
[numerics] Jordan eigenvactors implementation---
@@ -110,3 +110,27 @@ void JA_eigenvals(const double * const vec, const unsigned int vecSize, const si out[i] = vec[pos] - NV_norm_2(vec + pos + 1, dimension - 1); } } + +void JA_eigenvecs(const double * const vec, const unsigned int vecSize, const size_t varsCount, double ** out) +{ + const double EPS = 1e-12; + unsign...
nimble/ll: Fix dereferencing NULL pointer in ble_ll_scan_rx_isr_end If we are out of buffers NULL rxpdu can be passed to this function. Dereference it only after checking if it is not NULL.
@@ -2002,11 +2002,7 @@ ble_ll_scan_rx_isr_end(struct os_mbuf *rxpdu, uint8_t crcok) /* Get scanning state machine */ scansm = &g_ble_ll_scan_sm; scanphy = &scansm->phy_data[scansm->cur_phy]; - ble_hdr = BLE_MBUF_HDR_PTR(rxpdu); -#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_EXT_ADV) - ble_hdr->rxinfo.user_data = scansm->cur_aux_da...
test: avoid issues due to faketime with debugshell
@@ -195,7 +195,8 @@ run_servertest() { if [[ -n ${RUN_TEST_DROP_IN_SHELL} ]] ; then echo "dropping shell in ${tmpdir}" - ( cd ${tmpdir} && ${SHELL} ) + ( unset DYLD_FORCE_FLAT_NAMESPACE DYLD_INSERT_LIBRARIES LD_PRELOAD; + cd ${tmpdir} && ${SHELL} ) fi # cleanup
edit diff BUGFIX proper key skip
@@ -3094,7 +3094,7 @@ sr_diff_set_getnext(struct ly_set *set, uint32_t *idx, struct lyd_node **node, s /* in case of lists we want to also skip all their keys */ if ((*node)->schema->nodetype == LYS_LIST) { - for (key = lyd_child(*node); key && (key->schema->flags & LYS_KEY); key = key->next) { + for (key = set->dnodes...
BugID:18545567:fix mutex test..........
@@ -23,8 +23,10 @@ static const test_case_t mutex_case_runner[] = { mutex_param_test, mutex_reinit_test, mutex_opr_test, +#if (RHINO_CONFIG_MUTEX_INHERIT > 0) mutex_coopr1_test, mutex_coopr2_test, +#endif NULL };
Fix create-demo-cluster for Makefile on ubuntu. Using make syntax for if condition checking other than rely on shell syntax. This make it more portable. Author: Ashwin Agrawal Author: Xin Zhang
@@ -38,11 +38,11 @@ all: cluster create-demo-cluster: ifeq ($(enable_segwalrep), yes) @WITH_MIRRORS=false ./demo_cluster.sh # will generate gpdemo-env.sh - @if [[ $(WITH_MIRRORS) == true ]]; then \ - . ./gpdemo-env.sh; \ +ifeq ($(WITH_MIRRORS), true) + @. ./gpdemo-env.sh; \ ./gpsegwalrep.py init --host `hostname`; \ - ...
adding a remark regarding case sensitivity
@@ -216,6 +216,9 @@ parser based on the Haskell Parsec Library. The following conventions are used: ``don't care'' or anonymous identifier which is treated differently inside the language. +\item[Case Sensitivity] Skate is not case sensitive hence identifiers +\texttt{foo} and \texttt{Foo} will be the same. + \item[Int...
rest-backend: Add yajl2 dependency
@@ -102,6 +102,7 @@ RUN apt-get update && apt-get install -y \ libboost-thread1.62.0 \ libssl1.1 \ libicu57 \ + libyajl2 \ pwgen \ && rm -rf /var/lib/apt/lists/*
opae.admin: otsu: fix merge error This reintroduces a change that was lost when thes was renamed to fpgaotsu.
@@ -386,6 +386,8 @@ def parse_args(): log_levels = ['debug', 'info', 'warning', 'error', 'critical'] parser.add_argument('--log-level', choices=log_levels, default='info', help='log level to use') + parser.add_argument('--verify', action='store_true', default=False, + help='verify whether PACs need updating and exit') ...
Update: title and axis labels
@@ -46,13 +46,22 @@ for c in concepts.values(): for i in range(len(ConceptLastUsedDistance)): ConceptLastUsedDistance[i] = LastLastUsed - ConceptLastUsedDistance[i] plt.figure() +plt.title("ConceptPriorities histogram") +plt.xlabel("ConceptPriority") +plt.ylabel("Count") plt.hist(ConceptPriorities, log=True) plt.savefi...
fix(user-agent): mutex trap
@@ -500,7 +500,7 @@ ua_clone(struct user_agent *orig_ua) clone_ua->base_url.size = asprintf(&clone_ua->base_url.start, "%.*s", (int)orig_ua->base_url.size, orig_ua->base_url.start); - pthread_mutex_lock(&orig_ua->shared->lock); + pthread_mutex_unlock(&orig_ua->shared->lock); clone_ua->is_original = false;
[tb] Fix AXI read/write functions
@@ -209,8 +209,8 @@ module mempool_tb; to_mempool_req.aw_valid = 1'b1; `wait_for(to_mempool_resp.aw_ready) to_mempool_req.aw_valid = 1'b0; - to_mempool_req.w.data = data << addr[ByteOffset +: (AxiDataWidth/DataWidth)] * DataWidth; - to_mempool_req.w.strb = {BeWidth{1'b1}} << addr[ByteOffset +: (AxiDataWidth/DataWidth)]...
we do not care about result of this path validation
@@ -4365,11 +4365,13 @@ static int conn_abort_pv(ngtcp2_conn *conn, ngtcp2_tstamp ts) { assert(pv); + if (!(pv->flags & NGTCP2_PV_FLAG_DONT_CARE)) { rv = conn_call_path_validation(conn, pv, NGTCP2_PATH_VALIDATION_RESULT_ABORTED); if (rv != 0) { return rv; } + } return conn_stop_pv(conn, ts); } @@ -4415,11 +4417,13 @@ s...
clay: remove beak from compiler path
[ducts (print-wove wove)] :: ++ fusion - |= [her=@p syd=desk] => |% :: +an: $ankh interface door == :: %+ cook |=(huz=(list hoon) `hoon`tssg+huz) - (most gap tall:(vang & (scot %p her) syd '1' pax)) + (most gap tall:(vang & pax)) == == :: dos.rom (~(put by dos.rom.ruf) syd [qyx dom per pew]:red) == :: - ++ fusion (^fus...
Bump version 1.9.12
@@ -30,8 +30,8 @@ APP_LOAD_PARAMS += --path "1517992542'/1101353413'" APPVERSION_M=1 APPVERSION_N=9 -APPVERSION_P=11 -APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P) +APPVERSION_P=12 +APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)-starkware APP_LOAD_FLAGS= --appFlags 0x240 --dep Ethereum:$(APPVER...
chat-view: add docs for %create action
/- *rw-security |% +$ chat-view-action - $% $: %create + $% :: %create: create a new chat + :: + :: if :app-path and :group-path are different, :members must be empty, + :: as the :group-path is assumed to exist. + :: if :app-path and :group-path are identical, and the :group-path + :: doesn't yet exist, will create a ...
Add a yearless general copyright notice
The MIT License Copyright (c) 2016 GitHub, Inc +Copyright (c) Rugged Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
Fix KW issues for tpm_emulator There are several KW issues which uninitialized variables are used. This patch will fix those KW issues.
@@ -531,7 +531,7 @@ static int swtpm_ctrlchan_create(const char *arg_path) */ static int swtpm_cmdchan_create(void) { - ptm_res res; + ptm_res res = 0; int sv[2] = {-1, -1}; if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv) < 0) @@ -584,7 +584,7 @@ err_exit: static int swtpm_stop(void) { - ptm_res res; + ptm_res res = 0; if ...
crypto: fix typo in doc
@@ -107,7 +107,7 @@ For a custom Botan development file location set: All variants of the plugin work under Mac OS Sierra (Version 10.12.3 (16D32)). -To set up the build environment on Mac OS Sierra we reccommend using [Homebrew](http://brew.sh/). +To set up the build environment on Mac OS Sierra we recommend using [Ho...
Disable devcryptoeng on newer OpenBSD versions It's reported that /dev/crypto support has been dropped in OpenBSD 5.7. Fixes
@@ -1590,6 +1590,21 @@ unless ($disabled{afalgeng}) { } } +unless ($disabled{devcryptoeng}) { + if ($target =~ m/^BSD/) { + my $maxver = 5*100 + 7; + my $sysstr = `uname -s`; + my $verstr = `uname -r`; + $sysstr =~ s|\R$||; + $verstr =~ s|\R$||; + my ($ma, $mi, @rest) = split m|\.|, $verstr; + my $ver = $ma*100 + $mi; ...
libc: Pass args and environment to execve()
@@ -113,7 +113,8 @@ pid_t getppid(void) { pid_t fork(void) { HelError error; pid_t child; - asm volatile ("syscall" : "=D"(error), "=S"(child) : "0"(kHelCallSuper + 2)); + asm volatile ("syscall" : "=D"(error), "=S"(child) : "0"(kHelCallSuper + 2) + : "rcx", "r11", "rbx", "memory"); HEL_CHECK(error); if(!child) @@ -123...
Fixed missing $ in Makefile
@@ -16,7 +16,7 @@ default: @echo "" @echo "==========================================================================================================" @echo 'To add vplanet to your $$PATH, please run the appropriate command for your shell type:' - @echo '( You can see your shell by typing: echo $0 )' + @echo '( You can...
Make sure that px_opa is initialized in lv_draw_letter Make sure that the variable px_opa in lv_draw_letter is initialized, else a compile time warring will occur .
@@ -333,7 +333,7 @@ void lv_draw_letter(const lv_point_t * pos_p, const lv_area_t * mask_p, const lv map_p += bit_ofs >> 3; uint8_t letter_px; - lv_opa_t px_opa; + lv_opa_t px_opa = 0; uint16_t col_bit; col_bit = bit_ofs & 0x7; /* "& 0x7" equals to "% 8" just faster */
netkvm: exclude XP/2003/Vista from the buildall.bat This does not affect the common build, only engineering build of the specific driver.
@echo off -call ..\tools\build.bat netkvm-vs2015.sln "Wlh Win7" %* +call ..\tools\build.bat netkvm-vs2015.sln "Win7" %* if errorlevel 1 goto :eof call build_NoLegacy.bat if errorlevel 1 goto :eof -call ..\tools\build.bat NDIS5\NetKVM-NDIS5.sln "WXp Wnet" %* +::call ..\tools\build.bat NDIS5\NetKVM-NDIS5.sln "WXp Wnet Wl...
jenkins: Use WORKSPACE instead of HOME HOME might be in use by parallel tasks and tests might influence each other. WORKSPACE is guarnteed to not be written by other tasks.
@@ -45,8 +45,8 @@ REGISTRY = 'hub.libelektra.org' */ CMAKE_FLAGS_BASE = [ 'SITE': '${STAGE_NAME}', - 'KDB_DB_SYSTEM': '${HOME}/.config/kdb/system', - 'KDB_DB_SPEC': '${HOME}/.config/kdb/spec', + 'KDB_DB_SYSTEM': '${WORKSPACE}/config/kdb/system', + 'KDB_DB_SPEC': '${WORKSPACE}/config/kdb/spec', 'CMAKE_INSTALL_PREFIX': '...
Refactor an if to be a switch.
@@ -955,9 +955,9 @@ swtch: if n.Min() != nil || n.Max() != nil { // TODO: reject. You can only refine numeric types. } - if name := n.Name().Key(); name == t.KeyBool || name == t.KeyStatus || - name == t.KeyReader1 || name == t.KeyWriter1 { - break + switch n.Name().Key() { + case t.KeyBool, t.KeyStatus, t.KeyReader1, ...
gmskframe/autotest: checking header and payload data
@@ -35,8 +35,14 @@ static int gmskframesync_autotest_callback( framesyncstats_s _stats, void * _userdata) { + // check data unsigned int * secret = (unsigned int*) _userdata; - *secret = 0x01234567; + unsigned int i, num_errors = 0; + for (i=0; i<8; i++) + num_errors += _header[i] != i; + for (i=0; i<_payload_len; i++)...
lovr.graphics.reset on error screen;
@@ -176,10 +176,10 @@ void lovrInit(lua_State* L, int argc, char** argv) { " local stackTrace = debug.traceback('Error: ' .. tostring(message), 1) " " local message = stackTrace:gsub('\\n[^\\n]+$', ''):gsub('\\t', ''):gsub('stack traceback', 'Stack') " " print(message) " + " lovr.graphics.reset() " " lovr.graphics.setB...
CoreValidation: Fixed mfpu setting for Cortex-A9neon.
@@ -6,7 +6,7 @@ config: cpu : Cortex-A9 mcpu : cortex-a9 fpu : vfpv3 - mfpu : neon-vfpv4 + mfpu : neon-vfpv3 target: ARM:82/ARMCA9/Cortex-A9 source: - ../../Source/CV_CoreAFunc.c
common/bluetooth_le.c: Format with clang-format BRANCH=none TEST=none
@@ -75,8 +75,8 @@ uint8_t get_next_data_channel(struct remapping_table *rt) (1 << (rt->last_unmapped_channel % 8))) return rt->last_unmapped_channel; else - return rt->remapping_index - [rt->last_unmapped_channel % rt->num_used_channels]; + return rt->remapping_index[rt->last_unmapped_channel % + rt->num_used_channels]...
{AH} add test case for aligned_ref, see issue
@@ -430,6 +430,21 @@ class TestAlignedSegment(ReadTest): (6, 27), (7, 28), (8, 29), (9, 30)]) + def test_equivalence_matches_only_and_with_seq(self): + a = self.build_read() + a.query_sequence = "ACGT" * 2 + a.cigarstring = "4M1D4M" + a.set_tag("MD", "4^x4") + full = (list(zip(range(0, 4), range(20, 24), "ACGT")) + + [...
NoteForm: do not validate on blur Fixes urbit/landscape#90
@@ -39,7 +39,6 @@ export function PostForm(props: PostFormProps) { validationSchema={formSchema} initialValues={initial} onSubmit={onSubmit} - validateOnBlur > <Form style={{ display: 'contents' }}> <Row flexShrink={0} flexDirection={['column-reverse', 'row']} mb={4} gapX={4} justifyContent='space-between'>
IPAddr: Use common function to print test result
@@ -38,6 +38,7 @@ static void testIPv6 (const char * ip, int ret) keyDel (parentKey); PLUGIN_CLOSE (); } + int main (int argc, char ** argv) { printf ("IPADDR TESTS\n"); @@ -64,7 +65,7 @@ int main (int argc, char ** argv) testIPv6 ("::", -1); testIPv6 ("::ffff:192.0.128", -1); - printf ("\ntestmod_ipaddr RESULTS: %d te...
Remove unnecessary variable Test directly if a record filename is provided, without an intermediate boolean variable.
@@ -295,7 +295,6 @@ scrcpy(struct scrcpy_options *options) { bool controller_started = false; bool screen_initialized = false; - bool record = !!options->record_filename; struct server_params params = { .serial = options->serial, .log_level = options->log_level, @@ -358,7 +357,7 @@ scrcpy(struct scrcpy_options *options...
Open GRIB files in binary mode, relevant for Python 3
@@ -388,7 +388,7 @@ class TestBufrMessage(unittest.TestCase): """Message can be serialized to file.""" with BufrFile(TESTBUFR) as bufr_file: msg = BufrMessage(bufr_file) - with open(TEST_OUTPUT, "w") as test: + with open(TEST_OUTPUT, "wb") as test: msg.write(test) os.unlink(TEST_OUTPUT) @@ -439,7 +439,7 @@ class TestBu...
The fix is only needed in userspace.
@@ -13342,9 +13342,13 @@ sctp_copy_it_in(struct sctp_tcb *stcb, #endif skip_copy: if (*error) { +#if defined(__Userspace__) SCTP_TCB_LOCK(stcb); +#endif sctp_free_a_strmoq(stcb, sp, SCTP_SO_LOCKED); +#if defined(__Userspace__) SCTP_TCB_UNLOCK(stcb); +#endif sp = NULL; } else { if (sp->sinfo_flags & SCTP_ADDR_OVER) {
Update NullObjects.hpp with the updated interfaces from commits and
@@ -29,6 +29,14 @@ namespace ARIASDK_NS_BEGIN virtual void SetCustomField(const std::string &, const EventProperty &) override {}; }; + class NullEventFilterCollection : public IEventFilterCollection + { + virtual void RegisterEventFilter(std::unique_ptr<IEventFilter>&&) override { } + virtual void UnregisterEventFilte...
Add test for normalizing the null vector.
@@ -250,6 +250,35 @@ vector_vec_mag_dim_0(CuTest *tc) ___TEARDOWN___ } +void +vector_vec_norm_0(CuTest *tc) +{ + ___SETUP___ + const tsReal vec[3] = { (tsReal) 0.0, + (tsReal) 0.0, + (tsReal) 0.0 }; + tsReal norm[5], dist; + + ___GIVEN___ + norm[0] = (tsReal) -1.0; + norm[1] = (tsReal) -1.0; + norm[2] = (tsReal) -1.0; ...
swaynag: statically allocate button_close, and move declaration Every swaynag has a close button, so it doesn't make sense to allocate it dynamically. The declaration is moved later to when it is actually needed.
@@ -30,16 +30,6 @@ int main(int argc, char **argv) { wl_list_init(&swaynag.outputs); wl_list_init(&swaynag.seats); - struct swaynag_button *button_close = - calloc(sizeof(struct swaynag_button), 1); - if (!button_close) { - perror("calloc"); - return EXIT_FAILURE; - } - button_close->text = strdup("X"); - button_close-...
Man Pages: Regenerate plugin man page
.\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "ELEKTRA\-PLUGINS" "7" "January 2021" "" "" +.TH "ELEKTRA\-PLUGINS" "7" "April 2021" "" "" . .SH "NAME" \fBelektra\-plugins\fR \- plugins overview @@ -164,9 +164,6 @@ xerces \fIxerces/\fR uses XML (without a specific schema)\. xmltool ...
CI/CD: remove string "epm" from enclave.runtime.args
@@ -52,7 +52,7 @@ jobs: - name: Run skeleton v3 with epm if: always() - run: docker exec $rune_test bash -c "docker run -i --rm --runtime=rune -e ENCLAVE_TYPE=intelSgx -e ENCLAVE_RUNTIME_PATH=/usr/lib/liberpal-skeleton-v3.so -e ENCLAVE_RUNTIME_ARGS=epm skeleton-enclave" + run: docker exec $rune_test bash -c "docker run...
Install kernel headers to $(SYSROOT)/usr/include
@@ -57,7 +57,7 @@ EXTERNAL_HEADERS_DIR := ../include EXTERNAL_HEADERS := $(shell find $(EXTERNAL_HEADERS_DIR) -name \*.h) SYSROOT := $(shell $(CC) $(CFLAGS) -print-sysroot) -HEADERS_INSTALL_DIR := $(SYSROOT)/usr/local/include/phoenix +HEADERS_INSTALL_DIR := $(SYSROOT)/usr/include/phoenix ifeq (/,$(SYSROOT)) $(error Sys...
change dependency from libmicrohttpd10 to libmicrohttpd12
@@ -15,7 +15,7 @@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libsodium18 (>= 1.0.11), libcurl3 (>= 7.38), - libmicrohttpd10 (>= 0.9.37) + libmicrohttpd12 (>= 0.9.37) Description: Commandline tool for obtaining OpenID Connect Access tokens on the commandline This tool consists of four programs: - oid...
Fix a crash bug - if the notification message was NULL then we crashed.
@@ -32,9 +32,14 @@ serverAddEvent(server_printer_t *printer, /* I - Printer */ va_list ap; /* Argument pointer */ + if (message) + { va_start(ap, message); vsnprintf(text, sizeof(text), message, ap); va_end(ap); + } + else + text[0] = '\0'; for (sub = (server_subscription_t *)cupsArrayFirst(printer->subscriptions); sub...
[kernel] too much update_inverse_mass that renders the scheme wrong
@@ -41,7 +41,7 @@ using namespace RELATION; double D1MinusLinearOSI::computeResiduHalfExplicitVelocityLevel() { - DEBUG_PRINT("\n D1MinusLinearOSI::computeResiduHalfExplicitVelocityLevel(), starts\n"); + DEBUG_BEGIN("D1MinusLinearOSI::computeResiduHalfExplicitVelocityLevel(), starts\n"); double t = _simulation->nextTim...
Travis: fix in test of whether the docker configuration has changed
@@ -7,7 +7,7 @@ notifications: # Environment setup before test script. Runs for each build before_install: # Check if anything has changed within the docker directory - - DOCKER_CHANGED=`git diff --name-only $TRAVIS_BRANCH...HEAD -- tools/docker | wc -l` + - DOCKER_CHANGED=`git diff --name-only $TRAVIS_COMMIT_RANGE -- ...
Added doxygen comments to ccl_config.h.
#pragma once +/** Transfer function typedef. + * Contains all information that describes a specific + * transfer function. This includes whether there is an + * emulator being used (Note: not implemented yet), + * if there is a fitting function (E&H is the only option + * right now), whether to use the BBKS transfer fu...
[util] Replaced "and" with "&&" in preprocessor expr, fixed MSVC warning
@@ -229,7 +229,7 @@ bool TSemaphore::TryAcquire() noexcept { return Impl_->TryAcquire(); } -#if defined(_unix_) and !defined(_darwin_) +#if defined(_unix_) && !defined(_darwin_) class TFastSemaphore::TImpl: public TPosixSemaphore { public: inline TImpl(ui32 n)
Be explicit in having hoon file suffixes in security driver paths.
^- schematic:ford :+ %mute ^- schematic:ford - [%core [[our %home] (flop %_(dom . sec+dom))]] + [%core [[our %home] [%hoon (flop %_(dom . sec+dom))]]] ^- (list (pair wing schematic:ford)) :* [[%& 12]~ %$ bale+!>(*(bale @))] :: XX specify on type? ?~ cor ~ +12.q =+ ^= ato %- sky - [[151 %noun] %cx (en-beam root-beak [%a...
OcMachoLib: Introduce GetFilePointerByAddress API.
@@ -683,4 +683,20 @@ MachoGetIndirectSymbolTable ( OUT CONST MACH_NLIST_64 **SymbolTable ); +/** + Returns a pointer to the Mach-O file at the specified virtual address. + + @param[in,out] Context Context of the Mach-O. + @param[in] Address Virtual address to look up. + @param[out] MaxSize Maximum data safely available...
raspi-gpio: bump to revision This includes the following changes: Update raw output to show pull registers on 2711
@@ -8,7 +8,7 @@ COMPATIBLE_MACHINE = "^rpi$" inherit autotools -SRCREV = "2eaa8b8755a550e34d07c898b90b0d9b3d66fd81" +SRCREV = "4edfde183ff3ac9ed66cdc015ae25e45f3a5502d" SRC_URI = "git://github.com/RPi-Distro/raspi-gpio.git;protocol=https;branch=master \ "
typeOfLevel key should include typeOfFirstFixedSurface=10
@@ -43,6 +43,10 @@ concept_nofail vertical.typeOfLevel (unknown) { 'tropopause' = {typeOfFirstFixedSurface=7; typeOfSecondFixedSurface=255;} 'nominalTop' = {typeOfFirstFixedSurface=8; typeOfSecondFixedSurface=255; } 'seaBottom' = {typeOfFirstFixedSurface=9; typeOfSecondFixedSurface=255;} + + # Note: We already had 'ent...
move logging "\n" to end of line
@@ -382,8 +382,18 @@ extern size_t FIO_LOG_LEVEL; #ifndef FIO_LOG_PRINT #define FIO_LOG_PRINT(level, ...) \ do { \ - if (level <= FIO_LOG_LEVEL) \ - fprintf(stderr, "\n" __VA_ARGS__); \ + if (level <= FIO_LOG_LEVEL) { \ + char tmp___log[512]; \ + int len___log = snprintf(tmp___log, 500, __VA_ARGS__); \ + if (len___log ...
Fix erroneous delete.
@@ -290,7 +290,7 @@ void WINAPI ServiceMain(DWORD argc, LPTSTR *argv) CloseHandle(handles[i]); } - delete handles; + delete [] handles; monitor::NvmMonitorBase::deleteMonitors(monitors); //close_lib_store();
write meta info lines into the ouput file for valid report
@@ -60,6 +60,9 @@ namespace ebi std::string line{vector_line.begin(), vector_line.end()}; if (boost::starts_with(line, "#")) { + for (auto &output : outputs ) { + output->write_meta_info(line); + } continue; }
khan: don't reset tic instead make it a rolling 128-bit integer. 128 bits is the same size as the +sham space, so is one natural choice for "big enough to never have to think about this." 64, 32, 16, even 8 bits would probably be fine.
=* state - |= [now=@da eny=@uvJ rof=roof] =* khan-gate . -=. tic 0 ^? |% :: +call: handle a +task request %^ cat 3 'khan-fyrd--' (scot %uv (sham (mix tic eny))) - =. tic +(tic) + =. tic (mod +(tic) (bex 128)) =* fyd p.task =/ =beak (get-beak bear.fyd now) =/ args [~ `tid beak name.fyd q.args.fyd]
pbio/logger: set period equal to pbio This value is used to figure out how many log samples to allocate at least.
#include <pbio/error.h> // FIXME: Move to port configuration -#define MIN_PERIOD 10 +#define MIN_PERIOD 6 // FIXME: move upper limit to port config #define MAX_LOG_MEM_KB 2*1024 // 2 MB on EV3
Remove unnecessary upvalue from C closures
@@ -194,7 +194,6 @@ generate_program = function(prog, modname) local args = {} table.insert(args, [[lua_State * L]]) - table.insert(args, [[Table * titan_globals]]) for _, param in ipairs(tl_node.params) do local name = param.name local typ = param._type @@ -225,9 +224,8 @@ generate_program = function(prog, modname) lo...
net/tls: remove unused Kconfig entries and add more This commit removes all unused configurations and adds several congurations what would be supported soon.
@@ -13,46 +13,68 @@ config HW_RNG bool "HW RNG" default n ---help--- - -config HW_AES - bool "HW AES enc/dec" - default n - ---help--- + Supports true random generator by hardware + Maximum random size is 256 bytes at one time. config HW_HASH bool "HW Hash" default n ---help--- + Accelates hash caculation based on hard...
parse_http_line1(): Fix diagnostic output on error and return code
@@ -368,12 +368,13 @@ static OSSL_HTTP_REQ_CTX *http_req_ctx_new(int free_wbio, BIO *wbio, BIO *rbio, /* * Parse first HTTP response line. This should be like this: "HTTP/1.0 200 OK". - * We need to obtain the numeric code and (optional) informational message. + * We need to obtain the status code and (optional) inform...
Ensure HTML report outputs a consistant precision for all byte sizes.
@@ -110,7 +110,7 @@ GoAccess.Util = { var dm = decimals + 1 || 3; var sizes = ['B', 'KiB', 'MiB', 'GiB', 'TiB']; var i = Math.floor(Math.log(bytes) / Math.log(k)); - return (bytes / Math.pow(k, i)).toPrecision(dm) + (numOnly ? '' : (' ' + sizes[i])); + return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + (numOnly ...
tools: acrnd: Fixed get_sos_wakeup_reason() get_sos_wakeup_reason() runs into error branch without any error, so no wakeup reason will be returend. Acked-by: Yan Like
@@ -284,7 +284,7 @@ unsigned get_sos_wakeup_reason(void) req.msgid = WAKEUP_REASON; req.timestamp = time(NULL); - if (mngr_send_msg(client_fd, &req, &ack, DEFAULT_TIMEOUT)) + if (mngr_send_msg(client_fd, &req, &ack, DEFAULT_TIMEOUT) <= 0) fprintf(stderr, "Failed to get wakeup_reason from SOS, err(%d)\n", ret); else ret...
Change case of oniguruma in package_deps Oniguruma exports cmake config file with name "oniguruma", so "Oniguruma" will work only on case insensitive file systems.
@@ -83,7 +83,7 @@ if(NOT EVHTP_DISABLE_REGEX) if(ONIGURUMA_FOUND) list(APPEND LIBEVHTP_EXTERNAL_LIBS ${ONIGURUMA_LIBRARIES}) list(APPEND LIBEVHTP_EXTERNAL_INCLUDES ${ONIGURUMA_INCLUDE_DIRS}) - list(APPEND package_deps Oniguruma) + list(APPEND package_deps oniguruma) else() message(STATUS "${BoldRed}${CMAKE_BUILD_TYPE}O...
testcase/network/itc: remove unsupported macro SO_REUSEPORT Changes are as below: itc_net_connect.c -> 1. removed unsupported macro "SO_REUSEPORT"for setcockopt API
@@ -68,7 +68,7 @@ static void *server_connect(void *ptr_num_clients) *pret = ERROR; pthread_exit(pret); } - int nRet = setsockopt(server_socket, SOL_SOCKET, SO_REUSEADDR | SO_REUSEPORT, &opt, sizeof(opt)); + int nRet = setsockopt(server_socket, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)); if (nRet < 0) { printf("setso...
Disable reorg rejection until LIB update handles reorg correctly
@@ -141,6 +141,9 @@ func blockBP(block *types.Block) string { // NeedReorganization reports whether reorganization is needed or not. func (s *Status) NeedReorganization(rootNo, bestNo types.BlockNo) bool { + return true + // Disable until the reorganization logic is correctly implmented. + /* s.RLock() defer s.RUnlock(...
Make function static to not mess up tests.
@@ -1226,7 +1226,7 @@ static void normalize_lcu_weights(encoder_state_t * const state) } // Check if lcu is edge lcu. Return false if frame dimensions are 64 divisible -bool edge_lcu(int id, int lcus_x, int lcus_y, bool xdiv64, bool ydiv64) +static bool edge_lcu(int id, int lcus_x, int lcus_y, bool xdiv64, bool ydiv64)...
add #define to manage dynamic exception deprecation in c++11/14
#include <exception> #include <sstream> +//---------------------------------------------------------- +// +// C++11 deprecates the specification of dynamic exception throw and +// then changes this again in C++17. for convenience, put a macro +// here to enable existing places to specify the exception list, and +// hav...
Fix UI issue on macOS
@@ -522,9 +522,11 @@ public class EditorSplitViewController: SplitViewController { return } + if !isiOSAppOnMac { guard view.window?.windowScene?.activationState != .background else { return } + } guard presentedViewController == nil else { return
Docs prep for release
# Change Log -### Ver. 0.5.2 (next) +### Ver. 0.5.2 -**Fix / Feature**: (`facil`) sibling processes will now detect a sibling's death (caused by a crashed process) and shutdown. +**Change**: non-breaking changes to the folder structure are also reflected in the updated `makefile` and `.clang_complete`. **Fix**: (`defer...
docs: add -n option to listohpc to accomodate natural sorting for package count generation
@@ -8,6 +8,19 @@ fi which repoquery >& /dev/null || { echo "repoquery must be installed locally"; exit 1; } +naturalSort=0 + +while getopts ":n" opt; do + case ${opt} in + n ) # process option t + naturalSort=1 + ;; + \? ) echo "Usage: cmd [-n]" + ;; + esac +done +shift $((OPTIND -1)) + version=$1 minor_ver=`echo ${ver...
Update docker compose version for travis.
@@ -32,11 +32,18 @@ dist: trusty env: global: + - DOCKER_COMPOSE_VERSION: 1.22.0 - GIT_SUBMODULE_STRATEGY: recursive - IMAGE_REGISTRY: registry.hub.docker.com - IMAGE_NAME: registry.hub.docker.com/$TRAVIS_REPO_SLUG - ARTIFACTS_PATH: $TRAVIS_BUILD_DIR/artifacts +before_install: + - sudo rm /usr/local/bin/docker-compose ...
mesh: Transport tx fields overflow The transport segmented TX nack and seg_pending fields must be at least 6 bits to avoid overflow for 32 segment messages. This change rearranges the seg_tx fields to gather all state flag fields in one byte, while making the counter fields whole bytes. this is port of
@@ -78,16 +78,14 @@ static struct seg_tx { ctl:1, aszmic:1, friend_cred:1; - u8_t seg_o:6,/* Segment being sent. 6 bits to - * prevent overflow in loop. - */ - started:1, /* Start cb called */ - sending:1; /* Sending is in progress */ - u8_t nack_count:5, /* Number of unacked segs */ - blocked:1; /* Blocked by ongoing ...
Custom policy with catboost-specific error for TMaybeData.
@@ -28,23 +28,15 @@ namespace NCB { } - /* TODO(akhropov): uncomment when custom policy support is fixed in TMaybe implementation - * struct TPolicyUnavailableData { static void OnEmpty() { - CB_ENSURE_INTERNAL(false, "Data is unavailable"); + CB_ENSURE_INTERNAL(false, "Attempt to access unavailable data"); } }; templa...
fixed bug on additional weak candidates output
@@ -46,13 +46,6 @@ static struct tm *tm; apessidliste = NULL; apessidcount = 0; -netgearflag = false; -weakpassflag = false; -eudateflag = false; -usdateflag = false; -wpskeysflag = false; -test006064flag = false; - t = time(NULL); tm = localtime(&t); thisyear = tm->tm_year +1900; @@ -1705,6 +1698,13 @@ static char *es...
util/ck_errf.pl: add detection of unknown libcrypto and libssl libs The list of known libs are readily available in crypto/err/openssl.ec, so lets use it to figure out if all error function codes belong to known libs.
@@ -19,6 +19,20 @@ use warnings; my $err_strict = 0; my $bad = 0; +# To detect if there is any error generation for a libcrypto/libssl libs +# we don't know, we need to find out what libs we do know. That list is +# readily available in crypto/err/openssl.ec, in form of lines starting +# with "L ". +my $config = "crypt...
server: Fix logic for checking transport plain ssl Fixes segfault found in on the client side
@@ -866,7 +866,7 @@ server_queuereader(void *d) int rv; z_strm *sstrm; - if (self->transport == W_SSL) { /* just SSL, nothing else */ + if ((self->transport & 0xFFFF) == W_PLAIN) { /* just SSL, nothing else */ sstrm = self->strm; } else { sstrm = self->strm->nextstrm;