message
stringlengths
6
474
diff
stringlengths
8
5.22k
Better sorting of util/other.syms
@@ -53,23 +53,23 @@ EVP_RAND datatype EVP_RAND_CTX datatype EVP_SIGNATURE datatype GEN_SESSION_CB datatype -OPENSSL_Applink external -OSSL_LIB_CTX datatype NAMING_AUTHORITY datatype +OPENSSL_Applink external OSSL_DECODER datatype OSSL_DECODER_CTX datatype OSSL_DECODER_CONSTRUCT datatype OSSL_DECODER_CLEANUP datatype OS...
l2_output:skip processing if no features are enabled
@@ -260,8 +260,12 @@ l2output_process_batch (vlib_main_t * vm, vlib_node_runtime_t * node, { u32 feature_bitmap = config->feature_bitmap & ~L2OUTPUT_FEAT_OUTPUT; if (config->shg == 0 && feature_bitmap == 0) + { + if ((l2_efp | l2_vtr | l2_pbb) == 0) + return; l2output_process_batch_inline (vm, node, config, b, cdo, nex...
Rework `run_pending_requests` to avoid re-ordering requests We now iterate through all the items in `_pending_reqs`, and exit when we're done iterating it, or if `can_run_requests` returns false.
@@ -173,19 +173,16 @@ static int can_run_requests(h2o_http2_conn_t *conn) static void run_pending_requests(h2o_http2_conn_t *conn) { - h2o_linklist_t tmp; + h2o_linklist_t *link, *lnext; - h2o_linklist_init_anchor(&tmp); - - while (!h2o_linklist_is_empty(&conn->_pending_reqs) && can_run_requests(conn)) { + for (link = ...
Fix define for use with Visual Studio.
// Tell 'em we actually want to do that, it's not an accident. #if defined __GNUC__ || defined __clang__ || defined __MINGW32__ || defined __MINGW64__ #define FIX_UNUSED __attribute__((unused)) +#else + #define FIX_UNUSED #endif #define FIX_NOINLINE FIX_W32 FIX_UNUSED
port: remove unimplemented function
extern "C" { #endif -struct ble_npl_eventq *npl_freertos_eventq_dflt_get(void); - struct ble_npl_event *npl_freertos_eventq_get(struct ble_npl_eventq *evq, ble_npl_time_t tmo);
ToolStatus: Fix capitalization
static PH_KEY_VALUE_PAIR GraphTypePairs[] = { { L"None", (PVOID)TASKBAR_ICON_NONE }, - { L"CPU History", (PVOID)TASKBAR_ICON_CPU_HISTORY }, - { L"CPU Usage", (PVOID)TASKBAR_ICON_CPU_USAGE }, - { L"I/O History", (PVOID)TASKBAR_ICON_IO_HISTORY }, - { L"Commit History", (PVOID)TASKBAR_ICON_COMMIT_HISTORY }, - { L"Physical...
openssl ca: make index.txt parsing error more verbose If index.txt exists but has some problems (like for example a single \n character in it) openssl will just exit without any error message. Bug at least expirienced twice:
@@ -556,8 +556,10 @@ end_of_options: goto end; db = load_index(dbfile, &db_attr); - if (db == NULL) + if (db == NULL) { + BIO_printf(bio_err, "Problem with index file: %s (could not load/parse file)\n", dbfile); goto end; + } if (index_index(db) <= 0) goto end; @@ -684,8 +686,10 @@ end_of_options: goto end; db = load_i...
Use HE script.
* Usage: http_client remote_addr remote_port [local_port] [local_encaps_port] [remote_encaps_port] [uri] * * Example - * Client: $ ./http_client 212.201.121.100 80 0 9899 9899 /index.html + * Client: $ ./http_client 212.201.121.100 80 0 9899 9899 /cgi-bin/he */ #ifdef _WIN32
out_loki: improve performance by removing record counter This patch makes a little performance improvement by removing the record counter and replacing it value with the new struct flb_event_chunk total_chunks value. note: test formatter uses old approach since it's not exposed to struct flb_event_chunk.
@@ -1027,11 +1027,11 @@ static int cb_loki_init(struct flb_output_instance *ins, } static flb_sds_t loki_compose_payload(struct flb_loki *ctx, + int total_records, char *tag, int tag_len, const void *data, size_t bytes) { int mp_ok = MSGPACK_UNPACK_SUCCESS; - int total_records; size_t off = 0; flb_sds_t json; struct fl...
more responsive animation button
@@ -28,7 +28,7 @@ class InputOverlay(FrameObject): self.scoreentry = scoreentry self.holding = False - self.oldclick = True + self.oldclick = False self.n = 0 @@ -46,13 +46,15 @@ class InputOverlay(FrameObject): self.holding = True def add_to_frame(self, background, x_offset, y_offset, alpha=1): - if self.holding: + if...
build: remove comment
// XXX add missing jobs // TODO have a per plugin/binding deps in Dockerfile for easier maintanence // TODO add warnings plugins to scan for compiler warnings -// XXX setup way to determine what tests should run -// regex on env.ghprbCommentBody // # Set Variables # CMPVERSION = '0.8.22'
fix reload binding memory issue: copy current_binding_mode
@@ -845,7 +845,7 @@ CommandResult *run_binding(Binding *bind, Con *con) { Binding *bind_cp = binding_copy(bind); /* The "mode" command might change the current mode, so back it up to * correctly produce an event later. */ - const char *modename = current_binding_mode; + char *modename = sstrdup(current_binding_mode); C...
meta: fix meta delete compared cas token was always zero...
@@ -1551,7 +1551,6 @@ error: static void process_mdelete_command(conn *c, token_t *tokens, const size_t ntokens) { char *key; size_t nkey; - uint64_t req_cas_id = 0; item *it = NULL; int i; uint32_t hv; @@ -1611,7 +1610,7 @@ static void process_mdelete_command(conn *c, token_t *tokens, const size_t ntoke MEMCACHED_COMM...
cirrus: upgrade fedora image to 33
-FROM fedora:32 +FROM fedora:33 -RUN dnf upgrade -y && dnf install -y \ +RUN dnf upgrade --refresh -y && dnf install -y \ augeas-devel \ bison \ boost-devel \ @@ -31,7 +31,7 @@ RUN dnf upgrade -y && dnf install -y \ openssl-devel \ procps-ng \ python3-devel \ - qt5-devel \ + qt5-qtbase-devel \ ruby-devel \ rubygem-test...
Add missing register string Closes
@@ -285,5 +285,6 @@ static const ZydisShortString STR_REGISTER[] = // Uncategorized ZYDIS_MAKE_SHORTSTRING("mxcsr"), ZYDIS_MAKE_SHORTSTRING("pkru"), - ZYDIS_MAKE_SHORTSTRING("xcr0") + ZYDIS_MAKE_SHORTSTRING("xcr0"), + ZYDIS_MAKE_SHORTSTRING("uif") };
porting: fix transport init in nimble_port.c
#include "nimble/nimble_port.h" #if NIMBLE_CFG_CONTROLLER #include "controller/ble_ll.h" -#include "transport/ram/ble_hci_ram.h" +#include "nimble/transport.h" #endif static struct ble_npl_eventq g_eventq_dflt; @@ -46,7 +46,6 @@ nimble_port_init(void) ble_transport_hs_init(); #if NIMBLE_CFG_CONTROLLER - ble_hci_ram_ini...
checker: set type of return statement
@@ -229,6 +229,7 @@ function checkstat(node, st, errors) checkexp(node.exp, st, errors, tret) node.exp = trycoerce(node.exp, tret) checkmatch("return", tret, node.exp._type, errors, node.exp._pos) + node._type = tret return true elseif tag == "Stat_If" then local ret = true
Comment back the ets_print call This needs to be disabled for now. See nanoframework/Home#389.
@@ -14,11 +14,14 @@ uint32_t GenericPort_Write( int portNum, const char* data, size_t size ) char* p = (char*)data; int counter = 0; - // send characters directly to the trace port - while(*p != '\0' || counter < (int)size) - { - ets_printf( "%c", *p++); - counter++; - } - return counter; + // TODO fix this when workin...
TSCH: optimize tsch_tx_process_pending
@@ -529,6 +529,7 @@ tsch_rx_process_pending() static void tsch_tx_process_pending(void) { + uint16_t num_packets_freed = 0; int16_t dequeued_index; /* Loop on accessing (without removing) a pending input packet */ while((dequeued_index = ringbufindex_peek_get(&dequeued_ringbuf)) != -1) { @@ -543,10 +544,14 @@ tsch_tx_p...
Minor optimzation/cleanup to ethernet-input node
@@ -229,8 +229,6 @@ determine_next_node (ethernet_main_t * em, u32 is_l20, u32 type0, vlib_buffer_t * b0, u8 * error0, u8 * next0) { - u32 eth_start = vnet_buffer (b0)->l2_hdr_offset; - vnet_buffer (b0)->l2.l2_len = b0->current_data - eth_start; if (PREDICT_FALSE (*error0 != ETHERNET_ERROR_NONE)) { // some error occurr...
netkvm: introduce work item to finish adapter attach This is preparation patch, this work item will be spawned when VFIO adapter enters its operational state.
@@ -286,6 +286,7 @@ public: void SetOidAsync(ULONG oid, PVOID data, ULONG size); void SetOid(ULONG oid, PVOID data, ULONG size); private: + void OnOpStateChange(bool State); void OnLastReferenceGone() override; CParaNdisProtocol& m_Protocol; NDIS_HANDLE m_BindContext; @@ -339,6 +340,35 @@ private: bool udp; } checksumR...
options/posix: Define a response for _SC_LINE_MAX
@@ -666,6 +666,9 @@ unsigned long sysconf(int number) { case _SC_NGROUPS_MAX: // On linux, it is defined to 65536 in most cases, so define it to be 65536 return 65536; + case _SC_LINE_MAX: + // Linux defines it as 2048. + return 2048; default: mlibc::panicLogger() << "\e[31mmlibc: sysconf() call is not implemented, num...
Workaround crash in LLVM's SDNode when lowering zeroinitializer SDNode would crash if the zeroinitializer has more than 2^16 items. For now, put in a simple workaround that limits the max size of single global scope variable to 64K. If needed, this limit can be later fixed by splitting the initializer.
@@ -1235,11 +1235,12 @@ pocl_set_buffer_image_limits(cl_device_id device) /* set program scope variable device limits. * only the max_size is an actual limit. * for CPU devices there is no hardware limit. - * TODO what should we set them to ? */ + * TODO what should we set them to ? + * setting this to >= 2^16 causes L...
[ya.conf.json] update the sandbox_id for Arc VCS Note: mandatory check (NEED_CHECK) was skipped
}, "arc": { "formula": { - "sandbox_id": [514978561], + "sandbox_id": [525245833], "match": "arc" }, "executable": {
jenkins: reuse exiting test case for format checks
@@ -561,15 +561,10 @@ def buildFormatChecks() { return [(stageName): { stage(stageName) { withDockerEnv(DOCKER_IMAGES.sid, [DOCKER_OPTS.MOUNT_MIRROR]) { - def tmpDir = 'build' - dir(tmpDir) { - sh """\ -tail -n +3 '../tests/shell/check_formatting.sh' > './check_formatting.sh' -chmod +x ./check_formatting.sh""" - } - sh...
fix aomp_common_vars oopsie
@@ -19,7 +19,7 @@ ROCM_VERSION=${ROCM_VERSION:-3.7.0} # Set the AOMP VERSION STRING and AOMP_PROJECT_REPO_BRANCH. AOMP_VERSION=${AOMP_VERSION:-"12.0"} -AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"1"} +AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"0"} AOMP_VERSION_STRING=${AOMP_VERSION_STRING:-"$AOMP_VERSION-$AOMP_VERSION_MOD"} expor...
Remove fixme in qp_correlated_query. The commit fix the fallback but forget to remove FIXME.
@@ -3719,9 +3719,6 @@ EXPLAIN SELECT a FROM qp_tab1 f1 LEFT JOIN qp_tab2 on a=c WHERE NOT EXISTS(SELEC Optimizer: Pivotal Optimizer (GPORCA) version 3.83.0 (11 rows) --- start_ignore -GPDB_12_MERGE_FIXME: Fallsback due to unsupported exec location. --- end_ignore EXPLAIN SELECT DISTINCT a FROM qp_tab1 WHERE NOT (SELECT...
opal-ci: qemu: Use the powernv-3.0 branch This is based off the current development version of Qemu, and importantly it contains the patch that allows skiboot and Linux to clear the PCR that we require to boot. [stewart: use the open-power/qemu.git tree for prosterity]
set -e set -vx -git clone --depth=1 -b powernv-2.12 git://github.com/legoater/qemu.git +git clone --depth=1 -b qemu-powernv-for-skiboot-5 git://github.com/open-power/qemu.git cd qemu git submodule update --init dtc export CC="ccache gcc"
Performance / release CI
@@ -10,18 +10,27 @@ dist: xenial jobs: include: - os: linux + env: USE_ASAN=ON CONFIG=Debug + - os: linux + env: USE_ASAN=OFF CONFIG=Release - os: windows + env: CONFIG=Debug before_install: - if [[ "$TRAVIS_OS_NAME" != 'windows' ]]; then sudo apt-get update -qq; fi - if [[ "$TRAVIS_OS_NAME" != 'windows' ]]; then sudo ...
s_client starttls: fix handling of multiline reply Fixes
@@ -2277,7 +2277,7 @@ int s_client_main(int argc, char **argv) do { mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); } - while (mbuf_len > 3 && mbuf[3] == '-'); + while (mbuf_len > 3 && (!isdigit(mbuf[0]) || !isdigit(mbuf[1]) || !isdigit(mbuf[2]) || mbuf[3] != ' ')); (void)BIO_flush(fbio); BIO_pop(fbio); BIO_free(fbio);
Extra brackets removed Removed some extra brackets: the code is clear but this allows the copy paste of the code to work :) Thank you, Riccardo
@@ -76,13 +76,13 @@ below:: status = '200 OK' output = b'Hello World!' - print("application debug #1", file=environ['wsgi.errors'])) + print("application debug #1", file=environ['wsgi.errors']) response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(output)))] start_response(status, response_head...
WebpToSDL(): fix the return value in case of error spotted Diego Casorran
@@ -40,7 +40,7 @@ int WebpToSDL(const char* data, unsigned int data_size) { if (!WebPInitDecoderConfig(&config)) { fprintf(stderr, "Library version mismatch!\n"); - return 1; + return 0; } if (!init_ok) {
Fix printf warnings. Use safer buffer sizes.
@@ -72,14 +72,14 @@ static bool string_copy(char* dest, const char* source, int len) { } void TCOD_parser_error(const char* msg, ...) { - char buf[2048] = ""; - char buf2[2048] = ""; va_list ap; va_start(ap, msg); - vsnprintf(buf, sizeof(buf), msg, ap); + char error_partial[2048] = ""; + vsnprintf(error_partial, sizeof...
CI: remove Alpine build tasks for crypto, fcrypt and gpgme tests
@@ -737,18 +737,6 @@ def generateFullBuildStages() { [TEST.CRYPTOS] ) - tasks << buildAndTest( - "alpine-cryptoplugins", - DOCKER_IMAGES.alpine, - CMAKE_FLAGS_BUILD_ALL+ - CMAKE_FLAGS_DEBUG + [ - 'PLUGINS': 'dump;resolver_fm_hpu_b;list;spec;sync;crypto;fcrypt;gpgme', - 'TOOLS': 'gen-gpg-testkey', - 'BINDINGS': '', - ],...
remove LPC54608 from travis-ci
@@ -41,7 +41,7 @@ env: - RTT_BSP='lpc43xx/M4' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='lpc408x' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='lpc5410x' RTT_TOOL_CHAIN='sourcery-arm' - - RTT_BSP='lpc54608-LPCXpresso' RTT_TOOL_CHAIN='sourcery-arm' +# - RTT_BSP='lpc54608-LPCXpresso' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='ls1...
Simplify nested block
@@ -4898,13 +4898,11 @@ static int handle_new_connection_id_frame(quicly_conn_t *conn, struct st_quicly_ * This order is important as it is possible to receive a NEW_CONNECTION_ID frame * such that it retires active_connection_id_limit CIDs and then installs * one new CID. */ - if (spare_cid->sequence < frame.retire_pr...
android: fixing apk upload error handling
@@ -503,7 +503,7 @@ def load_app_and_run(device_flag, apkfile, pkgname) poutres = "" perrres = "" begin - status = Timeout::timeout(300) do + status = Timeout::timeout(600) do @@logger.debug "CMD: #{cmd}" Open3.popen3(cmd) do |pin,pout,perr,wait_thr| @@ -524,7 +524,7 @@ def load_app_and_run(device_flag, apkfile, pkgnam...
dpdk: define MACHINE before it is used This fixes build on non-x86 platforms like arm64.
@@ -33,6 +33,7 @@ DPDK_17.02_TARBALL_MD5_CKSUM := 6b9f7387c35641f4e8dbba3e528f2376 DPDK_17.05_TARBALL_MD5_CKSUM := 0a68c31cd6a6cabeed0a4331073e4c05 DPDK_17.08_TARBALL_MD5_CKSUM := 0641f59ea8ea98afefa7cfa2699f6241 DPDK_SOURCE := $(B)/dpdk-$(DPDK_VERSION) +MACHINE=$(shell uname -m) ifeq ($(MACHINE),$(filter $(MACHINE),x8...
print warning if BPF is unset
@@ -7093,6 +7093,7 @@ if(bpf.len > 0) { if(setsockopt(fd_socket, SOL_SOCKET, SO_ATTACH_FILTER, &bpf, sizeof(bpf)) < 0) perror("failed to set Berkeley Packet Filter"); } +else fprintf(stderr, "BPF is unset. Make sure hcxdumptool is running in a 100%% controlled environment!\n"); memset(&ifr_old, 0, sizeof(ifr)); memcpy(...
Note that 2.x branch is no longer getting fixes
@@ -90,12 +90,12 @@ to be a stable branch for the latest major release series, but as it is used for ongoing development expect it to have some volatility. We recommend using the latest stable release tag for production development. -The `2.x` and `3.x` branches are a stable branches for the 2.x and 3.x release -series...
ToolStatus: Fix statusbar issue with timezones
@@ -258,14 +258,14 @@ VOID StatusBarUpdate( // Reset max. widths for Max. CPU Process and Max. I/O Process parts once in a while. { - LARGE_INTEGER tickCount; + ULONG64 tickCount; - PhQuerySystemTime(&tickCount); + tickCount = NtGetTickCount64(); - if (tickCount.QuadPart - lastTickCount >= 10 * PH_TICKS_PER_SEC) + if (...
nbu_ddboost pipeline Bump CCP to 1.4.2 for bug fixes
@@ -30,7 +30,7 @@ resources: branch: {{ccp-git-branch}} private_key: {{ccp-git-key}} uri: {{ccp-git-remote}} - tag_filter: 1.0.0 + tag_filter: 1.4.2 - name: terraform type: terraform
Set retry seed as part of context creation
@@ -310,6 +310,8 @@ picoquic_quic_t* picoquic_create(uint32_t nb_connections, picoquic_crypto_random(quic, quic->reset_seed, sizeof(quic->reset_seed)); else memcpy(quic->reset_seed, reset_seed, sizeof(quic->reset_seed)); + + picoquic_crypto_random(quic, quic->retry_seed, sizeof(quic->retry_seed)); } } @@ -476,14 +478,1...
Note for Tegra users
@@ -91,3 +91,8 @@ A few tests are included. They can be launched with `ctest` They are very basic and don't test much for now. +---- + +Note about devices with Tegra X1 and newer. + +Nvidia don't provide armhf libraries for their GPU drivers at this moment so there is no special variable to compile it for them as it wo...
content.length to content_length
@@ -98,8 +98,8 @@ In AppScope 1.0.0, a few event and metric schema elements, namely `title` and `d **HTTP** - [http.req](#metrichttpreq) -- [http.request.content.length](#metrichttpreqcontentlength) -- [http.response.content.length](#metrichttprespcontentlength) +- [http.request.content_length](#metrichttpreqcontentlen...
update new setup
#include <OMManager.h> -#include <OMMath.h> +#define WORLD 0 +#define BASE 1 +#define SHOULDER 2 +#define UPPER_ARM 3 +#define LOWER_ARM 4 +#define WRIST 5 +#define GRIPPER 6 + +#define NONE -1 + +void setup() +{ + Manipulator manipulator; + manipulator.addComponent(WORLD, NONE, BASE, mass, inertia_tensor, relative_pos...
log CHANGE use ly_vecode only if really necessary avoid getting data when they are not necessary needed
@@ -313,10 +313,6 @@ log_vprintf(const struct ly_ctx *ctx, LY_LOG_LEVEL level, LY_ERR no, LY_VECODE v return; } - if (((no & ~LY_EPLUGIN) == LY_EVALID) && (vecode == LYVE_SUCCESS)) { - /* assume we are inheriting the error, so inherit vecode as well */ - vecode = ly_vecode(ctx); - } /* store the error/warning (if we ne...
if a folder is disabled, lock all the child attributes in Maya.
@@ -1336,7 +1336,15 @@ GetAttrOperation::leaf(const HAPI_ParmInfo &parmInfo) && parentParmInfo && parentParmInfo->rampType != HAPI_RAMPTYPE_INVALID)) { - if(parmInfo.disabled) { + bool disabledAncestor = false; + for(auto olderParmInfo : myParentParmInfos) { + if( olderParmInfo && olderParmInfo->disabled) { + disabledA...
Add compatibility macro for the inline keyword in error.h MSVC is not fully compliant with C99 where the 'inline' keyword is defined. Add a macro to define an alternative for non-compliant compilers.
#include <stddef.h> +#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \ + !defined(inline) && !defined(__cplusplus) +#define inline __inline +#endif + /** * Error code layout. *
Fix device tick enter fast polling mode during permit join enabled The signal wasn't actually connected, after EventEmitter was introduced.
@@ -942,7 +942,7 @@ DeRestPluginPrivate::DeRestPluginPrivate(QObject *parent) : connect(pollManager, &PollManager::done, this, &DeRestPluginPrivate::pollNextDevice); auto *deviceTick = new DeviceTick(m_devices, this); - connect(this, &DeRestPluginPrivate::eventNotify, deviceTick, &DeviceTick::handleEvent); + connect(ev...
BugID:22272003: Fix iperf crash issue
@@ -97,16 +97,13 @@ static void _cli_iperf_server_command( int argc, char **argv ) break; } } - if ( strcmp( argv[i], "-u" ) != 0 ) { + + if ( is_create_task != 1 ) { LWIP_DEBUGF( IPERF_DEBUG, ("Iperf TCP Server: Start!" )); LWIP_DEBUGF( IPERF_DEBUG, ("Iperf TCP Server Receive Timeout = 20 (secs)" )); aos_task_new_ext(...
secvar/backend: add EFI_CERT_RSA2048_GUID This isn't currently used in skiboot but may be used by external users of skiboot's secvar code.
@@ -83,6 +83,8 @@ static const uuid_t EFI_CERT_SHA384_GUID = {{ 0x07, 0x53, 0x3e, 0xff, 0xd0, 0x9f static const uuid_t EFI_CERT_SHA512_GUID = {{ 0xae, 0x0f, 0x3e, 0x09, 0xc4, 0xa6, 0x50, 0x4f, 0x9f, 0x1b, 0xd4, 0x1e, 0x2b, 0x89, 0xc1, 0x9a }}; +static const uuid_t EFI_CERT_RSA2048_GUID = {{ 0xe8, 0x66, 0x57, 0x3c, 0x9c...
oops, removed a breakpoint in makeplot for earth climate
@@ -50,7 +50,6 @@ def comp2huybers(plname,dir='.',xrange=False,show=True): for ii in np.arange(nfiles): out = vplot.GetOutput(dir[ii]) - import pdb; pdb.set_trace() #pdb.set_trace() ctmp = 0
gsctool: fix error processing logic The error processing logic is reversed, which results in missing error values when errors actually happen. BRANCH=none TEST=verified that errors values are now reported properly.
@@ -1596,7 +1596,7 @@ static void process_password(struct transfer_descriptor *td) return; fprintf(stderr, "Error setting password: rv %d, response %d\n", - rv, response_size ? 0 : response); + rv, response_size ? response : 0); exit(update_error); }
Check if getpwuid_r failed to find a password entry Check if getpwuid_r failed to find a password entry ([arc::pullid] 4d84fecf-25d8a32a-8cd9018d-2e828d76)
@@ -38,13 +38,12 @@ TString GetUsername() { passwd pwd; passwd* tmpPwd; int err = getpwuid_r(geteuid(), &pwd, nameBuf.Data(), nameBuf.Size(), &tmpPwd); - if (err) { - if (err == ERANGE) + if (err == 0 && tmpPwd) { + return TString(pwd.pw_name); + } else if (err == ERANGE) { nameBuf = TTempBuf(nameBuf.Size() * 2); - els...
update testshell_markdown_range
@@ -58,25 +58,25 @@ None. sudo kdb mount range.ecf /tests/range range dump # should succeed -kdb set /tests/range/value 5 -kdb meta-set /tests/range/value check/range "1-10" +kdb set user:/tests/range/value 5 +kdb meta-set user:/tests/range/value check/range "1-10" # RET: 0 # should fail -kdb set /tests/range/value 11 ...
[kernel] add doxygen comment
@@ -118,7 +118,9 @@ protected: */ ACCEPT_SERIALIZATION(NewtonEulerDS); - + /** Common code for constructors + * should be replaced in C++11 by delegating constructors + */ void init();
amdgpu: fixed incorrect gpu load for centipercent
@@ -16,8 +16,8 @@ std::string metrics_path = ""; */ struct amdgpu_common_metrics { /* Load level: averaged across the sampling period */ - uint8_t gpu_load_percent; - // uint8_t mem_load_percent; + uint16_t gpu_load_percent; + // uint16_t mem_load_percent; /* Power usage: averaged across the sampling period */ float av...
nufft: document maxiter for inverse nuFFT
@@ -77,7 +77,7 @@ int main_nufft(int argc, char* argv[argc]) OPT_CLEAR('r', &conf.toeplitz, "turn-off Toeplitz embedding for inverse NUFFT"), OPT_SET('c', &precond, "Preconditioning for inverse NUFFT"), OPT_FLOAT('l', &lambda, "lambda", "l2 regularization"), - OPT_UINT('m', &cgconf.maxiter, "", "()"), + OPT_UINT('m', &...
Mercator: save 'txlen' as an expected value
@@ -236,6 +236,7 @@ void serial_rx_REQ_RX(void) { req = (REQ_RX_ht*)mercator_vars.uartbufrx; // save the expected values + mercator_vars.txpk_len = req->txlength; mercator_vars.txpk_transctr = htons(req->transctr); mercator_vars.txpk_txfillbyte = req->txfillbyte; memcpy(mercator_vars.txpk_srcmac, req->srcmac, 8);
Add RtlAddResourceAttributeAce, RtlAddScopedPolicyIDAce
@@ -2580,6 +2580,7 @@ typedef struct _RTL_USER_PROCESS_PARAMETERS ULONG_PTR EnvironmentSize; ULONG_PTR EnvironmentVersion; + PVOID PackageDependencyData; ULONG ProcessGroupId; ULONG LoaderThreads; @@ -6550,6 +6551,32 @@ RtlAddMandatoryAce( ); #endif +#if (PHNT_VERSION >= PHNT_WIN8) +NTSYSAPI +NTSTATUS +NTAPI +RtlAddRes...
Remove unused code, Update copyright text
* tree new (tree list control) * * Copyright (C) 2011-2016 wj32 - * Copyright (C) 2017 dmex + * Copyright (C) 2017-2018 dmex * * This file is part of Process Hacker. * @@ -4984,7 +4984,6 @@ VOID PhTnpPaint( LONG normalUpdateRightIndex; LONG normalTotalX; RECT cellRect; - HBRUSH backBrush; HRGN oldClipRegion; PhTnpIniti...
[chainmaker][#436]add cer len exceed test
@@ -490,7 +490,7 @@ START_TEST(test_001CreateWallet_0016_CreateOneTimeWalletFailurePrikeyError) BSINT32 rtnVal; BoatHlchainmakerWallet *g_chaninmaker_wallet_ptr = NULL; BoatHlchainmakerWalletConfig wallet_config = get_chainmaker_wallet_settings(); - wallet_config.user_prikey_cfg.prikey_content.field_ptr = "testprikey";...
Add a file:/// example
@@ -139,6 +139,7 @@ typedef struct clap_preset_location { // URI // - file:/// for pointing to a file or directory; directories are scanned recursively + // eg: file:///home/abique/.u-he/Diva/presets/ // - plugin://<clap-plugin-id> for presets which are bundled inside the plugin itself char uri[CLAP_URI_SIZE]; } clap_p...
Add group-by and partition-by to the core. Semantics are mostly emulated from Clojure.
(set (freqs x) (if n (+ 1 n) 1))) freqs) +(defn group-by + ``Group elements of `ind` by a function `f` and put the results into a table. The keys of + the table are the distinct return values of `f`, and the values are arrays of all elements of `ind` + that are equal to that value.`` + [f ind] + (def ret @{}) + (each x...
sys/baselibc: Cleanup in tinyprintf Missing #include and break makes Eclipse CDT complain about it, so let's just add it as it does not change anything here.
@@ -61,6 +61,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * PRINTF_SUPPORT_LONG because int == long. */ +#include <stdarg.h> #include <stdio.h> #include <inttypes.h> @@ -337,6 +338,7 @@ size_t tfp_format(FILE *putp, const char *fmt, va_list va) break; case '%': written += putf(putp, ch); + break; d...
Rename data-placeholder to placeholder
@@ -853,7 +853,7 @@ static void TextEdit_OnReady( LCUI_Widget w, LCUI_WidgetEvent e, void *arg ) static void TextEdit_SetAttr( LCUI_Widget w, const char *name, const char *val ) { - if( strcasecmp( name, "data-placeholder" ) == 0 ) { + if( strcmp( name, "placeholder" ) == 0 ) { TextEdit_SetPlaceHolder( w, val ); } }
p8dtu: Enable HIOMAP support
@@ -230,6 +230,7 @@ static bool p8dtu2u_probe(void) static const struct bmc_sw_config bmc_sw_smc = { .ipmi_oem_partial_add_esel = IPMI_CODE(0x3a, 0xf0), .ipmi_oem_pnor_access_status = IPMI_CODE(0x3a, 0x07), + .ipmi_oem_hiomap_cmd = IPMI_CODE(0x3a, 0x5a), }; static const struct bmc_platform bmc_plat_ast2400_smc = {
PHP: using nxt_unit_default_init() for module structure init. Using this function in all language modules helps to avoid code duplication and reduce the size of future patches.
@@ -265,8 +265,6 @@ nxt_php_start(nxt_task_t *task, nxt_process_data_t *data) nxt_str_t ini_path, name; nxt_int_t ret; nxt_uint_t n; - nxt_port_t *my_port, *main_port; - nxt_runtime_t *rt; nxt_unit_ctx_t *unit_ctx; nxt_unit_init_t php_init; nxt_conf_value_t *value; @@ -363,39 +361,13 @@ nxt_php_start(nxt_task_t *task, ...
Fix argument order in ocf_metadata_set_partition_id() call
@@ -1158,7 +1158,7 @@ static void _recovery_rebuild_cline_metadata(ocf_cache_t cache, part_id = PARTITION_DEFAULT; part = cache->user_parts[part_id].part.runtime; - ocf_metadata_set_partition_id(cache, part_id, cache_line); + ocf_metadata_set_partition_id(cache, cache_line, part_id); env_atomic_inc(&part->curr_size); h...
BugID:25059354: Disable netmgr when ethernet is enabled
@@ -2,7 +2,7 @@ config AOS_BOARD_STM32F429ZI_NUCLEO bool "STM32F429ZI_Nucleo" select AOS_MCU_STM32F4XX_CUBE select AOS_COMP_KERNEL_INIT - select AOS_COMP_NETMGR + select AOS_COMP_NETMGR if BSP_SUPPORT_EXTERNAL_MODULE select CONFIG_AOS_TCPIP if !BSP_SUPPORT_EXTERNAL_MODULE select CONFIG_NO_TCPIP if BSP_SUPPORT_EXTERNAL_...
typo in testlist
n=0 # count amount of tests executed (exception for subsecond calls) max_rc=0 # track the maximum RC to return at the end loops=1; - rnd10= $(((RANDOM%9+2)) + rnd10= $(((RANDOM%9)+2)) rndeven20=$(((RANDOM%5)*2+10)) rnd20= $(((RANDOM%19)+2)) rnd32= $(((RANDOM%31)+2))
proc: set appropriate locks before accessing children list
@@ -573,6 +573,7 @@ void proc_zombie(process_t *proc) unsigned int ppid = parent->id; if (parent != NULL) { + proc_lockSet(&proc->lock); hal_spinlockSet(&parent->waitsl); proc->state = ZOMBIE; LIST_REMOVE(&parent->children, proc); @@ -582,6 +583,7 @@ void proc_zombie(process_t *proc) proc_threadWakeup(&parent->waitq); ...
[examples] use ioMatrix::CompRef
@@ -214,18 +214,10 @@ int main(int argc, char* argv[]) // dataPlot (ascii) output ioMatrix::write("DiodeBridge.dat", "ascii", dataPlot, "noDim"); - - SimpleMatrix dataPlotRef(dataPlot); - dataPlotRef.zero(); - ioMatrix::read("result.ref", "ascii", dataPlotRef); - std::cout << (dataPlot - dataPlotRef).normInf() << std::...
build: replace set -e with direct exit calls This is necessary, because cov script returns failure status code, despite actually submitting the build.
@@ -28,14 +28,11 @@ matrix: compiler: clang before_install: - - set -e - - curl -Ls https://entrust.com/root-certificates/entrust_l1k.cer -o ~/entrust_l1k.crt - - curl -LS https://curl.haxx.se/ca/cacert.pem -o ~/cacert.pem - - cat ~/entrust_l1k.crt >> ~/cacert.pem - - if [ -f ~/.curlrc ]; then echo "Dropping old ~/.cur...
Add some VIEWs
@@ -74,12 +74,19 @@ RETURNS SETOF record AS 'MODULE_PATHNAME', 'pipeline_get_views' LANGUAGE C IMMUTABLE; +CREATE VIEW pipelinedb.views AS + SELECT * FROM pipelinedb.get_views(); + CREATE OR REPLACE FUNCTION pipelinedb.get_transforms( OUT id oid, OUT schema text, OUT name text, OUT active bool, OUT tgfunc text, OUT tga...
pflash: include ccan/list/list.c to be able to build -DDEBUG This enables some extra linked list checking
@@ -4,8 +4,11 @@ override CFLAGS += -O2 -Wall -I. LIBFLASH_FILES := libflash.c libffs.c ecc.c blocklevel.c file.c LIBFLASH_OBJS := $(addprefix libflash-, $(LIBFLASH_FILES:.c=.o)) LIBFLASH_SRC := $(addprefix libflash/,$(LIBFLASH_FILES)) +CCAN_FILES := list.c +CCAN_OBJS := $(addprefix ccan-list-, $(CCAN_FILES:.c=.o)) +CC...
bugID:16974841:breeze:misc MARCO change.
@@ -10,7 +10,6 @@ $(NAME)_COMPONENTS := yloop bluetooth.breeze cli GLOBAL_DEFINES += DEBUG GLOBAL_DEFINES += CONFIG_BLE_LINK_PARAMETERS -#GLOBAL_DEFINES += CONFIG_MODEL_SECURITY GLOBAL_DEFINES += BUILD_AOS
Fixed pip/python report error after `source greenplum_path.sh` If no python in $GPHOME/ext/python/bin/python, $PYTHONHOME will be set to empty string, which make python env wrong.
@@ -44,6 +44,7 @@ cat <<EOF #setup PYTHONHOME if [ -x \$GPHOME/ext/python/bin/python ]; then PYTHONHOME="\$GPHOME/ext/python" + export PYTHONHOME fi EOF @@ -100,6 +101,5 @@ EOF cat <<EOF export PYTHONPATH -export PYTHONHOME EOF
implicitclass: Added error handling when call of IPP backend fails.
@@ -393,6 +393,9 @@ main(int argc, /* I - Number of command-line args */ fprintf(stderr, "DEBUG: Started IPP Backend (%s) with pid: %d\n", buf, getpid()); execv(buf, argv_nt); + fprintf(stderr, "ERROR: Could not start IPP Backend (%s)\n", + buf); + return CUPS_BACKEND_FAILED; } else { int status; waitpid(pid, &status, ...
fix defrag test looking at the wrong latency metric the latency event was renamed in and the outcome was that the test was ineffective (unable to measure the max latency, always seeing 0)
@@ -130,7 +130,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r set max_latency 0 foreach event [r latency latest] { lassign $event eventname time latency max - if {$eventname == "loading-cron"} { + if {$eventname == "while-blocked-cron"} { set max_latency $max } } @@ -141,7 +141,7 ...
Simplify porting guide `Formatter` section
### Formatter - Added arguments to accommodate the new decoder API changes - - The signature of `ZydisFormatterFormatInstruction` changed - - The functionality of `ZydisFormatterFormatInstructionEx` was integrated into the non-`Ex` - variant of the function - - The signature of `ZydisFormatterFormatOperand` changed - -...
Fix XDP Cleanup on Init Failure Crash
@@ -143,6 +143,7 @@ CxPlatDataPathInitialize( return QUIC_STATUS_OUT_OF_MEMORY; } CxPlatZeroMemory(DataPath, DatapathSize); + CXPLAT_FRE_ASSERT(CxPlatRundownAcquire(&CxPlatWorkerRundown)); if (UdpCallbacks) { DataPath->UdpHandlers = *UdpCallbacks; @@ -165,7 +166,6 @@ CxPlatDataPathInitialize( goto Error; } - CXPLAT_FRE...
nautilus: Lower VCCIO from 0.975V to 0.850V CQ-DEPEND=CL:*602341 BRANCH=poppy TEST=None Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh
@@ -323,11 +323,11 @@ static void board_pmic_disable_slp_s0_vr_decay(void) /* * VCCIOCNT: * Bit 6 (0) - Disable decay of VCCIO on SLP_S0# assertion - * Bits 5:4 (00) - Nominal output voltage: 0.975V + * Bits 5:4 (11) - Nominal output voltage: 0.850V * Bits 3:2 (10) - VR set to AUTO on SLP_S0# de-assertion * Bits 1:0 (1...
replace __FUNCTION__ by __func__
@@ -127,7 +127,7 @@ int picoquic_get_input_path(char * target_file_path, size_t file_path_max, const #define DBG_PRINTF(fmt, ...) \ debug_printf("%s:%u [%s]: " fmt "\n", \ &__FILE__[MAX(DBG_PRINTF_FILENAME_MAX, sizeof(__FILE__)) - DBG_PRINTF_FILENAME_MAX], \ - __LINE__, __FUNCTION__, __VA_ARGS__) + __LINE__, __func__ ,...
HLS: Fixing up testbench for hashjoin example
@@ -160,7 +160,7 @@ static void snap_4KiB_get(snap_4KiB_t *buf, snap_membus_t *line) #if defined(CONFIG_4KIB_DEBUG) fprintf(stderr, "4KiB buffer %d lines, reading %d bytes\n", - tocopy, tocopy * sizeof(snap_membus_t)); + tocopy, tocopy * (int)sizeof(snap_membus_t)); #endif switch (tocopy) { case 0: /* NOTE: Avoid read/...
corrects +muk jet comment
key_y = u3a_calloc(sizeof(c3_y), len_w); } + // Efficiency: unnecessary copy. + // + // We could calculate the hash directly against + // the atom internals, a la u3r_mug + // u3r_bytes(0, len_w, key_y, key); - // XX we could skip the copy and use _mur_words() instead - // MurmurHash3_x86_32(key_y, len_w, seed_w, &out_...
more reliability for flashing, print bootstub version
@@ -155,9 +155,17 @@ class Panda(object): except Exception: pass if not enter_bootloader: + self.close() time.sleep(1.0) + try: + self.connect() + except Exception: + # retry after 5 seconds + print("connecting to bootstub is taking a while...") + time.sleep(5.0) self.connect() + def flash(self, fn=None): if not self.b...
Fix service elevation prompt regression from commit
@@ -1656,6 +1656,9 @@ VOID PhMwpOnCommand( PhGetSelectedServiceItems(&serviceItems, &numberOfServiceItems); PhReferenceObjects(serviceItems, numberOfServiceItems); + if (numberOfServiceItems == 1) // phsvc elevation (dmex) + PhUiStartService(WindowHandle, serviceItems[0]); + else PhUiStartServices(WindowHandle, service...
Fix BLE_ADDR_IS_NRPA and BLE_ADDR_IS_STATIC define
@@ -261,9 +261,9 @@ int ble_err_from_os(int os_err); #define BLE_ADDR_IS_RPA(addr) (((addr)->type == BLE_ADDR_RANDOM) && \ ((addr)->val[5] & 0xc0) == 0x40) #define BLE_ADDR_IS_NRPA(addr) (((addr)->type == BLE_ADDR_RANDOM) && \ - (((addr)->val[5] & 0xc0) == 0x00) + ((addr)->val[5] & 0xc0) == 0x00) #define BLE_ADDR_IS_ST...
docs: age break cleanup
@@ -184,6 +184,7 @@ repository, which is shipped with CentOS and is enabled by default. \subsubsection{Additional Customization ({\em optional})} \label{sec:addl_customizations} \input{common/compute_customizations_intro} +\clearpage \paragraph{Enable \InfiniBand{} drivers} \input{common/ibsupport_compute_centos.tex} @...
wlanhcx2psk: Allow running without hcx input (just output all the generic stuff). Also makes the generic "weak passwords" optional (-w), in case user *only* wants stuff actually derived from input data.
@@ -27,6 +27,7 @@ hcx_t *hcxdata = NULL; bool stdoutflag = false; bool fileflag = false; +bool weakflag = false; bool wpsflag = false; bool eudateflag = false; bool usdateflag = false; @@ -1038,6 +1039,7 @@ printf("%s %s (C) %s ZeroBeat\n" "-i <file> : input hccapx file\n" "-o <file> : output plainkeys to file\n" "-s :...
Break build on sha256sum mismatch
@@ -7,7 +7,7 @@ case "$1" in case "${BUILD_SYSTEM}" in "bazel") wget https://github.com/bazelbuild/bazel/releases/download/0.4.5/bazel_0.4.5-linux-x86_64.deb - echo "b494d0a413e4703b6cd5312403bea4d92246d6425b3be68c9bfbeb8cc4db8a55 bazel_0.4.5-linux-x86_64.deb" | sha256sum -c --strict + echo 'b494d0a413e4703b6cd5312403b...
tests: internal: network: prevent Infinite loop for no IPv6 environment With no IPv6 supported environment, the current implementation causes infinite loop to wait ev events for network testing. We should prevent such protocol glitching issue on test to prevent stucking test cases.
@@ -63,6 +63,10 @@ static void test_client_server(int is_ipv6) /* Create client and server sockets */ fd_client = flb_net_socket_create(family, FLB_TRUE); + if (errno == EAFNOSUPPORT) { + TEST_MSG("This protocol is not supported in this platform"); + return; + } TEST_CHECK(fd_client != -1); fd_server = flb_net_server(T...
board/cherry/board.h: Format with clang-format BRANCH=none TEST=none
#define CONFIG_LED_ONOFF_STATES_BAT_LOW 10 /* PD / USB-C / PPC */ -#undef CONFIG_USB_PD_DEBUG_LEVEL /* default to 1, configurable in ec console */ +#undef CONFIG_USB_PD_DEBUG_LEVEL /* default to 1, configurable in ec console \ + */ /* Optional console commands */ #define CONFIG_CMD_FLASH
conf: merge 'split_line' property
# Lines to read. If sets, in_head works like 'head -n' Lines 10 + # Split_line + # ==== + # If true, in_head splits lines into k-v pairs + Split_line true [OUTPUT] Name stdout
host/mesh: fix mesh_adv_thread Solved issues with adv_timeout.
@@ -48,6 +48,7 @@ static os_membuf_t adv_buf_mem[OS_MEMPOOL_SIZE( MYNEWT_VAL(BLE_MESH_ADV_BUF_COUNT), BT_MESH_ADV_DATA_SIZE + BT_MESH_MBUF_HEADER_SIZE)]; static struct os_mempool adv_buf_mempool; +static int32_t adv_timeout; static inline void adv_send(struct os_mbuf *buf) { @@ -134,9 +135,6 @@ mesh_adv_thread(void *ar...
timesched: chk timer is non-empty before removing
@@ -140,7 +140,9 @@ timesched_timer_stop(struct timesched_timer *timer) OS_ENTER_CRITICAL(sr); + if (timer->link.tqe_prev != NULL) { TAILQ_REMOVE(&g_timesched_q, timer, link); + } OS_EXIT_CRITICAL(sr);
include/rgb_keyboard.h: Format with clang-format BRANCH=none TEST=none
@@ -85,8 +85,8 @@ struct rgbkbd_drv { * @param len Length of LEDs to be set. * @return enum ec_error_list */ - int (*set_scale)(struct rgbkbd *ctx, uint8_t offset, - struct rgb_s scale, uint8_t len); + int (*set_scale)(struct rgbkbd *ctx, uint8_t offset, struct rgb_s scale, + uint8_t len); /** * Set global current cont...
Default code signing identity should be '-' for adhoc.
@@ -22,7 +22,7 @@ ASAN_OPTIONS = leak_check_at_exit=false CC = @CC@ CFLAGS = -I.. @CFLAGS@ $(OPTIM) CODE_SIGN = @CODE_SIGN@ -CODESIGN_IDENTITY = Developer ID +CODESIGN_IDENTITY = - DSOFLAGS = @DSOFLAGS@ $(CFLAGS) INSTALL = @INSTALL@ LDFLAGS = @LDFLAGS@ $(OPTIM)