message
stringlengths
6
474
diff
stringlengths
8
5.22k
jni: do not resolve java paths
@@ -3,11 +3,6 @@ include (LibAddBinding) include (SafeCheckSymbolExists) if (DEPENDENCY_PHASE) - if (DEFINED ENV{JAVA_HOME} AND NOT $ENV{JAVA_HOME} STREQUAL "") - # resolve full path to avoid invalid RPATH (e.g. on Fedora 35) - get_filename_component (JAVA_HOME $ENV{JAVA_HOME} REALPATH) - endif () - if (APPLE) if (NOT ...
MIS: oops, funny bug.
@@ -583,7 +583,7 @@ static void mis_bandwidth_state_machine(uint64_t now) sched_for_each_allowed_core(core, tmp) { sibling = sched_siblings[core]; if (cores[core] == sd && - cores[sibling] != sd) { + cores[sibling] == sd) { mis_kick_core(core); mis_kick_core(sibling); goto done;
CartoCSS compatibility fix - treat int/int division as float/float division
@@ -338,7 +338,7 @@ namespace carto { namespace css { }; struct DivOp : boost::static_visitor<Value> { - Value operator() (long long val1, long long val2) const { if (val2 == 0) { throw std::runtime_error("Division with 0"); } return Value(val1 / val2); } + Value operator() (long long val1, long long val2) const { retu...
configure.ac: avoid bashisms configure scripts need to be written in POSIX-compliant shell; using '==' is a Bashism (doesn't work for POSIX-compliant shells). Let's use '=' as we do elsewhere to fix compatibility. Fixes:
@@ -137,7 +137,7 @@ AC_MSG_RESULT([$enable_ptrace]) AC_ARG_ENABLE(setjmp, AS_HELP_STRING([--enable-setjmp],[building libunwind-setjmp library]),, - [AS_IF([test x$target_arch == x$host_arch], [enable_setjmp=yes], [enable_setjmp=no])] + [AS_IF([test x$target_arch = x$host_arch], [enable_setjmp=yes], [enable_setjmp=no])]...
Allow modification of sensor/config/reachable only for CLIP sensors
@@ -678,6 +678,8 @@ int DeRestPluginPrivate::changeSensorConfig(const ApiRequest &req, ApiResponse & return REQ_READY_SEND; } + bool isClip = sensor->type().startsWith(QLatin1String("CLIP")); + userActivity(); //check invalid parameter @@ -689,8 +691,16 @@ int DeRestPluginPrivate::changeSensorConfig(const ApiRequest &r...
Version up: tvmknife - 1.0.6 ([arc::pullid] 48ecaf40-1c456aec-154befac-ddb8b7c4)
}, "tvmknife": { "formula": { - "sandbox_id": [375826288], + "sandbox_id": [394817777], "match": "tvmknife" }, "executable": {
reenable the use of sbrk on wasm as it seems more stable than direct memory_grow
@@ -8,6 +8,8 @@ terms of the MIT license. A copy of the license can be found in the file #define _DEFAULT_SOURCE // ensure mmap flags are defined #endif +#define MI_USE_SBRK + #if defined(__sun) // illumos provides new mman.h api when any of these are defined // otherwise the old api based on caddr_t which predates the...
Docker: Adapt commands in ReadMe for fish
@@ -23,7 +23,8 @@ Afterwards pull your desired image as you would do from any public registry: ## Building Images locally -You can build images locally via the following command: + +You can build images locally via the following command, if you use `bash`, `sh` or `zsh`: ```sh docker build -t buildelektra-stretch-full ...
BugID:17573638:fix white scan issue
@@ -200,8 +200,7 @@ static void iotx_device_name_auth_callback(void *user, void *p_message) case COAP_MSG_CODE_205_CONTENT: { if (COAP_ENDPOINT_PSK == p_iotx_coap->p_coap_ctx->network.ep_type) { ret_code = iotx_parse_auth_from_json((char *)message->payload, p_iotx_coap); - } - else{ + } else { ret_code = iotx_get_token...
Position save included.
@@ -362,7 +362,7 @@ esp_err_t WL_Flash::updateV1_V2() WL_RESULT_CHECK(result); this->state.version = 2; - //this->state.pos = 0; + this->state.pos = 0; this->state.crc = crc32::crc32_le(WL_CFG_CRC_CONST, (uint8_t *)&this->state, offsetof(wl_state_t, crc)); this->state.device_id = esp_random(); memset(this->state.reserv...
Removing additional quote in fs_access modes docs
@@ -2662,7 +2662,7 @@ Limited equivalent to `sendfile(2)`. Returns the number of bytes written. - `permission`: `boolean` or `nil` Equivalent to `access(2)` on Unix. Windows uses `GetFileAttributesW()`. Access -`mode` can be an integer or a string containing `""R"` or `"W"` or `"X"`. +`mode` can be an integer or a stri...
[platone][tests]changed my_contract.cpp.abi.c file
@@ -20,6 +20,11 @@ BCHAR *my_contract_cpp_abi_setName(BoatPlatoneTx *tx_ptr, BCHAR* msg) RlpObject rlp_object_string_msg; boat_try_declare; + if ((tx_ptr == NULL) || (msg == NULL)) + { + return NULL; + } + boat_try(BoatPlatoneTxSetNonce(tx_ptr, BOAT_PLATONE_NONCE_AUTO)); boat_try(RlpInitListObject(&rlp_object_list)); @...
fixes the macro expansion of $> and $< specs
:: {$bsld *} :+ %tsls - relative + relative:clear(mod q.mod) :+ %wtld [%wtts [%over ~[&/3] p.mod] ~[&/4]] $/2 :: {$bsbn *} :+ %tsls - relative + relative:clear(mod q.mod) :+ %wtbn [%wtts [%over ~[&/3] p.mod] ~[&/4]] $/2
Removing KeySet after use
@@ -52,6 +52,7 @@ static void testAddressSet (const char * keyValue, int retValue) { KeySet * testKs = ksNew (10, keyNew ("user/tests/mac/addr", KEY_VALUE, keyValue, KEY_META, META, "", KEY_END), KS_END); succeed_if (setKey (testKs) == retValue, "error"); + ksDel (testKs); } static void testAddressesSetGet (const char ...
bricks/cityhub: fix linker script This fixes the user flash location. Before this fix, it was not possible to run persistent scripts on the cityhub.
/* Specify the memory areas */ MEMORY { - /* Flash size is 128K, bootloader resides in first 20K, last 2K seems to be reserved */ + /* Flash size is 256K, bootloader resides in first 20K, last 4K seems to be reserved */ FLASH (rx) : ORIGIN = 0x08005000, LENGTH = 232K - USER_FLASH (rx) : ORIGIN = 0x0801F800, LENGTH = 4K...
ExtendedTools: Fix gpumini text regression
@@ -46,12 +46,12 @@ BOOLEAN EtpGpuListSectionCallback( { case MiListSectionTick: { - PH_FORMAT format[2]; + PH_FORMAT format[3]; // GPU %.2f%% PhInitFormatS(&format[0], L"GPU "); PhInitFormatF(&format[1], (DOUBLE)EtGpuNodeUsage * 100, 2); - PhInitFormatC(&format[0], L'%'); + PhInitFormatC(&format[2], L'%'); ListSection...
Add application/xml to the is_compressible mime types We already cover most of the possible mime types for XML with ``MIME_STARTS_WITH("text/")`` and ``MIME_ENDS_WITH("+xml")`` But ``application/xml``, which is a common and correct mime type for XML, too, is still missing.
@@ -429,7 +429,7 @@ void h2o_mimemap_get_default_attributes(const char *mime, h2o_mime_attributes_t MIME_IS("text/ecmascript") || MIME_IS("text/javascript")) { attr->is_compressible = 1; attr->priority = H2O_MIME_ATTRIBUTE_PRIORITY_HIGHEST; - } else if (MIME_IS("application/json") || MIME_STARTS_WITH("text/") || MIME_E...
update comment for nagios compute install
@@ -14,7 +14,7 @@ provisioned {\em compute} nodes. # Install Nagios base, Remote Plugin Engine, and Plugins on master host [sms](*\#*) (*\groupinstall*) ohpc-nagios -# Also install in compute node image +# Install plugins into compute node image [sms](*\#*) (*\chrootinstall*) nagios-plugins-all-ohpc nrpe-ohpc # Enable ...
Run CMake installation test with build config.
@@ -69,12 +69,12 @@ jobs: mkdir $GITHUB_WORKSPACE/test/pkg/build cd $GITHUB_WORKSPACE/test/pkg/build if [ "$RUNNER_OS" == "Windows" ]; then - cmake -DCMAKE_PREFIX_PATH=C:/tinyspline .. + cmake -DCMAKE_PREFIX_PATH=C:/tinyspline -DCMAKE_BUILD_TYPE=$BUILD_TYPE .. else cmake -DCMAKE_PREFIX_PATH=~/tinyspline .. fi - cmake -...
starting synth_design with the same parameter as framework.xpr
@@ -33,7 +33,22 @@ set widthCol4 $::env(WIDTHCOL4) set step synth_design set logfile $logs_dir/${step}.log set directive [get_property STEPS.SYNTH_DESIGN.ARGS.DIRECTIVE [get_runs synth_1]] -set command "synth_design -mode default -directive $directive" + +set command $step +append command " -mode default" +append comma...
Update URL of Bugzilla at ASF
<xsl:param name="home-stylesheet" select="'/images/docs-stylesheet.css'"/> <xsl:param name="apache-logo" select="'/images/asf-feather.png'"/> <xsl:param name="relative-path" select="'.'"/> - <xsl:param name="buglink" select="'http://issues.apache.org/bugzilla/show_bug.cgi?id='"/> + <xsl:param name="buglink" select="'ht...
hard cord rx frequency as well.
@@ -185,8 +185,13 @@ void LC_monotonic_ASC(int LC_code, unsigned int type){ if (fine > 15){fine++;}; if (type==1) { + // need to be tuned each time for now (fine ranges from (0-11)) mid = mid-1; - fine = 5; + fine = 0; + } else { + printf("coarse=%d,mid=%d,fine=%d\r\n",coarse,mid,fine); +// mid = mid-1; + fine = 0; } L...
sysrepo-plugind BUGFIX uninitialized variable
@@ -295,7 +295,7 @@ main(int argc, char** argv) sr_conn_ctx_t *conn = NULL; sr_session_ctx_t *sess = NULL; sr_log_level_t log_level = SR_LL_ERR; - int plugin_count, i, r, rc = EXIT_FAILURE, opt, debug = 0; + int plugin_count = 0, i, r, rc = EXIT_FAILURE, opt, debug = 0; struct option options[] = { {"help", no_argument,...
Convert maxrss to mb
@@ -200,6 +200,11 @@ static void printSummary(honggfuzz_t* hfuzz) { PLOG_W("getrusage failed"); usage.ru_maxrss = 0; // 0 means something went wrong with rusage } +#ifdef _HF_ARCH_DARWIN + usage.ru_maxrss >>= 20; +#else + usage.ru_maxrss >>= 10; +#endif LOG_I("Summary iterations:%zu time:%" PRIu64 " speed:%" PRIu64 " "...
VERSION bump to version 1.1.43
@@ -40,7 +40,7 @@ set(CMAKE_C_FLAGS_PACKAGE "-g -O2 -DNDEBUG") # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(LIBNETCONF2_MAJOR_VERSION 1) set(LIBNETCONF2_MINOR_VERSION 1) -set(LIBNETCONF2_MICRO_VERSION 42) +set(LIBNETCONF2_MICRO_VERSION 43) set(LIBNETCONF2_VERSION ${LIB...
Add note on PhotoZGaussian being faster than PhotoZFunction because it is implemented in C
"pz_gaussian = ccl.PhotoZGaussian(0.05)" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Note that `PhotoZGaussian` is actually implemented in C rather than Python, so will generally run faster than any function that you pass to `PhotoZFunction`." + ] + }, { "cell_type": "markdown", "metadata": {...
Update titanc_spec
local util = require "titan-compiler.util" describe("Titanc", function() - after_each(function() - os.execute("rm -f test.titan") - os.execute("rm -f test.c") - os.execute("rm -f test.so") - os.execute("rm -f test_script.lua") - end) - - it("Can compile titan files", function() + before_each(function() util.set_file_co...
Removing dead link (thanks to ClassicOldSong)
@@ -75,7 +75,6 @@ This is a list of some of the projects and products that are based on the SDK fo - [aMule](http://www.amule.org) has libupnp support to perform port forwarding. - [Gerbera](https://gerbera.io) UPnP&trade; media server. - [libmcupnp](http://sourceforge.net/projects/libmcupnp) is a Free UPnP(v1) library...
Error: chip/lpc54_serial.c:900:20: error: unused function 'lpc54_modifyreg' [-Werror,-Wunused-function] static inline void lpc54_modifyreg(struct lpc54_dev_s *priv,
@@ -893,28 +893,6 @@ static inline void lpc54_serialout(struct lpc54_dev_s *priv, putreg32(value, priv->uartbase + offset); } -/**************************************************************************** - * Name: lpc54_modifyreg - ****************************************************************************/ - -static...
jenkins: remove useless comments
@@ -304,35 +304,30 @@ def dockerInit() { "./scripts/docker/alpine/3.16/Dockerfile" ) - /* Ubuntu bionic image*/ DOCKER_IMAGES.bionic = dockerUtils.createDockerImageDesc( "bionic", dockerUtils.&idTesting, "./scripts/docker/ubuntu/bionic", "./scripts/docker/ubuntu/bionic/Dockerfile" ) - /* Ubuntu focal image*/ DOCKER_IMA...
Fix typo for log in dcd_rp2040.c
@@ -88,7 +88,7 @@ static void _hw_endpoint_alloc(struct hw_endpoint *ep, uint8_t transfer_type) uint dpram_offset = hw_data_offset(ep->hw_data_buf); hard_assert(hw_data_offset(next_buffer_ptr) <= USB_DPRAM_MAX); - pico_info(" Alloced %d bytes at offset 0x%x (0x%p)\r\n", size, dpram_offset, ep->hw_data_buf); + pico_info...
driver/bc12/pi3usb9281.h: Format with clang-format BRANCH=none TEST=none
#define PI3USB9281_INT_OVP BIT(5) #define PI3USB9281_INT_OCP BIT(6) #define PI3USB9281_INT_OVP_OC BIT(7) -#define PI3USB9281_INT_ATTACH_DETACH (PI3USB9281_INT_ATTACH | \ - PI3USB9281_INT_DETACH) +#define PI3USB9281_INT_ATTACH_DETACH \ + (PI3USB9281_INT_ATTACH | PI3USB9281_INT_DETACH) #define PI3USB9281_TYPE_NONE 0 #def...
remove obsolete content
--- -title: "Config Files" +title: "Config File" --- -## Config Files +## Config File + +`scope.yml` is the sole library configuration file in AppScope. + +The contents of the now-eliminated `scope_protocol.yml` configuration file reside in the `protocol` section of `scope.yml`. + + ### scope.yml Config File -Below are...
fcrypt: add documentation about signatures Explain what signing does to the configuration file and how to display the content of a signed file See for full discussion.
@@ -100,6 +100,13 @@ If more than one key is defined, every private key is used to sign the file of t If a signature is attached to a file, `fcrypt` automatically verifies its content whenever the file is being read. +Note that the signed file is stored in the internal format of GPG. +So you only see binary data when o...
minor update for accuracy position
@@ -20,6 +20,7 @@ class Accuracy(FrameObject): self.maxscore = 0 self.curscore = 0 self.gap = int(gap * Settings.scale * 0.5) + self.sizegap = self.gap - self.frames[0].size[0] self.y = frames[1] def update_acc(self, hitresult): @@ -47,7 +48,7 @@ class Accuracy(FrameObject): self.frame_index = 10 # score_percent y = se...
publish: scroll markdown editor correctly
@@ -12,7 +12,7 @@ export const MarkdownField = ({ id, ...rest }: { id: string; } & Parameters<type const [{ value }, { error, touched }, { setValue, setTouched }] = useField(id); return ( - <Box height="100%" width="100%" display="flex" flexDirection="column" {...rest}> + <Box overflowY="hidden" height="100%" width="10...
fix test bin dir not created
@@ -373,6 +373,9 @@ $(OBJDIR): $(PICOBJDIR): @mkdir -p $(PICOBJDIR) +$(TESTBINDIR): + @mkdir -p $@ + .PHONY: create_obj_dir_structure create_obj_dir_structure: $(OBJDIR) @cd $(SRCDIR) && find . -type d -exec mkdir -p -- ../$(OBJDIR)/{} \; @@ -443,8 +446,8 @@ gitbook: $(BINDIR)/$(AGENT) $(BINDIR)/$(GEN) $(BINDIR)/$(ADD)...
Fixed JS undefined AreaChart error message.
* Copyright (c) 2009-2018 Gerardo Orellana <hello @ goaccess.io> */ -/*jshint sub:true*/ -(function () { 'use strict'; // This is faster than calculating the exact length of each label. @@ -1066,4 +1064,3 @@ function BarChart(dualYaxis) { return chart; } -}());
Reste idle timer to previous value
@@ -3516,7 +3516,7 @@ static int picoquic_check_idle_timer(picoquic_cnx_t* cnx, uint64_t* next_wake_ti int ret = 0; uint64_t idle_timer = 0; - if (cnx->cnx_state >= picoquic_state_client_ready_start) { + if (cnx->cnx_state >= picoquic_state_ready) { uint64_t rto = picoquic_current_retransmit_timer(cnx, picoquic_packet_...
Updated os_generic to work properly when imported into C++ context
@@ -205,7 +205,7 @@ OSG_INLINE double OGGetFileTime(const char *file) { } OSG_INLINE og_thread_t OGCreateThread(void *(routine)(void *), void *parameter) { - pthread_t *ret = malloc(sizeof(pthread_t)); + pthread_t *ret = (pthread_t *)malloc(sizeof(pthread_t)); int r = pthread_create(ret, 0, routine, parameter); if (r) ...
chat: set timestamp size to 1 in unread-notice
@@ -40,7 +40,7 @@ export const UnreadNotice = (props) => { borderColor='blue'> <Text flexShrink='1' textOverflow='ellipsis' whiteSpace='pre' overflow='hidden' display='flex' cursor='pointer' onClick={onClick}> {unreadCount} new message{unreadCount > 1 ? 's' : ''} since{' '} - <Timestamp stamp={stamp} color='blue' date=...
Mark 0.6.1 release
@@ -8,6 +8,9 @@ Next - Add `cbor_set_bool` - Fix memory_allocation_test breaking the build without CBOR_CUSTOM_ALLOC [[Fixes #128]](https://github.com/PJK/libcbor/issues/128) (by [panlinux](https://github.com/panlinux)) - [Fix a potential build issue where cJSON includes may be misconfigured](https://github.com/PJK/lib...
resover: fix null cache key name
@@ -567,12 +567,10 @@ int ELEKTRA_PLUGIN_FUNCTION (get) (Plugin * handle, KeySet * returned, Key * par /* Check if cache update needed */ KeySet * global; - char * name = 0; + char * name = elektraCacheKeyName (pk->filename); if ((global = elektraPluginGetGlobalKeySet (handle)) != NULL && ELEKTRA_STAT_NANO_SECONDS (buf...
stdout: remove cruft changes...
#include <fluent-bit/flb_pack.h> #include <fluent-bit/flb_config_map.h> #include <fluent-bit/flb_metrics.h> -#include <fluent-bit/flb_trace_chunk.h> #include <msgpack.h> #include "stdout.h" @@ -139,7 +138,6 @@ static void cb_stdout_flush(struct flb_event_chunk *event_chunk, (void) config; struct flb_time tmp; msgpack_o...
component/bt: fix Blufi sends data after disconnect the seq still increase
@@ -288,6 +288,7 @@ static void blufi_profile_cb(tBTA_GATTS_EVT event, tBTA_GATTS *p_data) memcpy(blufi_env.remote_bda, p_data->conn.remote_bda, sizeof(esp_bd_addr_t)); blufi_env.conn_id = p_data->conn.conn_id; blufi_env.is_connected = true; + blufi_env.recv_seq = blufi_env.send_seq = 0; msg.sig = BTC_SIG_API_CB; msg.p...
dns-cookie: minor comment on zero termination
@@ -949,7 +949,7 @@ int cookie_secret_file_read(nsd_type* nsd) { assert( secret_len <= sizeof(secret) ); secret_len = secret[secret_len - 1] == '\n' ? secret_len - 1 : secret_len; if( secret_len != NSD_COOKIE_SECRET_SIZE * 2 ) { corrupt++; break; } - /* needed for `hex_pton` */ + /* needed for `hex_pton`; stripping pot...
added additional warning on zeroed timestamps
@@ -499,7 +499,8 @@ printf( " \n" if(tscleanflag == true) { - printf("warning......................: zero value timestamps detected\n"); + printf( "warning......................: zero value timestamps detected\n" + " this prevents correct EAPOL timeout calculation\n"); } if(wdsframecount != 0)
Add the storage struct for AgentCharaCard.
@@ -4360,6 +4360,10 @@ classes: funcs: 0x140BFA290: OpenCharaCardByContentId 0x140BFA310: OpenCharaCardForObject + Client::UI::Agent::AgentCharaCard::Storage: + funcs: + 0x140c152d0: ctor + 0x140c03090: dtor Client::UI::Agent::AgentMJIHud: vtbls: - ea : 0x1419493B8
BugID:16967023:[build-rules/misc] whole word match in test framework
@@ -12,8 +12,8 @@ static void _filter(int argc, char **argv) for (i = 0; i < cut.ccnt_total; i++) { c = cut.clist[i]; - if ((argc == 2 && (NULL == strstr(c->sname, argv[1]))) || - (argc == 3 && (NULL == strstr(c->sname, argv[1]) || NULL == strstr(c->cname, argv[2])))) { + if ((argc == 2 && (0 != strcmp(c->sname, argv[1...
BugID:17646749:[ntp] add demo code for linkkit_ntp_xxx()
@@ -640,6 +640,12 @@ int trigger_deviceinfo(sample_context_t *sample) } #endif +void ntp_time_reply(const char *offset_time) +{ + EXAMPLE_TRACE("ntp time: %s\n", offset_time); +} + + int linkkit_example() { sample_context_t sample_ctx = { 0 }; @@ -724,19 +730,23 @@ int linkkit_example() #ifdef POST_WIFI_STATUS if (now ...
test-suite: update job launch wrapper for pbs
@@ -416,8 +416,10 @@ run_mpi_binary () { rc=$? if [ -n "$output_file" ];then + if [ "$output_file" != "job.out" ];then mv job.out $output_file fi + fi return $rc else ERROR_RETURN "Unsupported resource manager"
doc: s/stb_init()/secureboot_init()/ to match reality
@@ -24,7 +24,7 @@ Secure and Trusted Boot Library (LibSTB) Documentation In order to support Secure and Trusted Boot, the flash driver calls libSTB to verify and measure the code it fetches from PNOR. -LibSTB is initialized by calling *stb_init()*, see ``libstb/secureboot.h``. +LibSTB is initialized by calling *secureb...
change meaning of +, and fix incorrect string compare
@@ -460,7 +460,7 @@ main(int argc, char *argv[]) } /* if ^+ then it's an EDNS option */ if (argv[i][0] == '+') { - if (strstr(argv[i], "nsid")) { + (strncmp(argv[i]+1, "nsid", 4)) ldns_edns_option *edns; edns_list = ldns_edns_option_list_new(); @@ -479,7 +479,7 @@ main(int argc, char *argv[]) continue; } else { - error...
YAML Smith: Add method to collect leaf keys
@@ -49,6 +49,50 @@ CppKeySet contractYamlsmith () #include ELEKTRA_README (yamlsmith) keyNew ("system/elektra/modules/yamlsmith/infos/version", KEY_VALUE, PLUGINVERSION, KEY_END), KS_END); } + +/** + * @brief This class provides additional functionality for the key set class. + */ +class CppKeySetPlus : public CppKeySe...
docs: Fix the typo for imgtool keygen command
@@ -141,7 +141,7 @@ occurs and the information is spread across multiple areas. ## [Creating your keys with imgtool](#creating-your-keys-with-imgtool) -`imgtool` can generate keys by using `imgtool genkey -k <output.pem> -t <type>`, +`imgtool` can generate keys by using `imgtool keygen -k <output.pem> -t <type>`, where...
added fullscreen_mode to get_tree output
@@ -421,6 +421,7 @@ static void ipc_json_describe_container(struct sway_container *c, json_object *o view_is_urgent(c->view) : container_has_urgent_child(c); json_object_object_add(object, "urgent", json_object_new_boolean(urgent)); json_object_object_add(object, "sticky", json_object_new_boolean(c->is_sticky)); + json...
Prettier init of three pass stream constant
@@ -1367,7 +1367,7 @@ picoquic_load_balancer_config_t cid_for_lb_test_config[4] = { picoquic_connection_id_t cid_for_lb_test_ref[4] = { { { 0x08, 0x00, 0x01, 0x23, 0x84, 0x85, 0x86, 0x87 }, 8 }, { { 0x09, 0xf5, 0x84, 0x12, 0xa1, 0x31, 0xb7, 0xe3, 0x5a }, 9 }, - {{0x8b, 0x7b, 0x37, 0xbe, 0x1c, 0x7c, 0xe2, 0x62, 0x28, 0x...
Fix for smtp
@@ -29,6 +29,7 @@ import javax.mail.internet.MimeMessage; import org.apache.log4j.Logger; import com.francelabs.datafari.utils.AlertsConfiguration; +import com.sun.mail.util.MailSSLSocketFactory; /** * Javadoc @@ -85,6 +86,10 @@ public class Mail { final Properties props = new Properties(); props.put("mail.smtp.host", ...
jni-documentation: update troubleshooting for jni plugin installation
@@ -50,22 +50,28 @@ and run: ### Java prerequisites on macOS ### -macOS includes an old apple specific version of java, based on 1.6. However, for the jni plugin version 1.8 of Java is required, so either the openjdk or the oracle jdk has to be installed. +macOS includes an old apple specific version of java, based on ...
lib: on stop, use new engine_exit() func
@@ -415,17 +415,15 @@ int flb_start(flb_ctx_t *ctx) int flb_stop(flb_ctx_t *ctx) { int ret; - uint64_t val; if (ctx->config->file) { mk_rconf_free(ctx->config->file); } flb_debug("[lib] sending STOP signal to the engine"); - val = FLB_ENGINE_EV_STOP; - flb_pipe_w(ctx->config->ch_manager[1], &val, sizeof(uint64_t)); + f...
Switch to SDL threading instead of pthread in xterm.
#include <signal.h> #include <stdio.h> #include <stdlib.h> -#include <pthread.h> #include <limits.h> #ifdef _WIN32 @@ -61,7 +60,7 @@ Uint32 g_got_size_timestamp = 0; struct TCOD_RendererXterm { TCOD_Console* cache; - pthread_t input_thread; + SDL_Thread *input_thread; }; static char* ucs4_to_utf8(int ucs4, char out[5])...
hv: vtd: init interrupt config when resume Current code doesn't init interrupt config when resume from S3. The related register contect will be lost during S3. This patch re-init these regiters. Acked-by: Anthony Xu
@@ -751,11 +751,7 @@ static int dmar_setup_interrupt(struct dmar_drhd_rt *dmar_unit) uint32_t vector; int32_t retval; - if (dmar_unit->dmar_irq != IRQ_INVALID) { - dev_dbg(ACRN_DBG_IOMMU, "%s: irq already setup", __func__); - return 0; - } - + if (dmar_unit->dmar_irq == IRQ_INVALID) { retval = request_irq(IRQ_INVALID, ...
stats: memory leak with per-node-counters on vlib_node_get_nodes() creates a duplicate node structure which was never freed. Type: fix Fixes:
@@ -527,7 +527,10 @@ update_node_counters (stat_segment_main_t * sm) c[n->index] = n->stats_total.suspends - n->stats_last_clear.suspends; } + vec_free (node_dups[j]); } + vec_free (node_dups); + vec_free (stat_vms); } static void
xpath BUGFIX wrong message format parameter Fixes
@@ -302,8 +302,8 @@ lyxp_expr_parse(struct ly_ctx *ctx, const char *expr) tok_type = LYXP_TOKEN_OPERATOR_MATH; } else if (prev_function_check) { - LOGVAL(ctx, LY_VLOG_NONE, NULL, LYVE_XPATH, "Invalid character 0x%x, perhaps \"%.*s\" is supposed to be a function call.", - expr[parsed], &expr[parsed], ret->tok_len[ret->u...
Top down, actors face player on interact, and player stops when trigger starts
+// clang-format off #pragma bank=18 +// clang-format on #include "TopDown.h" #include "Scroll.h" @@ -19,7 +21,6 @@ void Start_TopDown() scroll_target = &player.pos; game_time = 0; - rnd = *(ptr_div_reg_1); initrand(rnd); // set_sprite_tile(0, 24); @@ -43,7 +44,6 @@ void Update_TopDown() tile_x = player.pos.x >> 3; til...
ARMv8: fix implementation of cpu_is_bsp()
@@ -90,8 +90,8 @@ static void mmap_find_memory(struct multiboot_tag_efi_mmap *mmap) bool cpu_is_bsp(void) { - /* XXX: i don't think this is correct*/ - return (sysreg_get_cpu_id() == 0); + /* xxx: assumes the coreid to be set */ + return (my_core_id == 0); } bool arch_core_is_bsp(void) @@ -211,3 +211,4 @@ arch_init(uin...
log BUGFIX obsolete assert removed
@@ -220,8 +220,6 @@ sr_errinfo_new(sr_error_info_t **err_info, sr_error_t err_code, const char *msg_ va_list vargs; int idx; - assert(msg_format); - if ((err_code == SR_ERR_NO_MEMORY) && !msg_format) { /* there is no dynamic memory, use the static error structure */ sr_errinfo_free(err_info);
Fix typo in cipher_chacha20_poly1305_hw.c. CLA: trivial
@@ -142,7 +142,7 @@ static int chacha20_poly1305_tls_cipher(PROV_CIPHER_CTX *bctx, ctx->len.text = plen; if (plen) { - if (ctx->enc) + if (bctx->enc) ctr = xor128_encrypt_n_pad(out, in, ctr, plen); else ctr = xor128_decrypt_n_pad(out, in, ctr, plen);
yang parser BUGFIX argument of argument statement is identifier-arg-str according to YANG ABNF grammar
@@ -3811,7 +3811,7 @@ parse_yinelement(struct lys_parser_ctx *ctx, const char **data, uint16_t *flags, } /** - * @brief Parse the yin-element statement. + * @brief Parse the argument statement. * * @param[in] ctx yang parser context for logging. * @param[in,out] data Data to read from, always moved to currently handled...
NSH: Eliminate warning about unused variable.
@@ -316,7 +316,9 @@ int cmd_set(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) { FAR char *value; int ret = OK; +#ifndef CONFIG_DISABLE_ENVIRON int ndx = 1; +#endif #ifndef CONFIG_NSH_DISABLESCRIPT FAR char *popt; const char opts[] = NSH_NP_SET_OPTIONS; @@ -362,17 +364,20 @@ int cmd_set(FAR struct nsh_vtbl_s *vtbl...
Cassandra updated to 4.0.5 and Cassandra Java driver to 4.14.1
<properties> <bcpkix-jdk15on.version>1.70</bcpkix-jdk15on.version> <bcprov-jdk15on.version>1.70</bcprov-jdk15on.version> - <cassandra.version>4.0.1</cassandra.version> - <cassandra.sha512>2890c054666afa93fe2978c46da5db15ed7d11d60f4890574dc642bd81f7b3af40b41d3e5b8245e6c1453a165eddebeb28bcf3fef1a2b2fc6fb3b82058d7ceb0</ca...
zep2newt.py: recognize x86 padding
@@ -172,7 +172,22 @@ class Convert(): table will be at the beginning, rather than the zero padding. Verify that the padding is present. """ - if self.image[:self.vtable_offs] != bytearray(self.vtable_offs): + + size = self.vtable_offs + + # First test: check if padded with all zeroes (ARM) + expected = bytearray(size) ...
Add missing unknown priority case
@@ -399,6 +399,7 @@ PWSTR PhGetProcessPriorityClassString( return L"Below normal"; case PROCESS_PRIORITY_CLASS_IDLE: return L"Idle"; + case PROCESS_PRIORITY_CLASS_UNKNOWN: default: return L"Unknown"; }
[CUDA] Exclude poclcc in run_cuda_tests
@@ -56,6 +56,7 @@ EXCLUDE="$EXCLUDE|assigning_a_loop_iterator_variable_to_a_private_makes_it_local EXCLUDE="$EXCLUDE|assigning_a_loop_iterator_variable_to_a_private_makes_it_local_2_LOOPS$" EXCLUDE="$EXCLUDE|LoopVectorizer_crash_with_Haswell_and_Broadwell_-_issue_231$" EXCLUDE="$EXCLUDE|struct_kernel_arguments$" +EXCLU...
Fix issue where scene switch wouldn't stop previous scenes background processes
@@ -289,6 +289,7 @@ void ScriptCtxPoolReset() { UBYTE i; for (i = 1; i != MAX_BG_SCRIPT_CONTEXTS + 1; i++) { script_ctx_pool[i] = i; + script_ctxs[i].script_ptr_bank = 0; } script_ctx_pool[0] = MAX_BG_SCRIPT_CONTEXTS; }
Reset keep-alive timer only when packet is sent or received on current path
@@ -3864,7 +3864,7 @@ ngtcp2_ssize ngtcp2_conn_write_single_frame_pkt( conn_handle_tx_ecn(conn, pi, NULL, pktns, &hd, ts); } - if (path && ngtcp2_addr_eq(&conn->dcid.current.ps.path.local, &path->local)) { + if (path && ngtcp2_path_eq(&conn->dcid.current.ps.path, path)) { conn_update_keep_alive_last_ts(conn, ts); } @@ ...
Making get_unique_file_path atomic
@@ -46,9 +46,17 @@ def copytree(src, dst, symlinks=False, ignore=None): def get_unique_file_path(dir_path, file_pattern): + def atomic_file_create(path): + try: + fd = os.open(path, os.O_CREAT | os.O_EXCL) + os.close(fd) + return True + except OSError: + return False + file_path = os.path.join(dir_path, file_pattern) f...
Ensure enough free space before allocating space for a fun in the heap. memory_heap_alloc can fail without sufficient guaranteed space in the heap.
@@ -420,6 +420,9 @@ term make_fun(Context *ctx, const Module *mod, int fun_index) uint32_t n_freeze = module_get_fun_freeze(mod, fun_index); int size = 2 + n_freeze; + if (memory_ensure_free(ctx, size + 1) != MEMORY_GC_OK) { + return term_invalid_term(); + } term *boxed_func = memory_heap_alloc(ctx, size + 1); boxed_fu...
c: Remove KDB_O_INACTIVE option check
@@ -175,9 +175,6 @@ int ksGenerate (const KeySet * ks, FILE * stream, option_t options) fprintf (stream, "ksNew (%d,\n", (int) ksGetSize (cks)); while ((key = ksNext (cks)) != 0) { - if (options & KDB_O_INACTIVE) - if (key && keyIsInactive (key)) continue; - keyGenerate (key, stream, options); fprintf (stream, ",\n"); ...
Revamped some old code that was very buggy in appending to a string buffer, allowing unlimited writes past buffer bounds
@@ -1128,8 +1128,8 @@ ACVP_RESULT acvp_transport_get(ACVP_CTX *ctx, ACVP_RESULT rv = 0; CURL *curl_hnd = NULL; char *full_url = NULL, *escaped_value = NULL; - int max_url = ACVP_ATTR_URL_MAX + 1; - int rem_space = max_url - 1; + int max_url = ACVP_ATTR_URL_MAX; + int rem_space = max_url; #ifndef USE_MURL int join = 0; ...
ci: Fix pre-commit hook per isort deps deprecation isorts dependecy became deprecated. Fixed to use 5.12.0 version of isort pre-commit
@@ -36,7 +36,7 @@ repos: - id: flake8 args: ['--config=.flake8', '--tee', '--benchmark'] - repo: https://github.com/pycqa/isort - rev: 5.9.3 + rev: 5.12.0 hooks: - id: isort name: isort (python)
arch/imxrt_ehci: Fix mem leak for exceptional logic When worker handler is not available, we should free usb_asynch_work structure in imxrt_ehci.c
@@ -2496,6 +2496,7 @@ static void worker_handler(void *input) result = work_queue(HPWORK, &arg->worker, worker_handler, arg, 0); \ } else { \ udbg("workQueue is not allowed\n"); \ + kmm_free(arg); \ return -1; \ } \ } while (0);
add scale for slider img
@@ -24,7 +24,7 @@ class GenerateSlider: self.radius = radius self.scale = scale - self.extended = self.radius * self.scale * 2 + self.extended = self.radius * self.scale def convert_string(self, slider_code): string = slider_code.split(",") @@ -79,7 +79,7 @@ class GenerateSlider: def draw(self, curve_pos): to_color = n...
Use PSA version of key agreement only for ECDHE keys This should be cleaned when server-side static ECDH (1.2) support is added
@@ -3879,6 +3879,10 @@ static int ssl_parse_client_key_exchange( mbedtls_ssl_context *ssl ) ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA ) { #if defined(MBEDTLS_USE_PSA_CRYPTO) + // Handle only ECDHE keys using PSA crypto. + if ( ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_ECDHE_RSA || +...
Regenerate master pipeline config due to changes in template
## file (example: templates/gpdb-tpl.yml) and regenerate the pipeline ## using appropriate tool (example: gen_pipeline.py -t prod). ## ---------------------------------------------------------------------- -## Generated by gen_pipeline.py at: 2019-04-12 12:58:44.825699 +## Generated by gen_pipeline.py at: 2019-04-18 17...
LimeRFE: Add unicode check on COM open
@@ -143,10 +143,16 @@ int serialport_init(const char* serialport, int baud, RFE_COM* com) } strncat(port, serialport, strlen(serialport)); +#ifdef _UNICODE wchar_t wport[20]; mbstowcs(wport, port, strlen(port) + 1);//Plus null - hComm = CreateFile(wport, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); +...
RHoSim: ignore node.js api head file when build rhoapimodules
@@ -4135,6 +4135,8 @@ namespace "run" do startJSModules.unshift(f) elsif f.downcase().end_with?("rhoapi.js") startJSModules << f + elsif f.downcase().end_with?("rhonodejsapi.js") + puts "ignore honodejsapi.js" elsif f.downcase().end_with?("rho.application.js") endJSModules << f elsif f.downcase().end_with?("rho.databas...
fix warning: When compiling C code containing statements like this: rt_base_t xx_io_tbl[] = { GET_PIN(A,0), }; the compiler will report: Warning: #1296-D: extended constant initialiser used
#include <drv_common.h> #include <board.h> -#define __STM32_PORT(port) GPIO##port +#define __STM32_PORT(port) GPIO##port##_BASE -#define GET_PIN(PORTx,PIN) (rt_base_t)((16 * ( ((rt_base_t)__STM32_PORT(PORTx) - (rt_base_t)GPIOA)/(0x0400UL) )) + PIN) +#define GET_PIN(PORTx,PIN) (rt_base_t)((16 * ( ((rt_base_t)__STM32_POR...
Renamed database properties persisted file.
@@ -1042,7 +1042,7 @@ restore_global (void) { restore_global_iglp (last_parse, path); free (path); } - if ((path = check_restore_path ("SI32_DB_VERSION.db"))) { + if ((path = check_restore_path ("SI32_DB_PROPS.db"))) { restore_global_si32 (db_props, path); free (path); } @@ -1144,7 +1144,7 @@ persist_global (void) { pe...
MSR: Use underscores as separator in test names
@@ -2,13 +2,13 @@ include (LibAddTest) add_msr_test (msr_syntax "${CMAKE_SOURCE_DIR}/tests/shell/shell_recorder/tutorial_wrapper/SyntaxCheck.md" REQUIRED_PLUGINS ini) add_msr_test (ini_crash_test "${CMAKE_SOURCE_DIR}/src/plugins/ini/crash_test/crash_test.md" REQUIRED_PLUGINS ini) -add_msr_test (kdb-global-umount "${CMA...
client session MAINTENANCE msg formatting
@@ -1350,7 +1350,7 @@ nc_send_rpc(struct nc_session *session, struct nc_rpc *rpc, int timeout, uint64_ if ((rpc->type != NC_RPC_GETSCHEMA) && (rpc->type != NC_RPC_ACT_GENERIC) && (rpc->type != NC_RPC_SUBSCRIBE)) { ietfnc = ly_ctx_get_module(session->ctx, "ietf-netconf", NULL); if (!ietfnc) { - ERR("Session %u: missing ...
Change path to CMake in regressiontest_pascal to one for 3.0.1.
@@ -196,7 +196,7 @@ done if test "$branch" = "trunk" ; then workingDir="test_trunk" - cmakeCmd="/usr/workspace/wsa/visit/visit/thirdparty_shared/3.0.0b/toss3/cmake/3.9.3/linux-x86_64_gcc-4.9/bin/cmake" + cmakeCmd="/usr/workspace/wsa/visit/visit/thirdparty_shared/3.0.1/toss3/cmake/3.9.3/linux-x86_64_gcc-4.9/bin/cmake" e...
Move hidden logic into loop 'for' statement
@@ -430,11 +430,12 @@ static int aead_multipart_internal_func( int key_type_arg, data_t *key_data, { /* Pass additional data in parts */ ad_part_len = (size_t) ad_part_len_arg; - part_offset = 0; - while( part_offset < additional_data->len ) + for( part_offset = 0, part_count = 0; + part_offset < additional_data->len; ...
All of the aarch64 patches we were applying previously were landed upstream in the valgrind v3.13.0 release. Removing patches from ohpc build
@@ -23,12 +23,6 @@ DocDir: %{OHPC_PUB}/doc/contrib Group: %{PROJ_NAME}/dev-tools Source: https://sourceware.org/pub/%{pname}/%{pname}-%{version}.tar.bz2 Source1: OHPC_macros -%ifarch aarch64 -Patch1: revVEX3352.patch -Patch2: rev16269.v3.13.0.patch -Patch3: rev16309.patch -Patch4: thunderx_always_use_fallback_LLSC.patc...
SIM: Fixing nvme model reset
@@ -956,7 +956,7 @@ module top ( // NVMe model //-- only for NVME_USED=TRUE ////////////////////////////////////////////////////////////-- only for NVME_USED=TRUE nvme_model nvme_model ( //-- only for NVME_USED=TRUE - .unit_reset_n(~pci_user_reset), //-- only for NVME_USED=TRUE + .unit_reset_n(~pcie_perst), //-- only f...
fix(docs): Link to nice!nano product page itself.
@@ -16,7 +16,7 @@ That being said, there are currently only a few specific [boards](/docs/faq#what ## Boards -- [nice!nano](https://docs.nicekeyboards.com/#/nice!nano/) (`nice_nano`) +- [nice!nano](https://nicekeyboards.com/products/nice-nano-v1-0) (`nice_nano`) - [nrfMicro](https://github.com/joric/nrfmicro) (`nrfmicr...
Try continue-on-error: true
@@ -50,10 +50,11 @@ jobs: - name: Build run: | cmake --build build - #- name: Run spec tests - # run: | - # cd test - # ./run-spec-test.py + - name: Run spec tests + continue-on-error: true + run: | + cd test + ./run-spec-test.py - name: Run WASI tests run: | cd test @@ -80,6 +81,7 @@ jobs: cmake --build build --config...
codegen: test fix
@@ -66,7 +66,7 @@ for test_folder in "@CMAKE_SOURCE_DIR@"/tests/shell/gen/*/; do if [ -s "$output_folder$test_name.stdout.diff" ]; then test "1" = "0" succeed_if "stdout of $test_name didn't match the expected output." - if [ "$nodiff" == "" ]; then + if [ "$nodiff" = "" ]; then echo "Here is the diff:" cat "$output_fo...
Add metadata to scrcpy.exe for Windows Refs <https://stackoverflow.com/a/708382/1987178>
0 ICON "../data/icon.ico" +1 VERSIONINFO +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904E4" + BEGIN + VALUE "FileDescription", "Display and control your Android device" + VALUE "InternalName", "scrcpy" + VALUE "LegalCopyright", "Romain Vimont, Genymobile" + VALUE "OriginalFilename", "scrcpy.exe" + VALUE "Produc...
Continue C++ samples refactoring. Update samples to partially use SDL for events. Partially replace root console with a modern console reference. Clean up more local static variables.
@@ -87,12 +87,12 @@ This also lets you use the root console on functions which can't accept `nullptr // Get a temporary non-owning pointer to the context made by TCOD_console_init_root or TCODConsole::initRoot. TCOD_Context* context = TCOD_sys_get_internal_context(); - // Get a temporary non-owning pointer to the root ...