message
stringlengths
6
474
diff
stringlengths
8
5.22k
GBP: test case hardening against timing races
@@ -1444,7 +1444,7 @@ class TestGBP(VppTestCase): # lower the inactive threshold so these tests pass in a # reasonable amount of time # - self.vapi.gbp_endpoint_learn_set_inactive_threshold(1) + self.vapi.gbp_endpoint_learn_set_inactive_threshold(2) # # IP tables @@ -1839,7 +1839,7 @@ class TestGBP(VppTestCase): # lowe...
[build/docs] Add note about SPLIT_DWARF and its misuses and caveats explained in
@@ -3438,6 +3438,7 @@ when ($STRIP_DEBUG_INFO) { ### @usage: SPLIT_DWARF() ### ### Emit debug info for the PROGRAM/DLL as a separate file <module_name>.debug. +### NB: It does not help you to save process RSS but can add problems (see e.g. BEGEMOT-2147). macro SPLIT_DWARF() { SET(SPLIT_DWARF_VALUE yes) }
Improve default palette colors
@@ -129,7 +129,7 @@ const loadProject = async (projectPath) => { { id: "default-bg-5", name: "Default BG 5", - colors: ["F8F8b8", "90C8C8", "486878", "082048"], + colors: ["F8F8B8", "90C8C8", "486878", "082048"], }, { id: "default-bg-6", @@ -139,12 +139,12 @@ const loadProject = async (projectPath) => { { id: "default-...
Fix wrong endianness conversion. section->flags is 64bit or 32bit for ELF64 and ELF32 files respectively. Different endianness conversion functions must be called for each case.
@@ -220,7 +220,7 @@ void parse_elf_header_##bits##_##bo( \ { \ set_integer(yr_##bo##32toh(section->type), elf_obj, \ "sections[%i].type", i); \ - set_integer(yr_##bo##32toh(section->flags), elf_obj, \ + set_integer(yr_##bo##bits##toh(section->flags), elf_obj, \ "sections[%i].flags", i); \ set_integer(yr_##bo##bits##toh...
Tidy platform scene
@@ -67,13 +67,12 @@ void Start_Platform() { void Update_Platform() { WORD tile_x, tile_y; - UBYTE camera_y, player_y, i, a; + UBYTE i, a; UINT16 tmp_y; UBYTE hit_actor = 0; UBYTE hit_trigger = 0; // Move NPCs - /* for (i = 1; i < actors_active_size; i++) { a = actors_active[i]; @@ -86,7 +85,6 @@ void Update_Platform() ...
dm: optimize the parameter compatibility This patch checks the obsoleted parameters and print some warnings instead of exiting the acrn-dm directly. The following obsoleted parameters are covered: i, --ioc_node G, --gvtargs Y, --mptgen vsbl part_info pm_by_vuart pm_notify_channel Acked-by: Wang, Yu1
@@ -190,6 +190,11 @@ usage(int code) exit(code); } +static void outdate(char *msg) +{ + pr_warn("The \"%s\" parameter is obsolete and ignored\n", msg); +} + static void print_version(void) { @@ -868,7 +873,7 @@ main(int argc, char *argv[]) break; break; case 'i': /* obsolete parameter */ - ioc_parse(optarg); + outdate(...
Fixed cpu function sort
@@ -98,24 +98,24 @@ modules: ksceKernelCpuEnableInterrupts: 0xF5BAD43B ksceKernelCpuGetCpuId: 0x5E4D5DE1 ksceKernelCpuIsVaddrMapped: 0x337CBDF3 - ksceKernelSpinlockLowLock: 0xBF82DEB2 - ksceKernelSpinlockLowTryLock: 0x5AC9D394 - ksceKernelSpinlockLowUnlock: 0xD6ED0C46 - ksceKernelSpinlockLowLockCpuSuspendIntr: 0xD32ACE...
Missing loc in builtins Just for consistency...
@@ -18,7 +18,7 @@ builtins.io_write._type = types.T.Builtin(builtins.io_write) builtins.table_insert = ast.Toplevel.Builtin(loc, "table.insert") builtins.table_insert._type = types.T.Builtin(builtins.table_insert) -builtins.table_remove = ast.Toplevel.Builtin(false, "table.remove") +builtins.table_remove = ast.Toplevel...
Dropping TStringBuf::c_str.
@@ -952,15 +952,15 @@ namespace { insert("::1"); } - inline bool IsLocalName(TStringBuf name) const noexcept { + inline bool IsLocalName(const char* name) const noexcept { struct sockaddr_in sa; memset(&sa, 0, sizeof(sa)); - if (inet_pton(AF_INET, name.c_str(), &(sa.sin_addr)) == 1) { + if (inet_pton(AF_INET, name, &(s...
Deleted previous, commented-out version of EN_setlinktype
@@ -4963,45 +4963,6 @@ int DLLEXPORT EN_setlinktype(EN_ProjectHandle ph, int *index, EN_LinkType type) // Find the index of this new link EN_getlinkindex(ph, id, index); return set_error(p->error_handle, errcode); - - /*********************************************** - int i; - EN_LinkType fromType; - - EN_Project *p = ...
Refactor the debugger multiple command usages JerryScript-DCO-1.0-Signed-off-by: Levente Orban
@@ -167,9 +167,7 @@ class DebuggerPrompt(Cmd): """ Insert breakpoints on the given lines """ self.insert_breakpoint(args) - def do_b(self, args): - """ Insert breakpoints on the given lines """ - self.insert_breakpoint(args) + do_b = do_break def exec_command(self, args, command_id): self.stop = True @@ -185,28 +183,19...
Fix a bug in create_ssl_ctx_pair() The max protocol version was only being set on the server side. It should have been done on both the client and the server.
@@ -531,10 +531,10 @@ int create_ssl_ctx_pair(const SSL_METHOD *sm, const SSL_METHOD *cm, goto err; if (clientctx != NULL && ((min_proto_version > 0 - && !TEST_true(SSL_CTX_set_min_proto_version(serverctx, + && !TEST_true(SSL_CTX_set_min_proto_version(clientctx, min_proto_version))) || (max_proto_version > 0 - && !TEST...
drawcia: Add keyboard backlight support BRANCH=none TEST=Set FW_CONFIG to 0x0100 and make sure "ectool inventory" had keyboard backlight present.
#define CONFIG_TABLET_MODE_SWITCH #define CONFIG_GMR_TABLET_MODE +/* Keyboard */ +#define CONFIG_PWM_KBLIGHT + /* TCPC */ #define CONFIG_USB_PD_PORT_MAX_COUNT 2 #define CONFIG_USB_PD_TCPM_ITE_ON_CHIP /* C0: ITE EC TCPC */
system: Rename SYSTEM_IMAGE_RW to EC_IMAGE_RW This is left out from CL:2036599. BRANCH=none TEST=build helios with EFS2 enabled.
@@ -208,7 +208,7 @@ static void verify_and_jump(void) enable_pd(); break; case CR50_COMM_SUCCESS: - rv = system_run_image_copy(SYSTEM_IMAGE_RW); + rv = system_run_image_copy(EC_IMAGE_RW); CPRINTS("Failed to jump (0x%x)", rv); show_critical_error(); break;
compressor: read_from() docstring grammer
@@ -607,7 +607,7 @@ static ZstdCompressionObj* ZstdCompressor_compressobj(ZstdCompressor* self, PyOb PyDoc_STRVAR(ZstdCompressor_read_to_iter__doc__, "read_to_iter(reader, [size=0, read_size=default, write_size=default])\n" -"Read uncompress data from a reader and return an iterator\n" +"Read uncompressed data from a r...
common/event_log.c: Format with clang-format BRANCH=none TEST=none
@@ -44,8 +44,8 @@ static size_t log_tail_next; /* Size of one FIFO entry */ #define ENTRY_SIZE(payload_sz) (1 + DIV_ROUND_UP((payload_sz), UNIT_SIZE)) -void log_add_event(uint8_t type, uint8_t size, uint16_t data, - void *payload, uint32_t timestamp) +void log_add_event(uint8_t type, uint8_t size, uint16_t data, void *...
Add missing include file. Specifically, include e_os.h to pick up alloca definition for WIN32.
# endif # endif +#include "e_os.h" #include "internal/cryptlib.h" #if !defined(OPENSSL_NO_STDIO) # include <stdio.h> -# ifdef _WIN32 -# include <windows.h> -# endif # ifdef __DJGPP__ # include <unistd.h> # endif
Fix modules tab LoadCount for x64 (1/2)
@@ -3136,6 +3136,24 @@ BOOLEAN NTAPI PhpEnumProcessModulesCallback( } } + if (WindowsVersion >= WINDOWS_8) + { + LDR_DDAG_NODE ldrDagNode = { 0 }; + + if (NT_SUCCESS(NtReadVirtualMemory( + ProcessHandle, + Entry->DdagNode, + &ldrDagNode, + sizeof(LDR_DDAG_NODE), + NULL + ))) + { + // HACK: Fixup the module load count (...
point to the right session.js
=content "width=device-width, initial-scale=1, shrink-to-fit=no"; ;link(rel "stylesheet", href "/~publish/index.css"); ;script@"/~/channel/channel.js"; - ;script@"/session.js"; + ;script@"/~modulo/session.js"; ;script: window.injectedState = {(en-json:html inject)} == ::
Fix clang compilation on aarch64: replace -pie with -fPIE for dpdk compilation. Fixes clang error: argument unused during compilation: '-pie' by replacing it with -fPIE
@@ -145,7 +145,11 @@ JOBS := $(if $(shell [ -f /proc/cpuinfo ] && head /proc/cpuinfo),\ $(shell grep -c ^processor /proc/cpuinfo), 2) # compiler/linker custom arguments +ifeq ($(DPDK_CC),clang) +DPDK_CPU_CFLAGS := -fPIE -fPIC +else DPDK_CPU_CFLAGS := -pie -fPIC +endif ifeq ($(DPDK_DEBUG),n) DPDK_EXTRA_CFLAGS := -g -mtu...
include/system.h: Format with clang-format BRANCH=none TEST=none
@@ -369,7 +369,8 @@ const char *system_get_build_info(void); #ifndef TEST_FUZZ noreturn #endif -void system_reset(int flags); + void + system_reset(int flags); /** * Set a scratchpad register to the specified value. @@ -440,7 +441,6 @@ __override_proto const char *board_read_serial(void); */ __override_proto int board_...
metadata: move rgbcolor
@@ -1061,6 +1061,13 @@ usedby/plugins= macaddr description = "Marks a key as MAC address. Used to validate MAC addresses and returns integer representations on get." +[check/rgbcolor] +type= empty +status = implemented +usedby/plugin= rgbcolor +description= "check if value is a valid rgbcolor in hexformat + will normal...
tests: move bfd over gre to extended tests This test should be fixed or removed. EXTENDED_TESTS should not become "BROKEN_TESTS" Type: test
@@ -1790,6 +1790,7 @@ class BFDFIBTestCase(VppTestCase): packet[IPv6].dst) +@unittest.skipUnless(running_extended_tests, "part of extended tests") class BFDTunTestCase(VppTestCase): """ BFD over GRE tunnel """
Update sysinfo_sources.cpp Fix for -- warning: operator '?:' has lower precedence than '<<'; '<<' will be evaluated first [-Wparentheses]
@@ -216,7 +216,7 @@ sysinfo_sources_impl::sysinfo_sources_impl() : sysinfo_sources() int hh = lt.tm_gmtoff / 3600; int mm = (lt.tm_gmtoff / 60) % 60; std::ostringstream oss; - oss << (hh<0)?"-":"+"; // +hh:mm or -hh:mm + oss << ((hh<0)?"-":"+"); // +hh:mm or -hh:mm oss << std::setw(2) << std::setfill('0') << std::abs(h...
libflash/file: greatly increase perf of file_erase() Do 4096 byte chunks not 8 byte chunks. A ffspart invocation constructing a 64MB PNOR goes from a couple of seconds to ~0.1seconds with this patch.
@@ -117,15 +117,17 @@ static int file_write(struct blocklevel_device *bl, uint64_t dst, const void *sr */ static int file_erase(struct blocklevel_device *bl, uint64_t dst, uint64_t len) { - unsigned long long int d = ULLONG_MAX; + char buf[4096]; int i = 0; int rc; + memset(buf, ~0, sizeof(buf)); + while (len - i > 0) ...
finetune the RA parsing procedure
@@ -369,30 +369,48 @@ void icmpv6_input(FAR struct net_driver_s *dev, unsigned int iplen) for (ndx = 0; ndx + sizeof(struct icmpv6_prefixinfo_s) <= optlen; ) { - FAR struct icmpv6_srclladdr_s *sllopt = - (FAR struct icmpv6_srclladdr_s *)&options[ndx]; + FAR struct icmpv6_generic_s *opt = + (FAR struct icmpv6_generic_s ...
Fix a bug in glm_lookat_lh Fix the order of arguments passed to glm_vec3_crossn to avoid the negation of X axis.
@@ -37,7 +37,7 @@ glm_lookat_lh(vec3 eye, vec3 center, vec3 up, mat4 dest) { glm_vec3_sub(center, eye, f); glm_vec3_normalize(f); - glm_vec3_crossn(f, up, s); + glm_vec3_crossn(up, f, s); glm_vec3_cross(s, f, u); dest[0][0] = s[0];
Fix hexconv_hexlify()
@@ -56,7 +56,7 @@ fromhex(char c) int hexconv_hexlify(const uint8_t *data, int data_len, char *text, int text_size) { - static const char *HEX = "01234567890abcdef"; + static const char *HEX = "0123456789abcdef"; int i, p; for(i = 0, p = 0; p + 1 < text_size && i < data_len; i++) {
"Fixed" another weird %ap-lame.
|= {wir/wire piz/prize} ^- (quip move _+>) =^ mos +>.$ + :: this shouldn't be necessary, but see the TODO below. + ?: ?=($burden -.piz) %- pre-bake - ta-done:(ta-take:ta wir piz) + =< ta-done + %+ roll ~(tap by sos.piz) + |= {{n/naem b/burden} _ta} + =< so-done + (~(so-bear so n ~ (fall (~(get by stories) n) *story)) b...
Adds xerces-c for gporca Solves
@@ -10,6 +10,7 @@ fi brew install bash-completion brew install conan brew install cmake # gporca +brew install xerces-c #gporca brew install libyaml # enables `--enable-mapreduce` brew install libevent # gpfdist brew install apr # gpperfmon
gitlab: Add npcx7/9_evb to build test This adds npcx7/9_evb to the GitLab CI build test. BRANCH=none TEST=run on gitlab server
@@ -194,6 +194,16 @@ native_posix: TOOLCHAIN: "host" <<: *build_template +npcx7_evb: + variables: + PROJECT: "npcx7" + <<: *build_template + +npcx9_evb: + variables: + PROJECT: "npcx9" + <<: *build_template + skyrim: variables: PROJECT: "skyrim"
graph-pull-hook: fix scry helper
+* this . def ~(. (default-agent this %|) bowl) dep ~(. (default:pull-hook this config) bowl) + gra ~(. graph bowl) :: ++ on-init on-init:def ++ on-save !>(~) ++ on-pull-kick |= =resource ^- (unit path) - =/ maybe-time (peek-update-log:graph resource) + =/ maybe-time (peek-update-log:gra resource) ?~ maybe-time `/ `/(s...
snap_path.sh: Adding ACTION_ROOT only if defined
#!/bin/bash # -# Copyright 2016, International Business Machines +# Copyright 2017 International Business Machines # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # This script needs to get sourced in order to effectively change $PAT...
ctype: add doc
@@ -227,6 +227,7 @@ copied by the `spec` plugin just before): - [path](path/) by checking files on file system - [type](type/) using run-time type checking (CORBA types/) - [enum](enum/) compares the keyvalue against a list of valid values +- [ctype](ctype/) type checking (CORBA types) and enum functionality, written i...
groups:Remove button for registering prot. handler in settings
import { - Button, Col, ManagedToggleSwitchField as Toggle, Text } from '@tlon/indigo-react'; import { Form, FormikHelpers } from 'formik'; import _ from 'lodash'; -import React, { useCallback, useState } from 'react'; +import React, { useCallback } from 'react'; import { isWatching } from '~/logic/lib/hark'; import us...
Don't pass 0 to __builtin_clzll which is undefined
@@ -230,9 +230,17 @@ void ngtcp2_cc_cubic_cc_free(ngtcp2_cc *cc, const ngtcp2_mem *mem) { } static uint64_t ngtcp2_cbrt(uint64_t n) { - int d = __builtin_clzll(n); - uint64_t a = 1ULL << ((64 - d) / 3 + 1); + int d; + uint64_t a; int i; + + if (n == 0) { + return 0; + } + + d = __builtin_clzll(n); + a = 1ULL << ((64 - ...
YAML CPP: Reformat Doxygen comments
@@ -49,8 +49,7 @@ NameIterator relativeKeyIterator (Key const & key, Key const & parent) * @param data This node stores the data specified via `keyIterator`. * @param keyIterator This iterator specifies the current part of the key name this function adds to `data`. * @param key This parameter specifies the key that sho...
drivers/video: Skip all action if video_framebuff_realloc_container doesn't change the container size
@@ -110,34 +110,31 @@ void video_framebuff_uninit(video_framebuff_t *fbuf) int video_framebuff_realloc_container(video_framebuff_t *fbuf, int sz) { - if (fbuf->vbuf_alloced == NULL || fbuf->container_size != sz) - { - if (fbuf->container_size != sz) + if (fbuf->container_size == sz) { + return OK; + } + if (fbuf->vbuf_...
Added support for the stm32f7 to pwm_test.
#include <easing/easing.h> #include <console/console.h> +#if MYNEWT_VAL(MCU_STM32F7) +# define PWM_TEST_CH_CFG_PIN MCU_AFIO_GPIO(LED_2, 2) +# define PWM_TEST_CH_CFG_INV false +# define PWM_TEST_CH_NUM 1 +# define PWM_TEST_IRQ_PRIO 0 +#else +# define PWM_TEST_CH_CFG_PIN LED_BLINK_PIN +# define PWM_TEST_CH_CFG_INV true +...
Improve start.go usage msg
@@ -15,12 +15,14 @@ import ( * force - */ -const startUsage string = `The following actions will be performed on the host and in all relevant containers: -- Extraction of libscope.so to /usr/lib/appscope/<version>/ -- Extraction of the filter input to /usr/lib/appscope/<version>/ +func getStartUsage(version string) str...
Change fix with ev/call
[host port &opt handler type] (def s (net/listen host port type)) (if handler - (ev/go (coro (net/accept-loop s handler)))) + (ev/call (fn [] (net/accept-loop s handler)))) s)) (undef guarddef)
Fix reset simulation
@@ -613,11 +613,10 @@ Asset::resetSimulation() { assert(myNodeInfo.id >= 0); - //TODO: HAPI 3 - //HAPI_ResetSimulation( - // Util::theHAPISession.get(), - // myAssetInfo.id - // ); + HAPI_ResetSimulation( + Util::theHAPISession.get(), + myNodeInfo.id + ); } MString
Fix example in http_sendstatus man page
@@ -38,5 +38,5 @@ Zero in the case of success. On error returns -1 and sets _errno_ to one of the # EXAMPLE ```c -int rc = http_sendfield(s, "Host", "www.example.org", -1); +int rc = http_sendstatus(s, 404, "Not found", -1); ```
vere: long-only opt for http/s port Also includes in usage.
@@ -151,8 +151,8 @@ _main_getopt(c3_i argc, c3_c** argv) { "replay-to", required_argument, NULL, 'n' }, { "profile", no_argument, NULL, 'P' }, { "ames-port", required_argument, NULL, 'p' }, - { "http-port", required_argument, NULL, 'h' }, - { "https-port", required_argument, NULL, 'T' }, + { "http-port", required_argum...
util/misc_util: Fix unchecked error It's unlikely, but let's check for ftell() errors. BRANCH=none TEST=none Found-by: Coverity Scan Commit-Ready: Patrick Georgi Tested-by: Patrick Georgi
@@ -48,7 +48,10 @@ char *read_file(const char *filename, int *size) fseek(f, 0, SEEK_END); *size = ftell(f); rewind(f); - if (*size > 0x100000) { + if ((*size > 0x100000) || (*size < 0)) { + if (*size < 0) + perror("ftell failed"); + else fprintf(stderr, "File seems unreasonably large\n"); fclose(f); return NULL;
Enable LV_DRAG_DIR_ALL by default in object initializer It was previously enabled by `lv_obj_set_drag`.
@@ -253,7 +253,7 @@ lv_obj_t * lv_obj_create(lv_obj_t * parent, const lv_obj_t * copy) /*Set attributes*/ new_obj->click = 1; new_obj->drag = 0; - new_obj->drag_dir = 0; + new_obj->drag_dir = LV_DRAG_DIR_ALL; new_obj->drag_throw = 0; new_obj->drag_parent = 0; new_obj->hidden = 0; @@ -1096,9 +1096,6 @@ void lv_obj_set_d...
odissey: add describe message to extended queries set
@@ -538,6 +538,7 @@ od_frontend_remote(od_client_t *client) /* extended queries */ if (type == 'P' || /* Parse */ type == 'B' || /* Bind */ + type == 'D' || /* Describe */ type == 'E' || /* Execute */ type == 'C') /* Close */ {
[skip ci] chang title color
@@ -25,7 +25,7 @@ param ( ' /_/\_\_|_| |_|\__ \|_|\_\____| getter ' ' ' ' ') - Write-Host $([string]::Join("`n", $logo)) -BackgroundColor White -ForegroundColor DarkBlue + Write-Host $([string]::Join("`n", $logo)) -ForegroundColor Green } if ($IsLinux -or $IsMacOS) {
ORB: pre-compute umax.
@@ -26,6 +26,11 @@ typedef struct { int y; } sample_point_t; +static const int u_max[] = { + 15, 15, 15, 15, 14, 14, 14, 13, + 13, 12, 11, 10, 9, 8, 6, 3, 0 +}; + const static int sample_pattern[256*4] = { 8,-3, 9,5/*mean (0), correlation (0)*/, 4,2, 7,-12/*mean (1.12461e-05), correlation (0.0437584)*/, @@ -285,7 +290,...
Clean up writeFuncImplArgChecks. Also fix a bug where a comparison with "<nil>" would be emitted in something like "if (a_lw < <nil> || a_lw > 8)".
@@ -593,7 +593,8 @@ func (g *gen) writeFuncImpl(n *a.Func) error { } func (g *gen) writeFuncImplArgChecks(n *a.Func) error { - badArg := false + checks := []string(nil) + for _, o := range n.In().Fields() { o := o.Field() oTyp := o.XType() @@ -601,15 +602,11 @@ func (g *gen) writeFuncImplArgChecks(n *a.Func) error { //...
Final correction for reverse command
@@ -2381,10 +2381,10 @@ int DeRestPluginPrivate::setLightAttributes(const ApiRequest &req, ApiResponse & //taskRef.transitionTime = 4; //taskRef.onTime = 0; - QByteArray direction = QByteArray("\x00\x00", 2); + QByteArray direction = QByteArray("\x00", 1); if (map["reverse"].toBool()) { - direction = QByteArray("\x00\x...
Fix crash on non-string thread errors; Non-string errors are currently ignored. This is consistent with love, and is pretty obscure, but maybe it can be improved at some point.
@@ -38,10 +38,12 @@ static int threadRunner(void* data) { } } + mtx_lock(&thread->lock); + // Error handling size_t length; const char* error = lua_tolstring(L, -1, &length); - mtx_lock(&thread->lock); + if (error) { thread->error = malloc(length + 1); if (thread->error) { memcpy(thread->error, error, length + 1); @@ -...
Rearranged the tutorial order slightly to put the easier ones earlier within each section.
@@ -80,22 +80,22 @@ Also feel free to download our [cheat sheet](https://contiki-ng.github.io/resour Basics: * [Hello, World!](/doc/tutorials/Hello,-World!.md) * [Logging](/doc/tutorials/Logging.md) -* [NG shell](/doc/tutorials/Shell.md) * [RAM and ROM usage](/doc/tutorials/RAM-and-ROM-usage.md) +* [NG shell](/doc/tuto...
proper search for available tcp port
/* * Function: find_available_port * - * Description: find a port number that can be bound to + * Description: find a tcp port number that can be bound to * - * In Args: minimum and maximum ports to use for searching + * In Args: * * Out Args: * * Returns: available port number * Side Effect: exit(1) in case of error o...
codegen: fix non-posix sed commands again
@@ -69,7 +69,8 @@ for test_folder in @CMAKE_SOURCE_DIR@/tests/shell/gen/*/; do rm "$output_folder$test_name.stdout" if [ -e "$test_folder$test_name.stderr" ]; then - sed -e "s#$KDB#kdb#" -e '1!b' -e '/^The command kdb gen terminated unsuccessfully with the info:$/d' -i "$output_folder$test_name.stderr" + sed -e "s#$KDB...
Fix multiple url values
@@ -95,6 +95,7 @@ public class DatafariUpdateProcessor extends UpdateRequestProcessor { * urlHierarchy); */ + doc.remove("url"); doc.addField("url", url); String filename = "";
naive: fix signature parsing
:: ++ sig |= params=(map @t json) - ^- (unit @) + ^- (unit @ux) ?~ sig=(~(get by params) 'sig') ~ - (so:dejs-soft:format u.sig) + =; ans=(unit (unit @ux)) + ?~(ans ~ u.ans) + %. u.sig + =, dejs-soft:format + (cu to-hex so) :: ++ from |= params=(map @t json) ^- [(unit cage) response:rpc] ?. (params:validate params) [~ ~...
Add basic support for UWP in CMakeLists.txt
@@ -235,7 +235,7 @@ set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES # # TINYSPLINE_PLATFORM_NAME # Name of target platform in lowercase. Supported values are: 'linux', -# 'macosx', and 'windows'. +# 'macosx', 'windows', and 'uwp' (Universal Windows Platform). # # TINYSPLINE_PLATFORM_ARCH # Architecture ...
nimble/ble_hs_conn: Minor coding style fix
@@ -112,8 +112,8 @@ struct ble_l2cap_chan *ble_hs_conn_chan_find_by_dcid(struct ble_hs_conn *conn, uint16_t cid); int ble_hs_conn_chan_insert(struct ble_hs_conn *conn, struct ble_l2cap_chan *chan); -void -ble_hs_conn_delete_chan(struct ble_hs_conn *conn, struct ble_l2cap_chan *chan); +void ble_hs_conn_delete_chan(struc...
Update FireSim instructions
@@ -9,9 +9,56 @@ FireSim allows RTL-level simulation at orders-of-magnitude faster speeds than so FireSim also provides additional device models to allow full-system simulation, including memory models and network models. FireSim currently supports running only on Amazon EC2 F1 FPGA-enabled virtual instances on the pub...
fix master pipeline gpload fail gpload test case 60 lead to fail, deleteing it for now
@@ -1046,16 +1046,3 @@ def test_59_gpload_yaml_wrong_port(): copy_data('external_file_01.txt','data_file.txt') write_config_file(port='111111',format='text',file='data_file.txt',table='texttable') -@prepare_before_test(num=60) -def test_60_gpload_local_hostname(): - "60 gpload yaml local host with 127.0.0.1 and none an...
Addressed review comment from
@@ -276,6 +276,7 @@ int packed_rr_to_string(struct ub_packed_rrset_key* rrset, size_t i, entry.data; uint8_t rr[65535]; size_t rlen = rrset->rk.dname_len + 2 + 2 + 4 + d->rr_len[i]; + time_t adjust = 0; log_assert(dest_len > 0 && dest); if(rlen > dest_len) { dest[0] = 0; @@ -286,8 +287,10 @@ int packed_rr_to_string(str...
[] should evaluate to () This is consistent with most bracket tuples.
@@ -628,7 +628,7 @@ JanetSlot janetc_value(JanetFopts opts, Janet x) { const Janet *tup = janet_unwrap_tuple(x); /* Empty tuple is tuple literal */ if (janet_tuple_length(tup) == 0) { - ret = janetc_cslot(x); + ret = janetc_cslot(janet_wrap_tuple(janet_tuple_n(NULL, 0))); } else if (janet_tuple_flag(tup) & JANET_TUPLE_...
Add method to log error without throwable Add Ln.e(message) in addition to Ln.e(message, error).
@@ -52,7 +52,13 @@ public final class Ln { if (isEnabled(Level.ERROR)) { Log.e(TAG, message, throwable); System.out.println("ERROR: " + message); + if (throwable != null) { throwable.printStackTrace(); } } } + + public static void e(String message) { + e(message, null); + } +}
external-links.txt: also run with cmake
@@ -35,7 +35,7 @@ set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/scripts/cmake/Modules/") file (REMOVE "${CMAKE_BINARY_DIR}/extra_install_manifest.txt") -install (CODE "file (REMOVE \"${CMAKE_BINARY_DIR}/external-links.txt\")") +file (REMOVE "${C...
Docs: Added requirement for ResizeAppleGpuBars
@@ -40,6 +40,7 @@ Utility to validate whether a `config.plist` matches requirements and convention - When `AllowRelocationBlock` is enabled, `ProvideCustomSlide` should be enabled altogether. - When `EnableSafeModeSlide` is enabled, `ProvideCustomSlide` should be enabled altogether. - If `ProvideMaxSlide` is set to a n...
Fix link in capi docs. Add the missing trailing backtick that was missed in the original commit for these docs.
@@ -261,7 +261,7 @@ will be called once with the ``CALLBACK_MSG_TOO_MANY_MATCHES``. When this happen warning. If your callback returns ``CALLBACK_CONTINUE``, the string will be disabled and scanning will continue, otherwise scanning will be halted. -Your callback will be called from the console module (:ref:`console-mo...
dc-offset: set correct flags on the offset param
@@ -31,7 +31,7 @@ namespace clap { : CorePlugin(PathProvider::create(pluginPath, "dc-offset"), descriptor(), host) { _parameters.addParameter(clap_param_info{ kParamIdOffset, - 0, + CLAP_PARAM_IS_MODULATABLE | CLAP_PARAM_REQUIRES_PROCESS, nullptr, "offset", "/",
fix(list) guard image creation with LV_USE_IMG
@@ -81,10 +81,12 @@ lv_obj_t * lv_list_add_btn(lv_obj_t * list, const char * icon, const char * txt) lv_obj_set_size(obj, LV_PCT(100), LV_SIZE_CONTENT); lv_obj_set_flex_flow(obj, LV_FLEX_FLOW_ROW); +#if LV_USE_IMG == 1 if(icon) { lv_obj_t * img = lv_img_create(obj); lv_img_set_src(img, icon); } +#endif if(txt) { lv_obj...
Correcting debian/gbp.conf to build from 4.4.1 branch
@@ -4,8 +4,8 @@ builder = DIST=stretch /usr/bin/git-pbuilder # tell git-buildpackage how to clean the source tree cleaner = fakeroot debian/rules clean # default branch for upstream sources and debian packaging (should usually be equal for pS) -upstream-branch = -debian-branch = +upstream-branch = 4.4.1 +debian-branch ...
Fix examples copy
@@ -38,11 +38,14 @@ import SafariServices UserDefaults.standard.set(true, forKey: key) DispatchQueue.global().async { - if FileManager.default.fileExists(atPath: examplesURL.path) { - try? FileManager.default.removeItem(at: examplesURL) + + let destURL = (DocumentBrowserViewController.iCloudContainerURL ?? DocumentBrow...
CI/CD: use the rune state command to check the container status before doing remote attestation test Fixes
@@ -90,10 +90,21 @@ jobs: if: ${{ contains(matrix.sgx, 'SGX1') }} run: docker exec $rune_test bash -c "rune --debug run skeleton-enclave-container" & + - name: Wait RA containers Running + if: ${{ contains(matrix.sgx, 'SGX1') }} + timeout-minutes: 2 + run: | + docker exec $rune_test bash -c "while true; do + rune state...
Update links and add a new one to the latest memory usage and binary footprint results for Artik053 JerryScript-DCO-1.0-Signed-off-by: Robert Sipka
@@ -22,9 +22,10 @@ Memory usage and Binary footprint are measured at [here](https://jerryscript-pro The following table shows the latest results on the devices: -| STM32F4-Discovery | [![Remote Testrunner](https://jerryscript-project.github.io/jerryscript-test-results/status/stm32f4dis.svg)](https://jerryscript-project...
This code makes assumption that get_script_config(tic)->singleComment is 3 chars long
@@ -1078,13 +1078,8 @@ static void setCodeMode(Code* code, s32 mode) static void commentLine(Code* code) { - static char Comment[] = "-- "; - enum {Size = sizeof Comment-1}; - - tic_mem* tic = code->tic; - - memcpy(Comment, tic->api.get_script_config(tic)->singleComment, - strlen(tic->api.get_script_config(tic)->single...
[skip ci] Update main README
@@ -50,6 +50,7 @@ If used for research, please cite Chipyard by the following publication: * **Chipyard** * A. Amid, et al. *IEEE Micro'20* [PDF](https://ieeexplore.ieee.org/document/9099108). * A. Amid, et al. *DAC'20* [PDF](https://ieeexplore.ieee.org/document/9218756). + * A. Amid, et al. *ISCAS'21* [PDF](https://ie...
pbio/drivebase: Fix zero radius turns. pbio_math_sign gave 0 for 0 radius, so the turn angle was also zero, which is not what we want.
@@ -301,7 +301,7 @@ pbio_error_t pbio_drivebase_curve(pbio_drivebase_t *db, int32_t radius, int32_t } // Dif controller drives by given angle - int32_t relative_dif_target = pbio_control_user_to_counts(&db->control_heading.settings, angle * pbio_math_sign(radius)); + int32_t relative_dif_target = pbio_control_user_to_c...
[SA] Bug fixes. Locked subtitles size while script stuff is displayed. Fixed menu area name value.
@@ -90,7 +90,7 @@ void UpdateFrontendFixes() { fFrontendWidth[19] = 0.0015625f * fWideScreenWidthScale; fFrontendWidth[20] = 0.0015625f * fWideScreenWidthScale; fFrontendWidth[21] = 0.00046875002f * fWideScreenWidthScale; - fFrontendWidth[22] = 0.78125f * fWideScreenWidthScale; + fFrontendWidth[22] = 0.00125f * fWideSc...
Tweak disasm doc
@@ -988,7 +988,7 @@ static const JanetReg asm_cfuns[] = { { "disasm", cfun_disasm, JDOC("(disasm func &opt field)\n\n" - "Returns assembly that could be used be compile the given function.\n" + "Returns assembly that could be used to compile the given function.\n" "func must be a function, not a c function. Will throw ...
core/pci: Check PCIe cap version in pci_disable_completion_timeout() When the PCIe capability version is less than 2, the completion timeout isn't supported and no need to disable it at all.
@@ -927,15 +927,21 @@ static int pci_configure_mps(struct phb *phb, static void pci_disable_completion_timeout(struct phb *phb, struct pci_device *pd) { - uint32_t ecap; - uint32_t val; + uint32_t ecap, val; + uint16_t pcie_cap; /* PCIE capability required */ if (!pci_has_cap(pd, PCI_CFG_CAP_ID_EXP, false)) return; - /...
VERSION bump to version 1.3.41
@@ -31,7 +31,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 3) -set(SYSREPO_MICRO_VERSION 40) +set(SYSREPO_MICRO_VERSION 41) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
pg_dumpall: fix uninitialized variable warning A bad 8.4 merge resolution on my part. We may not support older server_versions in GPDB's pg_dump, but that doesn't mean we should use uninitialized memory if we come across one. error_unsupported_server_version() comes from pg_dump.c; this commit is a companion to
@@ -62,6 +62,8 @@ static PGconn *connectDatabase(const char *dbname, const char *pghost, const cha static PGresult *executeQuery(PGconn *conn, const char *query); static void executeCommand(PGconn *conn, const char *query); +static void error_unsupported_server_version(PGconn *conn) pg_attribute_noreturn(); + static ch...
Add mock module to CentOS6/7 Travis CI testing. This was dropped at some point but is important for integration coverage.
@@ -15,10 +15,10 @@ matrix: include: - env: PGB_CI="test --vm=u12" - env: PGB_CI="test --vm=f30 --param=no-package --param=c-only" - - env: PGB_CI="test --vm=co6 --param=module=real" + - env: PGB_CI="test --vm=co6 --param=module=mock --param=module=real" - env: PGB_CI="test --vm=u18 --param=container-only" - env: PGB_C...
Use 'develop' branches in submodules
[submodule "libs-carto"] path = libs-carto url = https://github.com/cartodb/mobile-carto-libs - branch = master + branch = develop [submodule "libs-external"] path = libs-external url = https://github.com/cartodb/mobile-external-libs - branch = master + branch = develop
Change member initializer to prevent gcc 4.6 bug that the list-initialization does not work for ref members (50025)
using namespace celix::dm; -DmActivator::DmActivator(DependencyManager& m) : ctx{m.bundleContext()}, mng{m} {} +DmActivator::DmActivator(DependencyManager& m) : ctx{m.bundleContext()}, mng(m) {} DmActivator::~DmActivator() = default;
Fix outdated comment. This check was moved from within the path checks at some point but the comment did not get updated.
@@ -2295,7 +2295,7 @@ configParse(const Storage *storage, unsigned int argListSize, const char *argLis // Else if string make sure it is valid else { - // Make sure it is long enough to be a path + // Empty strings are not valid if (strSize(value) == 0) { THROW_FMT(
Do the error handling in pkey_rsa_decrypt in constant time
/* - * Copyright 2006-2018 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2006-2019 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * https://www.openssl...
pybricks/util_pb/color_map: remove black Black is nearly the same as None. In nearly all applications, you need just one one the two, so we remove one from the default map.
@@ -47,13 +47,12 @@ void color_map_rgb_to_hsv(const pbio_color_rgb_t *rgb, pbio_color_hsv_t *hsv) { STATIC const mp_rom_obj_tuple_t pb_color_map_default = { {&mp_type_tuple}, - 7, + 6, { MP_OBJ_FROM_PTR(&pb_Color_RED_obj), MP_OBJ_FROM_PTR(&pb_Color_YELLOW_obj), MP_OBJ_FROM_PTR(&pb_Color_GREEN_obj), MP_OBJ_FROM_PTR(&pb_...
BugId:17655060:[http2][fix] add multi files case test ability
@@ -65,15 +65,18 @@ static http2_stream_cb_t my_cb = { void upload_file_result(const char * path,int result, void * user_data) { - EXAMPLE_TRACE("===========path = %s,result =%d=========", path,result); - upload_end =1; + upload_end ++; + EXAMPLE_TRACE("===========path = %s,result =%d,finish num =%d=========", path,res...
Updated button map
@@ -585,14 +585,16 @@ static const Sensor::ButtonMap rgbgenie5121Map[] = { // Off button { Sensor::ModeScenes, 0x01, 0x0006, 0x00, 0, S_BUTTON_2 + S_BUTTON_ACTION_SHORT_RELEASED, "Off" }, // Dim up + { Sensor::ModeScenes, 0x01, 0x0008, 0x06, 0, S_BUTTON_3 + S_BUTTON_ACTION_SHORT_RELEASED, "Step up (with on/off)" }, { S...
Add tag to specify minio version to use for documentation build. The new minio major release broke the build. We'll need to figure that out but for now use the last major version, which is known to work.
<title>Introduction</title> <!-- Create S3 server first to allow it time to boot before being used --> - <host-add if="'{[s3-local]}' eq 'y'" id="{[host-s3-id]}" name="{[host-s3]}" user="root" image="minio/minio" os="{[os-type]}" option="-v {[fake-cert-path]}/s3-server.crt:/root/.minio/certs/public.crt:ro -v {[fake-cer...
fix jet crash in fond
if ( 0 == poy ) { return poy; } - else if ( c3y != u3h(poy) ) { + else if ( c3n == u3h(poy) ) { + if ( c3n == u3h(u3t(poy)) ) { + // abnormal + u3_noun type = u3h(u3t(u3t(u3t(poy)))); + if ( 0 == type ) { + u3m_p("insane type", 0); + c3_assert(0); + } + } return poy; } else { tor = u3nc(c3y, u3k(u3t(u3t(fid)))); } else...
[pm] index should be less than PM_MODLUE_MAX_ID
@@ -836,12 +836,10 @@ rt_uint32_t rt_pm_module_get_status(void) rt_uint32_t req_status = 0x00; pm = &_pm; - for (index = 0; index < 32; index ++) + for (index = 0; index < PM_MODULE_MAX_ID; index ++) { if (pm->module_status[index].req_status == 0x01) req_status |= 1<<index; - if (index >= PM_MODULE_MAX_ID) - break; } r...
peview: Fix CLR tab layout spacing
@@ -262,8 +262,8 @@ BEGIN LTEXT "Static",IDC_RUNTIMEVERSION,78,7,215,8 LTEXT "Flags:",IDC_STATIC,7,19,20,8 EDITTEXT IDC_FLAGS,76,19,217,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER - LTEXT "Version String:",IDC_STATIC,7,31,48,8 - LTEXT "Static",IDC_VERSIONSTRING,78,31,215,8 + LTEXT "Version String:",IDC_STATIC,7,32,...
Botan: Use Botan 2 if it is available This commit fixes
if (NOT BOTAN_FOUND) include (FindPkgConfig) - pkg_search_module (BOTAN QUIET botan-1.10 botan-1.9 botan-1.8 botan) + pkg_search_module (BOTAN QUIET botan-1.10 botan-1.9 botan-1.8 botan-2 botan) endif () if (BOTAN_FOUND)
Remove TINYSPLINE_API from tinyspine.c
@@ -295,7 +295,7 @@ tsError ts_bspline_set_knots(tsBSpline *spline, const tsReal *knots, TS_RETURN_SUCCESS(status) } -tsError TINYSPLINE_API ts_bspline_set_knots_varargs(tsBSpline *spline, +tsError ts_bspline_set_knots_varargs(tsBSpline *spline, tsStatus *status, tsReal knot0, double knot1, ...) { tsReal *values = NULL...
bytes to bytes
@@ -20,8 +20,9 @@ void getEth2PublicKey(uint32_t *bip32Path, uint8_t bip32PathLength, uint8_t *out #define ETH2_WITHDRAWAL_CREDENTIALS_LENGTH 0x20 #define ETH2_SIGNATURE_LENGTH 0x60 -#define DEPOSIT_CONTRACT_ADDRESS "0x00000000219ab540356cbb839cbe05303d7705fa" -#define DEPOSIT_CONTRACT_LENGTH sizeof(DEPOSIT_CONTRACT_AD...
add verbose back + fix change in input parameters
@@ -466,6 +466,7 @@ class CatBoost(_CatBoostBase): model_file : string, optional (default=None) If string, giving the path to the file with input model. """ + params = deepcopy(params) if params is None: params = {} @@ -481,7 +482,12 @@ class CatBoost(_CatBoostBase): params['kwargs'] = kwargs if 'verbose' in params: - ...
conditionnaly add c++17 flag on qt rules
@@ -102,6 +102,17 @@ function _add_includedirs(target, includedirs) end end +-- get target c++ version +function _get_target_cppversion(target) + local languages = target:get("languages") + for _, language in ipairs(languages) do + if language:startswith("c++") or language:startswith("cxx") then + local v = language:ma...
HV: Fix split-locked access detection is disabled by default The commit 'HV: Config Splitlock Detection to be disable' allows using CONFIG_ENFORCE_TURNOFF_AC to turn off splitlock #AC. If CONFIG_ENFORCE_TURNOFF_AC is not set, splitlock #AC should be turn on
@@ -100,7 +100,7 @@ uint64_t get_active_pcpu_bitmap(void) static void enable_ac_for_splitlock(void) { -#ifdef CONFIG_ENFORCE_TURNOFF_AC +#ifndef CONFIG_ENFORCE_TURNOFF_AC uint64_t test_ctl; if (has_core_cap(1U << 5U)) {
Mdified to avoid reporting lock state without the lock itself reporting it (after doing a lock/unlock command)
@@ -943,7 +943,7 @@ int DeRestPluginPrivate::setLightState(const ApiRequest &req, ApiResponse &rsp) rspItemState[QString("/lights/%1/state/on").arg(id)] = true; rspItem["success"] = rspItemState; rsp.list.append(rspItem); - + if (!isDoorLockDevice) taskRef.lightNode->setValue(RStateOn, targetOn); } else @@ -1490,7 +149...