message
stringlengths
6
474
diff
stringlengths
8
5.22k
build-homepage: exclude interpreter plugins
@@ -9,17 +9,19 @@ set -x ROOT_DIR=$PWD # build the applications -mkdir -p build -cd build +rm -rf build && mkdir -p build && cd build +# concrete install location is configurable +if [ -z "${INSTALL_PATH}" ] ; then INSTALL_PATH="/usr/local/elektra_backend" +fi C_FLAGS='-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-securi...
DOC: Fix example in OSSL_PARAM_int.pod This fixes an incorrect NULL check. Fixes
@@ -362,11 +362,11 @@ could fill in the parameters like this: OSSL_PARAM *p; - if ((p = OSSL_PARAM_locate(params, "foo")) == NULL) + if ((p = OSSL_PARAM_locate(params, "foo")) != NULL) OSSL_PARAM_set_utf8_ptr(p, "foo value"); - if ((p = OSSL_PARAM_locate(params, "bar")) == NULL) + if ((p = OSSL_PARAM_locate(params, "ba...
Send queue implementation
@@ -19,6 +19,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ using System; +using System.Collections.Concurrent; +using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; @@ -56,9 +58,10 @@ namespace MiningCore.JsonRpc private readonly ILogger logger = LogManager.G...
atsam3u - Remove SWD clock speed customization Remove the atsam3u clock speed customization. With sequential code optimization turned on each instruction takes the same number of clock cycles as that of a a normal cortex-m4 device.
// Clock Macros -#if defined(INTERFACE_SAM3U2C) - #define MAX_SWJ_CLOCK(delay_cycles) \ - (CPU_CLOCK / ((delay_cycles + IO_PORT_WRITE_CYCLES) * 20/*14*/)) - #define CLOCK_DELAY(swj_clock) \ - ((CPU_CLOCK / (swj_clock * /*20*/14)) - IO_PORT_WRITE_CYCLES) -#else #define MAX_SWJ_CLOCK(delay_cycles) \ (CPU_CLOCK/2 / (IO_PO...
sub shm BUGFIX no mem error is no longer special
@@ -185,12 +185,7 @@ sr_shmsub_notify_finish_wrunlock(sr_sub_shm_t *sub_shm, size_t shm_struct_size, err_xpath = ptr; - if (err_code == SR_ERR_NOMEM) { - /* exception for this error */ - sr_errinfo_new(cb_err_info, err_code, NULL, NULL); - } else { sr_errinfo_new(cb_err_info, err_code, err_xpath[0] ? err_xpath : NULL, ...
Fix interfaces order.
@@ -2175,15 +2175,6 @@ const U8 USBD_ConfigDescriptor[] = { MSC_EP #endif -#if (USBD_HID_ENABLE) - HID_DESC -#if (USBD_HID_EP_INTOUT != 0) - HID_EP_INOUT -#else - HID_EP -#endif -#endif - #if (USBD_CDC_ACM_ENABLE) #if (USBD_MULTI_IF) CDC_ACM_DESC_IAD(USBD_CDC_ACM_CIF_NUM, 2) @@ -2194,6 +2185,15 @@ const U8 USBD_ConfigD...
Completions: Add storage suggestion for `import`
@@ -145,7 +145,7 @@ function __fish_kdb_subcommand_fstab_needs_filesystem -d 'Check if the subcomman end function __fish_kdb_subcommand_needs_storage_plugin -d 'Check if the current subcommand need a storage plugin completion' - set -l subcommands editor export + set -l subcommands editor export import not __fish_kdb_s...
router_set_statistics: suggest new style config
@@ -906,12 +906,12 @@ router_add_stubroute( return NULL; } -char * +inline char * router_set_statistics(router *rtr, destinations *dsts) { if (rtr->collector.stub != NULL) return ra_strdup(rtr->a, - "duplicate 'send statistics to' not allowed, " + "duplicate 'statistics send to' not allowed, " "use multiple destination...
nshlib: remove the dependency of date on RTC
@@ -259,8 +259,8 @@ config NSH_DISABLE_CMP config NSH_DISABLE_DATE bool "Disable date" - default n if RTC - default y if !RTC + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL config NSH_DISABLE_DD bool "Disable dd"
Clarify Autotools instructions.
-Building Libtcod 1.6 on Linux or MacOS -====================================== +Building Libtcod using Autotools +================================ The following instructions have been tested on 32 and 64-bit versions of Ubuntu 14.04 and Fedora 22. @@ -40,8 +40,8 @@ Download the supported SDL2 revision, build and insta...
apps/btc/sign: reword comment
@@ -804,8 +804,8 @@ app_btc_result_t app_btc_sign_output( // A locktime of 0 will also not be verified, as it's certainly in the past and can't do any // harm. if (_init_request.locktime > 0) { - // This is not a security feature, a transaction that is not rbf or has a locktime of 0 - // will not be verified. + // This...
OcAppleDiskImageLib: Fix security issues
@@ -67,10 +67,12 @@ STATIC BOOLEAN InternalSwapBlockData ( IN OUT APPLE_DISK_IMAGE_BLOCK_DATA *BlockData, + IN UINT32 MaxSize, IN UINT64 DataForkOffset, IN UINT64 DataForkSize ) { + UINT32 ChunksSize; UINT64 MaxOffset; BOOLEAN Result; APPLE_DISK_IMAGE_CHUNK *Chunk; @@ -79,6 +81,19 @@ InternalSwapBlockData ( UINT64 Chun...
Makefile: Make sure providers/fipsmodule.cnf is re-built also for run_tests
@@ -119,7 +119,7 @@ IF[{- !$disabled{fips} -}] # the generated commands in build templates are expected to catch that, # and thereby keep control over the exact output file location. IF[{- !$disabled{tests} -}] - DEPEND[|tests|]=fipsmodule.cnf + DEPEND[|run_tests|]=fipsmodule.cnf GENERATE[fipsmodule.cnf]=../apps/openss...
Makefile: add BOARD_CONFIG to CFLAGS
@@ -26,6 +26,7 @@ TARGET ?= ia32-generic include ../phoenix-rtos-build/Makefile.common include ../phoenix-rtos-build/Makefile.$(TARGET_SUFF) +CFLAGS += $(BOARD_CONFIG) CFLAGS += -I. -DHAL=\"hal/$(TARGET_SUFF)/hal.h\" -DVERSION=\"$(VERSION)\" EXTERNAL_HEADERS_DIR := ./include
set DDR_CLK_EDGE to SAME_EDGE in axis_red_pitaya_dac
@@ -53,18 +53,68 @@ module axis_red_pitaya_dac # int_rst_reg <= ~locked | ~s_axis_tvalid; end - ODDR ODDR_rst(.Q(dac_rst), .D1(int_rst_reg), .D2(int_rst_reg), .C(aclk), .CE(1'b1), .R(1'b0), .S(1'b0)); - ODDR ODDR_sel(.Q(dac_sel), .D1(1'b0), .D2(1'b1), .C(aclk), .CE(1'b1), .R(1'b0), .S(1'b0)); - ODDR ODDR_wrt(.Q(dac_wrt...
ENHANCE: Disable printing the increment of space shortage level.
@@ -242,6 +242,7 @@ static void do_slabs_check_space_shortage_level(struct default_engine *engine) } else { ssl = MAX_SPACE_SHORTAGE_LEVEL; } + /*** Disable printing the increment of space shortage level *** if (ssl > sm_anchor.space_shortage_level) { logger->log(EXTENSION_LOG_INFO, NULL, "Space shortage level increase...
Reorder controller and HID initialization This allows to merge two "#ifdef HAVE_AOA_HID" blocks to simplify.
@@ -455,34 +455,10 @@ scrcpy(struct scrcpy_options *options) { } acksync = &s->acksync; - } -#endif - if (!controller_init(&s->controller, s->server.control_socket, - acksync)) { - goto end; - } - controller_initialized = true; - - if (!controller_start(&s->controller)) { - goto end; - } - controller_started = true; - ...
fix AtkImageNode.LoadIconTexture signature
@@ -45,7 +45,7 @@ public unsafe partial struct AtkImageNode Marshal.FreeHGlobal(ptr); } - [MemberFunction("E8 ? ? ? ? 8D 4D 09")] + [MemberFunction("E8 ? ? ? ? 8D 43 76")] public partial void LoadIconTexture(int iconId, int version); [MemberFunction("E8 ? ? ? ? 85 FF 78 1E")]
Replace the deprecated std::result_of with std::invoke_result
@@ -38,8 +38,7 @@ template <typename F, typename... T> struct Defer { Defer(Defer &&o) noexcept : f(std::move(o.f)) {} ~Defer() { f(); } - using ResultType = typename std::result_of<typename std::decay<F>::type( - typename std::decay<T>::type...)>::type; + using ResultType = std::invoke_result_t<F, T...>; std::function...
Improve macro expansion help message
"the string representation of Mbed TLS compile time configurations.\n\n" \ "If \"--all\" and \"--any\" are not used, then, if all given arguments\n" \ "are defined in the Mbed TLS build, 0 is returned; otherwise 1 is\n" \ - "returned. If only one argument is given, the macro expansion of that\n" \ - "configuration will...
move PERF_COUNTER_TOTAL after usb_detect
@@ -260,19 +260,6 @@ int main() { perf_counter_start(PERF_COUNTER_BLACKBOX); blackbox_update(); perf_counter_end(PERF_COUNTER_BLACKBOX); - - if (usb_detect()) { - flags.usb_active = 1; -#ifndef ALLOW_USB_ARMING - if (rx_aux_on(AUX_ARMING)) - flags.arm_safety = 1; //final safety check to disallow arming during USB opera...
Align pg_basebackup create replication slots with postgres
@@ -1690,51 +1690,6 @@ build_exclude_list(char **exclude_list, int num) return buf.data; } -static void -create_replication_slot(const char *slot_name) -{ - PGresult *res; - char *create_slot_command; - bool is_result_an_error; - bool is_unexpected_number_of_tuples; - bool is_unexpected_number_of_fields; - - const int ...
fs/stdio : change return value as same as close if flush returns -ENOSPC If flush failed during fclose, it doesn't return close's result. But if disk is full, there's no way write contents anymore, so File should be closed
@@ -112,9 +112,10 @@ int fclose(FAR FILE *stream) /* If close() returns an error but flush() did not then make sure * that we return the close() error condition. + * Also If flush returns error but storage is full, we return close status. */ - if (ret == OK) { + if (ret == OK || ret == -ENOSPC) { ret = status; err = er...
Temporarily revert wrapping the root tuple This change reverts wrapping the root tuple because tfs code will call destroy on the wrapped tuple and thus the root tuple when switching to a new log and cleaning up.
@@ -52,8 +52,6 @@ extern filesystem_complete bootfs_handler(kernel_heaps kh, tuple root, boolean klibs_in_bootfs, boolean ingest_kernel_syms); -static tuple_notifier wrapped_root; - closure_function(3, 2, void, fsstarted, u8 *, mbr, block_io, r, block_io, w, filesystem, fs, status, s) @@ -75,10 +73,7 @@ closure_functio...
uip-ds6-nbr: check memb availability before adding an nbr_table entry
@@ -136,6 +136,13 @@ uip_ds6_nbr_add(const uip_ipaddr_t *ipaddr, const uip_lladdr_t *lladdr, return NULL; } + /* firstly, allocate memory for a new nbr cache entry */ + if((nbr = (uip_ds6_nbr_t *)memb_alloc(&uip_ds6_nbr_memb)) == NULL) { + LOG_ERR("%s: cannot allocate a new uip_ds6_nbr\n", __func__); + return NULL; + }...
better handling of stdout
@@ -617,20 +617,20 @@ static void writeinfofile(char *infooutname) static hashlist_t *zeiger; static FILE *fh; -if(strcmp(infooutname, "stdout") == 0) fh = stdout; -else - { - if(infooutname != NULL) +if(strcmp(infooutname, "stdout") != 0) { if((fh = fopen(infooutname, "a+")) == NULL) { printf("error opening file %s: %...
build: update codeowners * Added myself as a reviewer for: /.github /appveyor.yml /dockerfiles/ /src/flb_lib.c
# Build System & Portability # -------------------------- -/CMakeLists.txt @fujimotos -/cmake/ @fujimotos +/CMakeLists.txt @fujimotos @niedbalski +/cmake/ @fujimotos @niedbalski + +# CI +# ------------------------- +/.github/ @niedbalski +/appveyor.yml @niedbalski +/dockerfiles/ @niedbalski # Core: Signv4 # -----------...
show game menu Pause Menu pressed on XBox One controller
@@ -772,9 +772,12 @@ static void processJoysticks() gamepad->x = SDL_JoystickGetButton(joystick, 2); gamepad->y = SDL_JoystickGetButton(joystick, 3); - for(s32 i = 5; i < numButtons; i++) + if(numButtons >= 8) { - s32 back = SDL_JoystickGetButton(joystick, i); + // !TODO: We have to find a better way to handle gamepad ...
Remove event note mask for now. This should be part of something bigger maybe and would need more thought.
@@ -70,12 +70,6 @@ enum { // Uses the note_expression attribute. CLAP_EVENT_NOTE_EXPRESSION, - // Sent by the host to the plugin. - // Indicate the current root note, and the set of notes which belongs to the scale or chord. - // - // uses the note_mask attribute - CLAP_EVENT_NOTE_MASK, - // PARAM_VALUE sets the parame...
Add ROTATE inline asm support for SM3 And move ROTATE inline asm to header. Now this benefits SM3, SHA (when with Zbb only and no Zknh) and other hash functions
# define ROTATE(a,n) (((a)<<(n))|(((a)&0xffffffff)>>(32-(n)))) +#ifndef PEDANTIC +# if defined(__GNUC__) && __GNUC__>=2 && \ + !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM) +# if defined(__riscv_zbb) || defined(__riscv_zbkb) +# if __riscv_xlen == 64 +# undef ROTATE +# define ROTATE(x, n) ({ MD32_REG_T ret...
README.md: Use version 2.05.14
@@ -34,11 +34,11 @@ https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices ### Install deCONZ 1. Download deCONZ package - wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.12-qt5.deb + wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.14-qt5.deb 2. Install deCON...
Fix bug that hs_sent is not incremented
@@ -7369,7 +7369,7 @@ static ngtcp2_ssize conn_write_handshake(ngtcp2_conn *conn, uint8_t *dest, res += nwrite; dest += nwrite; if (destlen <= (size_t)nwrite) { - return nwrite; + goto server_wait_handshake_done; } destlen -= (size_t)nwrite; origlen -= (size_t)nwrite; @@ -7393,6 +7393,8 @@ static ngtcp2_ssize conn_writ...
VERSION bump to version 1.3.29
@@ -30,7 +30,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 3) -set(SYSREPO_MICRO_VERSION 28) +set(SYSREPO_MICRO_VERSION 29) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
revert the changes in CMakeLists.txt When we do not regenerate the generated_raw_tracer.cc, h2olog tests fails, but it's totally fine. cf.
@@ -926,13 +926,18 @@ IF (WITH_H2OLOG) "include/h2o/version.h" ) - SET(H2OLOG_RAW_TRACER_FILE "${CMAKE_CURRENT_SOURCE_DIR}/src/h2olog/generated_raw_tracer.cc") + SET(H2OLOG_GEN_DEPS + "h2o-probes.d" + "deps/quicly/quicly-probes.d" + "deps/quicly/include/quicly.h" + ) ADD_CUSTOM_COMMAND( - OUTPUT "${H2OLOG_RAW_TRACER_FI...
publish: ignore updates from old version
=^ cards state (handle-invite-update:main !<(invite-update q.cage.sin)) [cards this] + :: + [%collection *] + [~ this] == == ::
[numerics] copy matrix for preserving original one in NM_inv
@@ -1964,6 +1964,8 @@ void NM_gemm(const double alpha, NumericsMatrix* A, NumericsMatrix* B, assert(A->matrix1); assert(B->matrix1); assert(C->matrix1); + + SBM_alloc_for_gemm(A->matrix1, B->matrix1, C->matrix1); SBM_gemm(alpha, A->matrix1, B->matrix1, beta, C->matrix1); NM_clearDense(C); @@ -2433,10 +2435,12 @@ int NM...
adding notification <n> to config wizard spec
@@ -88,6 +88,15 @@ The following table lists the Configuration Wizard Annotations: <td>yes</td> <td>Heading, Enable, or Comment end.</td> </tr> + <tr> + <td>\<n></td> + <td>yes</td> + <td>Notification text displayed + \code + // <n> This is shown as plain text + \endcode + </td> + </tr> <tr> <td>\<i></td> <td>yes</td>
Add quick reference table for HTTP response object
@@ -56,6 +56,21 @@ The Response object returned has 3 public properties, "content", "headers" and " HTTP request as a string, "headers" is a list of all the response headers and "statusCode" is a number denoting the status code from the response +#### Quick Reference Table +##### Properties + +| Property | Description ...
Fix font alpha;
@@ -20,5 +20,5 @@ void main() { float screenPxDistance = screenPxRange() * (sdf - .5); float alpha = clamp(screenPxDistance + .5, 0., 1.); if (alpha <= 0.) discard; - PixelColors[0] = vec4(FragColor.rgb, alpha); + PixelColors[0] = vec4(FragColor.rgb, FragColor.a * alpha); }
options/linux: Add constants for weston
@@ -157,12 +157,16 @@ struct input_absinfo { #define KEY_RIGHTMETA 126 #define KEY_COMPOSE 127 +#define KEY_BRIGHTNESSDOWN 224 +#define KEY_BRIGHTNESSUP 225 + //---------------------------------- // BUTTON Codes //---------------------------------- #define BTN_LEFT 0x110 #define BTN_RIGHT 0x111 +#define BTN_MIDDLE 0x11...
Test: Make host calls for power supply mockable Add test_mockable for power supply ready and reset so tests may detect when Vbus is applied and removed. BRANCH=None TEST=make -j buildall
@@ -26,13 +26,13 @@ const uint32_t pd_snk_pdo[] = { }; const int pd_snk_pdo_cnt = ARRAY_SIZE(pd_snk_pdo); -int pd_set_power_supply_ready(int port) +test_mockable int pd_set_power_supply_ready(int port) { /* Not implemented */ return EC_SUCCESS; } -void pd_power_supply_reset(int port) +test_mockable void pd_power_supply...
Re-order switch cases for consistency
@@ -234,6 +234,11 @@ func (g *gen) visitVars(b *buffer, block []*a.Node, depth uint32, f func(*gen, * for _, o := range block { switch o.Kind() { + case a.KIOBind: + if err := g.visitVars(b, o.AsIOBind().Body(), depth, f); err != nil { + return err + } + case a.KIf: for o := o.AsIf(); o != nil; o = o.ElseIf() { if err ...
Memory sanitizer sometimes doesn't generate correct shadow for parameters of const functions. This compiler bug happens in test library/containers/intrusive_hash/ut.
@@ -543,7 +543,8 @@ Y_HIDDEN void _YandexAbort(); #define Y_PRAGMA_NO_DEPRECATED #endif -#if defined(__clang__) || defined(__GNUC__) +// Memory sanitizer sometimes doesn't correctly set parameter shadow of constant functions. +#if (defined(__clang__) || defined(__GNUC__)) && !defined(_msan_enabled_) /** * @def Y_CONST_...
VERSION bump to version 1.4.55
@@ -37,7 +37,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 4) -set(SYSREPO_MICRO_VERSION 54) +set(SYSREPO_MICRO_VERSION 55) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
Create Sources from AudioStreams;
@@ -62,12 +62,19 @@ int l_lovrAudioIsSpatialized(lua_State* L) { } int l_lovrAudioNewSource(lua_State* L) { + void** type; + AudioStream* stream; + if ((type = luax_totype(L, 1, AudioStream)) != NULL) { + stream = *type; + } else { Blob* blob = luax_readblob(L, 1, "Source"); - AudioStream* stream = lovrAudioStreamCreat...
Add resource files include and pre-processor defines for the VS generator
@@ -493,6 +493,39 @@ function _make_source_options_cl(vcxprojfile, flags, condition) end end +-- make source options for cl +function _make_resource_options_cl(vcxprojfile, flags, condition) + + -- exists condition? + condition = condition or "" + + -- get flags string + local flagstr = os.args(flags) + + -- make Prepr...
ames: adds port printfs for all ships
@@ -417,13 +417,17 @@ _ames_io_start(u3_pier* pir_u) c3_c* imp_c = u3r_string(imp); c3_y num_y = (c3_y)pir_u->who_d[0]; + if ( 0 != por_s ) { + u3l_log("ames: czar: -p %d ignored\n", por_s); + } + por_s = _ames_czar_port(num_y); if ( c3y == u3_Host.ops_u.net ) { - u3l_log("ames: czar: %s on %d\n", imp_c, por_s); + u3l_...
tests/malloc: just malloc 256MB for 32-bit machines
@@ -40,7 +40,7 @@ int main(void) #if (UINTPTR_MAX == UINT64_MAX) test_malloc(512*1024*1024ULL); #else - test_malloc(400*1024*1024ULL); + test_malloc(256*1024*1024ULL); #endif printf("malloctest done.\n");
Fix WW4 builds on OBS
%include %{_sourcedir}/OHPC_macros -%define debug_package %{nil} +%global debug_package %{nil} # Base package name -%define pname warewulf +%global pname warewulf # Group for warewulfd and other WW operations %global wwgroup warewulf +# Service directories (normally defaults to /var/lib/*) +%global tftpdir /srv/tftpboo...
sp: process time functions on aggregation processor
@@ -190,6 +190,10 @@ static int sp_cmd_aggregated_keys(struct flb_sp_cmd *cmd) mk_list_foreach(head, &cmd->keys) { key = mk_list_entry(head, struct flb_sp_cmd_key, _head); + if (key->time_func > 0) { + continue; + } + if (key->aggr_func > 0) { /* AVG, SUM or COUNT */ aggr++; } @@ -1127,6 +1131,14 @@ static int sp_proce...
doc: prettify OPAL_PCI_SET_PE
+.. _OPAL_PCI_SET_PE: + OPAL_PCI_SET_PE =============== -:: + +.. code-block:: c #define OPAL_PCI_SET_PE 31 + int64_t opal_pci_set_pe(uint64_t phb_id, uint64_t pe_number, + uint64_t bus_dev_func, uint8_t bus_compare, + uint8_t dev_compare, uint8_t func_compare, + uint8_t pe_action); + **NOTE:** The following two paragr...
Fix defense vs. noblock logic.
@@ -19460,6 +19460,7 @@ void set_opponent(entity *ent, entity *other) // block attack. Return true of block is possible eligible. int check_blocking_eligible(entity *ent, entity *other, s_collision_attack *attack) { + printf("\n\n debug_trace: check_blocking_eligible"); // If guardpoints are set, then find out if they'...
docs/usage: fix the markdown
@@ -255,8 +255,8 @@ Examples: * **SIGSEGV**,**SIGILL**,**SIGBUS**,**SIGABRT**,**SIGFPE** - Description of the signal which terminated the process (when using ptrace() API, it's a signal which was delivered to the process, even if silently discarded) * **PC.0x8056ad7** - Program Counter (PC) value (ptrace() API only), f...
CoreValidation: Fixed compilation error for GCC. Using ~v within the ASSERT_TRUE macro leads to an "comparison of promoted ~unsigned with unsigned" warning. On Cortex-M this finally fails with an error.
@@ -321,7 +321,9 @@ void TC_CoreInstr_Exclusives (void) { const uint32_t result = __STREXB(v+1U, &TC_CoreInstr_Exclusives_byte); ASSERT_TRUE(result == 1U); - ASSERT_TRUE(TC_CoreInstr_Exclusives_byte == (uint8_t)~v); + + const uint8_t iv = ~v; + ASSERT_TRUE(iv == TC_CoreInstr_Exclusives_byte); } while(0); do { @@ -332,7...
Add test case for uppercase atoms. Related to
@@ -167,6 +167,12 @@ void test_heuristic_quality() .bytes = {0x61, 0x62, 0x63, 0x64}, .mask = {0xFF, 0xFF, 0xFF, 0xFF}}; + // ABCD + YR_ATOM a41424344 = { + .length = 4, + .bytes = {0x41, 0x42, 0x43, 0x44}, + .mask = {0xFF, 0xFF, 0xFF, 0xFF}}; + // abc. YR_ATOM a6162632E = { .length = 4, @@ -195,6 +201,8 @@ void test_h...
decisions: add keyMeta proposal
@@ -33,8 +33,7 @@ Binary data is not a core feature, if needed the plugin system can also work wit Remove: -- keyGetMeta (@kodebach) -- keySetMeta (@kodebach) +- keyGetMeta - keyRewindMeta - keyNextMeta - keyCurrentMeta @@ -59,6 +58,11 @@ Remove: - keySetBinary ([Binary](binary.md)) - ksCut (maybe later introduce ksFin...
Use system sleep() function The local `sleep` var in `hare_id` was assigned but never used. Tested this, works fine on macOS.
@@ -15,7 +15,7 @@ local hare_id = uv.new_thread(function(step,...) end while (step>0) do step = step - 1 - uv.sleep(math.random(1000)) + sleep(math.random(1000)) print("Hare ran another step") end print("Hare done running!")
CircleCI: Separate build jobs for readability Separate build jobs to show each build result in PR check list
@@ -15,11 +15,13 @@ aliases: command: | docker exec ${BUILDER} arm-none-eabi-gcc --version - run-test: &run-test + build-job: &build-job run: name: TizenRT Build Test command: | - docker exec -it ${BUILDER} bash -c "cd tools; ./build_test.sh" + docker exec -it ${BUILDER} bash -c "cd tools; ./configure.sh ${CIRCLE_JOB}"...
phb4: Use the return value of phb4_fenced() in phb4_get_diag_data() phb4_get_diag_data() checks the flags for the PHB4_AIB_FENCED after having called phb4_fenced(). This information is returned by phb4_fenced(). This patch was prompted by an unused return value warning in Coverity. Fixes: CID 163734
@@ -3755,6 +3755,7 @@ static int64_t phb4_get_diag_data(struct phb *phb, void *diag_buffer, uint64_t diag_buffer_len) { + bool fenced; struct phb4 *p = phb_to_phb4(phb); struct OpalIoPhb4ErrorData *data = diag_buffer; @@ -3767,10 +3768,10 @@ static int64_t phb4_get_diag_data(struct phb *phb, * Dummy check for fence so ...
typo from previous commit: operator= wasn't returning a value
@@ -117,6 +117,8 @@ BaseExc::operator = (const BaseExc& be) throw () _message = be._message; _stackTrace = be._stackTrace; } + + return *this; } BaseExc & @@ -127,6 +129,7 @@ BaseExc::operator = (BaseExc&& be) throw () _message = std::move (be._message); _stackTrace = std::move (be._stackTrace); } + return *this; } con...
Avoid inconsistent type declaration Clang 3.3 correctly complains that a variable of type enum MultiXactStatus cannot hold a value of -1, which makes sense. Change the declared type of the variable to int instead, and apply casting as necessary to avoid the warning. Per notice from Andres Freund
@@ -123,12 +123,15 @@ static bool ConditionalMultiXactIdWait(MultiXactId multi, * update them). This table (and the macros below) helps us determine the * heavyweight lock mode and MultiXactStatus values to use for any particular * tuple lock strength. + * + * Don't look at lockstatus/updstatus directly! Use get_mxact_...
evp: fix coverity unchecked return value
@@ -846,8 +846,9 @@ static const ECX_KEY *evp_pkey_get0_ECX_KEY(const EVP_PKEY *pkey, int type) static ECX_KEY *evp_pkey_get1_ECX_KEY(EVP_PKEY *pkey, int type) { ECX_KEY *ret = (ECX_KEY *)evp_pkey_get0_ECX_KEY(pkey, type); - if (ret != NULL) - ossl_ecx_key_up_ref(ret); + + if (ret != NULL && !ossl_ecx_key_up_ref(ret)) ...
x64 compilation is fixed.
Release/ Debug/ .vs/ + +/win32/xdagwin/cheatcoin.VC.db +/win32/xdagwin/xdag/cheatcoin.vcxproj.user +/win64/xdagwin/xdag.VC.db +/win64/xdagwin/xdag.VC.VC.opendb +/win64/xdagwin/xdag/xdag.vcxproj.user +/win64/xdagwin/xdagwallet/xdagwallet.vcxproj.user
travis: limit max Android emulator level to 25 as it is max available for ARM EABI
@@ -11,5 +11,9 @@ unzip -q $HOME/emdk.zip -d $ANDROID_HOME/add-ons #genearate keystore cd $HOME/.android && printf "android\nandroid\nTRAVIS-CI\nCI-SYSTEM\nTAU\nUNIVERSE\nUNIVERSE\nUN\nyes\n\n" | keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10000 #download -echo...
Add u32x4_extend_to_u64x2 for aarch64 using NEON intrinsics This is used in vlib_get_buffers_with_offset. Verified-by: Lijian Zhang
@@ -140,6 +140,12 @@ u32x4_hadd (u32x4 v1, u32x4 v2) return (u32x4) vpaddq_u32 (v1, v2); } +static_always_inline u64x2 +u32x4_extend_to_u64x2 (u32x4 v) +{ + return vmovl_u32 (vget_low_u32 (v)); +} + #define CLIB_HAVE_VEC128_UNALIGNED_LOAD_STORE #define CLIB_VEC128_SPLAT_DEFINED #endif /* included_vector_neon_h */
CCode: Use escaped character in MSR test
@@ -51,9 +51,9 @@ kdb get user/tests/ccode/tab #> Tab Fabulous # The plugin also escapes special characters inside key names -kdb set 'user/tests/ccode/tab/t a b' 'Escaped Tabs' +kdb set 'user/tests/ccode/tab/t\ta b' 'Escaped Tabs' grep 'tab/' `kdb file user/tests/ccode` | sed 's/[[:space:]]*//' -#> tab/t\ta\tb = Escap...
Raise example/crc32's buffer size from 16K to 32K This matches the 32K buffer size used by as shipped as /usr/bin/crc32 on Debian
@@ -37,7 +37,7 @@ for a C++ compiler $CXX, such as clang++ or g++. #include "../../gen/c/std/crc32.c" #ifndef SRC_BUFFER_SIZE -#define SRC_BUFFER_SIZE (16 * 1024) +#define SRC_BUFFER_SIZE (32 * 1024) #endif uint8_t src_buffer[SRC_BUFFER_SIZE];
doc: update pull request guidelines
@@ -17,21 +17,21 @@ Check relevant points but **please do not remove entries**. For docu fixes, spell checking, and similar none of these points below need to be checked. -- [ ] I added unit tests -- [ ] I ran all tests locally and everything went fine -- [ ] affected documentation is fixed -- [ ] I added code comments...
roll-tm.c: removing unused define
@@ -456,7 +456,6 @@ static uint16_t last_seq; /*---------------------------------------------------------------------------*/ /* uIPv6 Pointers */ /*---------------------------------------------------------------------------*/ -#define UIP_DATA_BUF ((uint8_t *)&uip_buf[uip_l2_l3_hdr_len + UIP_UDPH_LEN]) #define UIP_EXT...
NPU2: fix missing unlock Found by coccinelle using a slightly modified spatch
@@ -1865,8 +1865,8 @@ static int opal_npu_destroy_context(uint64_t phb_id, uint64_t pid, uint64_t bdf) /* And zero the entry */ npu2_write(p, NPU2_XTS_PID_MAP + id*0x20, 0); - unlock(&p->lock); out: + unlock(&p->lock); return rc; } opal_call(OPAL_NPU_DESTROY_CONTEXT, opal_npu_destroy_context, 3);
hoon: refactors nock %6 in +mink
[%6 test=* yes=* no=*] =/ result $(formula test.formula) ?. ?=(%0 -.result) result - ?: =(& product.result) - $(formula yes.formula) - ?: =(| product.result) - $(formula no.formula) + ?+ product.result [%2 trace] + %& $(formula yes.formula) + %| $(formula no.formula) + == :: [%7 subject=* next=*] =/ subject $(formula s...
CodeQL clean up codeql_db directory
@@ -6,6 +6,7 @@ for /d %%x in (objfre_*) do rmdir /S /Q %%x for /d %%x in (objchk_*) do rmdir /S /Q %%x rmdir /S /Q .\sdv rmdir /S /Q .\sdv.temp +rmdir /S /Q .\codeql_db del /F *.log *.wrn *.err *.sdf *.sdv *.xml del viogpudo.dvl.xml
phb4: Force verbose EEH logging Force verbose EEH. This is a heavy handed and we should turn if off later as things stabilise, but is useful for now. Acked-by: Russell Currey
@@ -4565,6 +4565,8 @@ void probe_phb4(void) struct dt_node *np; verbose_eeh = nvram_query_eq("pci-eeh-verbose", "true"); + /* REMOVEME: force this for now until we stabalise PCIe */ + verbose_eeh = 1; if (verbose_eeh) prlog(PR_INFO, "PHB4: Verbose EEH enabled\n");
Windows: disable test which changes ECCODES_DEFINITION_PATH
@@ -95,7 +95,6 @@ list( APPEND tests_data_reqd bufr_extract_headers bufr_ecc-673 bufr_ecc-428 - bufr_ecc-197 bufr_ecc-286 bufr_ecc-288 bufr_ecc-313 @@ -257,6 +256,13 @@ ecbuild_add_test( TARGET eccodes_t_tools_data_from_stdin TEST_DEPENDS eccodes_download_bufrs ) +ecbuild_add_test( TARGET eccodes_t_bufr_ecc-197 + TYPE ...
Update astc_compute_variance.cpp Avoid mixed type comparison of float and double.
@@ -115,10 +115,10 @@ static void compute_pixel_region_variance(const astc_codec_image * img, float rg if (!powers_are_1) { - d.x = pow(MAX(d.x, 1e-6f), (double)rgb_power_to_use); - d.y = pow(MAX(d.y, 1e-6f), (double)rgb_power_to_use); - d.z = pow(MAX(d.z, 1e-6f), (double)rgb_power_to_use); - d.w = pow(MAX(d.w, 1e-6f),...
Update textpad for gui_text_input_t API changes
#include <libgui/libgui.h> -static Rect _input_sizer(text_input_t* text_view, Size window_size) { +static Rect _input_sizer(gui_text_input_t* text_input, Size window_size) { return rect_make(point_zero(), window_size); } @@ -19,10 +19,8 @@ int main(int argc, char** argv) { Size window_size = window->size; Rect notepad_...
driver/retimer/nb7v904m.c: Format with clang-format BRANCH=none TEST=none
@@ -21,18 +21,12 @@ int nb7v904m_lpm_disable = 0; static int nb7v904m_write(const struct usb_mux *me, int offset, int data) { - return i2c_write8(me->i2c_port, - me->i2c_addr_flags, - offset, data); - + return i2c_write8(me->i2c_port, me->i2c_addr_flags, offset, data); } static int nb7v904m_read(const struct usb_mux *m...
return-type error does not know that you don't return from assert(0)
@@ -314,6 +314,7 @@ uint32_t kvz_get_coeff_cost(const encoder_state_t * const state, // earlier (configuration validation I guess)? if (save_cccs) { assert(0 && "Fast RD sampling does not work with fast-residual-cost"); + return UINT32_MAX; // Hush little compiler don't you cry, not really gonna return anything after a...
Repair and cleanup
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.26724.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MiningForce.Web", "MiningForce.Web\MiningForce.Web.csproj", "{933BBE7C-2896-4A94-B5B9-71935CA8...
SOVERSION bump to version 5.6.25
@@ -54,7 +54,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 5) set(SYSREPO_MINOR_SOVERSION 6) -set(SYSREPO_MICRO_SOVERSION 24) +set(SYSREPO_MICRO_S...
chip/ish/hbm.h: Format with clang-format BRANCH=none TEST=none
@@ -55,8 +55,7 @@ enum HECI_BUS_MSG { (HECI_MSG_REPONSE_FLAG | HECI_BUS_MSG_RESET_REQ), HECI_BUS_MSG_ADD_CLIENT_RESP = (HECI_MSG_REPONSE_FLAG | HECI_BUS_MSG_ADD_CLIENT_REQ), - HECI_BUS_MSG_DMA_RESP = - (HECI_MSG_REPONSE_FLAG | HECI_BUS_MSG_DMA_REQ), + HECI_BUS_MSG_DMA_RESP = (HECI_MSG_REPONSE_FLAG | HECI_BUS_MSG_DMA_RE...
Improve documentation about PSK configuration
@@ -2682,6 +2682,9 @@ int mbedtls_ssl_conf_own_cert( mbedtls_ssl_config *conf, * \note This is mainly useful for clients. Servers will usually * want to use \c mbedtls_ssl_conf_psk_cb() instead. * + * \note A PSK set by \c mbedtls_ssl_set_hs_psk() in the PSK callback + * takes precedence over a PSK configured by this f...
Don't add zlib & snappy linker flags when bundling
@@ -69,7 +69,14 @@ AM_INIT_AUTOMAKE([foreign subdir-objects tar-ustar]) m4_include([build/autotools/SetupAutomake.m4]) # Substitute our dependencies into the pkg-config files. -AC_SUBST(MONGOC_LIBS, "${SASL_LIBS} ${SSL_LIBS} ${SHM_LIB} ${ZLIB_LIBS} ${SNAPPY_LIBS}") +MONGOC_LIBS="${SASL_LIBS} ${SSL_LIBS} ${SHM_LIB}" +if...
removes :dns prohibition against binding yourself
=/ rac (clan:title him.com) ?: ?=(%czar rac) ~|(%bind-galazy !!) - ?: ?& =(for.com him.com) - !?=(%king rac) - == - ~|(%bind-yoself !!) ?: ?& ?=(%king rac) ?=(%indirect -.tar.com) == :: [%bond for=ship him=ship turf] :: %bond - ?: =(for.com him.com) - ~|(%bond-yoself !!) + ?: ?& =(our.bow for.com) + !=(our.bow src.bow)...
system/libuv: Include nuttx/tls.h to call task local storage api
@@ -261,7 +261,7 @@ new file mode 100644 index 00000000..728b57f6 --- /dev/null +++ b/src/unix/nuttx.c -@@ -0,0 +1,284 @@ +@@ -0,0 +1,286 @@ +/* Copyright Xiaomi, Inc. and other Node contributors. All rights reserved. + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software ...
VERSION bump to version 0.11.35
@@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 11) -set(LIBNETCONF2_MICRO_VERSION 34) +set(LIBNETCONF2_MICRO_VERSION 35) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(L...
migration: install %talk
/+ gladio |% +$ card card:agent:gall ++$ ota-host ~zod :: +$ versioned-state $% state-zero :_ cards :~ [%pass /pyre/export %agent [our dap]:bowl %poke noun+!>(%export)] [%pass /pyre/migrate %agent [our dap]:bowl %poke noun+!>(%migrate)] - [%pass / %agent [our %hood]:bowl %poke %kiln-install !>([%groups ~zod %groups])] ...
Improve handling when neither INET nor INET6 is defined.
@@ -106,9 +106,9 @@ sctp_userspace_get_mtu_from_ifn(uint32_t if_index) if (if_index == 0xffffffff) { mtu = 1280; -#if defined(INET) || defined(INET6) } else { mtu = 0; +#if defined(INET) || defined(INET6) memset(&ifr, 0, sizeof(struct ifreq)); if (if_indextoname(if_index, ifr.ifr_name) != NULL) { /* TODO can I use the ...
ci: Fix docs build The docs build uses the Fedora32 container environment, but we didn't update the script when we moved to Fedora 32. Do that.
@@ -7,12 +7,6 @@ set -vx MAKE_J=$(grep -c processor /proc/cpuinfo) export CROSS="ccache powerpc64-linux-gnu-" -# There's a bug in dtc v1.4.7 packaged on fedora 28 that makes our device tree -# tests fail, so for the moment, build a slightly older DTC -git clone --depth=1 -b v1.4.4 https://git.kernel.org/pub/scm/utils/d...
Testing with proj command line tool (if available)
. ./include.sh files=" - regular_latlon_surface.grib1 mercator.grib2 satellite.grib " +# Decide if we have the proj commandline tool +PROJ_NAME="proj" +PROJ_TOOL="" +if command -v $PROJ_NAME >/dev/null 2>&1; then + PROJ_TOOL=$PROJ_NAME +fi + for f in `echo $files`; do file=${data_dir}/$f ps=`${tools_dir}/grib_get -wcou...
tests: fix error in VppDiedError exception Discovered running test-debug job in CI. fix missing paren () around format value. Type: test
@@ -114,8 +114,8 @@ class VppDiedError(Exception): msg = "VPP subprocess died %sunexpectedly with return code: %d%s." % ( in_msg, self.rv, - ' [%s]' % self.signal_name if - self.signal_name is not None else '') + ' [%s]' % (self.signal_name if + self.signal_name is not None else '')) super(VppDiedError, self).__init__(...
Skip handshake tests for ciphers that are not FIPS compatible when in FIPS mode
@@ -193,6 +193,8 @@ def main(): for permutation in itertools.permutations(rsa_signatures, size): # Try an ECDHE cipher suite and a DHE one for cipher in filter(lambda x: x.openssl_name == "ECDHE-RSA-AES128-GCM-SHA256" or x.openssl_name == "DHE-RSA-AES128-GCM-SHA256", ALL_TEST_CIPHERS): + if fips_mode and cipher.openssl...
Base 666: Fix warnings reported by OCLint
@@ -12,6 +12,7 @@ cd "@CMAKE_SOURCE_DIR@" || exit oclint -p "@PROJECT_BINARY_DIR@" -enable-global-analysis -enable-clang-static-analyzer \ "@CMAKE_SOURCE_DIR@/src/libs/ease/keyname.c" \ "@CMAKE_SOURCE_DIR@/src/libs/utility/text.c" \ + "@CMAKE_SOURCE_DIR@/src/plugins/base666/"*.{c,cpp} \ "@CMAKE_SOURCE_DIR@/src/plugins/...
Reduce params number in setup_loader
@@ -427,13 +427,13 @@ do_musl(char *exld, char *ldscope) * Returns 0 if musl was not detected and 1 if it was. */ static int -setup_loader(char *exe, char *ldscope) +setup_loader(char *ldscope) { int ret = 0; // not musl char *ldso = NULL; - if (((ldso = get_loader(exe)) != NULL) && + if (((ldso = get_loader(EXE_TEST_F...
fix: discord::guild::member::get_list endpoint
@@ -169,7 +169,7 @@ get_list(client *client, const uint64_t guild_id) &resp_handle, NULL, HTTP_GET, - "/guilds/%llu?limit=100", guild_id); + "/guilds/%llu/members?limit=100", guild_id); return new_members; }
updating consulting patch to reflect error messages now residing in MessageT.lua
---- Lmod-5.8/src/MasterControl.lua 2014-11-04 10:46:44.000000000 -0800 -+++ Lmod-5.8.patch/src/MasterControl.lua 2014-11-19 13:08:14.098359300 -0800 -@@ -1018,8 +1018,7 @@ - LmodError("You can only have one ",name," module loaded at a time.\n", - "You already have ", oldName," loaded.\n", - "To correct the situation, ...
split boot into stages
@@ -174,7 +174,7 @@ void kernel_bootmod_init(multiboot* mboot_ptr) { boot_modules_count = mboot_ptr->mods_count; } -void kernel_main(multiboot* mboot_ptr, uint32_t initial_stack) { +bool boot_stage1(multiboot* mboot_ptr, uint32_t initial_stack) { initial_esp = initial_stack; kernel_process_multiboot(mboot_ptr); @@ -208...
Fizz: Enable vboot EC This patch enables vboot ec for Fizz. BRANCH=none TEST=Boot Fizz
#define CONFIG_SPI_FLASH_REGS #define CONFIG_SPI_FLASH_W25X40 #define CONFIG_UART_HOST 0 -#define CONFIG_VBOOT_HASH -#define CONFIG_VSTORE -#define CONFIG_VSTORE_SLOT_COUNT 1 #define CONFIG_WATCHDOG_HELP #define CONFIG_WIRELESS #define CONFIG_WIRELESS_SUSPEND \ /* Charger */ #define CONFIG_CHARGE_MANAGER #define CONFIG...
host/mesh: Missed IV update cannot be captured It seems that if the IV update is missed, a node cannot recover it until the IV index has increased to a value greater than Node's Last known IV + 1. This is port of
@@ -85,6 +85,15 @@ struct bt_mesh_net bt_mesh = { .local_queue = STAILQ_HEAD_INITIALIZER(bt_mesh.local_queue), }; +/* Mesh Profile Specification 3.10.6 + * The node shall not execute more than one IV Index Recovery within a period of + * 192 hours. + * + * Mark that the IV Index Recovery has been done to prevent two re...
VERSION bump to version 1.3.67
@@ -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 66) +set(SYSREPO_MICRO_VERSION 67) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...