message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix broken tests on Windows
@@ -235,9 +235,9 @@ int pack_long_unsigned_helper(grib_accessor* a, const long* val, size_t* len, in /* Check if value fits into number of bits */ if (check) { - if (v < 0) { + if (val[0] < 0) { grib_context_log(a->context, GRIB_LOG_ERROR, - "Key \"%s\": Trying to encode a negative value of %ld for key of type unsigned...
tpm_i2c_nuvoton: add nuvoton, npct601 to the compatible property The linux kernel doesn't have a driver compatible with "nuvoton,npct650", but it does have for "nuvoton,npct601", which should also be compatible with npct650. This adds "nuvoton,npct601" to the compatible devtree property.
@@ -581,6 +581,16 @@ void tpm_i2c_nuvoton_probe(void) assert(bus->check_quirk == NULL); bus->check_quirk = nuvoton_tpm_quirk; bus->check_quirk_data = tpm_device; + + /* + * Tweak for linux. It doesn't have a driver compatible + * with "nuvoton,npct650" + */ + if (!dt_node_is_compatible(node, "nuvoton,npct601")) { + dt_...
update can_unique.py for new can_logger.py format
# in the background files. # Expects the CSV file to be in the format from can_logger.py +# Bus,MessageID,Message,MessageLength +# 0,0x292,0x040000001068,6 + +# The old can_logger.py format is also supported: # Bus,MessageID,Message # 0,344,c000c00000000000 + import binascii import csv import sys @@ -46,7 +51,13 @@ cla...
Camera events codegen
@@ -871,6 +871,14 @@ class ScriptBuilder { this._addCmd("VM_FADE_OUT", speed); }; + _cameraMoveTo = (addr: string, speed: number, lock: boolean) => { + this._addCmd("VM_CAMERA_MOVE_TO", addr, speed, lock ? 1 : 0); + }; + + _cameraSetPos = (addr: string) => { + this._addCmd("VM_CAMERA_SET_POS", addr); + }; + _musicPlay ...
usb_power: Migrate stats_manager.py to python2/3 compatible BRANCH=master TEST=`python3 stats_manager_unittest.py` pass TEST=`python2 stats_manager_unittest.py` pass
"""Calculates statistics for lists of data and pretty print them.""" +# Note: This is a py2/3 compatible file. + from __future__ import print_function import collections @@ -129,8 +131,8 @@ class StatsManager(object): unit: unit of the domain. """ if domain in self._unit: - self._logger.warn('overwriting the unit of %s...
hv: Remove hpet from acrn.conf Remove clocksource=hpet from SOS kernel cmdline, as ACRN is providing tsc and hpet will not be supported in the future
title The ACRN Service OS linux /EFI/org.clearlinux/kernel-org.clearlinux.pk414-sos.4.14.23-19 -options pci_devices_ignore=(0:18:2) maxcpus=1 console=tty0 console=ttyS0 i915.nuclear_pageflip=1 root=PARTUUID=<UUID of rootfs partition> rw rootwait clocksource=hpet ignore_loglevel no_timer_check consoleblank=0 i915.tsd_in...
correct #endif libcurl version
@@ -772,9 +772,9 @@ static apr_byte_t oidc_util_http_call(request_rec *r, const char *url, curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA); } - } #endif } + } if (c->ca_bundle_path != NULL) curl_easy_setopt(curl, CURLOPT_CAINFO, c->ca_bundle_path);
Removed debug output in `ZydisFuzzIn`
@@ -168,8 +168,6 @@ static int DoIteration(void) ZydisFormatterFormatInstruction(&formatter, &instruction, format_buffer, sizeof(format_buffer), runtime_address + read_offset); read_offset += instruction.length; - - printf("%08llu %s\n", runtime_address + read_offset, &format_buffer[0]); } buffer_remaining = 0;
Seperate asset amount logic from rvn logic
@@ -93,6 +93,13 @@ CAmount CTransaction::GetValueOut() const { CAmount nValueOut = 0; for (const auto& tx_out : vout) { + + // Because we don't want to deal with assets messing up this calculation + // If this is an asset tx, we should move onto the next output in the transaction + // This will also help with processin...
Add missing loop variable declaration.
@@ -698,7 +698,7 @@ void dex_parse( #endif // Get information about the String ID section - for (i = 0; i < dex_header->string_ids_size; i++) + for (int i = 0; i < dex_header->string_ids_size; i++) { string_id_item_t* string_id_item = (string_id_item_t*) ( dex->data +
fix unkown identity case
@@ -356,9 +356,6 @@ static int ssl_tls13_parse_pre_shared_key_ext( mbedtls_ssl_context *ssl, if( matched_identity == -1 ) { MBEDTLS_SSL_DEBUG_MSG( 3, ( "No matched pre shared key found" ) ); - MBEDTLS_SSL_PEND_FATAL_ALERT( - MBEDTLS_SSL_ALERT_MSG_UNKNOWN_PSK_IDENTITY, - MBEDTLS_ERR_SSL_UNKNOWN_IDENTITY ); return( MBEDT...
corrected fg and bg defaults again
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ static char *font = "mono:pixelsize=16:antialias=true:autohint=true"; -static int borderpx = 2; +static int borderpx = 8; /* * What program is execed by st depends of these precedence rules: @@ -115,8 +115,8 @@ static const char *colorname[]...
simple spatializer uses physically correct attenuation; This matches phonon.
@@ -29,7 +29,7 @@ uint32_t simple_spatializer_source_apply(Source* source, const float* input, flo mat4_transform(state.listener, rightEar); float ldistance = vec3_distance(sourcePos, leftEar); float rdistance = vec3_distance(sourcePos, rightEar); - float distanceAttenuation = MAX(1.f - distance / 10.f, 0.f); + float d...
iokernel: fix race condition between parking and new packets A runtime could park while an RX packet is in flight. Rewake it immediately so it doesn't miss the packet. Also, the iokernel may not have fully drained the TX packet queue by the time it receives the parked message.
@@ -55,6 +55,8 @@ void cores_park_kthread(struct thread *th) struct proc *p = th->p; unsigned int core = th->core; unsigned int kthread = th - p->threads; + ssize_t s; + uint64_t val = 1; int ret; assert(kthread < NCPU); @@ -63,6 +65,17 @@ void cores_park_kthread(struct thread *th) BUG_ON(bitmap_test(avail_cores, core)...
Fixed use of specific platform mem alloc calls. issue
@@ -572,6 +572,17 @@ void HAL_Assert ( const char* Func, int Line, const char* File ); // HAL_AssertEx is defined in the processor or platform selector files. extern void HAL_AssertEx(); +// +// This has to be extern "C" because we want to use platform implemented malloc +// +extern "C" { + +void* platform_malloc ( siz...
add PerryEarl's video
@@ -21,6 +21,7 @@ It's source and pre-compiled binaries can be found [here](https://github.com/Bos * [Youtube - Tarkusx FPV - DIY Frame](https://www.youtube.com/watch?v=ZXH9SbvfqHQ) * [Youtube - FPV_EvilMunkey - T Minus 2 Weeks till Whoop Wars](https://www.youtube.com/watch?v=s61xWGj3SnI) * [Youtube - Tinywhoop, Toothp...
Fix typo "collisioin" -> "collision"
@@ -2218,16 +2218,16 @@ static void ocf_metadata_hash_set_core_info(struct ocf_cache *cache, ocf_cache_line_t line, ocf_core_id_t core_id, uint64_t core_sector) { - struct ocf_metadata_map *collisioin; + struct ocf_metadata_map *collision; struct ocf_metadata_hash_ctrl *ctrl = (struct ocf_metadata_hash_ctrl *) cache->m...
AIX asm syntax changes needed for shared object creation
@@ -598,9 +598,14 @@ REALNAME:;\ #ifndef __64BIT__ #define PROLOGUE \ .machine "any";\ + .toc;\ .globl .REALNAME;\ + .globl REALNAME;\ + .csect REALNAME[DS],3;\ +REALNAME:;\ + .long .REALNAME, TOC[tc0], 0;\ .csect .text[PR],5;\ -.REALNAME:; +.REALNAME: #define EPILOGUE \ _section_.text:;\ @@ -611,9 +616,14 @@ _section_...
filter: Moving average option
* a BSD-style license which can be found in the LICENSE file. * * Authors: - * 2015 Martin Uecker <martin.uecker@med.uni-goettingen.de> + * 2015-2017 Martin Uecker <martin.uecker@med.uni-goettingen.de> + * 2020 Sebastian Rosenzweig <sebastian.rosenzweig@med.uni-goettingen.de> */ #include <stdbool.h> @@ -46,17 +47,38 @@...
hv: use more reliable method to get guest DPL. The DPL from SS access right field is always correct according to SDM. We use it instead of using CS selector. Acked-by: Anthony Xu
@@ -284,7 +284,16 @@ int gva2gpa(struct vcpu *vcpu, uint64_t gva, uint64_t *gpa, pw_info.level = pm; pw_info.is_write_access = ((*err_code & PAGE_FAULT_WR_FLAG) != 0U); pw_info.is_inst_fetch = ((*err_code & PAGE_FAULT_ID_FLAG) != 0U); - pw_info.is_user_mode = ((exec_vmread16(VMX_GUEST_CS_SEL) & 0x3U) == 3U); + + /* SDM...
Correct length of name string in xerbla call
@@ -204,7 +204,7 @@ void NAME(char *SIDE, char *UPLO, char *TRANS, char *DIAG, if (side < 0) info = 1; if (info != 0) { - BLASFUNC(xerbla)(ERROR_NAME, &info, sizeof(ERROR_NAME)); + BLASFUNC(xerbla)(ERROR_NAME, &info, sizeof(ERROR_NAME)-1); return; }
docker: alpine release image patch yaml newline, clear cache
@@ -39,6 +39,9 @@ RUN mkdir -p ${ELEKTRA_ROOT} \ && tar -zxvf elektra.tar.gz --strip-components=1 -C ${ELEKTRA_ROOT} \ && rm elektra.tar.gz +# PATCH YAML ENDLINE (TODO: remove this) +RUN sed -i '536s/output << data;/output << data << endl;/' ${ELEKTRA_ROOT}/src/plugins/yamlcpp/write.cpp + ARG USERID=1000 RUN adduser -u...
Fixed memory leak in DM shell command
@@ -184,6 +184,7 @@ celix_status_t dmListCommand_execute(void* handle, char * line, FILE *out, FILE } } + arrayList_destroy(bundles); } destroyBundleIdList(bundleIds);
Expand example/jsonptr memory safety comment
@@ -34,8 +34,8 @@ trivially protected against certain bug classes: memory leaks, double-frees and use-after-frees. The core JSON implementation is also written in the Wuffs programming language -(and then transpiled to C/C++), which is memory-safe but also guards against -integer arithmetic overflows. +(and then transp...
media: Apply coding rule in BufferOutputDataSource Align pointer to right Remove unnecessary '\'
@@ -58,8 +58,8 @@ BufferOutputDataSource& BufferOutputDataSource::operator=(const BufferOutputData bool BufferOutputDataSource::open() { if (!getStreamBuffer()) { - auto streamBuffer = OutputStreamBuffer::create( \ - CONFIG_BUFFER_DATASOURCE_STREAM_BUFFER_SIZE, \ + auto streamBuffer = OutputStreamBuffer::create( + CONF...
Changed the runtime error log message Earlier message displayed 'file is not valid' which may or may not be the case always.
@@ -198,7 +198,7 @@ int main(int argc, char** argv) BOOST_LOG_TRIVIAL(error) << ex.what(); return 1; } catch (std::runtime_error const & ex) { - BOOST_LOG_TRIVIAL(error) << "The input file is not valid: " << ex.what(); + BOOST_LOG_TRIVIAL(error) << "The validation could not be completed: " << ex.what(); return 1; } cat...
Fix automatic submodule checkout. With the old version, `make clean` would remove munit.c as it was treated as a generated file. The new version, which is based on a suggestion by doesn't suffer from that problem.
@@ -11,12 +11,11 @@ if(CMAKE_BUILD_TYPE STREQUAL "") set(CMAKE_BUILD_TYPE "Debug") endif() +if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/munit/munit.c") find_program(GIT git) if(GIT) - add_custom_command(OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/munit/munit.c" - COMMAND ${GIT} submodule update --init --recursive) + execute_pro...
Fixes for NetBSD (again) Minimum interval for a timer must be 1 or more (or we get EINVAL) and Janet fails tests and halts events that the programmer may still be interested in.
@@ -1577,31 +1577,32 @@ void janet_ev_deinit(void) { #define EV_SETx(ev, a, b, c, d, e, f) EV_SET((ev), (a), (b), (c), (d), (e), ((__typeof__((ev)->udata))(f))) #define JANET_KQUEUE_TF (EV_ADD | EV_ENABLE | EV_CLEAR | EV_ONESHOT) +/* NOTE: + * NetBSD doesn't like intervals less than 1 millisecond so lets make that the ...
Check _XOPEN_SOURCE macro before defining In jrt.h the _XOPEN_SOURCE macro is defined. However if the compiler already specifies this as a default define, it can lead to compiler warnings or errors. By adding a macro check the warnings/errors can be avoided. JerryScript-DCO-1.0-Signed-off-by: Peter Gal
#ifndef JRT_H #define JRT_H +#if !defined (_XOPEN_SOURCE) || _XOPEN_SOURCE < 500 +#undef _XOPEN_SOURCE /* Required macro for sleep functions (nanosleep or usleep) */ #define _XOPEN_SOURCE 500 +#endif #include <stdio.h> #include <string.h>
Init SHA224/SHA512 hashes in s2n_connection_wipe To match the behavior of the other hashes. It doesn't appear to be causing issues, but there's no coverage here at the moment. SHA224 and SHA512 aren't used in the TLS PRF.
@@ -296,8 +296,10 @@ int s2n_connection_wipe(struct s2n_connection *conn) conn->handshake.message_number = 0; GUARD(s2n_hash_init(&conn->handshake.md5, S2N_HASH_MD5)); GUARD(s2n_hash_init(&conn->handshake.sha1, S2N_HASH_SHA1)); + GUARD(s2n_hash_init(&conn->handshake.sha224, S2N_HASH_SHA224)); GUARD(s2n_hash_init(&conn-...
README.md: Use version 2.04.66
@@ -24,19 +24,19 @@ Packages for Qt4 and Raspbian Wheezy are available but not described here. ##### Install deCONZ and development package 1. Download deCONZ package - wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.04.64-qt5.deb + wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.04.66-qt5...
vst3 converter now takes uses vst3's tuid Fixes
@@ -12,7 +12,9 @@ extern "C" { // This interface provide all the tool to convert a vst3 plugin instance into a clap plugin instance typedef struct clap_vst3_converter { - const char *vst3_plugin_id; + // The VST FUID can be constructed by: + // Steinberg::FUID::fromTUID(conv->vst3_plugin_tuid); + const int8_t vst3_plug...
fix bug : gc auto collect LuaCSFunction
@@ -528,6 +528,8 @@ namespace SLua LuaDLL.lua_createtable(l, 0, 1); pushValue(l, methodWrapper); LuaDLL.lua_setfield(l, -2, "__call"); + LuaDLL.lua_pushcfunction(l, lua_gc); + LuaDLL.lua_setfield(l, -2, "__gc"); LuaDLL.lua_setfield(l, LuaIndexes.LUA_REGISTRYINDEX, ObjectCache.getAQName(typeof(LuaCSFunction))); } }
fix a bug(sensor_mixgo_pin_near)
@@ -453,7 +453,7 @@ Blockly.Blocks['sensor_mixgo_pin_near'] = { this.appendDummyInput() .appendField(new Blockly.FieldDropdown([[Blockly.Msg.TEXT_TRIM_LEFT, "left"], [Blockly.Msg.TEXT_TRIM_RIGHT, "right"]]), "direction") .appendField(Blockly.MIXLY_ESP32_NEAR); - this.setOutput(true, Boolean); + this.setOutput(true,Numb...
remove file format style
@@ -33,5 +33,5 @@ list(LENGTH iotivity_allsource LIST_LEN) math(EXPR LIST_LEN "${LIST_LEN} - 1") foreach(INDEX RANGE 0 ${LIST_LEN} 8) list(SUBLIST iotivity_allsource ${INDEX} 8 TMP_PATH) - execute_process(COMMAND ${CLANG_FORMAT_EXE} -i -style=file ${TMP_PATH}) + execute_process(COMMAND ${CLANG_FORMAT_EXE} -i ${TMP_PATH...
Use the correct branch for OSS Fuzz as well.
@@ -21,13 +21,15 @@ if [[ ${TRAVIS_PULL_REQUEST} != "false" ]] then # Pull-request branch REPO=${TRAVIS_PULL_REQUEST_SLUG} + BRANCH=${TRAVIS_PULL_REQUEST_BRANCH} else # Push build. REPO=${TRAVIS_REPO_SLUG} + BRANCH=${TRAVIS_BRANCH} fi # Modify the oss-fuzz Dockerfile so that we're checking out the current branch on tra...
amends cmake does nothing for a phoney target with no dependencies
@@ -948,7 +948,7 @@ IF (WITH_H2OLOG) # This phony target is required to force to trigger a custom command. # If DEPENDS is empty, the custom command won't be triggered when OUTPUT files exist. - ADD_CUSTOM_TARGET(phony_force_trigger_command COMMAND echo -n) + ADD_CUSTOM_COMMAND(OUTPUT phony_force_trigger_command COMMAN...
Cppcheck: also check pedal
@@ -7,7 +7,7 @@ git checkout 44d6066c6fad32e2b0332b3f2b24bd340febaef8 make -j4 cd ../../../ -# whole panda code +# panda code tests/misra/cppcheck/cppcheck --dump --enable=all --inline-suppr board/main.c 2>/tmp/misra/cppcheck_output.txt || true python tests/misra/cppcheck/addons/misra.py board/main.c.dump 2>/tmp/misra/...
Use uname to obtain iOS Device Model for physical devices
#include "sysinfo_utils_apple.hpp" #import <Foundation/Foundation.h> +#import <sys/utsname.h> #import <UIKit/UIKit.h> std::string GetDeviceModel() @@ -14,7 +15,18 @@ std::string GetDeviceModel() NSString* modelId = NSProcessInfo.processInfo.environment[@"SIMULATOR_MODEL_IDENTIFIER"]; return std::string([modelId UTF8Str...
Removal of unused import Import is overwritten in the next line with cy_build
@@ -29,7 +29,7 @@ import subprocess import sys import sysconfig from contextlib import contextmanager -from setuptools import Extension, setup +from setuptools import setup from cy_build import CyExtension as Extension, cy_build_ext as build_ext try: import cython
Modified 'show grid' icon
@@ -110,11 +110,11 @@ static s32 drawGridButton(Map* map, s32 x, s32 y) static const u8 GridIcon[] = { 0b00000000, - 0b00101000, 0b01111100, - 0b00101000, + 0b01010100, + 0b01111100, + 0b01010100, 0b01111100, - 0b00101000, 0b00000000, 0b00000000, };
fixed SVD documentation Fixed incorrectly specified type of addressBlock's sub element 'usage' to enumerated token.
@@ -960,7 +960,7 @@ have at least one address block. If a peripheral is derived form another periphe - \token{registers} - \token{buffer} - \token{reserved}.</td> - <td>scaledNonNegativeInteger </td> + <td>enumerated token </td> <td>1..1</td> </tr> <tr>
Update BREAKING.md formatting
+ Change Mutex, Sem, Cond to have methods instead of functions + Merge `KeyUpEvent` and `KeyDownEvent` into `KeyboardEvent` + Haptic functions now return bool and/or error instead of int -+ Change GameControllerMapping() into GameController.Mapping() ++ Change `GameControllerMapping()` into `GameController.Mapping()` -...
[cmake] Better error message
@@ -318,7 +318,7 @@ endif() if(FUZZER) if (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang") - message(FATAL_ERROR "clang is require for libFuzzer") + message(FATAL_ERROR "Compiling with clang is required for libFuzzer") endif() add_subdirectory(fuzzer)
Allow 0-length utf8 strings
@@ -439,7 +439,7 @@ M3Result Read_utf8 (cstr_t * o_utf8, bytes_t * io_bytes, cbytes_t i_end) if (not result) { - if (utf8Length and utf8Length <= c_m3MaxSaneUtf8Length) + if (utf8Length <= c_m3MaxSaneUtf8Length) { const u8 * ptr = * io_bytes; const u8 * end = ptr + utf8Length;
fix incomplete folder name
@@ -72,7 +72,7 @@ On Rails: 1. Remove the `config/puma.rb` file (or comment out the code). -1. Optionally, it's possible to add a `config/iodine.rb` file. For example: +1. Optionally, it's possible to add a `config/initializers/iodine.rb` file. For example: ```ruby # Iodine setup - use conditional setup to allow comman...
dev-tools/mpi4py: suse build requires python-rpm-macros
@@ -37,6 +37,9 @@ Group: %{PROJ_NAME}/dev-tools Url: https://bitbucket.org/mpi4py/mpi4py Source0: https://bitbucket.org/mpi4py/mpi4py/downloads/%{pname}-%{version}.tar.gz Source1: OHPC_macros +%if 0%{?sles_version} || 0%{?suse_version} +BuildRequires: python-rpm-macros +%endif BuildRequires: %{python3_prefix}-devel Bui...
sidk_s5jt200: register RTC driver at boot This commit registers the RTC device driver at boot, so that the device node can be exported through /dev/rtc0. This allows users to open it and then use various operations with it at user-level applications.
@@ -237,10 +237,6 @@ int board_app_initialize(void) { int ret; -#if defined(CONFIG_RTC) && defined(CONFIG_RTC_DRIVER) && defined(CONFIG_S5J_RTC) - FAR struct tm tp; -#endif - sidk_s5jt200_configure_partitions(); #ifdef CONFIG_SIDK_S5JT200_AUTOMOUNT_USERFS_DEVNAME @@ -289,14 +285,32 @@ int board_app_initialize(void) s5j...
Clicking run button while building jumps to build section
@@ -118,7 +118,10 @@ class AppToolbar extends Component { <MenuItem onClick={this.onBuild("web")}>Export Web</MenuItem> </ToolbarDropdownButton> <ToolbarFixedSpacer /> - <ToolbarButton title="Run" onClick={this.onRun}> + <ToolbarButton + title="Run" + onClick={running ? this.setSection("build") : this.onRun} + > {runni...
interface: fix coverity issue Type: fix Fixes:
@@ -178,7 +178,7 @@ vnet_hw_if_update_runtime_data (vnet_main_t *vnm, u32 hw_if_index) if (vec_len (rt->rxq_vector_poll) != vec_len (a[i])) something_changed_on_rx = 1; else if (memcmp (a[i], rt->rxq_vector_poll, - vec_len (a[i]) * sizeof (*a))) + vec_len (a[i]) * sizeof (**a))) something_changed_on_rx = 1; } }
bootutil; add info about how to create keys for ECC 256.
@@ -50,11 +50,15 @@ openssl rsa -in image_sign.pem -pubout -out image_sign_pub.der -outform DER -RSA Now the public key is in file called image_sign_pub.der. -For ECC these commands are similar. +For ECDSA224 these commands are similar. openssl ecparam -name secp224r1 -genkey -noout -out image_sign.pem openssl ec -in i...
Fix compile error due typo
@@ -1734,7 +1734,7 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso // Sinope sensor->modelId() == QLatin1String("WL4200S") || //LifeControl smart plug - sensor->modelID() == QLatin1String("RICI01")) + sensor->modelId() == QLatin1String("RICI01")) { deviceSupported = true; if (!sensor...
mangoapp: make sure logger is inited
@@ -130,6 +130,7 @@ int main(int, char**) init_system_info(); sw_stats.engine = EngineTypes::GAMESCOPE; std::thread(msg_read_thread).detach(); + if(!logger) logger = std::make_unique<Logger>(HUDElements.params); // Main loop while (!glfwWindowShouldClose(window)){ if (!params.no_display){
Make it clear that you can't use all ciphers for CMAC
@@ -96,7 +96,8 @@ B<EVP_PKEY_X25519>, B<EVP_PKEY_ED25519>, B<EVP_PKEY_X448> or B<EVP_PKEY_ED448>. EVP_PKEY_new_CMAC_key() works in the same way as EVP_PKEY_new_raw_private_key() except it is only for the B<EVP_PKEY_CMAC> algorithm type. In addition to the raw private key data, it also takes a cipher algorithm to be use...
Don't return allocated memory from PhLoadRemoteMappedImageEx
@@ -658,6 +658,7 @@ NTSTATUS PhLoadRemoteMappedImageEx( ULONG ntHeadersOffset; IMAGE_NT_HEADERS ntHeaders; SIZE_T ntHeadersSize; + PIMAGE_NT_HEADERS ntHeadersOut; RemoteMappedImage->ViewBase = ViewBase; @@ -718,22 +719,23 @@ NTSTATUS PhLoadRemoteMappedImageEx( if (ntHeadersSize > 1024 * 1024) // 1 MB return STATUS_INVA...
fixup! sys/select: integration with LWIP qemu configuration doesn't use neither socket nor poll. so, build breaks happen on qemu/tc_64k build configurations
@@ -127,7 +127,7 @@ typedef struct fd_set { #if defined(CONFIG_DISABLE_POLL) #if !defined(CONFIG_NET_SOCKET) -#error Both system poll and network sockets are disabled +/* #error Both system poll and network sockets are disabled */ #else #include <net/lwip/sockets.h> #endif
[mod_openssl] extend ssl.openssl.ssl-conf-cmd extend ssl.openssl.ssl-conf-cmd to accept "SecurityLevel" (lighttpd extension) and use the (string) value to call the openssl-specific SSL_CTX_set_security_level()
@@ -1874,6 +1874,15 @@ network_openssl_ssl_conf_cmd (server *srv, plugin_config_socket *s) for (size_t i = 0; i < s->ssl_conf_cmd->used; ++i) { ds = (data_string *)s->ssl_conf_cmd->data[i]; + /* ("SecurityLevel" is lighttpd extension to SSL_CONF_cmd() syntax) + * SSL_CTX_set_security_level() is specific to OpenSSL >= 1...
util/add-depends.pl: sort the dependency files
@@ -15,6 +15,7 @@ my $buildfile = $config{build_file}; my $buildfile_new = "$buildfile-$$"; my $depext = $target{dep_extension} || ".d"; my @deps = + sort grep { -f $_ } map { (my $x = $_) =~ s|\.o$|$depext|; $x; } grep { $unified_info{sources}->{$_}->[0] =~ /\.cc?$/ }
Docker: Fix minor spelling mistakes in ReadMe
@@ -18,7 +18,7 @@ Afterwards pull your desired image as you would do from any public registry: > **Note:** > We use *hub-public* instead of *hub.libelektra.org* which is in use by our -> build server to bypass authentification. +> build server to bypass authentication. > Only GET requests are allowed on *hub-public*. @...
Move frame_timings ms text to above
@@ -407,6 +407,10 @@ void HudElements::frame_timing(){ ImGui::Dummy(ImVec2(0.0f, real_font_size.y)); ImGui::PushFont(HUDElements.sw_stats->font1); ImGui::TextColored(HUDElements.colors.engine, "%s", "Frametime"); + for (size_t i = 0; i < HUDElements.params->table_columns - 1; i++) + ImGui::TableNextCell(); + ImGui::Dum...
Review fix: defense check of qdcount in debug output.
@@ -805,6 +805,7 @@ reuse_move_writewait_away(struct outside_network* outnet, /* since the current query is not written, it can also * move to a free buffer */ if(verbosity >= 5 && pend->query->pkt_len > 12+2+2 && + LDNS_QDCOUNT(pend->query->pkt) > 0 && dname_valid(pend->query->pkt+12, pend->query->pkt_len-12)) { char ...
[util/datetime] Add doxy docs for `TInstant::Parse*` functions. To make them easily searchable by RFC number. Also, drop useless `const` in declarations.
@@ -453,25 +453,44 @@ public: TString FormatLocalTime(const char* format) const noexcept; TString FormatGmTime(const char* format) const noexcept; - static TInstant ParseIso8601(const TStringBuf); - static TInstant ParseRfc822(const TStringBuf); - static TInstant ParseHttp(const TStringBuf); - static TInstant ParseX509...
framework/media: Remove pcm_close line from stop_audio_stream_out() It makes double closing the pcm because reset_audio_stream close the pcm
@@ -915,9 +915,6 @@ audio_manager_result_t stop_audio_stream_out(void) if ((ret = pcm_drain(g_audio_out_cards[g_actual_audio_out_card_id].pcm)) < 0) { meddbg("pcm_drain faled, ret = %d\n", ret); } - if ((ret = pcm_close(g_audio_out_cards[g_actual_audio_out_card_id].pcm)) < 0) { - meddbg("pcm_close faled, ret = %d\n", r...
Finer locking granularity in BitmapTextureCache
@@ -11,27 +11,25 @@ namespace carto { std::size_t BitmapTextureCache::getCapacity() const { std::lock_guard<std::mutex> lock(_mutex); - return _cache.capacity(); } void BitmapTextureCache::setCapacity(std::size_t capacityInBytes) { std::lock_guard<std::mutex> lock(_mutex); - _cache.resize(capacityInBytes); } void Bitma...
unix/main: Make static variable that's potentially clobbered by longjmp. This fixes `error: variable 'subpkg_tried' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]` when compiling on ppc64le and aarch64 (and possibly other architectures/toolchains).
@@ -669,7 +669,12 @@ MP_NOINLINE int main_(int argc, char **argv) { mp_obj_t mod; nlr_buf_t nlr; - bool subpkg_tried = false; + + // Allocating subpkg_tried on the stack can lead to compiler warnings about this + // variable being clobbered when nlr is implemented using setjmp/longjmp. Its + // value must be preserved ...
esp_crt_bundle: Fix build problems if MBEDTLS_CERTIFICATE_BUNDLE is disabled Exclude source and include file from build list if certificate bundle feature is disabled. Closes Closes
@@ -7,8 +7,16 @@ if(NOT BOOTLOADER_BUILD) list(APPEND priv_requires esp_pm) endif() -idf_component_register(SRCS "esp_crt_bundle/esp_crt_bundle.c" - INCLUDE_DIRS "port/include" "mbedtls/include" "esp_crt_bundle/include" "./mbedtls/library" +set(mbedtls_srcs "") +set(mbedtls_include_dirs "port/include" "mbedtls/include"...
Add additional mygpu support to run_epsdb_aomp_test.sh
@@ -9,7 +9,13 @@ aompdir="$(dirname "$parentdir")" set -x +# mygpu will eventually relocate to /opt/rocm/bin, support both cases for now. +if [ -a $AOMP/bin/mygpu ]; then export AOMP_GPU=`$AOMP/bin/mygpu` +else + export AOMP_GPU=`$AOMP/../bin/mygpu` +fi + echo AOMP_GPU = $AOMP_GPU export EXTRA_OMP_FLAGS=--rocm-path=$AO...
nimble/ll: Use a different RPA when initiating Directed Connection Core Specification Vol 6, Part B, Section 6.4: "The Link Layer should not set the InitA field to the same value as the TargetA field in the received advertising PDU."
@@ -3076,12 +3076,22 @@ ble_ll_init_rx_isr_end(uint8_t *rxbuf, uint8_t crcok, * If the InitA is a RPA, we must see if it resolves based on the * identity address of the resolved ADVA. */ - if (init_addr && inita_is_rpa && - !ble_ll_resolv_rpa(init_addr, + if (init_addr && inita_is_rpa) { + if (!ble_ll_resolv_rpa(init_a...
iokernel: if a kthread becomes idle, assume the process is not congested
@@ -285,6 +285,8 @@ static void simple_sched_poll(bitmap_ptr_t idle) unsigned int core; bitmap_for_each_set(idle, NCPU, core) { + if (cores[core] != NULL) + simple_unmark_congested(cores[core]); simple_cleanup_core(core); sd = simple_choose_kthread(core); if (!sd) { @@ -292,8 +294,10 @@ static void simple_sched_poll(bi...
Drop old Coverity jobs (we build via separate .travis.yml in a branch)
@@ -36,27 +36,5 @@ services: docker dist: trusty script: - - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then - docker build --pull -t ${RUN_ON_CONTAINER} -f opal-ci/Dockerfile-${RUN_ON_CONTAINER} . && + - docker build --pull -t ${RUN_ON_CONTAINER} -f opal-ci/Dockerfile-${RUN_ON_CONTAINER} . && docker run --volume $HOME/.ccac...
Fixed setting datetime and timezone and added check that restapi utc has correct length
@@ -1734,7 +1734,6 @@ int DeRestPluginPrivate::modifyConfig(const ApiRequest &req, ApiResponse &rsp) changed = true; #ifdef ARCH_ARM - timezone.prepend(':'); int rc = setenv("TZ", qPrintable(timezone), 1); tzset(); @@ -1764,7 +1763,7 @@ int DeRestPluginPrivate::modifyConfig(const ApiRequest &req, ApiResponse &rsp) else...
Fix potential segfault: freeing memory that failed to allocated, since it is not set to null
@@ -761,8 +761,9 @@ int32_t SOCKETS_SetSockOpt( Socket_t xSocket, } else { - ctx->ppcAlpnProtocols[ - ctx->ulAlpnProtocolsCount - 1 ] = NULL; + memset( ctx->ppcAlpnProtocols, + 0x00, + ctx->ulAlpnProtocolsCount * sizeof( char * ) ); } /* Copy each protocol string. */
examples/openssl: simpler ssl init
@@ -66,10 +66,7 @@ int main(int argc, char** argv) { #endif static void HFInit(void) { - OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); - OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS, NULL); SSL_library_init(); OpenSSL_add_ssl_algorithms(); ERR_load_crypto_strings(); - }
Tidy up links to OS-specific documentation
@@ -9,10 +9,10 @@ Make sure you've prepared your 32Blit by following the instructions in: You should also make sure you have a cross-compile environment set up on your computer, refer to the relevant documentation below: -* [Windows][Windows-WSL.md] -* [Linux][Linux.md] -* [macOS][macOS.md] -* [ChromeOS][ChromeOS.md] +...
openssl: dhparam: Print warning if -in argument is ignored Fixes: openssl#18146
@@ -190,6 +190,10 @@ int dhparam_main(int argc, char **argv) if (num) { const char *alg = dsaparam ? "DSA" : "DH"; + if (infile != NULL) { + BIO_printf(bio_err, "Warning, input file %s ignored\n", infile); + } + ctx = EVP_PKEY_CTX_new_from_name(NULL, alg, NULL); if (ctx == NULL) { BIO_printf(bio_err,
Update CONTRIBUTING;
@@ -18,9 +18,9 @@ Contributing Documentation --- If you see any typos or inconsistencies in the docs, submitting an issue or pull request in the -[lovr.org repo](https://github.com/bjornbytes/lovr.org) would be greatly appreciated! There, each -documentation page is a markdown file in the `docs` folder, and examples ca...
Nicer output for `iodine -?`
@@ -326,13 +326,13 @@ static VALUE iodine_cli_parse(VALUE self, VALUE desc) { /* Levarage the facil.io CLI library */ fio_cli_start( argc, (const char **)argv, 0, -1, StringValueCStr(desc), - "\x1B[1m\x1B[4mAddress Binding:\x1B[0m", FIO_CLI_TYPE_PRINT, + "\x1B[4mAddress Binding:\x1B[0m", FIO_CLI_TYPE_PRINT, "-bind -b -...
Fix mcu vco tune
@@ -291,8 +291,8 @@ uint8_t TuneVCO(bool SX) // 0-cgen, 1-SXR, 2-SXT { typedef struct { - uint8_t high; - uint8_t low; + int16_t high; + int16_t low; } CSWInteval; uint16_t addrCSW_VCO;
Docs: Fixed a description error about
@@ -167,7 +167,7 @@ The transaction should provide the following functions: + Wallet initialization: The content implemented by this interface includes: 1. Set the blockchain contract address - 2. Set EIP-155 compatibility for transactions + 2. Set whether the transaction specifies a chain ID 3. Set chain ID + Wallet d...
fix flow control delay scale
@@ -152,8 +152,8 @@ def _isotp_thread(panda, bus, tx_addr, tx_queue, rx_queue): # TODO: support wait/overflow assert rx_data[0] == 0x30, "tx: flow-control requires: continue" delay_ts = ord(rx_data[2]) & 0x7F - # milliseconds if first bit == 0, micro seconds if first bit == 1 - delay_div = 1000. if ord(rx_data[2]) & 0x...
libbarrelfish: Add comment why we still need KCB identify
@@ -218,6 +218,10 @@ static inline errval_t invoke_vnode_copy_remap(struct capref ptable, capaddr_t s /** * \brief Return the physical address of a kernel control block * + * KCB identify is special because we do not have a valid implementation of + * mem_to_local_phys() in user space, which means we cannot use get_add...
Fix lookup types for find_keypoints.
@@ -2225,8 +2225,8 @@ static mp_obj_t py_image_find_keypoints(uint n_args, const mp_obj_t *args, mp_ma int threshold = py_helper_lookup_int(kw_args, MP_OBJ_NEW_QSTR(MP_QSTR_threshold), 20); bool normalized = py_helper_lookup_int(kw_args, MP_OBJ_NEW_QSTR(MP_QSTR_normalized), false); float scale_factor = py_helper_lookup...
Fix error handling in RAND_DRBG_set
@@ -180,12 +180,17 @@ int RAND_DRBG_set(RAND_DRBG *drbg, int type, unsigned int flags) else ret = drbg_hash_init(drbg); } else { + drbg->type = 0; + drbg->flags = 0; + drbg->meth = NULL; RANDerr(RAND_F_RAND_DRBG_SET, RAND_R_UNSUPPORTED_DRBG_TYPE); return 0; } - if (ret == 0) + if (ret == 0) { + drbg->state = DRBG_ERROR...
usb: tweak CDC_IN_FRAME_INTERVAL for more bandwidth
#define CDC_DATA_MAX_PACKET_SIZE 64 /* Endpoint IN & OUT Packet size */ #define CDC_CMD_PACKET_SZE 8 /* Control Endpoint Packet size */ -#define CDC_IN_FRAME_INTERVAL 15 /* Number of frames between IN transfers */ +#define CDC_IN_FRAME_INTERVAL 2 /* Number of frames between IN transfers */ #define APP_RX_DATA_SIZE 2048...
Prevent lumi.sensor_switch.aq2 single press event to be emitted twice
@@ -8057,6 +8057,9 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event) else if (i->modelId() == QLatin1String("lumi.sensor_switch")) { // handeled by button map } + else if (i->modelId() == QLatin1String("lumi.sensor_switch.aq2")) + { // handeled by button map + } else if (i->modelId().startsW...
Fix mem leaks on PKCS#12 read error in PKCS12_key_gen_{asc,utf8}
@@ -33,10 +33,8 @@ int PKCS12_key_gen_asc(const char *pass, int passlen, unsigned char *salt, } ret = PKCS12_key_gen_uni(unipass, uniplen, salt, saltlen, id, iter, n, out, md_type); - if (ret <= 0) - return 0; OPENSSL_clear_free(unipass, uniplen); - return ret; + return ret > 0; } int PKCS12_key_gen_utf8(const char *pa...
[mod_gnutls] use local strncmp_const() On some older gcc, strncmp is a macro and expects three arguments, but does not see expansion of lighttpd CONST_STR_LEN() macro before warning/error about incorrect number of arguments
@@ -3027,33 +3027,34 @@ mod_gnutls_ssl_conf_ciphersuites (server *srv, plugin_config_socket *s, buffer * /* manually handle first token, since one-offs apply */ /* (openssl syntax NOT fully supported) */ - if (0 == strncmp(e, "!ALL", 4) || 0 == strncmp(e, "-ALL", 4)) { + #define strncmp_const(s,cs) strncmp((s),(cs),siz...
Fix QT crash
@@ -116,7 +116,7 @@ OverviewPage::OverviewPage(QWidget *parent) : ui->frameDarksend->setVisible(false); // Hide darksend features - PriceRequest(); + //PriceRequest(); QObject::connect(&m_nam, SIGNAL(finished(QNetworkReply*)), this, SLOT(parseNetworkResponse(QNetworkReply*))); connect(ui->refreshButton, SIGNAL(pressed(...
zephyr: kohaku: Delete configs set to NPCX defaults Delete the Kconfig options that are now setup by default for the NPCX7 chipset. BRANCH=none TEST=zmake testall
# Zephyr Kernel Configuration CONFIG_SOC_SERIES_NPCX7=y +CONFIG_SOC_NPCX7M6FC=y # Platform Configuration -CONFIG_SOC_NPCX7M6FC=y CONFIG_BOARD_KOHAKU=y # Enable NPCX firmware header generator @@ -34,33 +34,3 @@ CONFIG_CLOCK_CONTROL=y # WATCHDOG configuration CONFIG_WATCHDOG=y -# Set the delay time for printing panic dat...
tapcli: change interface name As tapcli code is going to be deprecated and replaced with tap v2 code, change the interface naming so the new code can use form tap-X.
@@ -604,7 +604,7 @@ static u8 * format_tapcli_interface_name (u8 * s, va_list * args) if (show_dev_instance != ~0) i = show_dev_instance; - s = format (s, "tap-%d", i); + s = format (s, "tapcli-%d", i); return s; }
plugin-template.c: better destroy code
@@ -115,7 +115,8 @@ static bool my_plug_init(const struct clap_plugin *plugin) { } static void my_plug_destroy(const struct clap_plugin *plugin) { - free(plugin); + my_plug_t *plug = plugin->plugin_data; + free(plug); } static bool my_plug_activate(const struct clap_plugin *plugin,
TSCH: disable HW frame filtering on Z1, may not work correctly for broadcast packets
#define TSCH_LOG_CONF_QUEUE_LEN 4 #endif +#define TSCH_CONF_HW_FRAME_FILTERING 0 + /* Platform-specific (H/W) AES implementation */ #ifndef AES_128_CONF #define AES_128_CONF cc2420_aes_128_driver
Add _universal sub-type.
@@ -746,7 +746,7 @@ cupsdReadConfiguration(void) DefaultShared = CUPS_DEFAULT_DEFAULT_SHARED; #ifdef HAVE_DNSSD - cupsdSetString(&DNSSDSubTypes, "_cups,_print"); + cupsdSetString(&DNSSDSubTypes, "_cups,_print,_universal"); cupsdClearString(&DNSSDHostName); #endif /* HAVE_DNSSD */
Restore ppc64 CI job and remove the travis_wait that caused the problem with it
@@ -17,7 +17,7 @@ matrix: - COMMON_FLAGS="DYNAMIC_ARCH=1 TARGET=NEHALEM NUM_THREADS=32" script: - set -e - - travis_wait 45 make QUIET_MAKE=1 $COMMON_FLAGS $BTYPE + - make QUIET_MAKE=1 $COMMON_FLAGS $BTYPE - make -C test $COMMON_FLAGS $BTYPE - make -C ctest $COMMON_FLAGS $BTYPE - make -C utest $COMMON_FLAGS $BTYPE @@ -...
Refresh process properties started time
@@ -425,10 +425,14 @@ INT_PTR CALLBACK PhpProcessGeneralDlgProc( ShowWindow(GetDlgItem(hwndDlg, IDC_PROCESSTYPETEXT), SW_SHOW); #endif PhInitializeWindowTheme(hwndDlg, PhEnableThemeSupport); + + SetTimer(hwndDlg, 1, 1000, NULL); } break; case WM_DESTROY: { + KillTimer(hwndDlg, 1); + if (context->ProgramIcon) { DestroyI...
Add extra scripts to normalizedFindSceneEvent
@@ -109,8 +109,19 @@ const normalizedWalkSceneEvents = ( callback ) => { walkEvents(scene.script, callback); + walkEvents(scene.playerHit1Script, callback); + walkEvents(scene.playerHit2Script, callback); + walkEvents(scene.playerHit3Script, callback); + scene.actors.forEach(actorId => { - walkEvents(actorsLookup[actor...
EVP p_lib: Add NULL check to EVP_PKEY_missing_parameters. Check for NULL and return error if so. This can possibly be called from apps/ca.c with a NULL argument.
@@ -105,7 +105,7 @@ int EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from) int EVP_PKEY_missing_parameters(const EVP_PKEY *pkey) { - if (pkey->ameth && pkey->ameth->param_missing) + if (pkey != NULL && pkey->ameth && pkey->ameth->param_missing) return pkey->ameth->param_missing(pkey); return 0; }
docs - fix some references in gp_distribution_policy
<codeph>distkey</codeph> </entry> <entry colname="col2">int2vector</entry> - <entry colname="col3">pg_attribute.distkey</entry> + <entry colname="col3">pg_attribute.attnum</entry> <entry colname="col4">The column number(s) of the distribution column(s).</entry> </row> <row> <codeph>distclass</codeph> </entry> <entry co...
Fix jsonptr start_of_token_chain initial value
@@ -1063,7 +1063,7 @@ const char* // main1(int argc, char** argv) { TRY(initialize_globals(argc, argv)); - bool start_of_token_chain = false; + bool start_of_token_chain = true; while (true) { wuffs_base__status status = g_dec.decode_tokens( &g_tok, &g_src,
Enable -mavx2 for flang as well
@@ -90,6 +90,10 @@ GCCMINORVERSIONGTEQ7 := $(shell expr `$(FC) -dumpversion | cut -f2 -d.` \>= 7) ifeq ($(GCCVERSIONGTEQ4)$(GCCMINORVERSIONGTEQ7), 11) FCOMMON_OPT += -mavx2 endif +else +ifeq ($(F_COMPILER), FLANG) +FCOMMON_OPT += -mavx2 +endif endif endif endif