message
stringlengths
6
474
diff
stringlengths
8
5.22k
options/linux: Define several mount flags
@@ -6,6 +6,12 @@ extern "C" { #endif #define MS_BIND 1 +#define MS_RDONLY 2 +#define MS_NOSUID 4 +#define MS_NODEV 8 +#define MS_NOEXEC 16 +#define MS_SYNCHRONOUS 32 +#define MS_NOATIME 64 int mount(const char *source, const char *target, const char *fstype, unsigned long flags, const void *data);
Detect unsupported VS at configure time (and not at compile time)
@@ -124,6 +124,14 @@ if(EXPAT_WITH_LIBBSD) endif() endif() +if(MSVC) + # Minimum supported MSVC version is 1800 = Visual Studio 12.0/2013 + # See also https://cmake.org/cmake/help/latest/variable/MSVC_VERSION.html + if(MSVC_VERSION VERSION_LESS 1800) + message(SEND_ERROR "MSVC_VERSION ${MSVC_VERSION} is not a supported...
revert to production arches and distros
@@ -9,11 +9,8 @@ use Getopt::Long; use File::Temp qw(tempfile); use Path::Tiny qw(path); -#my @arches = ('aarch64', 'x86_64'); -#my @distros = ('CentOS_7.2', 'SLE_12_SP1'); -# debug for testing... -my @arches = ('x86_64'); -my @distros = ('CentOS_7.2'); +my @arches = ('aarch64', 'x86_64'); +my @distros = ('CentOS_7.2',...
fix: undeclared variable c fix: undeclared variable c
@@ -161,10 +161,13 @@ YR_API YR_MEMORY_BLOCK* yr_process_get_next_memory_block( // If we haven't read the whole line, skip over the rest. if (strrchr(buffer, '\n') == NULL) + { + int c; do { - int c = fgetc(proc_info->maps); + c = fgetc(proc_info->maps); } while (c >= 0 && c != '\n'); + } iterator->last_error = ERROR_S...
Debug output for windows compile workflow.
@@ -233,6 +233,8 @@ jobs: cd unbound echo "./configure --enable-debug --enable-static-exe --disable-flto \"--with-ssl=$prepath/openssl\" --with-libexpat=\"$prepath/expat\" --disable-shared" ./configure --enable-debug --enable-static-exe --disable-flto "--with-ssl=$prepath/openssl" --with-libexpat="$prepath/expat" --dis...
Fixed issues with gbdk not working if path contains spaces by symlinking to tmp dir. Made sure to active emsdk before use
import childProcess from "child_process"; import is from "electron-is"; import path from "path"; +import { remote } from "electron"; +import fs from "fs-extra"; const makeBuild = ({ buildType = "rom", @@ -8,10 +10,7 @@ const makeBuild = ({ progress = () => {}, warnings = () => {} } = {}) => { - return new Promise((reso...
Add comments and some debug code
@@ -2152,18 +2152,35 @@ int get_next_min_vertex_scc_cluster(int scc_id, PlutoProg *prog, } int min_scc_id = get_min_convex_successor(scc_id, prog); + if (min_scc_id == prog->ddg->num_sccs) { + /* There is no minimum convex successor */ + for (int i = 0; i < max_dim; i++) { + if (colourable_dims[i]) { + free(colourable_...
add missing function for i18n
this.languageUrl = languageUrl; }, + setCustomLanguageUrl : function(customLanguageUrl) { + this.customLanguageUrl = customLanguageUrl; + }, + setLanguage : function(lang) { var self = this; // Set the language selected, to update the languageSelector widget
add custom MmMapIoSpace(Ex) function.
@@ -61,6 +61,37 @@ NTSTATUS IVSHMEMCreateDevice(_Inout_ PWDFDEVICE_INIT DeviceInit) return status; } +PVOID IVSHMEMMmMapIoSpace( + _In_ PHYSICAL_ADDRESS PhysicalAddress, + _In_ SIZE_T NumberOfBytes + ) +{ + typedef + PVOID + (*PFN_MM_MAP_IO_SPACE_EX) ( + _In_ PHYSICAL_ADDRESS PhysicalAddress, + _In_ SIZE_T NumberOfByte...
ethernet: fix coverity 214973 Ensure that the ethernet_input_inline_dmac_check which directly derefererences ei, is called only if ei is set. Type: fix
@@ -1563,21 +1563,20 @@ ethernet_input_inline (vlib_main_t * vm, dmacs[0] = *(u64 *) e0; - if (ei && vec_len (ei->secondary_addrs)) - ethernet_input_inline_dmac_check (hi, dmacs, - dmacs_bad, - 1 /* n_packets */ , - ei, + if (ei) + { + if (vec_len (ei->secondary_addrs)) + ethernet_input_inline_dmac_check ( + hi, dmacs,...
Simplified unit test to resolve path issues
local suite = test.declare("gmake2_buildcommands") local gmake2 = premake.modules.gmake2 -premake.api.register { - name = 'test_libdir', -- this controls the targetdir for StaticLib projects. - scope = 'config', - kind = 'path', - tokens = true, - pathVars = true, -} - local wks, prj, cfg function suite.setup() wks = w...
fix wording in h2olog -h
@@ -54,8 +54,7 @@ Optional arguments: -t <tracepoint> A tracepoint, or fully-qualified probe name to trace. Glob patterns can be used; e.g., "quicly:accept", "h2o:*". -S <rate> Enable random sampling per connection (0.0-1.0). Requires - `usdt-selective-tracing: ON` must be specified in the h2o - config file. + use of `...
New slightly faster ygdiff.
}, "ygdiff": { "formula": { - "sandbox_id": 567709191, + "sandbox_id": 587203509, "match": "ygdiff" }, "executable": {
test: use LTS image instea of stable for Flatcar e2e
# vi: set ft=ruby : Vagrant.configure("2") do |config| - config.vm.box = "flatcar-stable" + config.vm.box = "flatcar-lts" config.vm.box_check_update = true - config.vm.box_url = "https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_vagrant.json" + config.vm.box_url = "https://lts.release.flatca...
netbsd: use funcs_t from sanitizers.h
#include <sys/param.h> #include <sys/types.h> +#include "sanitizers.h" + /* String buffer size for function names in stack traces produced from libunwind */ #define _HF_FUNC_NAME_SZ 256 // Should be alright for mangled C++ procs too -#define _HF_MAX_FUNCS 80 -typedef struct { - void* pc; - - /* If ASan custom parsing, ...
Testing: Print packing type which failed the test
@@ -2753,7 +2753,8 @@ int main(int argc, char* argv[]) GRIB_CHECK(grib_get_long(h, "numberOfDataPoints", &numberOfDataPoints), 0); if (numberOfValues + numberOfMissing != numberOfDataPoints) { - printf(" numberOfValues = %ld, numberOfDataPoints = %ld, numberOfMissing = %d\n", numberOfValues, numberOfDataPoints, numberO...
Added disposal on exit in the Unity example
@@ -67,4 +67,12 @@ public class SurviveObject : MonoBehaviour { updatedObject.transform.localRotation = newRotation; } } + + void OnApplicationQuit() { + if (survive != null){ + survive.Close(); + survive.Dispose(); + survive = null; + } + } }
plugins types DOC minor fixes
@@ -164,7 +164,7 @@ struct lysc_type_leafref; uint32_t plugins_types_apiver__ = LYPLG_TYPE_API_VERSION; \ const struct lyplg_type_record plugins_types__[] -/* +/** * @brief Create and fill error structure. * * Helper function for various plugin functions to generate error information structure. @@ -273,7 +273,7 @@ cons...
[core] explicitly include sys/cdefs.h <sys/cdefs.h> might not be included in standard headers by musl libc x-ref:
#include <sys/types.h> #include <stddef.h> +#ifdef __has_include +#if __has_include(<sys/cdefs.h>) +#include <sys/cdefs.h> +#endif +#endif + #ifndef __BEGIN_DECLS #ifdef __cplusplus #define __BEGIN_DECLS extern "C" {
speed up calculations using fixed point
@@ -49,8 +49,8 @@ void rotozoom(uint32_t time_ms) { static Pen palette[] = { Pen(0, 0, 0), Pen(255, 255, 255), Pen(0, 255, 0) }; - float c = cos(angle * M_PI / 180.0f); - float s = sin(angle * M_PI / 180.0f); + int32_t c = cos(angle * M_PI / 180.0f) * 1024; + int32_t s = sin(angle * M_PI / 180.0f) * 1024; angle += 0.25...
Update paths on the bridging header
// #import "../Python/Python.h" -#import "Python Bridging/Selectors/BlockBasedSelector.h" +#import "Model/Python Bridging/Selectors/BlockBasedSelector.h" #if MAIN #import <openssl/pkcs7.h> #import <openssl/evp.h> #import <openssl/ssl.h> #import <openssl/asn1.h> -#import "RMStore/RMAppReceipt.h" +#import "Other/RMStore/...
chip/stm32/usb_dwc_stream.c: Format with clang-format BRANCH=none TEST=none
@@ -24,9 +24,8 @@ int rx_stream_handler(struct usb_stream_config const *config) /* If we have some, try to shove them into the queue */ if (rx_count) { - size_t added = QUEUE_ADD_UNITS( - config->producer.queue, config->rx_ram, - rx_count); + size_t added = QUEUE_ADD_UNITS(config->producer.queue, + config->rx_ram, rx_c...
wrap calls to rho_ruby_hold_value/MethodResult with pause of GC
@@ -283,12 +283,16 @@ void CMethodResult::callCallback() #ifndef RHORC_NO_RUBY CMethodResult::CMethodRubyValue::CMethodRubyValue(unsigned long val) : m_value(val) { + VALUE oldGC = rho_ruby_disable_gc(); rho_ruby_holdValue(m_value); + rho_ruby_enable_gc(oldGC); } CMethodResult::CMethodRubyValue::~CMethodRubyValue() { +...
Fix issue with camera offsets causing wrapping near scene edges
@@ -15,16 +15,16 @@ void UpdateCamera_b() { } // Clamp Camera X - if (camera_pos.x > image_width - SCREEN_WIDTH_HALF) { + if (U_LESS_THAN(image_width - SCREEN_WIDTH_HALF, camera_pos.x)) { camera_pos.x = image_width - SCREEN_WIDTH_HALF; - } else if (camera_pos.x < SCREEN_WIDTH_HALF) { + } else if (U_LESS_THAN(camera_pos...
Applied missing changes to tests
@@ -131,17 +131,6 @@ static struct Test tests[] = { .freq = 5, .format = FLASH_FORMAT_BINARY } }, - { "--debug --freq=6k --reset write test.bin 0x80000000", -1, - { .cmd = FLASH_CMD_WRITE, - .serial = { 0 }, - .filename = "test.bin", - .addr = 0x80000000, - .size = 0, - .reset = 1, - .log_level = DEBUG_LOG_LEVEL, - .fr...
peview: Improve ordinal import name format
@@ -99,9 +99,8 @@ VOID PvpProcessImports( if (exportOrdinalName) { - name = PhFormatString(L"(Ordinal %u) [%s]", importEntry.Ordinal, exportOrdinalName->Buffer); - PhSetListViewSubItem(ListViewHandle, lvItemIndex, 2, name->Buffer); - PhDereferenceObject(name); + name = PhaFormatString(L"%s (Ordinal %u)", PhGetStringOrE...
Add skipped local tests
@@ -23,3 +23,14 @@ Header stacks and unions are not supported Complex variable assignments are only partially supported test-compound-assignment + +Currently unsupported + %cpf=psa + %cpf_core=psa + %cpf_main=psa + %cpf_ran=psa + %epg_2020=psa + %transport=psa + + %cpf=v1 + %epg_2020=v1
BUFR operator 206YYY not working. Fix performance
@@ -631,23 +631,25 @@ static int expand(grib_accessor* a) unexpanded=grib_bufr_descriptors_array_new(c,unexpandedSize,100); unexpanded_copy=grib_bufr_descriptors_array_new(c,unexpandedSize,100); + operator206yyy_width = 0; for (i=0;i<unexpandedSize;i++) { - bufr_descriptor* aDescriptor = grib_bufr_descriptor_new(self->...
Major (unsure) fixes
for(int i=0; i<4; ++i) GM.ub[i] = (GM.sw[i]<0)?0:((GM.sw[i]>0xff)?0xff:GM.sw[i]); for(int i=0; i<4; ++i) - GM.ub[8+i] = (EM->sw[i]<0)?0:((EM->sw[i]>0xff)?0xff:EM->sw[i]); + GM.ub[4+i] = (EM->sw[i]<0)?0:((EM->sw[i]>0xff)?0xff:EM->sw[i]); NEXT; _0f_0x68: /* PUNPCKHBW Gm,Em */ tmp8u = F8; if(&GM!=EM) { for(int i=0; i<4; +...
DM: use standard offsetof to avoid duplicate definition Acked-by: Anthony Xu
#include <pthread.h> #include <string.h> #include <assert.h> +#include <stddef.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> # define RTC_DEBUG(format, ...) do { } while (0) #endif -#define offsetof(type, member) ((size_t)(&((type *)0)->member)) - /* Register layout of the RTC */ struct rtcdev { uint8_...
pack: fix outbound memory access when calling msgpack2json
@@ -506,7 +506,7 @@ int flb_msgpack_to_json(char *json_str, size_t json_size, return -1; } - ret = msgpack2json(json_str, &off, json_size, obj); + ret = msgpack2json(json_str, &off, json_size - 1, obj); json_str[off] = '\0'; return ret ? off: ret; }
tigertool: fix regex Change $ to \s in regex. TEST=./tigertool.py --setserialno test BRANCH=none
@@ -115,7 +115,7 @@ def do_serialno(serialno, pty): ptyError: on command interface error. """ cmd = 'serialno set %s' % serialno - regex = 'Serial number: (.*)$' + regex = 'Serial number:\s+(\S+)' results = pty._issue_cmd_get_results(cmd, [regex])[0] sn = results[1].strip().strip('\n\r')
Post: enable feed modal fixes Fixes urbit/landscape#667
@@ -59,14 +59,19 @@ export function EnableGroupFeed(props: { <ModalOverlay spacing={[3, 5, 7]} bg="white" dismiss={dismiss}> <Formik initialValues={initialValues} onSubmit={onSubmit}> <Form> - <Col gapY="4" p="4"> + <Col gapY="3" p="3"> + <Col gapY="1"> <Text fontWeight="medium" fontSize="2"> Enable Feed </Text> + <Tex...
vxlan:fix ip6 tunnel deletion
@@ -599,7 +599,8 @@ int vnet_vxlan_add_del_tunnel if (!p) return VNET_API_ERROR_NO_SUCH_ENTRY; - u32 instance = vxm->tunnel_index_by_sw_if_index[p->sw_if_index]; + u32 instance = is_ip6 ? key6.value : + vxm->tunnel_index_by_sw_if_index[p->sw_if_index]; vxlan_tunnel_t *t = pool_elt_at_index (vxm->tunnels, instance); sw_...
just list the installation instructions
@@ -18,9 +18,6 @@ make bot deployment dead simple. The primary design goals of this framework are ## Build ### Install dependencies: - - gcc, make - - libc - - libcurl (using openssl for SSL/TSL) For debian and ubuntu ``` apt-get install -y build-essential
use the terms "first" and "last" for the octet indexes in UUID
@@ -35,10 +35,10 @@ static void format_uuid_rfc4122(char *dst, const uint8_t *uuid) // > clock-seq-low "-" node // See also "4.1.2. Layout and Byte Order" for the layout size_t pos = 0; -#define UUID_ENC_PART(start, last) \ +#define UUID_ENC_PART(first, last) \ do { \ - h2o_hex_encode(&dst[pos], &uuid[start], last - st...
doc UPDATE information about branches
@@ -33,6 +33,16 @@ another basic building block for the [**Netopeer2** toolset](https://github.com/ For a reference implementation of NETCONF client and server, check the **Netopeer2** project. +## Branches + +The project uses 2 main branches `master` and `devel`. Other branches should not be cloned. In `master` there ...
Tests: more reconfigure tests.
@@ -161,6 +161,59 @@ class TestUnitPythonApplication(unit.TestUnitApplicationPython): "max": (i % 4) + 1 }, '/applications/mirror/processes'), 'reconfigure 3') + def test_python_keepalive_reconfigure_2(self): + self.skip_alerts.append(r'sendmsg.+failed') + self.load('mirror') + + body = '0123456789' + + (resp, sock) = ...
Allocates and initializes pubkey in X509_PUBKEY_dup() Fixes
@@ -209,7 +209,8 @@ X509_PUBKEY *X509_PUBKEY_dup(const X509_PUBKEY *a) { X509_PUBKEY *pubkey = NULL; - if (!x509_pubkey_ex_new(NULL, ASN1_ITEM_rptr(X509_PUBKEY_INTERNAL)) + if (!x509_pubkey_ex_new((ASN1_VALUE **)&pubkey, + ASN1_ITEM_rptr(X509_PUBKEY_INTERNAL)) || !x509_pubkey_set0_libctx(pubkey, a->libctx, a->propq) ||...
king: properly mark named I hope in th
@@ -107,12 +107,14 @@ addErrTag :: String -> Exp -> Exp addErrTag tag exp = -- This spurious let is inserted so we can get better cost center data -- during heap profiling. - LetE [ValD (VarP nom) (NormalB bod) []] (VarE nom) + LetE [ValD (VarP nom) (NormalB nam) []] + $ InfixE (Just $ VarE nom) (VarE (mkName ".")) (Ju...
uart: Fix unwanted processing of TX_DONE interrupt immediately after calling uart_wait_tx_done() In previous transmission(s), the TX_DONE interrupt raw bit may be raised, but never been cleared. TX_DONE interrrupt status bit should be cleared before enabling it to check the new transmission. Introduced in
@@ -1142,6 +1142,9 @@ esp_err_t uart_wait_tx_done(uart_port_t uart_num, TickType_t ticks_to_wait) xSemaphoreGive(p_uart_obj[uart_num]->tx_mux); return ESP_OK; } + if (!UART_IS_MODE_SET(uart_num, UART_MODE_RS485_HALF_DUPLEX)) { + uart_hal_clr_intsts_mask(&(uart_context[uart_num].hal), UART_INTR_TX_DONE); + } UART_ENTER_...
Cooja motes: larger log buffer
#define IMPLEMENT_PRINTF 1 -#if MAX_LOG_LENGTH < 1024 -#undef MAX_LOG_LENGTH -#define MAX_LOG_LENGTH 1024 -#endif /* MAX_LOG_LENGTH < 1024 */ +#ifndef MAX_LOG_LENGTH +#define MAX_LOG_LENGTH 8192 +#endif /* MAX_LOG_LENGTH */ const struct simInterface simlog_interface;
mpi-families/mvapich2: remove patch now included in upstream
@@ -38,8 +38,7 @@ Source0: http://mvapich.cse.ohio-state.edu/download/mvapich/mv2/%{pname}-%{ver Patch0: mvapich2-get_cycles.patch # karl.w.schulz@intel.com (05/21/2017) Patch1: mpidimpl.opt.patch -# karl@oden.utexas.edu (11/5/2019) -Patch2: winptr.patch + %if 0%{with_slurm} BuildRequires: slurm-devel%{PROJ_DELIM} slur...
Define PRIu64 if not defined.
@@ -43,6 +43,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define PRIu64 "I64u" #endif +#if !defined(PRIu32) +#define PRIu64 "I32u" +#endif + #if !defined(PRIx64) #define PRIx64 "I64x" #endif
FIX: clear pipe_state at the end of the pipelining to avoid swallowing the next command.
@@ -1475,7 +1475,7 @@ static void pipe_response_save(conn *c, const char *str, size_t len) } } -static void pipe_response_done(conn *c) +static void pipe_response_done(conn *c, bool end_of_pipelining) { char headbuf[PIPE_HEAD_RES_SIZE]; int headlen; @@ -1507,6 +1507,10 @@ static void pipe_response_done(conn *c) sprintf...
spiflash: Improve erase sectors Each flash has known time which is needed to erase sector. Having this in mind we can wait a bit before reading status after sector erase. Note: This could be done smarter along with adjusting longest time which might be needed. For now we choose some "default" value
@@ -876,6 +876,8 @@ spiflash_wait_ready(struct spiflash_dev *dev, uint32_t timeout_ms) spiflash_lock(dev); while (!spiflash_device_ready(dev)) { + /* If not ready let's give it 10ms */ + os_time_delay(os_time_ms_to_ticks32(10)); if (os_time_get() > exp_time) { rc = -1; goto err; @@ -1033,6 +1035,11 @@ spiflash_erase_se...
BASE_API_URL is a string literal, it can be concatinated with other str literals at compiler time
@@ -194,7 +194,7 @@ static void set_url(struct discord_api_s *api, char endpoint[]) { char base_url[MAX_URL_LEN]; - int ret = snprintf(base_url, MAX_URL_LEN, "%s%s", BASE_API_URL, endpoint); + int ret = snprintf(base_url, MAX_URL_LEN, BASE_API_URL "%s", endpoint); ASSERT_S(ret < MAX_URL_LEN, "out-of-bounds write of bas...
Fix cgen for token_writer.write_token
@@ -711,12 +711,28 @@ func (g *gen) writeBuiltinQuestionCall(b *buffer, n *a.Expr, depth uint32) error scratchName := fmt.Sprintf("self->private_data.%s%s[0].scratch", sPrefix, g.currFunk.astFunc.FuncName().Str(g.tm)) + args := n.Args() b.printf("%s = (((uint64_t)(", scratchName) - if err := g.writeExpr(b, n.Args()[0]....
Add debug macros and extra space missed in
@@ -219,6 +219,9 @@ storageDriverS3New( const String *caPath) { FUNCTION_DEBUG_BEGIN(logLevelDebug); + FUNCTION_DEBUG_PARAM(STRING, path); + FUNCTION_DEBUG_PARAM(BOOL, write); + FUNCTION_DEBUG_PARAM(FUNCTIONP, pathExpressionFunction); FUNCTION_DEBUG_PARAM(STRING, bucket); FUNCTION_DEBUG_PARAM(STRING, endPoint); FUNCTIO...
Fix setting of summand_scale_and_biases in modelInfo
@@ -998,7 +998,7 @@ static void SumModelsParams( scaleAndBias.InsertValue("bias", model->GetScaleAndBias().Bias); summandScaleAndBiases.AppendValue(scaleAndBias); } - (*modelInfo)["summand_scale_and_biases"] = summandScaleAndBiases.GetString(); + (*modelInfo)["summand_scale_and_biases"] = summandScaleAndBiases.GetStrin...
gtk-text: only display version and url at startup
@@ -152,13 +152,7 @@ gftpui_common_init (int *argc, char ***argv, gftp_logging_func logfunc) void gftpui_common_about (gftp_logging_func logging_function, gpointer logdata) { - char *str; - logging_function (gftp_logging_misc, logdata, "%s - http://www.gftp.org/\n", gftp_version); - - str = _("Translated by"); - if (st...
ias: dont reset bw state machine until memory bandwidth is below the limit
@@ -227,11 +227,12 @@ void ias_bw_poll(void) case IAS_BW_STATE_PUNISH: ias_bw_gather_pmc(end); - if (!throttle || unlikely(ias_bw_punish(start, end))) { + if (!throttle) { ias_bw_sample_aborts++; state = IAS_BW_STATE_RELAX; break; } + ias_bw_punish(start, end); swapvars(start, end); ias_bw_request_pmc(PMC_LLC_MISSES, e...
90http3-graceful-shutdown.t: Keep stderr open for troubleshooting
@@ -59,8 +59,6 @@ die "fork failed:$!" unless defined $client_pid; if ($client_pid == 0) { - close STDERR; - open STDERR, ">", "/dev/null"; my @args = ("$client_prog", qw(-3 -t 5 -d 1000 -b 10 -c 2 -i 1000), "https://127.0.0.1:$quic_port/echo"); exec @args; die "should not reach here!";
Disable -Werror for now Without having __riscv_flen defined we get multiple warinings. But defining it causes the startup code to contain floating point instructions. This results in a exception right after booting. See startup_gd32vf103.S lines should open a PR at nuclei sdk
@@ -91,7 +91,6 @@ CFLAGS += \ -Wstrict-overflow \ -Wall \ -Wextra \ - -Werror \ -Wfatal-errors \ -Werror-implicit-function-declaration \ -Wfloat-equal \ @@ -102,7 +101,8 @@ CFLAGS += \ -Wmissing-format-attribute \ -Wunreachable-code \ -Wcast-align \ - -Wcast-function-type + -Wcast-function-type \ + # -Werror disable fo...
[CUDA] Fix address space of vprintf format args
@@ -339,6 +339,32 @@ void pocl_cuda_fix_printf(llvm::Module *module) // Remove old function cl_printf->eraseFromParent(); + + + // Fix address space of vprintf format arguments + llvm::Function *vprintf_func = module->getFunction("vprintf"); + if (!vprintf_func) + return; + callers.assign(vprintf_func->users().begin(),...
Fix out of memory access in OcXmlLib
@@ -454,10 +454,10 @@ XmlParseTagEnd ( // Handle attributes. // if (NameLength != 0) { - if (Attributes != NULL) { + if (Attributes != NULL && (Current == '/' || Current == '>')) { *Attributes = &Parser->Buffer[Start + NameLength]; AttributeStart = NameLength; - while (IsAsciiSpace (**Attributes) && AttributeStart < Le...
Always call LRU_set_hot() under hash bucket lock set_hot() depends on cacheline metadata status to determine on which list the element is located (dirty cs clean list). Thus at least hash bucket lock is required when calling set_hot().
@@ -607,8 +607,8 @@ int ocf_engine_prepare_clines(struct ocf_request *req) mapped = ocf_engine_is_mapped(req); if (mapped) { lock = lock_clines(req); - ocf_hb_req_prot_unlock_rd(req); ocf_engine_set_hot(req); + ocf_hb_req_prot_unlock_rd(req); return lock; } @@ -624,6 +624,8 @@ int ocf_engine_prepare_clines(struct ocf_r...
Fix user after free bug
@@ -2650,9 +2650,8 @@ int module_unload( dll = next_dll; } - yr_free(pe); - func = pe->exported_dlls; + while (func) { yr_free(func->name); @@ -2660,5 +2659,8 @@ int module_unload( yr_free(func); func = next_func; } + + yr_free(pe); + return ERROR_SUCCESS; }
out_retry: use new output logging api
* limitations under the License. */ +#include <fluent-bit/flb_output_plugin.h> +#include <fluent-bit/flb_pack.h> + #include <stdio.h> #include <unistd.h> #include <fcntl.h> -#include <fluent-bit/flb_pack.h> -#include <fluent-bit/flb_output.h> /* Retry context, only works with one instance */ struct retry_ctx { int n_re...
Better performance on fix issue
-- function context.mergeFilters(ctx, src) - if src.terms ~= nil then for k, v in pairs(src.terms) do - ctx.terms[k] = table.joinunique(ctx.terms[k] or {}, src.terms[k]) - - if #ctx.terms[k] == 1 then - ctx.terms[k] = ctx.terms[k][1] - end + if k == "tags" then + ctx.terms[k] = table.join(ctx.terms[k], v) + else + ctx....
Add comment to config_psa.h about enabling PSA_HKDF/PSA_HKDF_EXRACT/PSA_HKDF_EXPAND algs
@@ -606,6 +606,10 @@ extern "C" { #define PSA_WANT_ALG_GCM 1 #endif /* MBEDTLS_GCM_C */ +/* Enable PSA HKDF algorithm if mbedtls HKDF is supported. + * PSA HKDF EXTRACT and PSA HKDF EXPAND have minimal cost when + * PSA HKDF is enabled, so enable both algorithms together + * with PSA HKDF. */ #if defined(MBEDTLS_HKDF_C...
build: use gcc-8 as default on ubuntu 18.04 Type: improvement
@@ -59,6 +59,11 @@ else ifeq ($(filter rhel centos fedora opensuse opensuse-leap opensuse-tumblewee PKG=rpm endif +# on ubuntu 18.04 prefer gcc-8 if it is installed and CC is not set +ifeq ($(OS_VERSION_ID)-$(CC)-$(shell which gcc-8 > /dev/null; echo $$?),18.04-cc-0) + CC = gcc-8 +endif + # +libganglia1-dev if building...
virtual_battery: support reading DeviceChemistry TEST=check sbs-battery from host side BRANCH=None
@@ -289,6 +289,9 @@ int virtual_battery_operation(const uint8_t *batt_cmd_head, case SB_DEVICE_NAME: copy_memmap_string(dest, EC_MEMMAP_BATT_MODEL, read_len); break; + case SB_DEVICE_CHEMISTRY: + copy_memmap_string(dest, EC_MEMMAP_BATT_TYPE, read_len); + break; case SB_AVERAGE_TIME_TO_FULL: /* This may cause an i2c tra...
fixed bug with upvalue box's runtime type check
@@ -124,6 +124,7 @@ function Converter:exit_lambda(lambda) -- to ast.Var.Dot local typ = types.T.Record(self:type_name(decl.name), { "value" } , { value = decl._type } ) self:add_box_type(decl.loc, typ) + decl._type = typ local init_exp = self.init_exp_of_decl[decl]
Add notes on 2.x series binaries
@@ -68,10 +68,27 @@ options ranging from 0.89 bits/pixel up to 8 bits/pixel. # Prebuilt binaries -Prebuilt release build binaries of `astcenc` for 64-bit Linux, macOS, and -Windows are available in the +Release build binaries for the `astcenc` stable releases are provided in the [GitHub Releases page](https://github.co...
[docker-build] add CI to build a jupyterlab docker image with siconos ready to use and including siconos-tutorials notebooks
@@ -207,14 +207,23 @@ ubuntu20:install: debian-buster:install: variables: IMAGE_NAME: $CI_REGISTRY_IMAGE/sources/debian-buster - needs: ["jupyterlab:full"] + siconos_docker_name: siconos-$CI_COMMIT_REF_NAME-debian-buster + extends: + - .siconos-install + - .full-ci-rules + needs: ["debian-buster:build"] + jupyterlab:in...
nimble/ll: Require 257 bytes HCI events when enabling fake dual-mode Some BR/EDR commands eg. Read Local Name command have fixed (max allowed HCI event size) return values. If event size is smaller it results in assert.
@@ -23,3 +23,5 @@ syscfg.defs: device. It can be initialized and used by Windows 10 to some extent. value: 0 + restrictions: + - '(BLE_TRANSPORT_EVT_SIZE == 257) if 1'
fix volatile declaration on function
@@ -702,7 +702,7 @@ static inline mi_page_t* mi_find_free_page(mi_heap_t* heap, size_t size) { a certain number of allocations. ----------------------------------------------------------- */ -static volatile mi_deferred_free_fun* deferred_free = NULL; +static mi_deferred_free_fun* volatile deferred_free = NULL; void _m...
router_add_server: fix appending to ch_servers list
@@ -476,7 +476,7 @@ router_add_server( char hnbuf[256]; char errbuf[512]; server *newserver; - servers *w = NULL; + servers *w; walk = saddrs; /* NULL if file */ do { @@ -586,10 +586,12 @@ router_add_server( cl->type == FNV1A_CH || cl->type == JUMP_CH) { - if (w == NULL) { + if (cl->members.ch->servers == NULL) { cl->m...
Adjust semantics of TTL adjustment after feedback from
@@ -465,7 +465,7 @@ packed_rrset_ttl_subtract(struct packed_rrset_data* data, time_t subtract) data->rr_ttl[i] -= subtract; else data->rr_ttl[i] = 0; } - data->ttl_add = 0; + data->ttl_add = (subtract < data->ttl_add) ? (data->ttl_add - subtract) : 0; } /* Adjust the TTL of a DNS message and its RRs by 'adjust'. If 'ad...
attempt to fix border offset
@@ -3680,12 +3680,9 @@ void togglefakefullscreen(const Arg *arg) { if (selmon->sel->isfullscreen) { if (selmon->sel->isfakefullscreen) { - if (selmon->sel->isfullscreen) - selmon->sel->bw = 0; - resizeclient(selmon->sel, selmon->mx, selmon->my, selmon->mw, selmon->mh); + resizeclient(selmon->sel, selmon->mx + borderpx,...
Fix missed documentation header pt 2
@@ -296,8 +296,6 @@ typedef enum * to set lengths, and in what order with * respect to set nonce. * \param expected_output Expected output - * \param expect_valid_signature If non zero, we expect the signature to be - * valid * \param is_encrypt If non-zero this is an encryption operation. * \param do_zero_parts If non...
Minor cleanup for win32stat.c. Use GetLastError(), rather than assuming that CreateFile() failure must map to ENOENT. Noted by Michael Paquier. Discussion:
@@ -204,8 +204,10 @@ _pgstat64(const char *name, struct stat *buf) NULL); if (hFile == INVALID_HANDLE_VALUE) { + DWORD err = GetLastError(); + CloseHandle(hFile); - errno = ENOENT; + _dosmaperr(err); return -1; }
improve xrepo as function
@@ -39,10 +39,10 @@ function xrepo { fi ;; *) - "$XMAKE_EXE" lua private.xrepo $@ + "$XMAKE_EXE" lua private.xrepo "$@" ;; esac else - "$XMAKE_EXE" lua private.xrepo $@ + "$XMAKE_EXE" lua private.xrepo "$@" fi }
Shift context type by one, so we have the chance to use 0 in the future for "project" context
@@ -31,10 +31,10 @@ static CLAP_CONSTEXPR const char CLAP_EXT_STATE_CONTEXT[] = "clap.state-context. enum clap_plugin_state_context_type { // suitable for duplicating a plugin instance - CLAP_STATE_CONTEXT_FOR_DUPLICATE = 0, + CLAP_STATE_CONTEXT_FOR_DUPLICATE = 1, // suitable for loading a state as a preset - CLAP_STAT...
Move DES based test cases out of FIPS territory
@@ -44,7 +44,6 @@ my @files = qw( evpciph_aes_cts.txt evpciph_aes_wrap.txt evpciph_aes_stitched.txt - evpciph_des3_common.txt evpkdf_hkdf.txt evpkdf_kbkdf_counter.txt evpkdf_pbkdf1.txt @@ -68,7 +67,6 @@ push @files, qw( ) unless $no_dh; push @files, qw( evpkdf_x942_des.txt - evpmac_cmac_des.txt ) unless $no_des; push @...
roller: add support for forced transactions
^- (unit @ud) ?~ nonce=(~(get by params) 'nonce') ~ (ni u.nonce) + :: + ++ force + |= params=(map @t json) + ^- (unit ?) + ?~ force=(~(get by params) 'force') ~ + (bo u.force) -- :: ++ to-json ++ process-rpc |= [id=@t params=(map @t json) action=l2-tx over-quota=$-(@p ?)] ^- [(unit cage) response:rpc] - ?. =((lent ~(ta...
interop: Longer timeout for multiconnect on server side
@@ -46,6 +46,9 @@ elif [ "$ROLE" == "server" ]; then SERVER_ARGS="0.0.0.0 443 /etc/ngtcp2/server.key /etc/ngtcp2/server.crt -s -d /www" if [ "$TESTCASE" == "retry" ]; then SERVER_ARGS="$SERVER_ARGS -V" + elif [ "$TESTCASE" == "multiconnect" ]; then + SERVER_ARGS="$SERVER_ARGS --timeout=180s" fi + /usr/local/bin/server ...
Also check PSA: Python port of
@@ -32,7 +32,7 @@ import logging # Naming patterns to check against MACRO_PATTERN = r"^MBEDTLS_[0-9A-Z_]*[0-9A-Z]$|^YOTTA_[0-9A-Z_]*[0-9A-Z]$" -IDENTIFIER_PATTERN = r"^mbedtls_[0-9a-z_]*[0-9a-z]$" +IDENTIFIER_PATTERN = r"^(mbedtls|psa)_[0-9a-z_]*[0-9a-z]$" class Match(object): def __init__(self, filename, line, pos, na...
VERSION bump version to 0.9.5
@@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 9) -set(LIBNETCONF2_MICRO_VERSION 4) +set(LIBNETCONF2_MICRO_VERSION 5) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LIBN...
Add translation for Justin Privitera's e-mail in visit-notify-test-failure.
@@ -101,6 +101,7 @@ fi # sed -i "s/mclarsen@users.noreply.github.com/larsen30@llnl.gov/" modifiers sed -i "s/jameskress@users.noreply.github.com/kressjm@ornl.gov/" modifiers +sed -i "s/35237779+JustinPrivitera@users.noreply.github.com/privitera1@llnl.gov/" modifiers # # Build the email list of modifiers.
If RTTI is disabled, task_t::typeName is set to empty string. Modify the test to check for the correct value if RTTI is on or off.
#include "pal/TaskDispatcher.hpp" #include "pal/TaskDispatcher_CAPI.hpp" +#include "pal/typename.hpp" #include "mat.h" using namespace testing; @@ -100,6 +101,16 @@ void EVTSDK_LIBABI_CDECL OnTaskDispatcherJoin() s_testHelper->OnJoin(); } +void CheckTaskTypeNameIsExpectedOrEmptyIfRTTIIsEnabled(task_t* task) noexcept +{...
cmd/kubectl-gadget: Add --print-only to deploy. This option makes the deploy operation to print the resources YAML instead of actually deploying them.
@@ -38,6 +38,7 @@ import ( "k8s.io/client-go/dynamic" "k8s.io/client-go/kubernetes/scheme" "k8s.io/client-go/restmapper" + "sigs.k8s.io/yaml" ) var deployCmd = &cobra.Command{ @@ -57,7 +58,7 @@ var ( livenessProbe bool livenessProbeInitialDelay int32 fallbackPodInformer bool - file string + printOnly bool ) func init()...
Fix typo in parameter logging.
@@ -161,7 +161,7 @@ infoBackupSave( InfoBackup *this, const Storage *storage, const String *fileName, CipherType cipherType, const String *cipherPass) { FUNCTION_LOG_BEGIN(logLevelDebug); - FUNCTION_LOG_PARAM(INFO_PG, this); + FUNCTION_LOG_PARAM(INFO_BACKUP, this); FUNCTION_LOG_PARAM(STORAGE, storage); FUNCTION_LOG_PAR...
net/route.h: add RTF_XX flags and rt_dev member refs:
* Pre-processor Definitions ****************************************************************************/ +#define RTF_UP 0x0001 /* Route usable. */ +#define RTF_GATEWAY 0x0002 /* Destination is a gateway. */ +#define RTF_HOST 0x0004 /* Host entry (net otherwise). */ + /*************************************************...
adds some more details to :acme %dbug pokes
this :: %dbug-account - ~& [%private (ring:en:pem:pkcs1 key.act)] - ~& [%public (pass:en:pem:pkcs1 key.act)] ~& registered=reg.act + ~& [%public (pass:en:pem:pkcs1 key.act)] + ~? !=(~ sek.key.act) + [%private (ring:en:pem:pkcs1 key.act)] this :: %dbug-certificate ?~ liv ~&(~ this) ~& [%key (ring:en:pem:pkcs8 key.u.liv)...
Add length to method and lib fn to numarray
@@ -76,9 +76,16 @@ void num_array_put(void *p, Janet key, Janet value) { } } +static Janet num_array_length(int32_t argc, Janet *argv) { + janet_fixarity(argc, 1); + num_array *array = (num_array *)janet_getabstract(argv, 0, &num_array_type); + return janet_wrap_number(array->size); +} + static const JanetMethod method...
Have configdata.pm also display the contents of %target
@@ -2331,6 +2331,7 @@ unless (caller) { my $dump = undef; my $cmdline = undef; my $options = undef; + my $target = undef; my $envvars = undef; my $makevars = undef; my $buildparams = undef; @@ -2341,6 +2342,7 @@ unless (caller) { GetOptions('dump|d' => \$dump, 'command-line|c' => \$cmdline, 'options|o' => \$options, + ...
fix getting the unique thread id on the Apple M1, see issue
@@ -707,7 +707,7 @@ static inline void* mi_tls_slot(size_t slot) mi_attr_noexcept { res = tcb[slot]; #elif defined(__aarch64__) void** tcb; UNUSED(ofs); -#if defined(__APPLE__) // issue #343 +#if defined(__APPLE__) // M1, issue #343 __asm__ volatile ("mrs %0, tpidrro_el0" : "=r" (tcb)); #else __asm__ volatile ("mrs %0,...
Temporarily removed access ctx.
@@ -2762,8 +2762,8 @@ on_candidate_resolved(struct neat_resolver_results *results, } LIST_FOREACH(result, results, next_res) { - char ifname1[IF_NAMESIZE]; - char ifname2[IF_NAMESIZE]; + //char ifname1[IF_NAMESIZE]; + //char ifname2[IF_NAMESIZE]; if ((rc = getnameinfo((struct sockaddr*)&result->dst_addr, result->dst_ad...
Bump master version to 2.2-develop
#include "astcenccli_internal.h" const char *astcenc_copyright_string = -R"(ASTC codec v2.1, %u-bit %s%s +R"(ASTC codec v2.2-develop, %u-bit %s%s Copyright 2011-2020 Arm Limited, all rights reserved )";
out_counter: use new output logging api
* limitations under the License. */ +#include <fluent-bit/flb_output_plugin.h> #include <fluent-bit/flb_time.h> -#include <fluent-bit/flb_output.h> #include <fluent-bit/flb_mp.h> #include <stdio.h>
riscv64: fix user sp value JIRA:
@@ -167,7 +167,10 @@ int hal_cpuCreateContext(cpu_context_t **nctx, void *start, void *kstack, size_t ctx->ksp = (u64)ctx; if (ustack != NULL) { - ctx->sp = (u64)ustack; + /* While restoring registers sp is incremented by 16 + * so it has to be subtracted here + */ + ctx->sp = (u64)ustack - 16; ctx->sstatus = csr_read(...
add waitqueue.c function annotation
#include <rtdevice.h> #include <rtservice.h> +/** + * @brief This function will insert a node to the wait queue. + * + * @param queue is a pointer to the wait queue. + * + * @param node is a pointer to the node to be inserted. + */ void rt_wqueue_add(rt_wqueue_t *queue, struct rt_wqueue_node *node) { rt_base_t level; @...
native/hal_uart; TX once for every RX in poller, this was still locking up with long cut'n'paste.
@@ -182,6 +182,7 @@ uart_poller(void *arg) int rc; int bytes; int sr; + int didwork; unsigned char ch; struct uart *uart; @@ -193,21 +194,17 @@ uart_poller(void *arg) uart = &uarts[i]; for (bytes = 0; bytes < UART_MAX_BYTES_PER_POLL; bytes++) { + didwork = 0; if (uart->u_tx_run) { uart_transmit_char(uart); - } else { -...
Analysis workflow, fixup with type.
@@ -289,26 +289,23 @@ jobs: curl -L -k -s -S -o expat-2.2.10.tar.gz https://github.com/libexpat/libexpat/releases/download/R_2_2_10/expat-2.2.10.tar.gz tar xzf expat-2.2.10.tar.gz cd expat-2.2.10 - echo "./configure SHELL=/usr/bin/bash CONFIG_SHELL=/usr/bin/bash --prefix=\"$prepath/expat\" --exec-prefix=\"$prepath/expa...
Add root-key-sentinel test description
@@ -10,7 +10,7 @@ stub-zone: stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET. CONFIG_END -SCENARIO_BEGIN Test validator with nxdomain response +SCENARIO_BEGIN Test root key sentinel (draft-ietf-dnsop-kskroll-sentinel) ; K.ROOT-SERVERS.NET. RANGE_BEGIN 0 100
Optional eye for getEyePosition;
@@ -160,7 +160,7 @@ int l_lovrHeadsetGetPosition(lua_State* L) { int l_lovrHeadsetGetEyePosition(lua_State* L) { float x, y, z; - HeadsetEye eye = *(HeadsetEye*) luax_checkenum(L, 1, &HeadsetEyes, "eye"); + HeadsetEye eye = *(HeadsetEye*) luax_optenum(L, 1, &HeadsetEyes, "eye", "left"); lovrHeadsetGetEyePosition(eye, &...
volteer: add support for passive USB DB This adds support for the passive USB daughterboard. This configuration is very similar to port C0, except that the PPC is a SYV682. BRANCH=none TEST=verified PD charging works
@@ -261,13 +261,19 @@ static const struct usb_mux usbc1_usb3_db_retimer = { .next_mux = NULL, }; -static const struct usb_mux mux_config_p1_usb3 = { +static const struct usb_mux mux_config_p1_usb3_active = { .usb_port = USBC_PORT_C1, .driver = &virtual_usb_mux_driver, .hpd_update = &virtual_hpd_update, .next_mux = &usb...
INCLUDE: clap/ext/thread-check.h: add comment about threads moving
@@ -18,8 +18,9 @@ extern "C" { * to meet realtime requirements. I.e. only carry out sufficiently performant and time-bound * operations. So mutexes, memory (de-)allocations, IO, UI rendering should generally be avoided. * - * Depending on the host, [main-thread] and [audio-thread] may or may not map to the same - * sys...