message
stringlengths
6
474
diff
stringlengths
8
5.22k
fix(memory leak): free "discoverResult" .
@@ -902,7 +902,31 @@ void DiscoveryResFree(DiscoverRes discoverResult) { BoatFree(discoverResult.cc_res.layouts[i].groups[j].key); } + for (size_t k = 0; k < discoverResult.cc_res.layouts[i].groups[j].numEndorsers; k++) + { + /* code */ + BoatFree(discoverResult.cc_res.layouts[i].groups[j].endorsers[k].Endpoint); + if(...
permalinks: uniform appearance for collection links fixes urbit/landscape#759
@@ -29,17 +29,39 @@ function TranscludedLinkNode(props: { const [{ text }, link] = node.post.contents; if('reference' in link) { const permalink = referenceToPermalink(link).link; - return <PermalinkEmbed transcluded={transcluded + 1} api={api} link={permalink} association={assoc} /> - + return <PermalinkEmbed transclu...
board/kinox/board.h: Format with clang-format BRANCH=none TEST=none
#include "registers.h" #include "usbc_config.h" -enum adp_id { - UNKNOWN, - TINY, - TIO1, - TIO2, - TYPEC -}; +enum adp_id { UNKNOWN, TINY, TIO1, TIO2, TYPEC }; struct adpater_id_params { int min_voltage; @@ -170,10 +164,7 @@ enum temp_sensor_id { TEMP_SENSOR_COUNT }; -enum ioex_port { - IOEX_C0_NCT38XX = 0, - IOEX_POR...
Fix missing bn_mul_mont symbol in solaris fips module
@@ -24,11 +24,6 @@ __attribute__ ((visibility("hidden"))) #endif unsigned int OPENSSL_sparcv9cap_P[2] = { SPARCV9_TICK_PRIVILEGED, 0 }; -/* - * TODO(3.0): Temporarily disabled some assembler that hasn't been brought into - * the FIPS module yet. - */ -#ifndef FIPS_MODE int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, ...
ACRN:DM:VGPU: Handle the scanout_id for cursor virtio-gpu-cmd The virtio-gpu in guest_vm also passes the scanout_id for cursor operation. So this scanout_id should be used in course of handling cursor operation.
@@ -1389,7 +1389,7 @@ virtio_gpu_cmd_update_cursor(struct virtio_gpu_command *cmd) cur.height = r2d->height; pixman_image_ref(r2d->image); cur.data = pixman_image_get_data(r2d->image); - vdpy_cursor_define(gpu->vdpy_handle, 0, &cur); + vdpy_cursor_define(gpu->vdpy_handle, req.pos.scanout_id, &cur); pixman_image_unref(r...
Added cache status to the pre-defined CloudFront log-format.
@@ -70,7 +70,7 @@ static const GPreConfLog logs = { "%h %^[%d:%t %^] \"%r\" %s %b", /* CLF */ "%v:%^ %h %^[%d:%t %^] \"%r\" %s %b", /* CLF+VHost */ "%d %t %^ %m %U %q %^ %^ %h %u %R %s %^ %^ %L", /* W3C */ - "%d\\t%t\\t%^\\t%b\\t%h\\t%m\\t%v\\t%U\\t%s\\t%R\\t%u\\t%q\\t%^\\t%^\\t%^\\t%^\\t%^\\t%^\\t%T\\t%^\\t%K\\t%k\\t%...
ci: upgrade setuptool in centos7.6 docker
@@ -4,6 +4,7 @@ RUN rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org RUN yum --enablerepo=elrepo-kernel install -y kernel-ml-headers RUN yum install -y python-devel python3 python3-pip python3-devel python3-pybind11 cmake make libuuid-devel json-c-devel gcc clang gcc-c++ hwloc-devel tbb-devel rpm-build rpmdev...
Ensure that we consume all the data when decoding an SPKI If we are decoding a SubjectPublicKeyInfo structure then we must use all of the data and must not have bytes "left over".
@@ -161,6 +161,7 @@ static int x509_pubkey_ex_d2i_ex(ASN1_VALUE **pval, if (ret <= 0 && !pubkey->flag_force_legacy) { const unsigned char *p; char txtoidname[OSSL_MAX_NAME_SIZE]; + size_t slen = publen; /* * The decoders don't know how to handle anything other than Universal @@ -190,9 +191,19 @@ static int x509_pubkey_...
Improve boolean values in connection URI Boolean values can now be "yes" / "no" and more. Unsupported values issue warnings
@@ -663,12 +663,26 @@ mongoc_uri_parse_option (mongoc_uri_t *uri, const char *str) BSON_APPEND_UTF8 (&uri->options, "w", value); } } else if (mongoc_uri_option_is_bool (key)) { - bson_append_bool (&uri->options, - key, - -1, - (0 == strcasecmp (value, "true")) || - (0 == strcasecmp (value, "t")) || - (0 == strcmp (valu...
Options should be in the top of the file
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.17) enable_testing() project(CLAP C CXX) +option(CLAP_BUILD_TESTS "Should CLAP build tests and the like?" OFF) + # If you use clap as a submodule of your plugin you need some interface projects # to allow you to link. clap-core gives you the include directory and clap-pl...
Change 'R' to include the max in the interval
@@ -901,7 +901,7 @@ BEGIN_DUAL_PHASE_1(random) } Usz key = y * width + x; key = hash32_shift_mult((y * width + x) ^ (Tick_number << UINT32_C(16))); - Usz val = key % (max - min) + min; + Usz val = key % (max + 1 - min) + min; POKE(1, 0, glyph_of(val)); END_PHASE
Final readme tweaks for now.
@@ -29,8 +29,8 @@ Two builds are currently provided for each release: These are the recommended places to obtain the source code from: -* The latest source code binary on the [downloads page](https://bitbucket.org/libtcod/libtcod/downloads). -* Clone the repository with Mercurial and checkout the tag for the latest ver...
Switch from passport/cpp/fastcgi-mods/library/blackbox2 to library/blackbox2
ALLOW yweb/yasap/pdb/pdb-backend/src -> passport/python/library/cookiemy ALLOW mail/ava/daemon -> passport/cpp/libs/utils ALLOW mail/libblackbox2 -> passport/cpp/libs/auth_core -ALLOW maps/wikimap/mapspro/services/mrc/libs/blackbox_client -> passport/cpp/fastcgi-mods/library/blackbox2 # PERSISTENT EXCEPTION: 'ya yav' h...
docs - note that pxf does note yet support filter pushdown
<shortdesc>Data managed by your organization may already reside in external sources. The Greenplum Platform Extension Framework (PXF) provides access to this external data via built-in connectors that map an external data source to a Greenplum Database table definition.</shortdesc> <body> <p>PXF is installed with HDFS,...
yanglint BUGFIX error message typo
@@ -180,7 +180,7 @@ fill_cmdline_file(struct ly_set *set, struct ly_in *in, const char *path, LYD_FO } if (set && ly_set_add(set, rec, 1, NULL)) { free(rec); - YLMSG_E("Storing data file information failes.\n"); + YLMSG_E("Storing data file information failed.\n"); return NULL; } rec->in = in;
fpgasupdate: update per new driver flow The driver flow was changed such that reading the "error" sysfs node in other than the "idle" state results in EBUSY. To fix, rather than polling "error" periodically, only check it on state transition and only after having verified the "idle" status.
@@ -429,6 +429,8 @@ def update_fw(args, pac): if retries >= max_retries: os.remove(tfile.name) return errno.ETIMEDOUT, 'Secure update timed out' + + if status.value == 'idle': e = error.value if e: os.remove(tfile.name) @@ -451,11 +453,13 @@ def update_fw(args, pac): if retries >= max_retries: os.remove(tfile.name) ret...
fix llnl makefile
include ../../Makefile.defs TESTNAME = clang_llnl-58 -TESTSRC_MAIN = clang_llnl-58.cc +TESTSRC_MAIN = clang_llnl_58.cc TESTSRC_AUX = TESTSRC_ALL = $(TESTSRC_MAIN) $(TESTSRC_AUX) +OMP_FLAGS = -c -D__HIP_PLATFORM_AMD__ -I$(AOMPHIP)/include -O3 -g -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdh...
make me happy
@@ -84,7 +84,7 @@ rminus.class.sources := cyclone_objects/binaries/control/rminus.c round.class.sources := cyclone_objects/binaries/control/round.c scale.class.sources := cyclone_objects/binaries/control/scale.c -# lL CLASSES: +# SIGNAL CLASSES: acos~.class.sources := cyclone_objects/binaries/audio/acos.c acosh~.class....
Fix typo a_dither -> x_dither
@@ -170,7 +170,7 @@ void show_help(void) " burkes -> Burkes' method\n" " a_dither -> positionally stable\n" " arithmetic dither\n" - " a_dither -> positionally stable\n" + " x_dither -> positionally stable\n" " arithmetic xor based dither\n" "-f FINDTYPE, --find-largest=FINDTYPE\n" " choose method for finding the large...
thread local variables need to be declared thread local with the new openmp alloator
#include <cmath> +#include <omp.h> using namespace std; int main(int argc, char **argv) @@ -6,12 +7,14 @@ int main(int argc, char **argv) #pragma omp target { float intpart, res; + #pragma omp allocate(intpart) allocator(omp_thread_mem_alloc) res = modff(1.1f, &intpart); } #pragma omp target { double intpart, res; + #p...
improve error messages to have the name of the pinned map file
@@ -1700,16 +1700,18 @@ int h2o_socket_ebpf_setup(void) goto Exit; } if (m.type != map_attr.type) { - h2o_error_printf("Unexpected map type: expected %d but got %d\n", map_attr.type, m.type); + h2o_error_printf("%s has an unexpected map type: expected %d but got %d\n", H2O_EBPF_RETURN_MAP_PATH, map_attr.type, + m.type)...
Slight addition about other Themis-based products.
@@ -32,6 +32,8 @@ Themis provides four important cryptographic services: **Want to go straight to the detailed documentation?** [Please proceed here](https://www.github.com/cossacklabs/themis/wiki). +We created Themis to build other products on top of it - i.e. [Acra](https://github.com/cossacklabs/acra) and [Hermes](h...
Documentation: Update `prettier` version
@@ -16,7 +16,7 @@ cd "$SOURCE" || { PRETTIER="$(which prettier)" if [ -z "${PRETTIER}" ]; then - printf 2>&1 'Please install `prettier` (npm install --global prettier@1.16.4)\n' + printf 2>&1 'Please install `prettier` (npm install --global prettier@1.18.2)\n' exit 1 fi
ExtendedTools: Disable disk events when tab disabled
@@ -180,6 +180,20 @@ BOOLEAN EtpDiskPageCallback( // Nothing } return TRUE; + case MainTabPageSelected: + { + BOOLEAN selected = (BOOLEAN)Parameter1; + + if (selected) + { + EtDiskEnabled = TRUE; + } + else + { + EtDiskEnabled = FALSE; + } + } + break; case MainTabPageExportContent: { PPH_MAIN_TAB_PAGE_EXPORT_CONTENT e...
disable udp by default
@@ -319,7 +319,7 @@ static void settings_init(void) { settings.use_cas = true; settings.access = 0700; settings.port = 11211; - settings.udpport = 11211; + settings.udpport = 0; /* By default this string should be NULL for getaddrinfo() */ settings.inter = NULL; settings.maxbytes = 64 * 1024 * 1024; /* default is 64MB ...
OcBootManagementLib: Log APFS recovery location failure code
@@ -811,6 +811,7 @@ AddBootEntryFromBless ( &RecoveryDeviceHandle ); if (EFI_ERROR (Status)) { + DEBUG ((DEBUG_INFO, "OCB: APFS recovery is not present - %r\n", Status)); continue; }
Disables (tmp) the rsa topology manager tests
@@ -29,14 +29,15 @@ target_include_directories(rsa_topology_manager PRIVATE src) target_include_directories(rsa_topology_manager PRIVATE include) target_link_libraries(rsa_topology_manager PRIVATE Celix::log_helper Celix::deprecated_rsa_spi) -if (ENABLE_TESTING) - find_package(CppUTest REQUIRED) - find_package(Jansson ...
Fix no-dh and no-dsa Since 20-cert-select.conf will vary depending in no-dh and no-dsa, don't check it against original when those options are selected
@@ -46,6 +46,8 @@ my $no_dtls = alldisabled(available_protocols("dtls")); my $no_npn = disabled("nextprotoneg"); my $no_ct = disabled("ct"); my $no_ec = disabled("ec"); +my $no_dh = disabled("dh"); +my $no_dsa = disabled("dsa"); my $no_ec2m = disabled("ec2m"); my $no_ocsp = disabled("ocsp"); @@ -58,7 +60,7 @@ my %conf_...
web-ui: make hint smaller
@@ -122,7 +122,7 @@ export default class AddDialog extends Component { }} /> </div> - <div style={{ flex: 'initial', marginLeft: 48, marginTop: 12 }}> + <div style={{ flex: 'initial', marginLeft: 48, marginTop: 12, fontSize: '0.75em' }}> <i>Hint: create a #0 sub-key in a key without children to turn it into an array</i...
README: Add link to Wikipedia article on Python. For the case that README will be read by someone completely not familiar with Python.
@@ -6,8 +6,9 @@ The Pycopy project [Web site](https://pycopy.github.io/) | [Documentation](https://pycopy.readthedocs.io/) Pycopy aims to develop and maintain a **minimalist**, lightweight, -and extensible implementation of Python(-compatible) language. -Pycopy to CPython is a similar thing as +and extensible implement...
remove default DDR values from red_pitaya.xml
<set param="PCW::PRESET::GLOBAL::DEFAULT" value="powerup" /> <set param="PCW::UIPARAM::DDR::PARTNO" value="MT41J256M16 RE-125" /> <set param="PCW::UIPARAM::DDR::BUS_WIDTH" value="16 Bit" /> - <set param="PCW::UIPARAM::DDR::DRAM_WIDTH" value="16 Bits" /> - <set param="PCW::UIPARAM::DDR::DEVICE_CAPACITY" value="4096 MBit...
[CUDA] Handle free_ptr for clSVMFree
@@ -137,6 +137,7 @@ pocl_cuda_init_device_ops (struct pocl_device_ops *ops) ops->free_queue = pocl_cuda_free_queue; ops->alloc_mem_obj = pocl_cuda_alloc_mem_obj; ops->free = pocl_cuda_free; + ops->free_ptr = pocl_cuda_free_ptr; ops->compile_kernel = pocl_cuda_compile_kernel; ops->map_mem = pocl_cuda_map_mem; ops->submi...
Rejigger the meson file
-project('libent', 'c', 'cpp', +project('libent', 'c', default_options : ['c_std=c99', 'cpp_std=c++11'], version : '0.0.1', license : 'MIT') @@ -9,14 +9,14 @@ inc = include_directories('include') ent_sources = ['ent.c'] -libent_dep = declare_dependency(sources : ent_sources, - compile_args : ['-Wall'], - include_direct...
[core] log stream id with debug.log-state-handling log stream id with debug.log-state-handling in connection_state_machine_loop() (id will be 0 for HTTP/2 connection, but not for streams on connection) (id will be 0 for HTTP/1.x requests)
@@ -1042,7 +1042,8 @@ connection_state_machine_loop (request_st * const r, connection * const con) do { if (r->conf.log_state_handling) { log_error(r->conf.errh, __FILE__, __LINE__, - "state for fd %d %s", con->fd, connection_get_state(r->state)); + "state for fd:%d id:%d %s", con->fd, r->h2id, + connection_get_state(r...
Reduce suggest maxCollations from 100 to 10
<str name="fl">score</str> <str name="spellcheck.collate">true</str> <str name="spellcheck.collateExtendedResults">true</str> - <str name="spellcheck.maxCollations">100</str> + <str name="spellcheck.maxCollations">10</str> <str name="spellcheck.maxCollationTries">100</str> <str name="spellcheck.count">10</str> <str nam...
Modify Text error in license
########################################################################### # -# Copyright 2016 Samsung Electronics All Rights Reserved. +# Copyright 2017 Samsung Electronics All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with th...
dev-tools/numpy: better binary name macro
@@ -96,14 +96,14 @@ include_dirs = $OPENBLAS_INC EOF %endif -CFLAGS="%{optflags} -fno-strict-aliasing" %{python3_prefix} setup.py build $COMPILER_FLAG +CFLAGS="%{optflags} -fno-strict-aliasing" %__python3 setup.py build $COMPILER_FLAG %install # OpenHPC compiler/mpi designation %ohpc_setup_compiler -%{python3_prefix} s...
Fix in RSA discovery-etcd: remote services where not published in etcd
@@ -174,10 +174,10 @@ static celix_status_t etcdWatcher_addOwnFramework(etcd_watcher_pt watcher) } } - if (etcd_get(localNodePath, &value, &modIndex) != true) { + if (etcd_get(localNodePath, &value, &modIndex) != ETCDLIB_RC_OK) { etcd_set(localNodePath, endpoints, ttl, false); } - else if (etcd_set(localNodePath, endpo...
Buildbot test: optimization level
@@ -160,8 +160,8 @@ endif () # SETTINGS FOR UNIX COMPILER if ("x${CMAKE_C_COMPILER_ID}" STREQUAL "xClang" OR "x${CMAKE_C_COMPILER_ID}" STREQUAL "xGNU") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -pedantic -Wall -Wextra") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c99 -pedantic -Wall -Wextra") + set(CMAKE_C_FLAG...
Move output argument to the end of the argument list
@@ -2017,8 +2017,8 @@ int get_min_vertex_from_lp_sol(int scc1, int scc2, PlutoProg *prog, return min; } -bool *get_colourable_dims(int scc_id, PlutoProg *prog, int *colour, int *num, - int *discarded_list, int num_discarded) { +bool *get_colourable_dims(int scc_id, PlutoProg *prog, int *colour, + int *discarded_list, i...
Add full key operation method to README
@@ -273,8 +273,13 @@ Don't forget restart core. * How to key typing? -Unfortunery, libretro is unuseful for keytyping. -Please use NP21/w. +There are two ways: + +1. map the 'enable hotkeys' hotkey in settings > input > input hotkey binds and RetroArch will stop listening for hotkeys unless/until you hold that button/k...
Separating UWP arm and x86 deploying
@@ -29,6 +29,24 @@ namespace "config" do $current_platform = "uwp" unless $current_platform end + task :release do + targetsdk = 'ARM' + targetsdk = $app_config["uwp"]["target"] if $app_config["uwp"] && $app_config["uwp"]["target"] + if targetsdk == 'ARM' || targetsdk == 'arm' + $sdk = 'ARM' + $build_config = 'Release'...
explain ip-ratelimit-factor causes the log line and it is a per-query log line.
@@ -1180,7 +1180,7 @@ worker_handle_request(struct comm_point* c, void* arg, int error, char addrbuf[128]; addr_to_str(&repinfo->addr, repinfo->addrlen, addrbuf, sizeof(addrbuf)); - verbose(VERB_OPS, "ip_ratelimit allowed through for ip address %s ", + verbose(VERB_QUERY, "ip_ratelimit allowed through for ip address %s...
Avoid useless memory allocation in gp_create_restore_point() Function `gp_create_restore_point()` allocates memory for `context->cdb_pgresults.pg_results` before passing it to the `CdbDispatchCommand()`. This is unnecessary, as `CdbDispatchCommand()` would eventually call into `cdbdisp_returnResults()` to allocate memo...
@@ -70,8 +70,8 @@ gp_create_restore_point(PG_FUNCTION_ARGS) funcctx->tuple_desc = BlessTupleDesc(tupdesc); context = (Context *) palloc(sizeof(Context)); - context->cdb_pgresults.pg_results = - (struct pg_result **) palloc(getgpsegmentCount() * sizeof(struct pg_result *)); + context->cdb_pgresults.pg_results = NULL; + ...
Debug shows removed headers
@@ -358,6 +358,11 @@ pkt_name_indent = " " * longest_hdr_name_len #[ #{ #if T4P4S_EMIT != 1 #{ if (unlikely(hdr.pointer == NULL)) { +#{ #ifdef T4P4S_DEBUG +#{ if (hdr.was_enabled_at_initial_parse) { +#[ debug(" : -" T4LIT(#%02d ,status) "$$[status][%]{longest_hdr_name_len}{s}$$[status]{}{/%02dB} (invalidated)\n", pd->h...
CMake: rename file list
# granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. # -list( APPEND grib_api_srcs +list( APPEND eccodes_src_files grib_api.h eccodes.h action.c @@ -398,7 +398,7 @@ list( APPEND grib_api_srcs # We ship our own generated lex/yacc C files grib_yacc.c grib_...
Gracefully(ish) handle device disconnect for HID
@@ -187,6 +187,7 @@ static void *HAPIReceiver(void *v) { if (iface->actual_len < 0) { SurviveContext* ctx = iface->sv->ctx; SV_WARN("Error in hid read: %d", iface->actual_len); + iface->assoc_obj = 0; } // XXX TODO: Mark device as failed. return 0; @@ -749,6 +750,7 @@ int survive_vive_usb_poll(SurviveContext *ctx, void...
release: create and publish aptly repository if it does not exist
set -ex +# Arguments REPO_NAME=$1 REPO_PREFIX=$2 RELEASE_VERSION=$3 PACKAGE_REVISION=$4 +# Constants +GPG_KEY="A9A25CC1CC83E839" +KEYRING="/home/jenkins/.gnupg/pubring.kbx" +PASSPHRASE_FILE="/home/jenkins/.aptly/secret" + +REPO_SHOW_RET_VAL=0 +aptly repo show $REPO_NAME > /dev/null 2>&1 || REPO_SHOW_RET_VAL=$? +if [ $R...
Work CD-CI Add release prep steps. ***NO_CI***
@@ -29,6 +29,13 @@ jobs: # get commint message - powershell: | + if($env:StartReleaseCandidate -eq "true") + { + # this is a release prep so NO build + echo "##vso[task.setvariable variable=SKIP_BUILD;isOutput=true]true" + } + else + { # get commit details, if this is a PR if($env:Build_SourceBranch -like "refs/pull*")...
alphabetical order for feature list
@@ -37,33 +37,33 @@ static char **g_argv = NULL; const char *kadnode_version_str = "KadNode v"MAIN_VERSION" (" -#ifdef LPD -" lpd" -#endif #ifdef BOB " bob" #endif #ifdef CMD " cmd" #endif -#ifdef NSS -" nss" -#endif #ifdef DEBUG " debug" #endif #ifdef DNS " dns" #endif +#ifdef LPD +" lpd" +#endif #ifdef FWD_NATPMP " n...
Switch to bash optarg for cli handling in init-submodules script
@@ -6,17 +6,24 @@ set -o pipefail RDIR=$(git rev-parse --show-toplevel) -NO_FIRESIM=false +_usage() { + echo "usage: ${0} [--no-firesim]" >&2 + exit 1 +} -while test $# -gt 0 -do - case "$1" in - --no-firesim) - NO_FIRESIM=true; - ;; +NO_FIRESIM=false +while getopts 'h-:' opt ; do + case ${opt} in + -) + case ${OPTARG}...
[util] Fix msvc warning. Note: mandatory check (NEED_CHECK) was skipped
@@ -92,7 +92,7 @@ private: void TestBitCast() { // Change sign of float { - const float floatValue = 17.33; + const float floatValue = 17.33f; ui32 ui32Value = BitCast<ui32>(floatValue); ui32Value ^= (ui32)1 << 31; UNIT_ASSERT_VALUES_EQUAL(-floatValue, BitCast<float>(ui32Value));
Minor style tweaks Because we increased the column limit to 100, we don't need to line break these anymore.
@@ -167,15 +167,11 @@ end -- If [output_file_name] is nil then the output is written to a file in the same -- directory as [input_file_name] and having the same base name as the input file. function driver.compile(argv0, opt_level, input_ext, output_ext, input_file_name, output_file_name) - local input_base_name, err =...
Add example release target
-basic_flags := -std=c99 -Wall -Wpedantic -Wextra +basic_flags := -std=c99 -Wall -Wpedantic -Wextra -pipe debug_flags := -DDEBUG -O0 -ggdb -feliminate-unused-debug-symbols +release_flags := -DNDEBUG -O2 -s -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fpie -Wl,-pie library_flags := -lncurses source_files := main.c @@ -...
[mod_magnet] lighty.r.resp_body.get (replacement for lighty.r.req_attr["response.body"])
@@ -2124,27 +2124,23 @@ static int magnet_respbody(lua_State *L) { #if 0 /*(future: provide pairs() interface to iterate over chunkqueue)*/ /*(might convert chunks into table of strings, {filename="..."})*/ /*(what about c->offset into chunk?)*/ + #endif case 'g': /* get; r.resp_body.get */ if (k[1] == 'e' && k[2] == '...
removing extra if statement and added comments
@@ -454,9 +454,9 @@ static int dcmp_compare_data( /* open source file */ int src_fd = mfu_open(src_name, O_RDONLY); if (src_fd < 0) { - if (src_fd < 0) { + /* set is_src_err in so we know the + * open failure was on the src side */ *is_src_err = 1; - } return -1; } @@ -478,6 +478,8 @@ static int dcmp_compare_data( if (...
Jenkinsfile: enable website deployment
@@ -160,9 +160,9 @@ def main() { parallel generateArtifactStages() } - // stage("Deploy Website") { - // deployWebsite() - // } + stage("Deploy Website") { + deployWebsite() + } // maybeStage("Deploy Web UI", isMaster()) { // deployWebUI()
KDB_EXEC_PATH: Fix pointer after getenv
@@ -52,7 +52,13 @@ void tryExternalCommand (char ** argv) { std::vector<std::string> pathes; - std::string execPath = getenv ("KDB_EXEC_PATH"); + char * execPathPtr = getenv ("KDB_EXEC_PATH"); + if (execPathPtr) + { + // The string pointed by the pointer returned by getenv shall + // not be modified. The constructor of...
Whitespace cleanup & comment spacing.
== |= {naz/hair los/tape} ^+ *sab + :: :: vex: fenced span :: =/ vex/(like tape) (fex naz los) ?~ q.vex vex + :: :: hav: reparse full fenced text :: =/ hav ((full sab) [naz p.u.q.vex]) + :: :: reparsed error position is always at start :: ?~ q.hav [naz ~] + :: :: the complete span with the main product :: :- p.vex ++ w...
Fix big endian putle. Well, we don't support any big endian systems, but that doens't mean we can't patch them...
@@ -20,13 +20,13 @@ pkg std = generic puthost64 = {buf, v; -> puthost(buf, (v : uint64), 8)} generic putle64 = {buf, v; -> putle(buf, (v : uint64), 8)} generic putbe64 = {buf, v; -> putbe(buf, (v : uint64), 8)} -generic puthost32 = {buf, v; -> puthost(buf, (v : uint64), 4)} +generic puthost32 = {buf, v; -> puthost(buf,...
addressing travis compilation issue
#!/bin/bash git clone https://github.com/mishakb/ISiTGR -cd ISiTGR/camb/fortran -make - -# at this point the make file leaves you in the fortran dir -cd Release +cd ISiTGR/camb +python setup.py install
VERSION bump to version 1.3.23
@@ -30,7 +30,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 3) -set(SYSREPO_MICRO_VERSION 22) +set(SYSREPO_MICRO_VERSION 23) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
mallocated->end is no longer used
@@ -312,7 +312,7 @@ M3Result ResizeMemory (IM3Runtime io_runtime, u32 i_numPages) memory->mallocated->maxStack = (m3reg_t *) io_runtime->stack + io_runtime->numStackSlots; - m3log (runtime, "resized old: %p; mem: %p; end: %p; pages: %d", oldMallocated, memory->mallocated, memory->mallocated->end, memory->numPages); + m...
framework/media/audio: Remove dead code to fix building error
@@ -1958,10 +1958,6 @@ void print_audio_card_info(audio_io_direction_t direct) dbg_noarg("Volume : %d Max Volume : %d\n", card->config[j].volume, card->config[j].max_volume); dbg_noarg("Supports Process Type : "); - if ((card->config[j].device_process_type & get_process_type_audio_param_value(AUDIO_DEVICE_PROCESS_TYPE_...
allow hostnames in blacklist up to 255 bytes
@@ -104,7 +104,7 @@ void whitelist_prefix(char *ip, int prefix_len) static int init_from_string(char *ip, int value) { - int prefix_len = 32; + int prefix_len = 256; char *slash = strchr(ip, '/'); if (slash) { // split apart network and prefix length *slash = '\0'; @@ -113,7 +113,7 @@ static int init_from_string(char *...
examples/embedding: Add code markup and fix typo in README.md.
-Example of embedding MicroPython in a standlone C application -============================================================= +Example of embedding MicroPython in a standalone C application +============================================================== This directory contains a (very simple!) example of how to embed a...
nimble/ll: Fix checking lastPaEventCoutner in sync transfer This was affecting LL/CON/SLA/BV-106-C qualification test case.
@@ -1770,7 +1770,7 @@ ble_ll_sync_periodic_ind(struct ble_ll_conn_sm *connsm, uint16_t conn_event_count; uint8_t sync_anchor_usecs; const uint8_t *rpa = NULL; - uint16_t last_pa_diff; + int last_pa_diff; uint32_t sync_anchor; const uint8_t *addr; uint16_t event_cntr; @@ -1797,7 +1797,7 @@ ble_ll_sync_periodic_ind(struc...
Check ngtcp2_conn_get_expiry to avoid regression
@@ -7433,6 +7433,7 @@ void test_ngtcp2_conn_retire_stale_bound_dcid(void) { uint8_t buf[2048]; size_t pktlen; ngtcp2_tstamp t = 0; + ngtcp2_tstamp expiry; int64_t pkt_num = 0; ngtcp2_frame fr; int rv; @@ -7470,6 +7471,10 @@ void test_ngtcp2_conn_retire_stale_bound_dcid(void) { CU_ASSERT(ngtcp2_ringbuf_len(&conn->rx.pat...
BugID:23252751: uAI S2 function, support ODLA, fix file not close problem
@@ -375,7 +375,7 @@ static int uai_load_scale_from_file(int8_t layer_id, uai_quant_scale_type type, } UAI_LOGD("load model data from flash success !\n"); - + fclose(fd); UAI_RET_WITH_MEM_FREE(model_quant_scale, UAI_SUCCESS); } #endif
Update test_setid.cpp
@@ -72,12 +72,12 @@ BOOST_AUTO_TEST_CASE(test_setid) // Check that 3rd node has its new name error = EN_getnodeindex(ph, newid_2, &index); BOOST_REQUIRE(error == 0); - BOOST_CHECK(index == 3); + BOOST_REQUIRE(index == 3); // Check that 3rd link has its new name error = EN_getlinkindex(ph, newid_4, &index); BOOST_REQUIR...
README.md: Use version 2.05.11
@@ -34,11 +34,11 @@ https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices ### Install deCONZ 1. Download deCONZ package - wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.10-qt5.deb + wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.11-qt5.deb 2. Install deCON...
parser: fix double-free
@@ -564,7 +564,6 @@ static int parser_conf_file(const char *cfg, struct mk_rconf *fconf, decoders = NULL; } - mk_rconf_free(fconf); return 0; fconf_error: @@ -688,7 +687,6 @@ static int multiline_parser_conf_file(const char *cfg, struct mk_rconf *fconf, flb_sds_destroy(key_group); } - mk_rconf_free(fconf); return 0; fc...
Drop opt_params condition for ECDSA case
@@ -708,8 +708,8 @@ oe_result_t oe_sgx_qe_get_quote( } else // ECDSA { - // For EPID, no opt_params is taken. - if (opt_params || opt_params_size) + // For EPID, opt_params_size should be zero. + if (opt_params_size) OE_RAISE(OE_INVALID_PARAMETER); }
VERSION bump to version 0.12.30
@@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 12) -set(LIBNETCONF2_MICRO_VERSION 29) +set(LIBNETCONF2_MICRO_VERSION 30) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(L...
User: disable stringop-overflow warning in recent gcc for utilities This warning is triggered in EDK II MdePkg code
@@ -64,6 +64,10 @@ ifeq ($(shell echo 'int a;' | "${CC}" -Wno-address -x c -c - -o /dev/null 2>&1), CFLAGS += -Wno-address endif +ifeq ($(shell echo 'int a;' | "${CC}" -Wno-stringop-overflow -x c -c - -o /dev/null 2>&1),) + CFLAGS += -Wno-stringop-overflow +endif + ifeq ($(DIST),Darwin) ifneq ($(FUZZ),1) CFLAGS += -mma...
Updated MCHP project file to build on windows
<makeCustomizationPreStepEnabled>false</makeCustomizationPreStepEnabled> <makeCustomizationPreStep/> <makeCustomizationPostStepEnabled>true</makeCustomizationPostStepEnabled> - <makeCustomizationPostStep>${MP_CC_DIR}/xc32-objcopy -I ihex ${ImagePath} -O binary ${ImageDir}/mplab.${IMAGE_TYPE}.bin &amp;&amp; python ../.....
The default conv_form is uncompressed Fixes
@@ -92,8 +92,8 @@ currently implemented EC parameters names and exit. =item B<-conv_form> This specifies how the points on the elliptic curve are converted -into octet strings. Possible values are: B<compressed> (the default -value), B<uncompressed> and B<hybrid>. For more information regarding +into octet strings. Pos...
Make sure filter id actually persists.
++ delta $? diff-constitution $% [%checking who=@p part=(unit hull)] + [%filter id=@ud] == == :: :: |= [b=bone s=ship p=path] ^- (unit move) ?. ?=([%state *] p) ~ - ?: ?=(%checking -.det) ~ + ?: ?=(?(%checking %filter) -.det) ~ `[b %diff %constitution-diff det] :: ++ ta ?: ?=(%error -.rep) ~& [%filter-error--retrying m...
Fix new recovery test for log_error_verbosity=verbose case The new test is from commit With this setting messages have SQL error numbers included, so that needs to be provided for in the pattern looked for. Backpatch to all live branches like the original.
@@ -133,7 +133,7 @@ while ($max_attempts-- >= 0) last if ( find_in_log( - $node_standby, "WARNING: creating missing directory: pg_tblspc/", + $node_standby, qr!WARNING: ( [A-Z0-9]+:)? creating missing directory: pg_tblspc/!, $logstart)); sleep 1; }
haskell-cmake-improvements: handle nonexisting directory
@@ -100,6 +100,7 @@ RUN git config --global user.email 'Jenkins <autobuilder@libelektra.org>' \ && git config --global user.name 'Jenkins' # Handle Haskell dependencies +RUN mkdir -p /home/jenkins/elektra-cabal-sandbox WORKDIR /home/jenkins/elektra-cabal-sandbox RUN cabal update && \ cabal sandbox init && \
[Kernel] Spinlocks retain their last owner PID, for debugging
@@ -49,6 +49,7 @@ void spinlock_acquire(spinlock_t* lock) { } printf("Spinlock: [%d] found contended spinlock with flag %d at %d: %s owned by %d\n", getpid(), lock->flag, contention_start, lock->name, lock->owner_pid); + assert(false, "contended spinlock"); } // Spin until the lock is released @@ -83,7 +84,6 @@ void sp...
publish: remove 'join notebook' link
@@ -123,9 +123,6 @@ export class Sidebar extends Component { <Link to="/~publish/new" className="green2 pa4 f9 dib"> New Notebook </Link> - <Link to="/~publish/join" className="f9 gray2"> - Join Notebook - </Link> </div> <div className="overflow-y-auto pb1" style={{ height: 'calc(100% - 82px)' }}
nrf52820_microbit: Reduce CDC buffer size to 64B to reduce WebUSB lost chars. Issue discussion:
#define USBD_CDC_ACM_EP_BULKIN_STACK 0 #define USBD_CDC_ACM_WMAXPACKETSIZE1 64 #define USBD_CDC_ACM_HS_ENABLE1 1 -#define USBD_CDC_ACM_HS_WMAXPACKETSIZE1 512 +#define USBD_CDC_ACM_HS_WMAXPACKETSIZE1 64 #define USBD_CDC_ACM_HS_BINTERVAL1 1 #define USBD_CDC_ACM_CIF_STRDESC L"mbed Serial Port" #define USBD_CDC_ACM_DIF_STR...
libhfuzz/memcmp: remove lone ;
@@ -32,7 +32,6 @@ static inline int HF_strcmp(const char* s1, const char* s2, uintptr_t addr) { } int ret = (int)s1[i] - (int)s2[i]; - ; if (ret) { instrumentUpdateCmpMap(HF_cmphash(addr, s1, s2), i); instrumentAddConstStr(s1);
framework/araui: Fix typo fix ui_animation.h typo
@@ -114,7 +114,8 @@ ui_anim_t ui_delay_anim_create(uint32_t duration); * The last argument must be NULL, it means end of arguments. * Sequence animation will run each animation for each duration sequentially. * - * @param[in] from_scale The scale to start + * @param[in] anim First Animation + * @param[in] ... Animation...
docs: remove sles12 bits
In addition to the \OHPC{} package repository, the {\em master} host also requires access to the standard distro repositories in order to resolve -necessary dependencies. For \baseOS{}, the requirements are to have access to -both the base and SDK repositories. In addition, add-on modules are needed to -resolve depende...
CMake: Fix incorrect compiler flags * Fix CMake compiler args. Replace -stdlib=libc++ with -std=gnu11 & apply it to clang too. Remove redundant -fstrict-aliasing. Remove warned and redundant -Weverything
@@ -24,11 +24,12 @@ if(MSVC) add_definitions(-DNDEBUG -D_WINDOWS -D_USRDLL -DCGLM_EXPORTS -DCGLM_DLL) add_compile_options("/W3" "/Ox" "/Gy" "/Oi" "/TC" "/analyze") else() - add_compile_options("-Wall" "-Werror" "-O3") + add_compile_options("-Wall" "-Werror" "-std=gnu11" "-O3") if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Cl...
Improve error message formatting;
@@ -173,14 +173,16 @@ void lovrInit(lua_State* L, int argc, char** argv) { "end " "function lovr.errhand(message) " - " local stackTrace = debug.traceback('Error: ' .. tostring(message), 1) " + " local stackTrace = debug.traceback('Error: ' .. tostring(message), 3) " " local message = stackTrace:gsub('\\n[^\\n]+$', '')...
Typo in python reentrant test.
# error "The path to the Python port is not defined" #endif -class metacall_node_reentrant_test : public testing::Test +class metacall_python_reentrant_test : public testing::Test { public: }; -TEST_F(metacall_node_reentrant_test, DefaultConstructor) +TEST_F(metacall_python_reentrant_test, DefaultConstructor) { metacal...
BugID:17642035:[system]fix lost of firmware version report
@@ -231,9 +231,6 @@ int iotx_report_devinfo(void *pclient) /* report Firmware version */ int iotx_report_firmware_version(void *pclient) { -#if defined(BUILD_AOS) - return SUCCESS_RETURN; -#else int ret; char topic_name[IOTX_URI_MAX_LEN + 1] = {0}; char msg[FIRMWARE_VERSION_MSG_LEN] = {0}; @@ -290,7 +287,6 @@ int iotx_...
style(MLNUIBlock): make variable names clear.
@@ -137,13 +137,13 @@ static int mlnui_errorFunc_traceback (lua_State *L) { [self callIfCan]; #else @weakify(self); - NSArray *arguments = self.arguments.copy; + NSArray *args = self.arguments.copy; [self reset]; MLNUIKitInstance *instance = MLNUI_KIT_INSTANCE(self.luaCore); MLNUILazyBlockTask *task = [MLNUILazyBlockTa...
Remove the unused token.IDUnderscore
@@ -437,11 +437,10 @@ const ( IDU32 = ID(0x126) IDU64 = ID(0x127) - IDUnderscore = ID(0x130) - IDThis = ID(0x131) - IDIn = ID(0x132) - IDOut = ID(0x133) - IDBase = ID(0x134) + IDThis = ID(0x130) + IDIn = ID(0x131) + IDOut = ID(0x132) + IDBase = ID(0x133) // TODO Read/Write 24 bits? It might be useful for RGB triples. @...
gsettings: lock sync and init
@@ -396,6 +396,7 @@ static void elektra_settings_key_changed (GDBusConnection * connection G_GNUC_UN const gchar * object_path G_GNUC_UNUSED, const gchar * interface_name G_GNUC_UNUSED, const gchar * signal_name G_GNUC_UNUSED, GVariant * parameters, gpointer user_data) { + g_mutex_lock (&elektra_settings_kdb_lock); g_l...
change pause time for elk
@@ -69,7 +69,7 @@ then echo "Configure ELK" cd $ELASTICSEARCH_HOME/bin sudo -E su datafari -p -c "bash elasticsearch -p $ELASTICSEARCH_PID_FILE" & - sleep 15 + sleep 10 #Test if Elasticsearch is up, if not then exit curl -s --fail -XGET http://localhost:9200/ || { echo "Fail to reach Elasticsearch on localhost:9200"; e...
bq257x0: Fix step size of minimum system voltage The step size of minimum system voltage for bq25710 is 256mv and bq25720 is 100mv. BRANCH=none TEST=buildall passes
#endif /* Min System Voltage Register */ -#define BQ25710_MIN_SYSTEM_VOLTAGE_STEP_MV 100 -#define BQ25720_VSYS_MIN_VOLTAGE_STEP_MV 256 +#define BQ25710_MIN_SYSTEM_VOLTAGE_STEP_MV 256 +#define BQ25720_VSYS_MIN_VOLTAGE_STEP_MV 100 extern const struct charger_drv bq25710_drv;
OpenCanopy: Fix input handle usage
@@ -337,12 +337,12 @@ GuiPointerConstruct ( ASSERT (DefaultY < Height); Status = InternalHandleProtocolFallback ( - &gST->ConsoleInHandle, + gST->ConsoleInHandle, &gEfiSimplePointerProtocolGuid, (VOID **)&Context.Pointer ); Status2 = InternalHandleProtocolFallback ( - &gST->ConsoleInHandle, + gST->ConsoleInHandle, &gEf...
Use mbedtls_xor in TLS messaging layer
@@ -511,15 +511,12 @@ static void ssl_build_record_nonce( unsigned char *dst_iv, unsigned char const *dynamic_iv, size_t dynamic_iv_len ) { - size_t i; - /* Start with Fixed IV || 0 */ memset( dst_iv, 0, dst_iv_len ); memcpy( dst_iv, fixed_iv, fixed_iv_len ); dst_iv += dst_iv_len - dynamic_iv_len; - for( i = 0; i < dyn...
OpenLinuxBoot: Fixed memory access
@@ -182,7 +182,7 @@ CreateRootPartuuid ( return EFI_OUT_OF_RESOURCES; } - NumPrinted = AsciiSPrint (*Dest, Length + 1, "%a%g", "root=PARTUUID=", gPartuuid); + NumPrinted = AsciiSPrint (*Dest, Length + 1, "%a%g", "root=PARTUUID=", &gPartuuid); ASSERT (NumPrinted == Length); // @@ -450,7 +450,7 @@ InsertRootOption ( DEBU...
rocm 4.4 roct needs libudev-dev
sudo apt-get install g++-5 g++-7 pkg-config libpci-dev libnuma-dev libffi-dev git python libopenmpi-dev gawk mesa-common-dev # Additional packages used by rocgdb - sudo apt-get install python3 texinfo libbison-dev bison flex libbabeltrace-dev python3-pip libncurses5-dev liblzma-dev python3-setuptools python3-dev libpyt...
modinfo BUGFIX adding top-level defaults
@@ -586,11 +586,9 @@ sr_xpath_oper_data_get(const struct lys_module *ly_mod, const char *xpath, const goto cleanup; } - if (*oper_data) { /* add default state data so that parents exist and we ask for descendants * that can exist (it should not fail with TRUSTED flag, we do not care even if it does) */ lyd_validate_mod...