message
stringlengths
6
474
diff
stringlengths
8
5.22k
{AH} rename helper function to prevent it from being picked up by nose, fixes
@@ -20,7 +20,7 @@ def check_import(statement): raise -def check_tests_pass(statement): +def check_pass(statement): try: output = subprocess.check_output( statement, stderr=subprocess.STDOUT, shell=True) @@ -55,7 +55,7 @@ class TestLinkWithRpath(TestLinking): package_name = "link_with_rpath" def test_package_tests_pass(...
Update StatusTuple to use enum Code
@@ -23,6 +23,22 @@ namespace ebpf { class StatusTuple { public: + enum class Code { + // Not an error, indicates success. + OK = 0, + // For any error that is not covered in the existing codes. + UNKNOWN, + + INVALID_ARGUMENT, + PERMISSION_DENIED, + // For any error that was raised when making syscalls. + SYSTEM, + }; ...
ADDING FEC - now generate frames of the correct size
@@ -106,7 +106,7 @@ static __attribute__((always_inline)) size_t get_repair_payload_from_queue(picoq repair_symbol_t *rs = bff->repair_symbols_queue[bff->repair_symbols_queue_head].repair_symbol; // FIXME: temporarily ensure that the repair symbols are not split into multiple frames if (bytes_max < rs->data_length) { -...
Move alphaI to x22 to leave x18 unused (reserved on OSX)
@@ -49,7 +49,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define pCRow3 x15 #define pA x16 #define alphaR x17 -#define alphaI x18 +#define alphaI x22 #define temp x19 #define tempOffset x20 #define tempK x21
Fix NULL pointer usage * Fix NULL pointer usage I've got crash dumps from clients where that function was called with NULL automaton pointer. RogueKiller64.exe!yr_ac_automaton_destroy(YR_AC_AUTOMATON * automaton=0x0000000000000000) Ligne 814 C++ RogueKiller64.exe!yr_compiler_destroy(_YR_COMPILER * compiler=0x000001d996...
@@ -811,6 +811,7 @@ int yr_ac_automaton_create( int yr_ac_automaton_destroy( YR_AC_AUTOMATON* automaton) { + if (automaton == NULL) return ERROR_INVALID_ARGUMENT; _yr_ac_state_destroy(automaton->root); yr_free(automaton->t_table);
[GL] Fixed the preprocessor with exponential notation
@@ -223,7 +223,7 @@ eTokenType NextToken(char **p, uToken *tok) { (*p)++; nextc=**p; } while(nextc>='0' && nextc<='9') { nb=nb*10+nextc-'0'; (*p)++; nextc=**p;} - fnb=powf(fnb, nb*expsign); + fnb *= powf(10, nb*expsign); // exp10f is a GNU extension } if(nextc=='f') { (*p)++; nextc=**p;
Fix up compiler version string searching
@@ -86,13 +86,18 @@ fi # This is not perfect by any means cc_id= compiler_vers= -if "$compiler_exe" --version | grep -q clang 2> /dev/null; then +if compiler_vers_string=$("$compiler_exe" --version 2> /dev/null); then + clang_vers_string=$(echo "$compiler_vers_string" | grep clang | head -n1) + if ! [[ -z $clang_vers_s...
Add comment about workgroup_pass flag in cl_device_id
@@ -413,6 +413,10 @@ struct _cl_device_id { we need to generate work-item loops to execute all the work-items in the WG, otherwise the hardware spawns the WIs. */ cl_bool spmd; + /* The Workgroup pass creates launcher functions and replaces work-item + placeholder global variables (e.g. _local_size_, _global_offset_ et...
Chronicler: Update battery device name Update battery device name to meet vender device name change BRANCH=volteer TEST=ensure battery device name correct via console command "battery"
* address, mask, and disconnect value need to be provided. */ const struct board_batt_params board_battery_info[] = { - /* NVT ATL-3S1P-606072 Battery Information */ + /* NVT CP813907-01 Battery Information */ [BATTERY_ATL_3S1P_606072] = { .fuel_gauge = { .manuf_name = "NVT", - .device_name = "ATL-3S1P-606072", + .devi...
[chainmaker]modify include .h file
* See the License for the specific language governing permissions and * limitations under the License. *****************************************************************************/ -#if defined(__unix__) || defined(__unix) || defined(unix) - /* for timestamp source */ - #define _POSIX_C_SOURCE 200809L + #include <time...
Support for ecbuild v3.4: Fix export in bundles
@@ -450,4 +450,7 @@ ecbuild_add_library( TARGET eccodes eccodes.h eccodes_windef.h ${CMAKE_CURRENT_BINARY_DIR}/eccodes_version.h - ${PROJECT_BINARY_DIR}/eccodes_config.h ) + ${PROJECT_BINARY_DIR}/eccodes_config.h + PUBLIC_INCLUDES + $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/src> + $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/...
No need of initdb sanity check in pg_rewind Master pg_rewind does not use 'initdb -S' to fsync the target data directory anymore.
@@ -39,7 +39,6 @@ static void createBackupLabel(XLogRecPtr startpoint, TimeLineID starttli, static void digestControlFile(ControlFileData *ControlFile, char *source, size_t size); -static void greenplum_pre_syncTargetDirectory_SanityCheck(const char *argv0); static void syncTargetDirectory(void); static void sanityChec...
SDL_GetError returns an empty string, not nil, when there are no errors.
@@ -23,7 +23,11 @@ func (ec ErrorCode) c() C.SDL_errorcode { // GetError (https://wiki.libsdl.org/SDL_GetError) func GetError() error { if err := C.SDL_GetError(); err != nil { - return errors.New(C.GoString(err)) + gostr := C.GoString(err) + // SDL_GetError returns "an empty string if there hasn't been an error messag...
tests: Test memory efficient basis approach
@@ -220,6 +220,24 @@ tests/test-pics-basis-noncart: traj scale phantom delta fmac ones repmat pics nu rm *.ra ; cd .. ; rmdir $(TESTS_TMP) touch $@ +tests/test-pics-basis-noncart-memory: traj scale phantom delta fmac ones repmat pics nufft nrmse + set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\ + $(TOOLDIR)/traj -r -x2...
bootloader_mode defines only needs to be known by the bootloader
/******************************************************************************* * Definitions ******************************************************************************/ +#define BOOTLOADER_MODE 0x00 +#define APPLICATION_MODE 0x01 #define BOOTLOADER_RCV_COMMAND 0x01 #define BOOTLOADER_SND_COMMAND 0x10
OcMachoLib: Add missing ASSERTs to the Context init function.
@@ -42,6 +42,10 @@ MachoInitializeContext ( UINTN Index; CONST MACH_LOAD_COMMAND *Command; UINTN CommandsSize; + + ASSERT (MachHeader != NULL); + ASSERT (FileSize > 0); + ASSERT (Context != NULL); // // Verify MACH-O Header sanity. //
Update the macOS Makefile
@@ -19,7 +19,7 @@ TEST_LD_FLAGS=-Lcontrib/cmocka/build/src -lcmocka -ldl .PHONY: all clean test all: libscope.so -libscope.so: src/wrap.c os/$(OS)/os.c src/cfgutils.c src/cfg.c src/transport.c src/log.c src/out.c src/circbuf.c src/evt.c src/ctl.c src/format.c src/dbg.c $(YAML_SRC) contrib/cJSON/cJSON.c +libscope.so: sr...
cache: add dependencies only if plugin is built
@@ -5,18 +5,25 @@ if (DEPENDENCY_PHASE) plugin_check_if_included ("resolver") if (NOT_INCLUDED) remove_plugin (cache "resolver plugin not found (${NOT_INCLUDED})") + return () endif (NOT_INCLUDED) plugin_check_if_included ("mmapstorage") if (NOT_INCLUDED) remove_plugin (cache "mmapstorage plugin not found (${NOT_INCLUD...
fix bug in librarypath directory for attach
@@ -58,6 +58,11 @@ func (rc *Config) Attach(args []string) { // Directory contains scope.yml which is configured to output to that // directory and has a command directory configured in that directory. env := os.Environ() + if !rc.Passthrough { + rc.setupWorkDir(args, true) + env = append(env, "SCOPE_CONF_PATH="+filepa...
component/bt: Update BLE private address after it's private address interval
@@ -65,6 +65,23 @@ static void btm_gen_resolve_paddr_cmpl(tSMP_ENC *p) p_cb->set_local_privacy_cback = NULL; } + if (btm_cb.ble_ctr_cb.inq_var.adv_mode == BTM_BLE_ADV_ENABLE){ + BTM_TRACE_DEBUG("Advertise with new resolvable private address, now."); + /** + * Restart advertising, using new resolvable private address + ...
Fix toolbar regression updating from 2.39 to 3.0
#define PLUGIN_NAME TOOLSTATUS_PLUGIN_NAME #define SETTING_NAME_TOOLSTATUS_CONFIG (PLUGIN_NAME L".Config") #define SETTING_NAME_REBAR_CONFIG (PLUGIN_NAME L".RebarConfig") -#define SETTING_NAME_TOOLBAR_CONFIG (PLUGIN_NAME L".ToolbarConfig") +#define SETTING_NAME_TOOLBAR_CONFIG (PLUGIN_NAME L".ToolbarButtonConfig") #defi...
zephyr: lazor: Enable the ps8xxx override function This function is needed to detect the correct product ID for each port. Add it. BRANCH=none TEST=Build lazor on zephyr; no obvious changes when run
#include "config.h" #include "console.h" #include "driver/ln9310.h" +#include "tcpm/ps8xxx_public.h" #include "gpio.h" #include "hooks.h" #include "system.h" @@ -69,9 +70,6 @@ int board_is_clamshell(void) return get_model() == LIMOZEEN; } -/* TODO(b:183118990): enable PS8xxx driver for zephyr */ -#ifndef CONFIG_ZEPHYR ...
Change cast for intpool to int64_t The internal int type was changed to int64_t this cast to int was missed. Error found using the Android compiler.
@@ -175,7 +175,7 @@ _oc_mmem_free( break; case INT_POOL: memmove(m->ptr, m->next->ptr, - &ints[OC_INTS_POOL_SIZE - avail_ints] - (int *)m->next->ptr); + &ints[OC_INTS_POOL_SIZE - avail_ints] - (int64_t *)m->next->ptr); break; case DOUBLE_POOL: memmove(m->ptr, m->next->ptr,
Add PhGetProcessPeb
@@ -176,6 +176,29 @@ PhGetProcessPeb32( return status; } +FORCEINLINE +NTSTATUS +PhGetProcessPeb( + _In_ HANDLE ProcessHandle, + _Out_ PVOID* PebBaseAddress + ) +{ + NTSTATUS status; + PROCESS_BASIC_INFORMATION basicInfo; + + status = PhGetProcessBasicInformation( + ProcessHandle, + &basicInfo + ); + + if (NT_SUCCESS(s...
Update README.md Corrections and minor changes.
@@ -3,7 +3,7 @@ GoAccess [![Build Status](https://travis-ci.org/allinurl/goaccess.svg?branch=mas ## What is it? ## GoAccess is an open source *real-time web log analyzer* and interactive viewer -that **runs in a *terminal* in *nix systems or through your *browser*. It +that *runs in a terminal* on *nix systems or throu...
Implement the usage of usbd_edpt_ISO_xfer()
* * */ +// TODO: Rename CFG_TUD_AUDIO_EPSIZE_IN to CFG_TUD_AUDIO_EP_IN_BUFFER_SIZE + #include "tusb_option.h" #if (TUSB_OPT_DEVICE_ENABLED && CFG_TUD_AUDIO) @@ -129,6 +131,7 @@ typedef struct #if CFG_TUD_AUDIO_EPSIZE_IN CFG_TUSB_MEM_ALIGN uint8_t epin_buf[CFG_TUD_AUDIO_EPSIZE_IN]; // Bigger makes no sense for isochrono...
Update tests_to_skip.txt
@@ -8,10 +8,14 @@ Lines can be commented out using # Slice copying not implemented yet %test-bit2=test + %test-bit2=psa Arithmetic operations are only supported on int<8>, int<16> and int<32>. %test-arith-nonbyte=test + %test-arith-nonbyte=psa Header unions are not supported %test-header-union-1=test + %test-header-uni...
fix name of external_pull_request_event
@@ -220,7 +220,7 @@ installer: rules: - if: $CI_PIPELINE_SOURCE != "push" && $CI_PIPELINE_SOURCE != "web" when: never - - if: $CI_PIPELINE_SOURCE == "external_pull_request" + - if: $CI_PIPELINE_SOURCE == "external_pull_request_event" variables: TRIGGER_BRANCH: main - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
Clarify the EBNF description.
@@ -68,11 +68,12 @@ TABLE OF CONTENTS: Whitespace and comments are implicitly stripped out before parsing. - To put it in words, /regex/ defines a regular expression that would - match a single token in the input. "quoted" would match a single - string. <english description> contains an informal description of what - c...
add new mygpu -d option and change default to gfx900
@@ -239,10 +239,10 @@ TARGET_TRIPLE=${TARGET_TRIPLE:-amdgcn-amd-amdhsa} CUDA_PATH=${CUDA_PATH:-/usr/local/cuda} ATMI_PATH=${ATMI_PATH:-/opt/rocm/aomp} -# Determine which gfx processor to use, default to Fiji (gfx803) +# Determine which gfx processor to use, default to Vega (gfx900) if [ ! $LC_MCPU ] ; then # Use the my...
Fix reference to symbol 'main'. The AIX binder needs to be instructed that the output will have no entry point (see AIX' ld manual: -e in the Flags section; autoexp and noentry in the Binder section).
@@ -1098,7 +1098,7 @@ my %targets = ( dso_scheme => "dlfcn", shared_target => "aix", module_ldflags => "-Wl,-G,-bsymbolic,-bexpall", - shared_ldflag => "-Wl,-G,-bsymbolic", + shared_ldflag => "-Wl,-G,-bsymbolic,-bnoentry", shared_defflag => "-Wl,-bE:", perl_platform => 'AIX', },
Fix get_tag and get_tags type hints
@@ -144,22 +144,28 @@ class AlignedSegment: ) -> None: ... def has_tag(self, tag: str) -> bool: ... @overload - def get_tag(self, tag: str, with_value_type: Literal[False]) -> TagValue: ... + def get_tag(self, tag: str, with_value_type: Literal[False] = ...) -> TagValue: ... @overload - def get_tag(self, tag, with_valu...
make sure secondary CPU's stack is aligned with CPU STACK secondary CPU's stack should be aligned with 16
@@ -45,6 +45,7 @@ void write_trampoline_stack_sym(uint16_t pcpu_id) hva = (uint64_t *)(hpa2hva(trampoline_start16_paddr) + trampoline_relo_addr(secondary_cpu_stack)); stack_sym_addr = (uint64_t)&per_cpu(stack, pcpu_id)[CONFIG_STACK_SIZE - 1]; + stack_sym_addr &= ~(CPU_STACK_ALIGN - 1UL); *hva = stack_sym_addr; clflush(...
Check HAPI_ParmInfo.typeInfoSH is not null before querying
@@ -298,12 +298,15 @@ configureStringAttribute( { tAttr.setUsedAsFilename(true); + if(parm.typeInfoSH) + { MString filterString = Util::HAPIString(parm.typeInfoSH); if(filterString.length()) { filterString = filterString + "(" + filterString + ")"; tAttr.addToCategory("hapiParmFile_filter" + filterString); } + } switch...
ci: add missing test script for arm & aarch64
@@ -39,6 +39,7 @@ Alpine (gcc,arm)_task: CIRRUS_SHELL: /sbin/qemu-sh setup_script: *alpine-deps <<: *pipeline + test_script: ninja -C build test Alpine (gcc,aarch64)_task: container: @@ -47,6 +48,7 @@ Alpine (gcc,aarch64)_task: CIRRUS_SHELL: /sbin/qemu-sh setup_script: *alpine-deps <<: *pipeline + test_script: ninja -C...
CI/mqtt: Execute mqtt weekend tests from test apps
@@ -51,15 +51,15 @@ variables: test_weekend_mqtt: extends: - - .example_test_template + - .test_app_esp32_template - .rules:labels:weekend_test tags: - ESP32 - Example_WIFI variables: - ENV_FILE: "$CI_PROJECT_DIR/components/mqtt/weekend_test/env.yml" - TEST_CASE_PATH: "$CI_PROJECT_DIR/components/mqtt/weekend_test" - CO...
attempt at travis
@@ -38,7 +38,13 @@ before_install: - popd - sudo ldconfig -script: ./autogen.sh && export CC=mpicc && ./configure && make && make test +script: + - mkdir build && cd build + - cmake ../ + - make + - make test + +#script: ./autogen.sh && export CC=mpicc && ./configure && make && make test #script: ./autogen.sh && ./conf...
bin: on '-J', print all JSON config schema
@@ -75,8 +75,6 @@ struct flb_stacktrace flb_st; #define FLB_HELP_TEXT 0 #define FLB_HELP_JSON 1 -/* JSON Helper version: current '1' */ -#define FLB_HELP_VERSION 1 #define PLUGIN_CUSTOM 0 #define PLUGIN_INPUT 1 @@ -896,6 +894,7 @@ int flb_main(int argc, char **argv) { int opt; int ret; + flb_sds_t json; /* handle plugi...
SetupTool: Fix update crash
@@ -149,7 +149,7 @@ BOOLEAN SetupExtractBuild( fileName = PhConvertUtf8ToUtf16(zipFileStat.m_filename); if ((index = PhFindStringInString(fileName, 0, L"x64\\")) != -1) - PhMoveReference(&fileName, PhSubstring(fileName, index, fileName->Length - index)); + PhMoveReference(&fileName, PhSubstring(fileName, index, (fileNa...
Fix RunAsAdmin starting with low priority
@@ -2460,7 +2460,7 @@ HRESULT PhCreateAdminTask( ITaskSettings_put_DisallowStartIfOnBatteries(taskSettings, VARIANT_FALSE); ITaskSettings_put_StopIfGoingOnBatteries(taskSettings, VARIANT_FALSE); ITaskSettings_put_ExecutionTimeLimit(taskSettings, taskTimeLimitString); - //ITaskSettings_put_Priority(taskSettings, 1); + I...
doc: add release notes as discussed in
@@ -91,6 +91,7 @@ We added even more functionality, which could not make it to the highlights: ## Other News +- We added a tutorial about securing the integrity and confidentiality of configuration values. - Peter Nirschl finished his [thesis](https://www.libelektra.org/ftp/elektra/publications/nirschl2018cryptographic...
Remove duplicate test in pull_request.yml
@@ -5,21 +5,6 @@ on: types: [labeled] jobs: - basic-test: - runs-on: self-hosted - - if: contains(github.event.pull_request.labels.*.name, 'safe to test') - steps: - - uses: actions/checkout@v2 - with: - ref: ${{github.event.pull_request.head.ref}} - repository: ${{github.event.pull_request.head.repo.full_name}} - - na...
Fixup README.md Fixed build instructions, added maintainers, other small fixes
The Dagger (XDAG) cryptocurrency ================================ -- Community site: https://xdag.io - Developer's site: http://xdag.me -- Main net is launched January 5, 2018 at 22:45 GMT. +- Community site: https://xdag.io - Developer's site: http://xdag.me (now offline) +- The Main net was launched January 5, 2018 a...
Added early flood check
@@ -199,6 +199,10 @@ namespace MiningCore.Stratum if (buffer.Count == 0 || !isAlive) return; + // prevent flooding + if (buffer.Count > MaxRequestLength) + throw new InvalidDataException($"[{ConnectionId}] Incoming request size exceeds maximum of {MaxRequestLength}"); + var bufferSize = buffer.Count; var remaining = bu...
CoreValidation: Added post run step hook to store test results.
@@ -4,6 +4,7 @@ import os import shutil import sys +from datetime import datetime from buildutils.builder import Device, Compiler, Axis, Step, BuildStep, RunModelStep, Builder, Filter TARGET_FVP = 'FVP' @@ -31,8 +32,8 @@ FVP_MODELS = { Device.CA9NEON : { 'cmd': "fvp_ve_cortex-a9x1.exe", 'args': { 'limit': "100000000", ...
fix Cooperlake not selectable via environment variable
@@ -1018,7 +1018,7 @@ static gotoblas_t *force_coretype(char *coretype){ char message[128]; //char mname[20]; - for ( i=1 ; i <= 24; i++) + for ( i=1 ; i <= 25; i++) { if (!strncasecmp(coretype,corename[i],20)) {
fix formatting release notes
@@ -117,6 +117,7 @@ you up to date with the multi-language support provided by Elektra. _(Michael Tucek)_ ### FUSE Binding + - Added check for existence of accessed path before opening new file descriptor _(@lawli3t)_ ### <<Binding3>>
include/charge_state_v2.h: Format with clang-format BRANCH=none TEST=none
@@ -117,8 +117,8 @@ void board_base_reset(void); * @param curr Pointer to struct charge_state_data * @return Action to take. */ -enum critical_shutdown board_critical_shutdown_check( - struct charge_state_data *curr); +enum critical_shutdown +board_critical_shutdown_check(struct charge_state_data *curr); /** * Callback...
avoid compiler warning on negative unsigned int comparison
@@ -297,7 +297,7 @@ static apr_byte_t oidc_cache_redis_get(request_rec *r, const char *section, } /* do a sanity check on the returned value */ - if ((reply->len < 0) || (reply->str == NULL) + if ((reply->str == NULL) || (reply->len != strlen(reply->str))) { oidc_error(r, "redisCommand reply->len (%d) != strlen(reply->...
Remove class E from martian_filter. Thanks to Dave Taht.
@@ -439,6 +439,7 @@ wait_for_fd(int direction, int fd, int msecs) int martian_prefix(const unsigned char *prefix, int plen) { + static const unsigned char ones[4] = {0xFF, 0xFF, 0xFF, 0xFF}; return (plen >= 8 && prefix[0] == 0xFF) || (plen >= 10 && prefix[0] == 0xFE && (prefix[1] & 0xC0) == 0x80) || @@ -446,7 +447,8 @@...
peview: Fix SAL annotation warning
@@ -302,7 +302,7 @@ NTSTATUS PvpPeSectionsEnumerateThread( WCHAR value[PH_INT64_STR_LEN_1]; sectionNode = PhAllocateZero(sizeof(PV_SECTION_NODE)); - sectionNode->UniqueId = i + 1; + sectionNode->UniqueId = UInt32Add32To64(i, 1); sectionNode->UniqueIdString = PhFormatUInt64(sectionNode->UniqueId, FALSE); sectionNode->Se...
Remove early return from engine_map() in case of hit At this point cacheline status in request map is stale, as lookup was performed before upgrading hash bucket lock. If indeed all cachelines are mapped, this will be determined in the main loop of engine_map().
@@ -402,9 +402,6 @@ static void ocf_engine_map(struct ocf_request *req) uint64_t core_line; ocf_core_id_t core_id = ocf_core_get_id(req->core); - if (!ocf_engine_unmapped_count(req)) - return; - if (ocf_engine_unmapped_count(req) > ocf_freelist_num_free(cache->freelist)) { ocf_req_set_mapping_error(req);
Fix declaration error in switch statement
@@ -265,11 +265,11 @@ JanetSlot janetc_resolve( JanetBinding binding = janet_resolve_ext(c->env, sym); if (binding.type == JANET_BINDING_NONE) { Janet handler = janet_table_get(c->env, janet_ckeywordv("missing-symbol")); + Janet entry; switch (janet_type(handler)) { case JANET_NIL: break; case JANET_FUNCTION: - Janet e...
doc(xerces): update installation instruction when using homebrew
@@ -68,7 +68,7 @@ the mount point, then it uses the mount point's name instead. - CMake 3.6 or a copy of `FindXercesC.cmake` in `/usr/share/cmake-3.0/Modules/` -To include this plugin in a homebrew installation run `brew install elektra --with-dep-plugins` +To include this plugin in a homebrew installation run `brew ta...
first pass at updating changelog
@@ -4,6 +4,22 @@ title: Changelog # Changelog +## AppScope 0.7 + +2021-06-11 - Maintenance Pre-Release + +This pre-release addresses the following issues: + +- **Improvement**: [#286](https://github.com/criblio/appscope/issues/286) Add support for TLS over TCP connections, and add new TLS-related environment variables ...
HW: Fixing MMIO access to action
@@ -1381,7 +1381,14 @@ BEGIN mmx_d_q.rd_strobe <= '0'; mmio_action_addr_q <= mmio_action_addr_q; mmio_action_data_q <= mmio_action_data_q; - IF ha_mm_w_q.valid = '1' THEN + IF (ha_mm_r_q.valid AND ha_mm_r_q.rnw) = '1' THEN + IF mmio_read_master_access_q = '1' THEN + mmio_action_addr_q(17 DOWNTO 12) <= ha_mm_r_q.ad(15 D...
fix(coder) Fix typo with while loops
@@ -416,7 +416,7 @@ generate_stat = function(stat) ]], { COND_STATS = cond_cstats, COND = cond_cvalue, - CLOCK = block_cstats + BLOCK = block_cstats }) elseif tag == ast.Stat.Repeat then
Disable RPCC macro on MIPS24K
@@ -43,6 +43,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef ASSEMBLER +#if !defined(MIPS24K) static inline unsigned int rpcc(void){ unsigned long ret; @@ -53,6 +54,7 @@ static inline unsigned int rpcc(void){ return ret; } #define RPCC_DEFINED +#endif static inline int blas_quickdi...
Add note on using -cw to the -esw help text
@@ -363,9 +363,17 @@ ADVANCED COMPRESSION zero or one. For example to swap the RG channels, and replace alpha with 1, the swizzle 'grb1' should be used. - Note that the input swizzle is assumed to take place before any - compression, and all error weighting applies to the post-swizzle - channel ordering. + The input sw...
change clock to CLOCK_PROCESS_CPUTIME_ID
@@ -189,11 +189,11 @@ int main(int argc, char *argv[]){ for(l =0;l< loops;l++){ - clock_gettime(CLOCK_REALTIME,&time_start); + clock_gettime(CLOCK_PROCESS_CPUTIME_ID,&time_start); TRSV(&uplo,&transa,&diag,&n,a,&n,x,&inc_x); - clock_gettime(CLOCK_REALTIME,&time_end); + clock_gettime(CLOCK_PROCESS_CPUTIME_ID,&time_end); ...
[GB] ADD instructions disable necessary flags
@@ -1085,7 +1085,7 @@ impl CpuState { Some(InstrInfo::seq(1, 1)) } 0xe6 => { - // AND d8 + // AND u8 let a = self.reg(RegisterName::A); let val = self.mmu.read(self.get_pc() + 1); if debug { @@ -1096,6 +1096,8 @@ impl CpuState { a.write_u8(&self, result); self.update_flag(FlagUpdate::Zero(result == 0)); self.update_fla...
opal-ci/fetch-debian-jessie-installer: follow redirects
#!/bin/bash -curl http://ftp.debian.org/debian/dists/jessie/main/installer-ppc64el/current/images/netboot/debian-installer/ppc64el/vmlinux -o debian-jessie-vmlinux -curl http://ftp.debian.org/debian/dists/jessie/main/installer-ppc64el/current/images/netboot/debian-installer/ppc64el/initrd.gz -o debian-jessie-initrd.gz ...
Fix showing unsupported processor groups on affinity dialog
@@ -569,7 +569,7 @@ BEGIN CONTROL "CPU 63",IDC_CPU63,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,224,190,39,10 PUSHBUTTON "Select all",IDC_SELECTALL,7,206,50,14 PUSHBUTTON "Deselect all",IDC_DESELECTALL,60,206,50,14 - COMBOBOX IDC_GROUPCPU,220,4,52,30,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP | NOT WS_VISIBLE + C...
Fix group deleted state handling
@@ -702,7 +702,7 @@ int DeRestPluginPrivate::setGroupState(const ApiRequest &req, ApiResponse &rsp) return REQ_READY_SEND; } - if (!group || (group->state() == Group::StateDeleted)) + if (!group || (group->state() != Group::StateNormal)) { rsp.httpStatus = HttpStatusNotFound; rsp.list.append(errorToMap(ERR_RESOURCE_NOT...
Extend UNIX socket unit tests add test case for lack of permission to the socket
@@ -406,6 +406,50 @@ transportSendForFilepathUnixTransmitsMsg(void** state) unlink(path); } +static void +transportSendForFilepathUnixFailedTransmitsMsg(void** state) +{ + const char* path = "/tmp/mysocket_file"; + + // Create a unix address for a test socket + struct sockaddr_un addr; + struct stat socket_stat; + addr...
zephyr test: usbc_ocp: Log during tests Log errors from over-current functions during tests. TEST=twister -s zephyr/test/drivers/drivers.usbc_ocp BRANCH=none Code-Coverage: Zoss
#include "usbc_ocp.h" #include "util.h" -#ifndef TEST_BUILD #define CPRINTF(format, args...) cprintf(CC_USBPD, format, ##args) #define CPRINTS(format, args...) cprints(CC_USBPD, format, ##args) -#else -#define CPRINTF(args...) -#define CPRINTS(args...) -#endif /* * Number of seconds until a latched-off port is re-enabl...
Reduce vardiff log spam
@@ -242,8 +242,7 @@ namespace MiningCore.Mining if (context.VarDiff != null) { - if(isIdleUpdate) - logger.Info(() => $"[{LogCat}] [{client.ConnectionId}] Updating VarDiff" + (isIdleUpdate ? " [idle]" : string.Empty)); + logger.Debug(() => $"[{LogCat}] [{client.ConnectionId}] Updating VarDiff" + (isIdleUpdate ? " [idle...
SH2 - added missing file paths data\pic\out\statuebox.tex data\pic\out\statuekey.tex
@@ -72,5 +72,5 @@ data\pic\out\p_redpaper.tex data\pic\out\p_spana.tex data\pic\out\p_swamp.tex data\pic\out\p_swamp2.tex -data\pic\out\p_statuebox.tex -data\pic\out\p_statuekey.tex \ No newline at end of file +data\pic\out\statuebox.tex +data\pic\out\statuekey.tex
Fix peview CFG entry counts
@@ -886,11 +886,11 @@ INT_PTR CALLBACK PvpPeLoadConfigDlgProc( ADD_VALUE(L"CFG Check Function pointer", PhaFormatString(L"0x%Ix", (Config)->GuardCFCheckFunctionPointer)->Buffer); \ ADD_VALUE(L"CFG Check Dispatch pointer", PhaFormatString(L"0x%Ix", (Config)->GuardCFDispatchFunctionPointer)->Buffer); \ ADD_VALUE(L"CFG Fu...
Only realloc() when buffer is being enlarged `if (have > 0)` avoids `realloc(buffer,0)` and thus fixes buffering bug This also reduces the number of realloc() calls made by reusing the existing buffer where possible.
@@ -31,6 +31,7 @@ public: strm.avail_in = 0; strm.next_in = Z_NULL; + bufsiz=GZBUFSIZ; buffer=(char*)std::malloc(GZBUFSIZ*sizeof(char)); if(buffer==NULL) { throw ("out of memory"); @@ -73,7 +74,6 @@ public: strm.next_in=buffin; /* run inflate() on input until output buffer not full */ unsigned int total=0; - _currentOu...
py/objgenerator: Remove unneeded forward decl and clean up white space.
* * The MIT License (MIT) * - * Copyright (c) 2013, 2014 Damien P. George + * Copyright (c) 2013-2019 Damien P. George * Copyright (c) 2014-2017 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -247,10 +247,8 @@ STATIC mp_obj_t gen_instance_send(mp_obj_t self_in, mp_ob...
sockeye: also pass the state when instantiating the modules
@@ -300,7 +300,7 @@ gen_body_defs mi x i = case x of -- | om <- map_spec_flatten mi x]) (AST.Overlays _ src dest) -> (1, [assert i $ predicate "overlay" [generate src, generate dest]]) -- (AST.Instantiates _ i im args) -> [forall_uqr mi i (predicate ("add_" ++ im) ["IDT_" ++ (AST.refName i)])] - (AST.Instantiates _ ii ...
admin/meta-packages: remove libmlx4-rdmav2 from ohpc-base for sles
Summary: Meta-packages to ease installation Name: meta-packages -Version: 1.3.4 +Version: 1.3.5 Release: 1 License: Apache-2.0 Group: %{PROJ_NAME}/meta-package @@ -77,7 +77,6 @@ Requires: yum-utils %endif %if 0%{?sles_version} || 0%{?suse_version} Requires: glibc-locale -Requires: libmlx4-rdmav2 Requires: nfs-kernel-se...
Fix issue where actors walk off screen sometimes after dialogue
@@ -463,6 +463,7 @@ void SceneUpdateActors_b() { if (IS_FRAME_64) { + initrand(DIV_REG); r = rand(); if (time == 0 || time == 128) @@ -484,7 +485,7 @@ void SceneUpdateActors_b() SceneRenderActor_b(i); ++r; } - else if (actors[i].movement_type == AI_RANDOM_WALK) + else if (actors[i].movement_type == AI_RANDOM_WALK && AC...
Reorganize ccm context structure.
@@ -76,15 +76,15 @@ extern "C" { */ typedef struct mbedtls_ccm_context { - mbedtls_cipher_context_t MBEDTLS_PRIVATE(cipher_ctx); /*!< The cipher context used. */ unsigned char MBEDTLS_PRIVATE(y)[16]; /*!< The Y working buffer */ unsigned char MBEDTLS_PRIVATE(ctr)[16]; /*!< The counter buffer */ - unsigned char MBEDTLS_...
Fix test guards
@@ -345,7 +345,7 @@ void x509_crt_check(char *subject_key_file, char *subject_pwd, issuer_key_type = mbedtls_pk_get_type(&issuer_key); -#if defined(MBEDTLS_RSA_C) +#if defined(MBEDTLS_RSA_C) && defined(MBEDTLS_PK_RSA_ALT_SUPPORT) /* For RSA PK contexts, create a copy as an alternative RSA context. */ if (pk_wrap == 1 &...
Update several docstrings.
(if (= i nil) nil (get ind i))) (defn take-until - "Given a predicate, take only elements from an indexed type that satisfy - the predicate, and abort on first failure. Returns a new array." + "Same as (take-while (complement pred) ind)." [pred ind] (def i (find-index pred ind)) (if i ind)) (defn take-while - "Same as ...
Fix Win32 stack size
@@ -95,7 +95,7 @@ elseif(WIN32) # for example: dumpbin /DISASM wasm3.exe /out:wasm3.S #set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /DEBUG:FULL") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /F8388608") # stack size + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:8388608") # stack siz...
Remove terrain enum. It won't be used just yet.
@@ -1085,23 +1085,6 @@ typedef enum BGT_GENERIC } e_bgloldtype; -// Caskey, Damon V -// 2019-02-02 -// -// Types of terrian in a level that can -// affect movement. -typedef enum -{ - TERRAIN_TYPE_NONE = 0, - TERRAIN_TYPE_OBSTACLE = (1 << 0), - TERRAIN_TYPE_SCREEN_LEFT = (1 << 1), - TERRAIN_TYPE_SCREEN_RIGHT = (1 << 2)...
Tests: fixed tests to work without openssl support.
@@ -470,6 +470,9 @@ def _clear_conf(sock, log=None): check_success(resp) + if 'openssl' not in option.available['modules']: + return + try: certs = json.loads(http.get( url='/certificates',
nx: Cleanup init message for P9 RNG
@@ -57,7 +57,7 @@ void nx_p9_rng_init(void) bar | P9X_NX_MMIO_BAR_EN); /* Read config register for pace info */ xscom_read(chip->id, P9X_NX_RNG_CFG, &tmp); - prlog(PR_INFO, "%x NX RNG pace:%lli)\n", chip->id, + prlog(PR_INFO, "NX RNG[%x] pace:%lli\n", chip->id, 0xffff & (tmp >> 2)); /* 2) DARN BAR */
Dump of deag/lookup routes has is_drop=1
@@ -2168,6 +2168,8 @@ fib_path_encode (fib_node_index_t path_list_index, case FIB_PATH_TYPE_SPECIAL: break; case FIB_PATH_TYPE_DEAG: + api_rpath->rpath.frp_fib_index = path->deag.fp_tbl_id; + api_rpath->dpo = path->fp_dpo; break; case FIB_PATH_TYPE_RECURSIVE: api_rpath->rpath.frp_addr = path->recursive.fp_nh.fp_ip;
Remove unused static global strings. The linker may optimize these out for non debug builds, but I kind of doubt it since the constructors and destructors involve heap allocaitons.
namespace ARIASDK_NS_BEGIN { -static const std::string NetworkCostNames[] = { - "Unknown", - "Unmetered", - "Metered", - "Roaming", - // Reserved network costs - "Reserved", - "Reserved", - "Reserved" -}; - -static const std::string PowerSourceNames[] = { - "Unknown", - "Battery", - "Charging", - // Reserved power stat...
Silence invalid stringop-overflow warning on GCC
@@ -339,8 +339,17 @@ oc_parse_ipv6_address(const char *address, size_t len, oc_endpoint_t *endpoint) int i = addr_idx - 1; addr_idx = OC_IPV6_ADDRLEN - 1; while (i >= split) { +#ifdef __GNUC__ +// GCC thinks that addr has size=4 instead of size=16 and complains about +// overflow +#pragma GCC diagnostic push +#pragma G...
xpath REFACTOR remove dead code (break)
@@ -2043,7 +2043,6 @@ step: case LYXP_TOKEN_NAMETEST: ++(*tok_idx); goto reparse_predicate; - break; case LYXP_TOKEN_NODETYPE: ++(*tok_idx); @@ -2366,7 +2365,6 @@ reparse_path_expr(const struct ly_ctx *ctx, struct lyxp_expr *exp, uint16_t *tok LY_CHECK_RET(rc); ++(*tok_idx); goto predicate; - break; case LYXP_TOKEN_DOT...
pr_shelter: stop the workflow when build shelter failure Fixes:
@@ -51,7 +51,9 @@ jobs: cp -rf ${{ env.ENCLAVE_TLS_BINDIR }} /root/inclavare-containers/${{ matrix.tag }}/enclave-tls' - name: Build shelter - run: docker exec $inclavare_dev bash -c 'cd /root && source /root/.bashrc;source /etc/profile; + run: docker exec $inclavare_dev bash -c 'trap "error_handler $?" ERR; + error_ha...
Fix alter table CLI help documentation In ALTER TABLE SET DISTRIBUTED BY, the "WITH(reorganize=...)" option must be specified before the "DISTRIBUTED ..." clause.
@@ -28,9 +28,9 @@ ALTER TABLE name RENAME TO new_name ALTER TABLE name SET SCHEMA new_schema ALTER TABLE [ONLY] name SET - DISTRIBUTED BY (column, [ ... ] ) + WITH (REORGANIZE=true|false) + | DISTRIBUTED BY (column, [ ... ] ) | DISTRIBUTED RANDOMLY - | WITH (REORGANIZE=true|false) ALTER TABLE [ONLY] name action [, ... ...
[kernel] fix bug in multiple calls to NEDS::computeForces when MExt in inertial frame
@@ -1050,8 +1050,12 @@ void NewtonEulerDS::computeForces(double time, SP::SiconosVector q, SP::SiconosV { computeMExt(time); assert(!isnan(_mExt->vector_sum())); - if(_isMextExpressedInInertialFrame) - ::changeFrameAbsToBody(q,_mExt); + if(_isMextExpressedInInertialFrame) { + SP::SiconosVector mExt(std11::make_shared<S...
host/mesh: Mesh: pb_adv: update delayable work Switch to the new API. Consolidates reliable sending logic for the first transmission and the retransmit into one. Adds check for link active in protocol timeout. This is port of
@@ -181,7 +181,12 @@ static void prov_clear_tx(void) { BT_DBG(""); - k_work_cancel_delayable(&link.tx.retransmit); + /* If this fails, the work handler will not find any buffers to send, + * and return without rescheduling. The work handler also checks the + * LINK_ACTIVE flag, so if this call is part of reset_adv_link...
Fix up Prometeus by removing the requests JSON object
@@ -43,6 +43,7 @@ module H2O status, headers, body = @app.call(env) stats = JSON.parse(body.join) version = stats.delete('server-version') || '' + requests = stats.delete('requests') || '' stats = stats.select {|k, v| v.kind_of?(Numeric) || v.kind_of?(Array) } s = "" stats.each {|k, v|
Toyota: remove redundant test already test this
@@ -139,22 +139,6 @@ class TestToyotaSafety(common.PandaSafetyTest, common.InterceptorSafetyTest, should_tx = not req and not req2 and angle == 0 self.assertEqual(should_tx, self._tx(self._lta_msg(req, req2, angle))) - def test_steer_req_bit(self): - """ - On Toyota, you can ramp up torque and then set the STEER_REQUES...
Removes component_test_new_ecdh_context in all.sh Commit removes the component_test_new_new_ecdh_context in all.sh.
@@ -1076,22 +1076,6 @@ component_test_ecp_restartable_no_internal_rng () { # no SSL tests as they all depend on having a DRBG } -component_test_new_ecdh_context () { - msg "build: new ECDH context (ASan build)" # ~ 6 min - CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan . - make - - msg "test: new ECDH context - main suit...
slab: use latest data in summary window ref:
@@ -153,10 +153,7 @@ void slab_automove_extstore_run(void *arg, int *src, int *dst) { bool small_slab = a->sam_before[n].chunk_size < a->item_size ? true : false; struct window_data *wd = get_window_data(a, n); - // summarize the window-up-to-now. - memset(&w_sum, 0, sizeof(struct window_data)); int w_offset = n * a->w...
build BUGFIX fix for openssl < 1.1.0
@@ -1375,7 +1375,9 @@ nc_handshake_io(struct nc_session *session) return type; } -#if defined(NC_ENABLED_SSH) && !defined(NC_ENABLED_TLS) +#ifdef NC_ENABLED_SSH + +#if OPENSSL_VERSION_NUMBER < 0x10100000L // < 1.1.0 static void nc_ssh_init(void) @@ -1393,7 +1395,9 @@ nc_ssh_destroy(void) ssh_finalize(); } -#endif /* NC...
BugID:18313873: Strip "-L" in ldflags for keil.py
@@ -79,10 +79,12 @@ def get_element_value(element_dict, buildstring): if match: scatterfile = AOS_RELATIVE_PATH + match.group(2) element_dict["ScatterFile"]["value"] = scatterfile - element_dict["Misc"]["value"] = match.group(1) + match.group(3) + + tmp_ldflags = match.group(1) + match.group(3) + element_dict["Misc"]["...
drop the "clangxx works" check from the vecmathlib age
@@ -574,51 +574,6 @@ ${TYPEDEF}" "typedef struct { char x; ${TYPE} y; } ac__type_alignof_; endmacro() -#################################################################### -# -# clangxx works check -# - -# TODO clang + vecmathlib doesn't work on Windows yet... -if(CLANGXX AND (NOT WIN32) AND ENABLE_HOST_CPU_DEVICES) - ...
Set ArchiveRecoveryRequested similar to upstream. Important Note: With this commit, now mirrors will have Checkpointer and Writer processes created, similar to upstream. This should help improve the performance and reduce the burden on single startup process to do all the work.
@@ -4586,6 +4586,9 @@ XLogReadRecoveryCommandFile(int emode) RECOVERY_COMMAND_FILE))); } + /* Enable fetching from archive recovery area */ + ArchiveRecoveryRequested = true; + FreeConfigVariables(head); } @@ -5372,10 +5375,6 @@ StartupXLOG(void) archiveCleanupCommand ? archiveCleanupCommand : "", sizeof(XLogCtl->archi...
install clang format
@@ -25,12 +25,15 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 # Runs a set of commands using the runners shell - - name: unit_test + - name: format-check run: | # https://github.com/actions/checkout/issues/81 auth_header="$(git config --local --get...
Use `combinations_with_replacement` for inputs When generating combinations of values, `itertools.combinations` will not allow inputs to be repeated. This is replaced so that cases where input values match are generated, i.e. ("0", "0").
@@ -166,7 +166,7 @@ class BignumOperation(BignumTarget, metaclass=ABCMeta): """ yield from cast( Iterator[Tuple[str, str]], - itertools.combinations(cls.input_values, 2) + itertools.combinations_with_replacement(cls.input_values, 2) ) yield from cls.input_cases @@ -215,7 +215,7 @@ class BignumAdd(BignumOperation): test...
include/console.h: Use _STATIC_ASSERT for C++ compatibility BRANCH=none TEST=./util/compare_build.sh -b all -j 120 => MATCH
@@ -256,7 +256,7 @@ void console_has_input(void); #define _DCL_CON_CMD_ALL(NAME, ROUTINE, ARGDESC, HELP, FLAGS) \ static int (ROUTINE)(int argc, char **argv); \ static const char __con_cmd_label_##NAME[] = #NAME; \ - _Static_assert(sizeof(__con_cmd_label_##NAME) < 16, \ + _STATIC_ASSERT(sizeof(__con_cmd_label_##NAME) <...