message
stringlengths
6
474
diff
stringlengths
8
5.22k
Prevent HLS saturation parameter overflow(>100)
@@ -441,9 +441,9 @@ output_hls_palette_definition( h = s = 0; } else { if (l < 50) { - s = ((max - min) * 100 + 127) / (max + min); + s = ((max - min) * 100) / (max + min); } else { - s = ((max - min) * 100 + 127) / ((255 - max) + (255 - min)); + s = ((max - min) * 100) / ((255 - max) + (255 - min)); } if (r == max) { ...
80-test_cmp_http_data/test_commands.csv: fix minor glitch in column alignment
@@ -33,7 +33,7 @@ expected,description, -section,val, -cmd,val,val2, -cacertsout,val,val2, -infoty 1, --- get certificate for revocation ----, -section,, -cmd,cr,,BLANK,,,BLANK,,,BLANK,,BLANK, 1,revreason AACompromise, -section,, -cmd,rr,,BLANK,,,BLANK,,, -oldcert,_RESULT_DIR/test.cert.pem, -revreason,10 1, --- get cer...
Read-only strings should be const char *
@@ -123,7 +123,7 @@ static void mi_stats_add(mi_stats_t* stats, const mi_stats_t* src) { static void mi_printf_amount(int64_t n, int64_t unit, FILE* out, const char* fmt) { char buf[32]; int len = 32; - char* suffix = (unit <= 0 ? " " : "b"); + const char* suffix = (unit <= 0 ? " " : "b"); double base = (unit == 0 ? 10...
Add device-id option to drivers
@@ -767,7 +767,6 @@ _papplMainloopShowDrivers( int i; // Looping variable pappl_system_t *system; // System object - if (!system_cb) { fprintf(stderr, "%s: No system callback specified.\n", base_name); @@ -780,8 +779,27 @@ _papplMainloopShowDrivers( return (1); } + device_id = cupsGetOption("device-id", num_options, op...
fs/lustre-client: bump to version v2.12.3 and pull in some changes from latest .spec
@@ -85,7 +85,7 @@ BuildRequires: kernel-devel = %{centos_kernel} %undefine with_zfs %endif -%{!?version: %global version 2.12.2} +%{!?version: %global version 2.12.3} %{!?kver: %global kver %(uname -r)} %{!?kdir: %global kdir /lib/modules/%{kver}/source} %{!?kobjdir: %global kobjdir %(if [ "%{kdir}" = "/lib/modules/%{k...
Fix the e2e test when disabling the profile recording
@@ -34,7 +34,7 @@ func (e *e2e) testCaseSPODEnableProfileRecorder(nodes []string) { e.logf("assert profile recorder is disabled in the spod DS when log enricher is disabled") selinuxDisabledInSPODDS := e.kubectlOperatorNS("get", "ds", "spod", "-o", "yaml") - e.NotContains(selinuxDisabledInSPODDS, "--with-recording=fals...
dbuild.sh: sync host time for build time Currently build time is set as UTC, but it's different with realtime for other timezone. Let's sync docker time to host time.
@@ -429,8 +429,7 @@ function BUILD() fi fi echo "Docker Image Version : ${DOCKER_VERSION}" - docker run --rm ${DOCKER_OPT} -v ${TOPDIR}:/root/tizenrt -w /root/tizenrt/os --privileged tizenrt/tizenrt:${DOCKER_VERSION} ${BUILD_CMD} $1 2>&1 | tee build.log - + docker run --rm ${DOCKER_OPT} -v /etc/localtime:/etc/localtime...
fix wrong git repo ref
@@ -154,7 +154,7 @@ if(WITH_FCLIB) message(STATUS "FCLIB can not be found locally. Try to download and install it from github repository.") FetchContent_Declare(fclib - GIT_REPOSITORY git@github.com:fperignon/fclib.git#git@github.com:FrictionalContactLibrary/fclib.git + GIT_REPOSITORY git@github.com:FrictionalContactLi...
[libc][time] Fix clock_gettime for CLOCK_CPUTIME_ID
@@ -616,8 +616,8 @@ int clock_gettime(clockid_t clockid, struct timespec *tp) unit = clock_cpu_getres(); cpu_tick = clock_cpu_gettime(); - tp->tv_sec = ((int)(cpu_tick * unit)) / NANOSECOND_PER_SECOND; - tp->tv_nsec = ((int)(cpu_tick * unit)) % NANOSECOND_PER_SECOND; + tp->tv_sec = ((long long)(cpu_tick * unit)) / NANO...
Fix handling of yaml files with empty entries Fixes a bug if data.yml contains empty nodes under globals, functions, or classes.
@@ -396,20 +396,23 @@ def load_data(): with open(api.data_file_path, "r") as fd: data = yaml.safe_load(fd) + if data.get("globals"): for ea, name in data["globals"].items(): if not isinstance(ea, (int, long)): print('Warning: {0} has an invalid address {1}'.format(name, ea)) continue api.set_addr_name(ea, name) + if da...
[BSP] add Libraries when scons --dist
@@ -214,6 +214,15 @@ def MkDist_Strip(program, BSP_ROOT, RTT_ROOT, Env): bsp_copy_files(os.path.join(library_path, Env['bsp_lib_type']), os.path.join(library_dir, Env['bsp_lib_type'])) shutil.copyfile(os.path.join(library_path, 'Kconfig'), os.path.join(library_dir, 'Kconfig')) + # copy at32 bsp libiary files + if os.pa...
board/anahera/usbc_config.h: Format with clang-format BRANCH=none TEST=none
#define CONFIG_USB_PD_PORT_MAX_COUNT 2 /* USB-A ports */ -enum usba_port { - USBA_PORT_A0 = 0, - USBA_PORT_A1, - USBA_PORT_COUNT -}; +enum usba_port { USBA_PORT_A0 = 0, USBA_PORT_A1, USBA_PORT_COUNT }; /* USB-C ports */ -enum usbc_port { - USBC_PORT_C0 = 0, - USBC_PORT_C1, - USBC_PORT_COUNT -}; +enum usbc_port { USBC_P...
`strrstr` can take and return `char const *`
@@ -72,7 +72,7 @@ static uint32_t str2int2(uint8_t *s, uint32_t length) return r; } -static char *strrstr(char *s1, char *s2) +static char const *strrstr(char const *s1, char const *s2) { size_t len1 = strlen(s1); size_t len2 = strlen(s2); @@ -80,7 +80,7 @@ static char *strrstr(char *s1, char *s2) if (len2 > len1) retu...
options/ansi: Remove unconditional debug prints
@@ -1032,12 +1032,10 @@ ssize_t getline(char **line, size_t *n, FILE *file_base) { size_t k = strlen(buffer); buffer[k] = '\n'; buffer[k + 1] = 0; - mlibc::infoLogger() << "returns: " << frg::escape_fmt(buffer, k + 1) << frg::endlog; *line = buffer; *n = capacity; return k + 1; - //return getdelim(line, n, '\n', file_b...
Update Vagrantfile box version.
@@ -15,7 +15,7 @@ Vagrant.configure(2) do |config| #------------------------------------------------------------------------------------------------------------------------------- config.vm.define "default", primary: true do |default| default.vm.box = "ubuntu/bionic64" - default.vm.box_version = "20201119.0.0" + defaul...
OcConsoleLib: Fix log prints
@@ -350,8 +350,9 @@ SetConsoleResolution ( if (EFI_ERROR (Status)) { DEBUG (( DEBUG_WARN, - "OCC: Failed to set mode %u with %ux%u resolution\n", + "OCC: Failed to set mode %u (prev %u) with %ux%u resolution\n", (UINT32) ModeNumber, + (UINT32) GraphicsOutput->Mode->Mode, Width, Height )); @@ -477,8 +478,9 @@ SetConsole...
bonding: enhance binary api handling check input sw_if_index to make sure it is sane. Coverity actually complains about it. return rv. Some of the APIs handlers were not passing back the rv. Type: improvement
@@ -113,12 +113,15 @@ vl_api_bond_add_member_t_handler (vl_api_bond_add_member_t * mp) clib_memset (ap, 0, sizeof (*ap)); ap->group = ntohl (mp->bond_sw_if_index); + VALIDATE_SW_IF_INDEX (mp); ap->member = ntohl (mp->sw_if_index); ap->is_passive = mp->is_passive; ap->is_long_timeout = mp->is_long_timeout; bond_add_memb...
Protoype transition_to_anim(ent, transition, default). Going to be using a lot of transition animation logic, so consolidate to a function.
@@ -2836,6 +2836,9 @@ int nextcolourmapn (s_model *model, int map_index, int player_index); int prevcolourmap (s_model *model, int map_index); int prevcolourmapn (s_model *model, int map_index, int player_index); +// Transition animation vs. default. +int transition_to_anim (entity ent, e_animations transition, e_anima...
TEST: change the code position of calling fork().
@@ -1030,12 +1030,12 @@ sub new_memcached { } $args .= " -E $builddir/.libs/default_engine.so"; - my $childpid = fork(); - my $exe = "$builddir/memcached"; croak("memcached binary doesn't exist. Haven't run 'make' ?\n") unless -e $exe; croak("memcached binary not executable\n") unless -x _; + my $childpid = fork(); + u...
opae.io: fix static code analysis issue - Null pointer will be dereferenced
-// Copyright(c) 2020-2021, Intel Corporation +// Copyright(c) 2020-2023, Intel Corporation // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: @@ -208,6 +208,7 @@ struct vfio_device { if (opae_vfio_buffer_allocate(v_, &...
Configure init and cleanup asynchronously Accessing the settings (like --show-touches) on start should not delay screen mirroring. PR <https://github.com/Genymobile/scrcpy/pull/2802>
@@ -63,7 +63,7 @@ public final class Server { final Device device = new Device(options); List<CodecOption> codecOptions = CodecOption.parse(options.getCodecOptions()); - initAndCleanUp(options); + Thread initThread = startInitThread(options); boolean tunnelForward = options.isTunnelForward(); @@ -95,6 +95,7 @@ public f...
fix(discord-client.c): return on void function
@@ -262,13 +262,13 @@ discord_run(struct discord *client) void discord_shutdown(struct discord *client) { - return discord_gateway_shutdown(&client->gw); + discord_gateway_shutdown(&client->gw); } void discord_reconnect(struct discord *client, bool resume) { - return discord_gateway_reconnect(&client->gw, resume); + di...
h2olog: scaffold the code path for quic tracing
@@ -97,6 +97,7 @@ def handle_resp_line(cpu, data, size): def usage(): print ("USAGE: h2olog -p PID") + print (" h2olog quic -p PID") exit() def trace_http(): @@ -109,12 +110,22 @@ def trace_http(): except KeyboardInterrupt: exit() +def trace_quic(): + print("coming soon: QUIC event tracing") + exit() + if len(sys.argv)...
plugin: validate plugin type (CID 251486)
@@ -184,7 +184,7 @@ struct flb_plugins *flb_plugin_create() int flb_plugin_load(char *path, struct flb_plugins *ctx, struct flb_config *config) { - int type; + int type = -1; void *dso_handle; void *symbol = NULL; char *plugin_stname; @@ -236,6 +236,12 @@ int flb_plugin_load(char *path, struct flb_plugins *ctx, } flb_f...
host/mesh: Add pointer conversion for prov->uri `prov_sd[0].data` and `prov->uri` have different point type. This is port of
@@ -1196,7 +1196,7 @@ static size_t gatt_prov_adv_create(struct bt_data prov_sd[2]) } else { prov_sd[0].type = BT_DATA_URI; prov_sd[0].data_len = uri_len; - prov_sd[0].data = (void *)prov->uri; + prov_sd[0].data = (const uint8_t *)prov->uri; sd_space -= 2 + uri_len; prov_sd_len++; }
fix bugs of setsockopt diff in win compact implementation
@@ -189,13 +189,31 @@ int win32_connect(SOCKET sockfd, const struct sockaddr *addr, socklen_t addrlen) } int win32_getsockopt(SOCKET sockfd, int level, int optname, void *optval, socklen_t *optlen) { - int ret = getsockopt(sockfd, level, optname, (char*)optval, optlen); + int ret = 0; + if ((level == SOL_SOCKET) && ((o...
add MD_SINGLETON macros
/* Copyright 2013-2014. The Regents of the University of California. + * Copyright 2016-2017. Martin Uecker. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. */ @@ -137,6 +138,21 @@ extern _Bool md_next(unsigned int D, const long dims[__VLA(D)],...
Extend coverage to XML_{Start|End}DoctypeDeclHandler
@@ -1063,9 +1063,8 @@ START_TEST(test_dtd_default_handling) "]><doc/>"; XML_SetDefaultHandler(parser, accumulate_characters); - XML_SetDoctypeDeclHandler(parser, - dummy_start_doctype_handler, - dummy_end_doctype_handler); + XML_SetStartDoctypeDeclHandler(parser, dummy_start_doctype_handler); + XML_SetEndDoctypeDeclHan...
xfconf-plugin: Add umount in example and remove stderr redirection
@@ -51,20 +51,23 @@ The usage is identical to most storage plugins except that the channel option du # Backup-and-Restore: user:/tests/xfconf # mount the xfwm channel -kdb mount /dev/null /test/xfwm xfconf "channel=xfwm4" 2&>/dev/null +kdb mount /dev/null /test/xfwm xfconf "channel=xfwm4" # store old button layout -set...
Fix field names and print percentiles in reverse order.
@@ -629,11 +629,11 @@ static void print_rules_stats( printf( "number of rules : %d\n", - stats.rules); + stats.num_rules); printf( "number of strings : %d\n", - stats.strings); + stats.num_strings); printf( "number of AC matches : %d\n", @@ -650,7 +650,7 @@ static void print_rules_stats( printf("match list length perce...
Treat linker warnings as errors When using relative path (ie `./contiki-ng`) some Makefiles, like cortex m3, fails to filter out ldscripts resulting in a broken build.
@@ -49,6 +49,8 @@ CFLAGS += -DCONTIKI_BOARD_$(TARGET_BOARD_UPPERCASE)=1 CFLAGS += -DCONTIKI_BOARD_STRING=\"$(BOARD)\" endif +LDFLAGS = -Wl,--fatal-warnings + MODULES += os os/sys os/dev os/lib os/services # Automatically include project-conf.h if found
decoding net: some formatting changes
@@ -117,16 +117,14 @@ state_has_avail(state(_, _, A), NodeId, C) :- %%%% Model layer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% region_region_contains(A, B).. A \in B -region_region_contains(region(N, block(ABase, ALimit)), region(N, block(BBase, BLimit))) :- - ABase #>= BBase, - BLimit #>= ABase, - ALimit #>= BBase, - ...
Fix compile error when clamp used in math event
@@ -2961,12 +2961,12 @@ class ScriptBuilder { if (operation === ".ADD") { this._stackPushConst(256); this._if(".GTE", ".ARG0", ".ARG1", clampLabel, 1); - this._setConst("ARG0", 255); + this._setConst(".ARG0", 255); this._label(clampLabel); } else if (operation === ".SUB") { this._stackPushConst(0); this._if(".LTE", ".A...
Fixes readme confusion over steps for mac vs linux
@@ -32,12 +32,12 @@ to the segments, and collects the results. ## Building Greenplum Database with GPORCA -### Installing dependencies -A. For macOS developers, follow [these steps](README.macOS.md) for getting your system ready for GPDB +### Installing dependencies (for macOS developers) +Follow [these macOS steps](RE...
"show log": print wall-clock time
@@ -62,6 +62,11 @@ typedef struct int default_syslog_log_level; int unthrottle_time; u32 indent; + + /* time zero */ + struct timeval time_zero_timeval; + f64 time_zero; + } vlib_log_main_t; vlib_log_main_t log_main = { @@ -276,6 +281,10 @@ static clib_error_t * vlib_log_init (vlib_main_t * vm) { vlib_log_main_t *lm = ...
worker: use flb_errno() for memory allocation error
@@ -71,7 +71,7 @@ int flb_worker_create(void (*func) (void *), void *arg, pthread_t *tid, worker = flb_malloc(sizeof(struct flb_worker)); if (!worker) { - perror("malloc"); + flb_errno(); return -1; } MK_EVENT_ZERO(&worker->event);
out_calyptia: updated crypto wrapper calls
@@ -133,7 +133,7 @@ static int get_machine_id(struct flb_calyptia *ctx, char **out_buf, size_t *out_ return -1; } - ret = flb_digest_simple(FLB_CRYPTO_SHA256, + ret = flb_digest_simple(FLB_DIGEST_SHA256, (unsigned char *) buf, s, sha256_buf,
Update property_namespace.md add reference to default profiles
| `high_availabity` | true/false | true | | | `dscp_value` | integer | 0 | | -The properties will be expanded to concrete values using corresponding profiles. +The properties will be expanded to concrete values using corresponding profiles (see [current defaults](https://github.com/NEAT-project/neat/tree/master/policy/...
fcgi: handle memory allocation failure in append_content h2o_buffer_try_reserve does not abort on mmap failure, therefore check the return value and bubble up the error.
@@ -551,20 +551,24 @@ static int fill_headers(h2o_req_t *req, struct phr_header *headers, size_t num_h return 0; } -static void append_content(struct st_fcgi_generator_t *generator, const void *src, size_t len) +static int append_content(struct st_fcgi_generator_t *generator, const void *src, size_t len) { /* do not ac...
remove debug fprintf
@@ -2185,7 +2185,6 @@ movemouse(const Arg *arg) ev.xmotion.y_root > selmon->my + selmon->mh) { if ((m = recttomon(ev.xmotion.x_root, ev.xmotion.y_root, 2, 2)) != selmon) { XRaiseWindow(dpy, c->win); - fprintf(stderr, "x, %d", ev.xmotion.x_root); sendmon(c, m); selmon = m; focus(NULL);
Fix typo in bounds checking "x - y".
@@ -503,7 +503,7 @@ func (q *checker) bcheckExprBinaryOp(lhs *a.Expr, op t.Key, rhs *a.Expr, depth u case t.KeyXBinaryPlus: return big.NewInt(0).Add(lMin, rMin), big.NewInt(0).Add(lMax, rMax), nil case t.KeyXBinaryMinus: - return big.NewInt(0).Sub(lMin, rMin), big.NewInt(0).Sub(lMax, rMax), nil + return big.NewInt(0).S...
Fix ConnectionOpen link
@@ -63,6 +63,6 @@ Some settings on the `Configuration`, and on the `Connection`, only take effect # See Also -[ConnectionOpen](ConnectionStart.md)<br> +[ConnectionOpen](ConnectionOpen.md)<br> [ConnectionClose](ConnectionClose.md)<br> [ConnectionShutdown](ConnectionShutdown.md)<br>
improve super + shift + space for floating layout
@@ -2491,9 +2491,11 @@ movemouse(const Arg *arg) resize(c, c->sfx, c->sfy, c->sfw, c->sfh, 0); } } + restack(selmon); ocx = c->x; ocy = c->y; + // make pointer grabby shape if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync, None, cursor[CurMove]->cursor, CurrentTime) != GrabSuccess) return; @@ ...
Update changelog for hslua 0.9.0
## Changelog +### 0.9.0 + +- Added cabal flag to allow fully safe garbage collection: Lua garbage + collection can occur in most of the API functions, even in those usually not + calling back into haskell and hence marked as optimizable. The effect of this + is that finalizers which call Haskell functions will cause th...
Print z3 version in formal verification tests
@@ -22,10 +22,12 @@ SCRIPTS = $(wildcard *.saw) #A log file will be created for each test in the temp dir LOGS=$(patsubst %.saw,tmp/%.log,$(SCRIPTS)) SHELL:=/bin/bash +Z3_VERSION=$(shell z3 --version) export LIBCRYPTO_ROOT:=$(shell pwd)/../../libcrypto-root .PHONY : all all: + @echo "Running formal verification with ${...
Get rid of warn_binary Current implementation of warn_binary introduces a regression when the content is passed in /dev/stdin as an explicit file name and reads the file to be processed twice otherwise. I suggest to reimplement this functionality after 3.0 if necessary. Fixes
@@ -272,31 +272,6 @@ static CMS_ContentInfo *load_content_info(int informat, BIO *in, int flags, return NULL; } -static void warn_binary(const char *file) -{ - BIO *bio; - unsigned char linebuf[1024], *cur, *end; - int len; - - if (file == NULL) - return; /* cannot give a warning for stdin input */ - if ((bio = bio_ope...
Fixed. set container as frameId no matter which command.
@@ -212,21 +212,19 @@ void sixtop_request(uint8_t code, open_addr_t* neighbor, uint8_t numCells){ if (sixtop_candidateAddCellList(&frameID,cellList,numCells)==FALSE){ sixtop_vars.handler = SIX_HANDLER_NONE; return; - } else{ - // container to be define by SF, currently equals to frameID - container = frameID; } } if (c...
u3: free all dynamic allocations in u3u_uniq()
@@ -244,6 +244,15 @@ typedef struct _cu_loom_s { u3_noun *cel; } _cu_loom; +/* _cu_loom_free(): dispose loom relocation pointers +*/ +static void +_cu_loom_free(_cu_loom* lom_u) +{ + free(lom_u->vat); + free(lom_u->cel); +} + /* _cu_atoms_to_loom(): allocate all indirect atoms on the loom. */ static void @@ -376,8 +385...
Disable check phase
@@ -22,6 +22,4 @@ build_script: - if "%APPVEYOR_REPO_TAG%"=="true" (set CONFIGURATION=RelWithDebInfo) else (set CONFIGURATION=Debug) - cmake --build build --config "%CONFIGURATION%" -after_build: -- cmake --build build --config "%CONFIGURATION%" --target check -- cmake --build build --config "%CONFIGURATION%" --target ...
Remove superfluous IAS sensor selection
@@ -1068,19 +1068,6 @@ void DeRestPluginPrivate::apsdeDataIndication(const deCONZ::ApsDataIndication &i { Sensor *sensorNode = getSensorNodeForAddressEndpointAndCluster(ind.srcAddress(), ind.srcEndpoint(), ind.clusterId()); - if (sensorNode && ind.clusterId() == IAS_ZONE_CLUSTER_ID && sensorNode->type() != QLatin1Strin...
out_opentelemetry: fix extern function prototype
#include <ctraces/ctr_decode_msgpack.h> extern cfl_sds_t cmt_encode_opentelemetry_create(struct cmt *cmt); -extern void cmt_encode_opentelemetry_destroy(struct cmt *cmt); +extern void cmt_encode_opentelemetry_destroy(cfl_sds_t text); #include "opentelemetry.h" #include "opentelemetry_conf.h"
hssi 100g: default to port 0 when no option given Fixes a segfault observed when --port was missing from the command line.
@@ -375,6 +375,9 @@ public: return test_afu::error; } + if (port_.empty()) + port_.push_back(0); + hssi_afu *hafu = dynamic_cast<hssi_afu *>(afu); uint64_t bin_src_addr = mac_bits_for(src_addr_);
Rework change for coverity.
@@ -2831,8 +2831,9 @@ cups_dnssd_get_device( !strcmp(regtype, "_ipps._tcp") ? "IPPS" : "IPP", replyDomain)); - if ((device = calloc(sizeof(_cups_dnssd_device_t), 1)) != NULL) - { + if ((device = calloc(sizeof(_cups_dnssd_device_t), 1)) == NULL) + return (NULL); + device->dest.name = _cupsStrAlloc(name); device->domain ...
Client message if HCID verified
@@ -720,14 +720,16 @@ int quic_client(const char* ip_address_text, int server_port, if (ret == 0 && (picoquic_get_cnx_state(cnx_client) == picoquic_state_ready || picoquic_get_cnx_state(cnx_client) == picoquic_state_client_ready_start)) { if (established == 0) { - printf("Connection established. Version = %x, I-CID: %l...
modpupdevices: fix ColorDistSensor never returning green
@@ -94,7 +94,7 @@ STATIC mp_obj_t pupdevices_ColorAndDistSensor_color(mp_obj_t self_in) { return mp_obj_new_int(PBIO_LIGHT_COLOR_BLACK); case 3: return mp_obj_new_int(PBIO_LIGHT_COLOR_BLUE); - case 6: + case 5: return mp_obj_new_int(PBIO_LIGHT_COLOR_GREEN); case 7: return mp_obj_new_int(PBIO_LIGHT_COLOR_YELLOW);
2.13RC->Trunk: fixing issue with getting correct path for mtl file
=========================================================================*/ #include "vtkVisItOBJReader.h" + #include <InvalidFilesException.h> +#include <FileFunctions.h> +#include <snprintf.h> #include "vtkCellArray.h" #include "vtkCellData.h" #include "vtkPolyData.h" #include "vtkStringArray.h" +#include <cstring> +...
minor fix that aim to fix a warning in sdb-update branch
#define st64 long long #define boolt int // TODO: deprecate R_NEW +#ifndef R_NEW +//it means we are within sdb #define R_NEW(x) (x*)malloc(sizeof(x)) #define R_NEW0(x) (x*)calloc(1, sizeof(x)) +#define R_FREE(x) free (x); x = NULL +#endif #define UT32_MAX ((ut32)0xffffffff) #define UT64_MAX ((ut64)(0xffffffffffffffffLL...
esp-tls: Fix setsockopt for TCP_KEEPIDLE Current code applies keep_alive_enable setting to TCP_KEEPIDLE, fix it. Fixes: ("esp-tls: Rework tcp_connect() to use more subroutines")
@@ -220,7 +220,7 @@ static esp_err_t esp_tls_set_socket_options(int fd, const esp_tls_cfg_t *cfg) ESP_LOGE(TAG, "Fail to setsockopt SO_KEEPALIVE"); return ESP_ERR_ESP_TLS_SOCKET_SETOPT_FAILED; } - if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &keep_alive_enable, sizeof(keep_alive_enable)) != 0) { + if (setsockopt(fd, I...
rust: simplify CStrMut.AsMut Should not be &str but &[u8].
@@ -29,9 +29,9 @@ pub extern "C" fn rust_util_all_ascii(cstr: CStr) -> bool { /// * `out_ptr` - Must be a valid pointer to an array of bytes that is buf_len*2+1 long #[no_mangle] pub extern "C" fn rust_util_uint8_to_hex(buf: Bytes, mut out: CStrMut) { - let out_len = out.as_ref().len(); // UNSAFE: We promise that we ne...
Correct hexstr_2_bytearray() function in wifi api The wifi api uses a function slsi_hexstr_2_bytearray() to convert WiFi IE data. An error was discovered in how it converts certain valued and this patch fixes it.
@@ -673,7 +673,7 @@ static uint8_t *slsi_hexstr_2_bytearray(char *str, size_t str_size, size_t *arra for (i = 0; i < str_len; i += 2) { a = string[i + 0]; b = string[i + 1]; - byte_array[i / 2] = ((a < '9' ? a - '0' : a - 'a' + 10) << 4) + (b < '9' ? b - '0' : b - 'a' + 10); + byte_array[i / 2] = ((a <= '9' ? a - '0' :...
Remove obsolete compiler opts
# SPDX-License-Identifier: Apache-2.0 # ---------------------------------------------------------------------------- -# Copyright 2020 Arm Limited +# Copyright 2020-2021 Arm Limited # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You...
Fix: Check for convex SCCs with TYPED_FUSE
@@ -1247,6 +1247,10 @@ bool is_convex_scc(int scc1, int scc2, Graph *ddg, PlutoProg * prog) int i; for (i=scc1+1; i<scc2; i++) { if (ddg_sccs_direct_connected(ddg, prog, i,scc2)) { + /* In case of typed fuse, this scc may have already been coloured */ + if (options->fuse == TYPED_FUSE && sccs[i].is_scc_coloured) { + co...
fix(Makefile): unexistent variable
@@ -155,7 +155,7 @@ slack: common $(SLACK_OBJS) $(LIBSLACK) common: cee_utils $(COMMON_OBJS) cee_utils: $(CEE_UTILS_OBJS) | $(CEE_UTILS_DIR) -specs: $(SPECS_OBJS) +specs: $(SPECSGEN_OBJS) $(CEE_UTILS_OBJS): | $(OBJDIR) $(COMMON_OBJS): | $(OBJDIR) @@ -163,7 +163,7 @@ $(DISCORD_OBJS): | $(OBJDIR) $(GITHUB_OBJS): | $(OBJD...
oops, i mean that
@@ -84,6 +84,7 @@ class Panda(object): SAFETY_HONDA = 1 SAFETY_ALLOUTPUT = 0x1337 + REQUEST_IN = usb1.ENDPOINT_IN | usb1.TYPE_VENDOR | usb1.RECIPIENT_DEVICE REQUEST_OUT = usb1.ENDPOINT_OUT | usb1.TYPE_VENDOR | usb1.RECIPIENT_DEVICE def __init__(self, serial=None, claim=True): @@ -132,7 +133,7 @@ class Panda(object): # ...
network: on connection error, reset context and invalidate fd
@@ -547,9 +547,16 @@ flb_sockfd_t flb_net_tcp_connect(const char *host, unsigned long port, } if (ret == -1) { - flb_error("[net] cannot connect to %s:%s", host, _port); + /* If the connection failed, just abort and report the problem */ + flb_error("[net] socket #%i could not connect to %s:%s", + fd, host, _port); + i...
IPAddr: Move test code into separate file
@@ -4,5 +4,6 @@ add_plugin (ipaddr SOURCES ipaddr.h ipaddr.c + test_ipaddr.h ADD_TEST )
mpi-families/impi-devel: MPI_HOME -> MPI_DIR
@@ -178,10 +178,10 @@ EOF prepend-path PATH ${topDir}/${dir}/linux/mpi/intel64/bin_ohpc EOF - # Also define MPI_HOME based on $I_MPI_ROOT - IMPI_HOME=`egrep "^setenv\s+I_MPI_ROOT" %{OHPC_MODULEDEPS}/intel/impi/${version} | awk '{print $3}'` - if [ -d "$IMPI_HOME/intel64" ];then - echo "setenv MPI_HOME $IMPI_HOME/intel6...
TinyEXR: Fix leak in LoadEXRImageFromFile()
@@ -11965,6 +11965,7 @@ int LoadEXRImageFromFile(EXRImage *exr_image, const EXRHeader *exr_header, fseek(fp, 0, SEEK_SET); if (filesize < 16) { + fclose(fp); tinyexr::SetErrorMessage("File size too short " + std::string(filename), err); return TINYEXR_ERROR_INVALID_FILE;
doc: remove suspend and resume command from acrnctl Currently, the command "acrnctl suspend" and "acrnctl resume" is not used by user. This patch removes related code. Acked-by: Anthony Xu
@@ -27,8 +27,6 @@ You can see the available ``acrnctl`` commands by running: stop [--force/-f] del add - suspend - resume reset blkrescan Use acrnctl [cmd] help for details
config_tools: fix UI cpu_affinity cpu_id validation logic fix UI cpu_affinity cpu_id validation logic
pCPU ID </b-col> <b-col> - <b-form-select :state="validateCPUAffinity(cpu.pcpu_id)" v-model="cpu.pcpu_id" :options="pcpuid_enum"></b-form-select> + <b-form-select :state="validateCPUAffinity(cpu.pcpu_id)" v-model="cpu.pcpu_id" + :options="pcpuid_enum"></b-form-select> <b-form-invalid-feedback> pCPU ID is required! </b-...
High-Level API: Add missing anchor to ReadMe A Reference to a section like this: `#section-name` is supported by GitHub. However, other Markdown tools such as [Marked](http://www.marked2app.com) to not support such a reference, if you do not provide an anchor too.
@@ -189,7 +189,7 @@ that key in the KDB. For example, if you call `elektraOpen` with `"/sw/org/myapp configuration value for the key `"/sw/org/myapp/#0/current/message"` with the provided getters and setters by passing them only `"message"` as the name for the configuration value. -### Read Values from the KDB +### <a ...
Fix KTLS compilation error If the kernel headers are sufficiently recent to have KTLS transmit support, but not recent enough to have KTLS receive support then a compilation error would be the result.
@@ -90,6 +90,10 @@ static ossl_inline int ktls_read_record(int fd, void *data, size_t length) # define TCP_ULP 31 # endif +# ifndef TLS_RX +# define TLS_RX 2 +# endif + /* * When successful, this socket option doesn't change the behaviour of the * TCP socket, except changing the TCP setsockopt handler to enable the
Removing obsolete output.
<entry colname="col2">when in <varname>Resynchronization</varname> mode, the estimated size of data that has already been synchronized</entry> </row> - <row> - <entry colname="col1">Estimated resync progress with mirror</entry> - <entry colname="col2">When in <varname>Resynchronization</varname> mode, the estimated - p...
Validate parser parameter to XML_DefaultCurrent
@@ -2113,6 +2113,8 @@ XML_MemFree(XML_Parser parser, void *ptr) void XMLCALL XML_DefaultCurrent(XML_Parser parser) { + if (parser == NULL) + return; if (defaultHandler) { if (openInternalEntities) reportDefault(parser,
Conditionals: Fix minor spelling mistake in ReadMe
@@ -51,7 +51,7 @@ Keynames are all either relative to to-be-tested key (starting with `./` or `../ ### Multiple Statements -It's also possible to test multiple conditions using `check/condition/{any,all,none}` as a meta array. Where `any` means that at least one statement has to evaluate to true, `all` that all stateme...
source new circle to inbox in collections app
:: /app/collection/hoon +:: /- hall, *collections /+ hall, rekey, colls /= cols /: /===/web/collections /collections/ :: update config in hall. =/ nam (circle-for col) %- ta-hall-actions :~ +:: ?: =(desc.new desc.u.old) ~ [%depict nam desc.new] + :: +:: ?: =(visi.new visi.u.old) ~ [%public visi.new our.bol nam] :: :: (...
pss_app_exit_liveboard int pss_app_exit_liveboard() { return sceAppMgrExitToLiveboardForGameApp(); }
@@ -3031,6 +3031,7 @@ modules: monoeg_realloc: 0x8FA807B1 monoeg_try_malloc: 0xA59B6183 monoeg_try_realloc: 0xB1006CCC + pss_app_exit_liveboard: 0x58ABAD62 pss_alloc_mem: 0x1A2E441F pss_alloc_raw: 0x599AEA5E pss_code_mem_alloc: 0xF466ABEC
tests/ansi: Test the new strftime specifiers
@@ -14,8 +14,16 @@ int main() { tm.tm_year = 121; tm.tm_wday = 2; tm.tm_yday = 39; - strftime(timebuf, sizeof timebuf, "%e", &tm); + strftime(timebuf, sizeof(timebuf), "%e", &tm); assert(!strcmp(timebuf, result)); + memset(timebuf, 0, sizeof(timebuf)); + strftime(timebuf, sizeof(timebuf), "%x", &tm); + assert(!strcmp(t...
fix used size field when visiting heap blocks
@@ -532,7 +532,7 @@ static bool mi_heap_visit_areas_page(mi_heap_t* heap, mi_page_queue_t* pq, mi_pa xarea.area.reserved = page->reserved * bsize; xarea.area.committed = page->capacity * bsize; xarea.area.blocks = _mi_page_start(_mi_page_segment(page), page, NULL); - xarea.area.used = page->used * bsize; + xarea.area.u...
Fix leak in pckReadStrLst(). A String would be leaked on each loop iteration.
@@ -1191,8 +1191,12 @@ pckReadStrLst(PackRead *const this, PckReadStrLstParam param) StringList *const result = strLstNew(); + MEM_CONTEXT_TEMP_BEGIN() + { while (!pckReadNullP(this)) strLstAdd(result, pckReadStrP(this)); + } + MEM_CONTEXT_TEMP_END(); pckReadArrayEndP(this);
better name: optval => opt_on
@@ -69,6 +69,7 @@ int net_set_nonblocking( int fd ) { } int net_socket( const char name[], const char ifname[], const int protocol, const int af ) { + const int opt_on = 1; int sock; // Disable IPv6 or IPv4 @@ -98,8 +99,7 @@ int net_socket( const char name[], const char ifname[], const int protocol, cons } #endif - con...
filter_wasm: use calloc to initialize value
@@ -214,7 +214,7 @@ static int cb_wasm_init(struct flb_filter_instance *f_ins, int ret = -1; /* Allocate space for the configuration */ - ctx = flb_malloc(sizeof(struct flb_filter_wasm)); + ctx = flb_calloc(1, sizeof(struct flb_filter_wasm)); if (!ctx) { return -1; }
fix(Linux): Fixed errors in generating private keys issue
@@ -394,8 +394,6 @@ static BOAT_RESULT sBoatPort_keyCreate_internal_generation(const BoatWalletPriKe BUINT32 key_try_count; BOAT_RESULT result = BOAT_SUCCESS; - /* Convert private key from UINT256 to Bignum256 format */ - bn_read_le(prikeyTmp, &priv_key_bn256); /* Convert priv_key_max_u256 from UINT256 to Bignum256 for...
BugID:17132117: [WhiteScan] Fix overrun issue for stm32f4xx uart.c
@@ -19,7 +19,7 @@ int32_t hal_uart_init(uart_dev_t *uart) uint8_t *rx_buf; platform_uart_config_t config; - if (uart->port > MICO_UART_MAX) + if (uart->port >= MICO_UART_MAX) return -1; rx_buf = (uint8_t *)malloc(UART_FIFO_SIZE); @@ -37,7 +37,7 @@ int32_t hal_uart_init(uart_dev_t *uart) int32_t hal_uart_finalize(uart_d...
[trace] Fix tracing if no performance measurement is performed
@@ -541,7 +541,10 @@ def main(): break # Nothing more in pipe, EOF perf_metrics[-1]['end'] = time_info[1] # Evaluate only the benchmarks + if perf_metrics_bench[0]['start'] is not None: perf_metrics = perf_metrics_bench + else: + perf_metrics = perf_metrics_setup # Remove last emtpy entry if not bool(perf_metrics[-1]):...
global-plugins: document hook positions macro
/** * Helper for identifying global plugin positions + * + * We chose using these macros over other solutions + * in order to have the array available statically. + * Thus we can avoid initializing the KDB struct + * during runtime and still maintain the flexibility + * of easily adding new hook positions. */ // clang-...
Add Github.com personal token to prerequisites.
@@ -39,6 +39,7 @@ The remainder of this guide assumes the following prerequisites: 1. You have an active, working [GitHub](https://github.com/) account. 1. You have installed and configured the [`git`](https://git-scm.com/) version control tool. +1. You have locally configured git to access your github account. If usin...
remove finsh get char error print
@@ -297,7 +297,6 @@ static void finsh_wait_auth(void) ch = finsh_getchar(); if (ch < 0) { - rt_kprintf("finsh getchar error\n"); continue; } @@ -510,7 +509,6 @@ void finsh_thread_entry(void *parameter) ch = finsh_getchar(); if (ch < 0) { - rt_kprintf("finsh getchar error\n"); continue; }
Uninstall docs too
@@ -12,6 +12,7 @@ uninstall() { rm -rfv "/usr/lib/mangohud" rm -fv "/usr/share/vulkan/implicit_layer.d/MangoHud.x86.json" rm -fv "/usr/share/vulkan/implicit_layer.d/MangoHud.x86_64.json" + rm -frv "/usr/share/doc/mangohud" rm -fv "/usr/bin/mangohud" rm -fv "/usr/bin/mangohud.x86" }
lib/utils/pyexec: Update REPL banner for Pycopy. As applies to baremetal ports. Similar change to Unix port was done previously.
@@ -277,7 +277,7 @@ STATIC int pyexec_friendly_repl_process_char(int c) { } else if (ret == CHAR_CTRL_B) { // reset friendly REPL mp_hal_stdout_tx_str("\r\n"); - mp_hal_stdout_tx_str("MicroPython " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE "; " MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME "\r\n"); + mp_hal_stdout...
Fixed wwbootstrap kernel file check problem This patch fixed kernel file check condition so that wwbootstrap can exit if and only if neither vmlinuz-$opt_kversion nor vmlinux-$opt_kversion.gz exist. Without this fix, wwbootstrap doesn't stop even though /boot is empty.
-if (! -f "$opt_chroot/boot/vmlinuz-$opt_kversion") { - &eprint("Can't locate the boot kernel: ". $opt_chroot ."/boot/vmlinuz-$opt_kversion\n"); -+if (! -f "$opt_chroot/boot/vmlinuz-$opt_kversion" && -f "$opt_chroot/boot/vmlinux-$opt_kversion.gz") { ++if (! -f "$opt_chroot/boot/vmlinuz-$opt_kversion" && ! -f "$opt_chro...
tcmur: Add WRITE_SAME(10) support Since the WRITE SAME(10) and the WRITE SAME(16) are all pretty the same code, this add the WRITE SAME(10) support.
@@ -158,7 +158,7 @@ struct write_same { size_t iov_len; }; -static int write_same_16_work_fn(struct tcmu_device *dev, +static int write_same_work_fn(struct tcmu_device *dev, struct tcmulib_cmd *cmd) { struct tcmur_handler *rhandler = tcmu_get_runner_handler(dev); @@ -210,7 +210,7 @@ static void handle_write_same_cbk(st...
python build BUGFIX wrong use --root if enviroment variable DESTDIR is not set, use default path with begin leading /
@@ -22,9 +22,5 @@ if (PYTHON) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/docs/Makefile.in ${CMAKE_CURRENT_SOURCE_DIR}/docs/Makefile) add_custom_target(pyapi ALL COMMAND ${PYTHON} ${SETUP_PY} build -b ${PYAPI_BUILD_DIR} ${DEBUG}) add_custom_target(pyapidoc COMMAND make -f ${CMAKE_CURRENT_SOURCE_DIR}/docs/Makefile html) ...
Added default action for pose process
@@ -109,7 +109,8 @@ void survive_default_button_process(SurviveObject * so, uint8_t eventType, uint8 void survive_default_raw_pose_process(SurviveObject *so, uint8_t lighthouse, SurvivePose *pose) { // print the pose; //printf("Pose: [%1.1x][%s][% 08.8f,% 08.8f,% 08.8f] [% 08.8f,% 08.8f,% 08.8f,% 08.8f]\n", lighthouse,...
docs(key press): Replace deprecated `NUM_1` with `N1` This should've been changed in:
@@ -20,7 +20,7 @@ provided by ZMK near the top: #include <dt-bindings/zmk/keys.h> ``` -Doing so makes a set of defines such as `A`, `NUM_1`, etc. available for use with these behaviors +Doing so makes a set of defines such as `A`, `N1`, etc. available for use with these behaviors :::note There is an [open issue](https:...
in_cpu: protect division by zero, fix indentation Protect cases where a division by zero or a division by a negative number could happen.
@@ -106,7 +106,13 @@ static inline double CPU_METRIC_SYS_AVERAGE(unsigned long pre, unsigned long now } diff = ULL_ABS(now, pre); + + if (ctx->interval_sec > 0) { total = ((diff / ctx->cpu_ticks) * 100) / ctx->n_processors / ctx->interval_sec; + } + else { + total = ((diff / ctx->cpu_ticks) * 100) / ctx->n_processors; ...
ExtendedTools: Ignore loopback firewall events, Fix hostname status for inaddr_any
@@ -274,6 +274,9 @@ BOOLEAN FwProcessEventType( { FWPM_NET_EVENT_CLASSIFY_DROP* fwDropEvent = FwEvent->classifyDrop; + if (fwDropEvent->isLoopback) + return FALSE; + switch (fwDropEvent->msFwpDirection) { case FWP_DIRECTION_IN: @@ -305,6 +308,9 @@ BOOLEAN FwProcessEventType( { FWPM_NET_EVENT_CLASSIFY_ALLOW* fwAllowEven...
fixed missing status output on pcapng (reading from ...), fixed output on pcapng read error block type
@@ -4109,6 +4109,7 @@ uint64_t timestamp; uint32_t timestamp_sec; uint32_t timestamp_usec; +printf("reading from %s\n", basename(pcapinname)); if(gpxflag == true) { fprintf(fhgpx, "<trk>\n <name>%s</name>\n <trkseg>\n", basename(pcapinname)); @@ -4353,7 +4354,7 @@ while(1) { processpacket(timestamp_sec, timestamp_usec,...
Fix a link in the Getting Data Into VisIt Chapter.
@@ -30,4 +30,4 @@ Here is the output. .. literalinclude:: data_examples/blueprint_example.out -The complete documentation for Blueprint can be found `here <https:llnl-conduit.readthedocs.io/en/latest/blueprint.html>`_. +The complete documentation for Blueprint can be found `here <https://llnl-conduit.readthedocs.io/en/...
added support for AOMP13. Default is still AOMP11. Two switch to AOMP13, set AOMP_VERSION=13.0 . To build amd-stg-open set AOMP_VERSION=12.0
@@ -34,6 +34,8 @@ AOMP_INSTALL_DIR=${AOMP}_${AOMP_VERSION_STRING} # $HOME/aomp/llvm-project. if [ "$AOMP_VERSION" == "12.0" ] ; then AOMP_REPOS=${AOMP_REPOS:-$HOME/git/aomp12} +elif [ "$AOMP_VERSION" == "13.0" ] ; then + AOMP_REPOS=${AOMP_REPOS:-$HOME/git/aomp13} else AOMP_REPOS=${AOMP_REPOS:-$HOME/git/aomp11} fi @@ -1...