message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix non-thread-safe methods
#if defined(_android_) #include <util/system/dynlib.h> +#include <util/system/guard.h> +#include <util/system/mutex.h> #include <android/log.h> #endif @@ -189,17 +191,22 @@ namespace { private: virtual void DoWrite(const void* buf, size_t len) override { + with_lock (BufferMutex) { Buffer.Write(buf, len); } + } virtual...
Updated change log with latest v1.6.3 changes.
+Changes to GoAccess 1.6.3 - Thursday, August 31, 2022 + + - Enabled DNS thread when resolving a host and outputting real-time HTML. + This helps avoid stalling the WS server on busy connections. + - Fixed issue where it would not properly parse an XFF if the '%h' specifier + was already set. + - Fixed possible XSS iss...
components/button: set dimensions after updating label
@@ -87,7 +87,6 @@ static const component_functions_t _component_functions = { }; /********************************** Create Instance **********************************/ - static component_t* _button_create( const char* text, const slider_location_t location, @@ -100,10 +99,8 @@ static component_t* _button_create( Abort...
[core] __attribute__((format ...))
#endif #endif +#ifndef __attribute_fallthrough__ #if __has_attribute(fallthrough) \ || __GNUC_PREREQ(7,0) #define __attribute_fallthrough__ __attribute__((__fallthrough__)); #else -#define __attribute_fallthrough__ +#define __attribute_fallthrough__ /* fall through */ +#endif +#endif + +#ifndef __attribute_format__ +#i...
Correct Discord URL and add Discord badge
+[![Discord](https://img.shields.io/discord/478725473862549535.svg)](https://discord.gg/gCyBu8T) + + ![nanoFramework logo](https://github.com/nanoframework/Home/blob/master/resources/logo/nanoFramework-repo-logo.png) ----- @@ -81,7 +84,7 @@ The above firmware builds include support for the class libraries and features ...
neon/rndn: Add scalar function implementation
@@ -33,6 +33,20 @@ HEDLEY_DIAGNOSTIC_PUSH SIMDE_DISABLE_UNWANTED_DIAGNOSTICS SIMDE_BEGIN_DECLS_ +SIMDE_FUNCTION_ATTRIBUTES +simde_float32_t +simde_vrndns_f32(simde_float32_t a) { + #if defined(SIMDE_ARM_NEON_A32V8_NATIVE) && (!defined(__clang__) || SIMDE_DETECT_CLANG_VERSION_CHECK(7,0,0)) + return vrndns_f32(a); + #els...
Increment number messages for Python Tests table
@@ -44,7 +44,7 @@ def test_table_count(): Test number of available messages to deserialize. """ - number_of_messages = 186 + number_of_messages = 187 assert len(_SBP_TABLE) == number_of_messages def test_table_unqiue_count():
dummy_afu: add explicit reset after run After a dummy_afu test runs, call handle_->reset again.
@@ -209,6 +209,7 @@ public: logger_->error(ex.what()); res = exit_codes::exception; } + handle_->reset(); auto pass = res == exit_codes::success ? "PASS" : "FAIL"; logger_->info("Test {}({}): {}", test->name(), count, pass); spdlog::drop_all();
Output an error message when shmat() fails Observed in with SELinux as the likely culprit. Without the message, the user saw a segfault with no apparent reason
@@ -78,6 +78,8 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <sys/sysinfo.h> #include <sys/syscall.h> +#include <sys/types.h> +#include <errno.h> #include <sys/shm.h> #include <fcntl.h> #include <sched.h> @@ -659,8 +661,9 @@ static void open_shmem(void) { exit(1); } - if (shmid !=...
Fixed typo in atmesc.c.
@@ -164,7 +164,7 @@ Read the Jeans time, the time at which the flow transitions from hydrodynamic to @param system A pointer to the SYSTEM instance @param iFile The current file number */ -void (BODY *body,CONTROL *control,FILES *files,OPTIONS *options,SYSTEM *system,int iFile) { +void ReadJeansTime(BODY *body,CONTROL ...
hv: seed: fix potential NULL pointer dereferencing The 'boot_params' and 'entry' might be dereferenced after they were positively checked for NULL. Refine checking logic to fix the issue. Acked-by: Zhu Bing
@@ -62,21 +62,21 @@ bool parse_seed_sbl(uint64_t addr, struct physical_seed *phy_seed) { uint8_t i; uint8_t dseed_index = 0U; - struct image_boot_params *boot_params; + struct image_boot_params *boot_params = NULL; struct seed_list_hob *seed_hob = NULL; - struct seed_entry *entry; - struct seed_info *seed_list; + struc...
fpgaotsu: add entry_point for fpgaotsu
@@ -34,7 +34,8 @@ setup( 'fpgasupdate = opae.admin.tools.fpgasupdate:main', 'rsu = opae.admin.tools.rsu:main', 'super-rsu = opae.admin.tools.super_rsu:main', - 'fpgaflash = opae.admin.tools.fpgaflash:main' + 'fpgaflash = opae.admin.tools.fpgaflash:main', + 'fpgaotsu = opae.admin.tools.fpgaotsu:main' ] }, install_requir...
tools/memleak: fix print_outstanding_combined func, exception has occurred: TypeError in python
@@ -538,7 +538,7 @@ def print_outstanding_combined(): show_module=True, show_offset=True) trace.append(sym) - trace = "\n\t\t".join(trace) + trace = "\n\t\t".join(trace.decode()) except KeyError: trace = "stack information lost"
Remove conn_write_server_handshake
@@ -2144,25 +2144,6 @@ static ngtcp2_ssize conn_write_handshake_pkts(ngtcp2_conn *conn, uint8_t *dest, return res; } -static ngtcp2_ssize conn_write_server_handshake(ngtcp2_conn *conn, - uint8_t *dest, size_t destlen, - ngtcp2_tstamp ts) { - ngtcp2_ssize nwrite; - ngtcp2_ssize res = 0; - - nwrite = conn_write_handshake...
Mandelbrot benchmark: make N into a parameter Make the size of the benchmark be configurable at the command-line, as we do with the other benchmarks
local Complex = require(arg[1]) +local N = tonumber(arg[2]) or 256 local function level(x, y) local c = Complex.new(x, y) @@ -15,13 +16,11 @@ local xmin = -2.0 local xmax = 2.0 local ymin = -2.0 local ymax = 2.0 -local N = 256 local dx = (xmax - xmin) / N local dy = (ymax - ymin) / N print("P2") ---print("# mandelbrot ...
hal/ia32/_init.S: removed assembler warnings
@@ -309,7 +309,7 @@ _init_core_prot: /* Switch to virtual addresses */ lea _init_virt, %eax - jmp %eax + jmp *%eax _init_virt: /* Reload relocated GDT and IDT */ @@ -337,7 +337,7 @@ _init_core_wait: movl $0x7c00, %esp addl $VADDR_KERNEL, %esp lea _cpu_initCore, %eax - call %eax + call *%eax /* Signal spinlock */ xorl %...
chip/ish/ish_persistent_data.c: Format with clang-format BRANCH=none TEST=none
@@ -40,8 +40,7 @@ void ish_persistent_data_init(void) { if (ish_persistent_data_aon.magic == PERSISTENT_DATA_MAGIC) { /* Stored data is valid, load a copy */ - memcpy(&ish_persistent_data, - &ish_persistent_data_aon, + memcpy(&ish_persistent_data, &ish_persistent_data_aon, sizeof(struct ish_persistent_data)); /* Invali...
config_tools: fix delete vm failed issue fix delete vm failed issue
@@ -257,7 +257,7 @@ export default { msg = "Post-launched VMs require the Service VM. If you proceed, all post-launched VMs and their settings will also be deleted. Are you sure you want to proceed?" isserivevm = true } else { - let vmName = this.scenario.vm[this.activeVMID].name + let vmName = vmConfigcurrent.name msg...
replace deprecated call: isl_basic_set_fast_is_empty -> isl_basic_set_plain_is_empty
@@ -748,7 +748,7 @@ PlutoConstraints **get_stmt_ortho_constraints(Stmt *stmt, const PlutoProg *prog, if (!options->flic) { orthcst_i = isl_basic_set_intersect(orthcst_i, isl_basic_set_copy(isl_currcst)); - if (isl_basic_set_fast_is_empty(orthcst_i) + if (isl_basic_set_plain_is_empty(orthcst_i) || isl_basic_set_is_empty...
Process Short packet if it has 1RTT key without buffering It is better to process data if client has 1RTT key without buffering them. This is primarily for response against 0RTT request, but it also handles the .5RTT CRYPTO data which might include NewSessionTicket.
@@ -4080,6 +4080,10 @@ static ssize_t conn_recv_pkt(ngtcp2_conn *conn, const ngtcp2_path *path, const uint8_t *pkt, size_t pktlen, ngtcp2_tstamp ts); +static int conn_process_buffered_protected_pkt(ngtcp2_conn *conn, + ngtcp2_pktns *pktns, + ngtcp2_tstamp ts); + /* * conn_recv_handshake_pkt processes received packet |p...
board/genesis/board.c: Format with clang-format BRANCH=none TEST=none
@@ -112,8 +112,7 @@ static void port_ocp_interrupt(enum gpio_signal signal) /******************************************************************************/ /* SPI devices */ -const struct spi_device_t spi_devices[] = { -}; +const struct spi_device_t spi_devices[] = {}; const unsigned int spi_devices_used = ARRAY_SIZE(...
DES_set_key(): return values as DES_set_key_checked() but always set This avoids using accidentally uninitialized key schedule in applications that use DES_set_key() not expecting it to check the key which is the default on OpenSSL <= 1.1.1 Fixes
@@ -279,9 +279,17 @@ static const DES_LONG des_skb[8][64] = { } }; +/* Return values as DES_set_key_checked() but always set the key */ int DES_set_key(const_DES_cblock *key, DES_key_schedule *schedule) { - return DES_set_key_checked(key, schedule); + int ret = 0; + + if (!DES_check_key_parity(key)) + ret = -1; + if (D...
update release info Note: mandatory check (NEED_CHECK) was skipped
- R language: `get_features_importance` with `ShapValues` for `MultiClass`, #868 - NormalizedGini was not calculated, #962 - Bug in leaf calculation which could result in slightly worse quality if you use weights in binary classification mode +- Fixed `__builtins__` import in Python3 in PR #957, thanks to @AbhinavanT #...
Fixes for large messages
@@ -35,7 +35,7 @@ uint16_t data_count = 0; uint16_t data_size = 0; uint16_t crc_val = 0; static uint64_t ll_rx_timestamp = 0; -uint8_t large_data_num = 0; +uint16_t large_data_num = 0; /******************************************************************************* * Function @@ -629,6 +629,7 @@ static inline uint16_t ...
the CMAKE for comgr no longer hardcodes /opt/rocm so we do not need that part of the patch
-diff --git a/lib/comgr/CMakeLists.txt b/lib/comgr/CMakeLists.txt -index 412bd2e..32f1734 100644 ---- a/lib/comgr/CMakeLists.txt -+++ b/lib/comgr/CMakeLists.txt -@@ -17,7 +17,10 @@ if (ROCM_CCACHE_BUILD) - endif() # if (CCACHE_PROGRAM) - endif() # if (ROCM_CCACHE_BUILD) - -+if(NOT AMD_COMGR_BUILD_NO_ROCM) - find_packag...
fix(config): add LV_GPU_SDL_LRU_SIZE
@@ -265,6 +265,12 @@ menu "LVGL configuration" string "include path of SDL header" depends on LV_USE_GPU_SDL default "SDL2/SDL.h" + config LV_GPU_SDL_LRU_SIZE + int "Maximum buffer size to allocate for rotation" + depends on LV_USE_GPU_SDL + default 8388608 + help + Texture cache size, 8MB by default. endmenu menu "Log...
bugfix: make ahb freq consistent with cpu freq
@@ -149,6 +149,7 @@ static void rtc_clk_bbpll_configure(rtc_xtal_freq_t xtal_freq, int pll_freq) */ static void rtc_clk_cpu_freq_to_xtal(int freq, int div) { + clk_ll_ahb_set_ls_divider(div); clk_ll_cpu_set_ls_divider(div); clk_ll_cpu_set_src(SOC_CPU_CLK_SRC_XTAL); ets_update_cpu_frequency(freq); @@ -156,6 +157,7 @@ st...
Resolve conflicts from (missing header file)
@@ -34,14 +34,17 @@ typedef enum { // provided, or values are invalid WK_WALLET_CONNECTOR_STATUS_INVALID_TRANSACTION_ARGUMENTS, - // A general error to describe the digest creation has failed + // The digest creation has failed or the digest is of an expected length WK_WALLET_CONNECTOR_STATUS_INVALID_DIGEST, - // A gen...
CHANGELOG: add antiklepto to 9.4.0 and finalize 9.4.0
# Changelog -## 9.4.0 [version may change, pending release] +## [Unreleased] +- + +## 9.4.0 [released 2021-01-20] - ETHPubRequest api call now fails if a an invalid contract address is provided also if `display` is false. - Fix a memory leak (freeing a malloc'd string - no a functional or security issue) - Verifiable s...
cirrus: bump Fedora to 34
-FROM fedora:33 +FROM fedora:34 RUN dnf upgrade --refresh -y && dnf install -y \ augeas-devel \ @@ -60,7 +60,7 @@ RUN mkdir -p ${GTEST_ROOT} \ && rm gtest.tar.gz # download and install gradle -RUN cd /tmp && wget https://services.gradle.org/distributions/gradle-6.8.3-bin.zip && unzip gradle-6.8.3-bin.zip && rm gradle-6...
Adjust PicoSynth volume when setting it in the Galactic Unicorn API
@@ -517,6 +517,7 @@ namespace pimoroni { value = value < 0.0f ? 0.0f : value; value = value > 1.0f ? 1.0f : value; this->volume = floor(value * 255.0f); + this->synth.volume = this->volume * 255.0f; } float GalacticUnicorn::get_volume() {
envydis/gm107: Make xmad's immediate 16 bits 20 bits doesn't make much sense: it would overlap with other atoms. Seems it's 16 bits without a sign flag.
@@ -2123,7 +2123,7 @@ static struct insn tabroot[] = { { 0x3660000000000000ull, 0xfef0000000000000ull, OP8B, T(pred), N( "isetp"), T(5b60_0), T(5c30_0), ON(43, x), T(5bb0_1), PRED03, PRED00, REG_08, S20_20, T(pred39) }, { 0x3650000000000000ull, 0xfef0000000000000ull, OP8B, T(pred), N( "iset"), ON(44, bf), T(5b60_0), T(...
the hipamd required cmake version is satified by build_supp.sh which builds a specific cmake version as a supplemental component. Be sure not to set AOMP_CMAKE in .bashrc
diff --git a/CMakeLists.txt b/CMakeLists.txt -index b1ab39e7..2c54f6d1 100755 +index 3ce1fc10..c5b03fd1 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -17,7 +17,7 @@ - # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - # THE SOFTWARE. - --cmake_minimum_required(VERSION 3.16.8) -+cmake_m...
[numerics] disable hdf5 logger if not available
* limitations under the License. */ +#include "SiconosConfig.h" + #include "Newton_methods.h" #include <stdio.h> @@ -209,7 +211,12 @@ void newton_LSA(unsigned n, double *z, double *F, int *info, void* data, SolverO functions->compute_error(data, z, F, JacThetaF_merit, tol, &err); - unsigned log_hdf5 = SN_LOGLEVEL_ALL; ...
acme: comment clarification re: ports
~| [%no-next-domain idx=idx] (head (skim pending |=([turf idx=@ud ?] =(idx ^idx)))) :: XX should confirm that :turf points to us - :: confirms that domain exists + :: confirms that domain exists (and an urbit is on the standard port) :: =/ sec=? p:.^(hart:eyre %e /(scot %p our.bow)/host/(scot %da now.bow)) =/ =purl
reclaims memory on kernel resets, and every 1k events
@@ -362,7 +362,7 @@ _serf_sure(u3_noun ovo, u3_noun vir, u3_noun cor) u3_noun sac = u3_nul; - // intercept |mass + // intercept |mass, observe |reset // { u3_noun riv = vir; @@ -389,6 +389,12 @@ _serf_sure(u3_noun ovo, u3_noun vir, u3_noun cor) break; } + // reclaim memory from persistent caches on |reset + // + if ( c...
OcAppleEventLib: Reduce pointer poll frequency for compatibility At least QEMU cannot poll faster than 10 ms.
@@ -38,12 +38,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include <Library/BaseLib.h> -// POINTER_POLL_FREQUENCY -#define POINTER_POLL_FREQUENCY EFI_TIMER_PERIOD_MILLISECONDS (2) +// +// CHANGE: Apple polls with a frequency of 2 ms, however this is infeasible on +// most machine...
in_tail: fs: inotify: fix 'file' might be unreferenced (CID 304400)
@@ -213,13 +213,6 @@ static int tail_fs_event(struct flb_input_instance *ins, * read(2) operation, that might kill performance. Just let's * wait a second and do a good job. */ - if (file->offset < st.st_size) { - file->pending_bytes = (st.st_size - file->offset); - //tail_signal_pending(ctx); - } - else { - file->pend...
Remove unused variable. Thanks
@@ -339,14 +339,14 @@ static int test_bf_ecb(int n) static int test_bf_set_key(int n) { - int i, ret = 1; + int ret = 1; BF_KEY key; unsigned char out[8]; BF_set_key(&key, n+1, key_test); BF_ecb_encrypt(key_data, out, &key, BF_ENCRYPT); /* mips-sgi-irix6.5-gcc vv -mabi=64 bug workaround */ - if (!TEST_mem_eq(out, 8, &(...
kernel/os: Add helper macros to compare os_timeval
@@ -110,6 +110,19 @@ void os_time_delay(os_time_t osticks); #define OS_TIME_TICK_GT(__t1, __t2) ((os_stime_t) ((__t1) - (__t2)) > 0) #define OS_TIME_TICK_GEQ(__t1, __t2) ((os_stime_t) ((__t1) - (__t2)) >= 0) +#define OS_TIMEVAL_LT(__t1, __t2) \ + (((__t1).tv_sec < (__t2).tv_sec) || \ + (((__t1).tv_sec == (__t2).tv_sec)...
Try small tweak to nat rebinding stress.
@@ -5530,10 +5530,10 @@ int rebinding_stress_test() uint64_t server_arrival = test_ctx->c_to_s_link->last_packet->arrival_time; if (server_arrival > last_inject_time) { - /* 10% chance of packet injection, 5% chances of reusing test address */ + /* 9% chance of packet injection, 5% chances of reusing test address */ ui...
bufr_new_from_file crash
@@ -54,15 +54,17 @@ typedef struct reader { static int read_the_rest(reader* r,size_t message_length,unsigned char* tmp, int already_read, int check7777) { - int err = 0; + int err = GRIB_SUCCESS; size_t buffer_size; size_t rest; unsigned char* buffer; + if (message_length==0) + return GRIB_BUFFER_TOO_SMALL; + buffer_s...
libhfcommon: simplify long->uint32_t types in util_PinThreadToCPUs()
@@ -91,24 +91,25 @@ bool util_PinThreadToCPUs(uint32_t threadno, uint32_t cpucnt) { return true; } - long num_cpus = sysconf(_SC_NPROCESSORS_ONLN); - if (num_cpus == -1) { + long r = sysconf(_SC_NPROCESSORS_ONLN); + if (r == -1) { PLOG_W("sysconf(_SC_NPROCESSORS_ONLN) failed"); return false; } + uint32_t num_cpus = (ui...
Fix warnings in gppc for incompatible pointer type.
@@ -518,7 +518,7 @@ GppcDatumGetTimestampTz(GppcDatum x) GppcAnyTable GppcDatumGetAnyTable(GppcDatum x) { - return DatumGetPointer(x); + return (GppcAnyTable) DatumGetPointer(x); } /* @@ -527,7 +527,7 @@ GppcDatumGetAnyTable(GppcDatum x) GppcTupleDesc GppcDatumGetTupleDesc(GppcDatum x) { - return DatumGetPointer(x); + ...
Reorder metadata updating patter in WB mode In WB mode metadata should be updated only if the actuall data had been saved on disk. Otherwise metadata might be flushed too early and consequently data corruption might occur.
@@ -74,6 +74,8 @@ static int ocf_write_wb_do_flush_metadata(struct ocf_request *req) env_atomic_set(&req->req_remaining, 1); /* One core IO */ + _ocf_write_wb_update_bits(req); + if (req->info.flush_metadata) { OCF_DEBUG_RQ(req, "Flush metadata"); ocf_metadata_flush_do_asynch(cache, req, @@ -152,9 +154,6 @@ int ocf_wri...
Fix a bug in computing the fragmentation point. When using AF_CONN sockets, the fragmentation point was still accounting for an IPv4 header. This is fixed by this patch. This is related to
@@ -6747,7 +6747,15 @@ sctp_get_frag_point(struct sctp_tcb *stcb, if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_BOUND_V6) { ovh = SCTP_MIN_OVERHEAD; } else { +#if defined(__Userspace__) + if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_BOUND_CONN) { + ovh = sizeof(struct sctphdr); + } else { + ovh = SCTP_MIN_V4_OVERHEA...
tools: update esp32c2_data_info_yaml
# Data_type: -# copy from ESP32-C3 # primary_address: value # length: value or equation # secondary_address: value if exist DRAM: - primary_address: 0x3FC80000 - length: 0x60000 + primary_address: 0x3FCA0000 + length: 0x40000 secondary_address: 0x40380000 IRAM: primary_address: 0x4037C000 length: 0x4000 CACHE_I: primar...
test/recipes/90-test_store.t: Rename some functions to_rel_file_uri really treated all files appropriately, absolute and relative alike, and really just constructs a URI, so gets renamed to to_file_uri to_file_uri, on the other hand, forces the path into an absolute one, so gets renamed to to_abs_file_uri
@@ -71,31 +71,31 @@ indir "store_$$" => sub { foreach (@noexist_files) { my $file = srctop_file($_); ok(!run(app(["openssl", "storeutl", $file]))); - ok(!run(app(["openssl", "storeutl", to_file_uri($file)]))); + ok(!run(app(["openssl", "storeutl", to_abs_file_uri($file)]))); } foreach (@src_files) { my $file = srctop_f...
Fix the example SSH KDF code. A salt was being set instead of a session ID. Fixes
@@ -121,7 +121,7 @@ This example derives an 8 byte IV using SHA-256 with a 1K "key" and appropriate key, (size_t)1024); *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SSHKDF_XCGHASH, xcghash, (size_t)32); - *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SALT, + *p++ = OSSL_PARAM_construct_octet_string...
More verbose output and ignore failure for now
@@ -61,15 +61,14 @@ jobs: sudo apt install ccache ninja-build for i in ${{ runner.temp }}/arm-gcc/bin/* ; do sudo ln -s /usr/bin/ccache /usr/lib/ccache/$(basename $i); done ccache -M 1Ti - - - name: Compile - run: | export PATH=/usr/lib/ccache:${{ runner.temp }}/arm-gcc/bin/:/home/runner/.local/bin:$PATH - python tools...
test is_missing for string key
@@ -485,8 +485,10 @@ cat > $fRules <<EOF set unpack=1; transient m1 = missing(heightOfBarometerAboveMeanSeaLevel); transient m2 = missing(blockNumber); + transient m3 = missing(stationOrSiteName); assert ( m1 == 1 ); assert ( m2 == 1 ); + assert ( m3 == 1 ); EOF f="$ECCODES_SAMPLES_PATH/BUFR4.tmpl" ${tools_dir}/codes_b...
use goto to streamline failure handling
@@ -81,37 +81,38 @@ int net_socket( const char name[], const char ifname[], const int protocol, cons if( sock < 0 ) { log_err( "%s: Failed to create socket: %s", name, strerror( errno ) ); - return -1; + goto fail; } if( net_set_nonblocking( sock ) < 0 ) { - close( sock ); log_err( "%s: Failed to make socket nonblockin...
Implement one-shot cipher Implement one-shot cipher APIs, psa_cipher_encrypt and psa_cipher_decrypt, introduced in PSA Crypto API 1.0.
@@ -3483,6 +3483,107 @@ psa_status_t psa_cipher_abort( psa_cipher_operation_t *operation ) return( PSA_SUCCESS ); } +psa_status_t psa_cipher_encrypt( mbedtls_svc_key_id_t key, + psa_algorithm_t alg, + const uint8_t *input, + size_t input_length, + uint8_t *output, + size_t output_size, + size_t *output_length ) +{ + ps...
nvbios/info: Add support for GM108 (nv118)
@@ -263,6 +263,11 @@ int envy_bios_parse_bit_i (struct envy_bios *bios, struct envy_bios_bit_entry *b bios->chipset = 0x117; bios->chipset_name = "GM117"; break; + /* GM108 */ + case 0x8208: + bios->chipset = 0x118; + bios->chipset_name = "GM108"; + break; /* GM200 */ case 0x8400: bios->chipset = 0x120;
sdl/hints: fix a couple of backward-compatibility hints defined for SDL2 version
@@ -16,6 +16,8 @@ package sdl #define SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT "" #define SDL_HINT_AUDIO_INCLUDE_MONITORS "" #define SDL_HINT_AUDIO_DEVICE_STREAM_ROLE "" +#define SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS "" +#define SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED "" #endif #if !(SDL_VERSION_ATLEAST(2,0,14)) @@ -16...
Adding last test
@@ -249,7 +249,7 @@ BOOST_AUTO_TEST_CASE(test_net_builder) BOOST_REQUIRE(h_orig == h_build_loaded); // compare the original to the build without saving - //BOOST_REQUIRE(h_orig == h_build); // this seems to fail :( + BOOST_REQUIRE(h_orig == h_build); // this seems to fail :( }
sse2: fix rounding of simde_mm_cvtps_epi32 on POWER on clang Fixes
@@ -2615,14 +2615,14 @@ simde_mm_cvtps_epi32 (simde__m128 a) { r_.neon_i32 = vcvtnq_s32_f32(a_.neon_f32); #elif defined(SIMDE_ARM_NEON_A32V7_NATIVE) && defined(SIMDE_FAST_ROUND_TIES) r_.neon_i32 = vcvtnq_s32_f32(a_.neon_f32); - #elif defined(SIMDE_POWER_ALTIVEC_P6_NATIVE) + #elif defined(SIMDE_POWER_ALTIVEC_P6_NATIVE) ...
Update tasks.c An optimization for prvResetNextTaskUnblockTime().
@@ -3964,8 +3964,7 @@ TCB_t *pxTCB; the item at the head of the delayed list. This is the time at which the task at the head of the delayed list should be removed from the Blocked state. */ - ( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and...
publish: step up font size in titles
@@ -61,9 +61,9 @@ export function NotePreview(props: NotePreviewProps) { overflow='hidden' p='2' > - <WrappedBox mb={2}><Text bold fontSize='0'>{title}</Text></WrappedBox> + <WrappedBox mb={2}><Text bold>{title}</Text></WrappedBox> <WrappedBox> - <Text fontSize='14px'> + <Text fontSize='14px' lineHeight='tall'> <ReactM...
Fix Error: usbhost/usbhost_storage.c:1471:24: error: unused function 'usbhost_getle32' [-Werror,-Wunused-function]
@@ -197,7 +197,9 @@ static inline uint16_t usbhost_getle16(const uint8_t *val); static inline uint16_t usbhost_getbe16(const uint8_t *val); static inline void usbhost_putle16(uint8_t *dest, uint16_t val); static inline void usbhost_putbe16(uint8_t *dest, uint16_t val); +#if defined(CONFIG_DEBUG_USB) && defined(CONFIG_D...
enclave-tls/dist: add SGX SDK compile check in the rpm spec
@@ -34,6 +34,17 @@ enclave-tls is a protocol to establish secure and trusted channel by integrating %setup -q -n %{PROJECT}-%{version} %build +# If the SGX SDK is not prepared well in build environment, stop the build +if [ -z "$SGX_SDK" ]; then + echo 'Error: Please install SGX SDK firstly' + exit 1 +fi + +if [ "$SGX_...
Trivial: Fix Makefile typo
@@ -496,7 +496,7 @@ pkg-srpm: dist make -C extras/rpm srpm dpdk-install-dev: - $(call banner,"This command is deprecated. Please use 'make install-ext-libs'") + $(call banner,"This command is deprecated. Please use 'make install-ext-deps'") make -C build/external install-$(PKG) install-ext-deps:
<br/> from trailing \
:: (stag %text ;~(pfix bas (cook trip ;~(less ace prn)))) :: + :: trailing \ to add <br> + :: + (stag %expr (cold [[%br ~] ~] ;~(plug bas (just '\0a')))) + :: :: *bold literal* :: (stag %bold (ifix [tar tar] (cool (cash tar) work)))
Do free the http1client buffers
@@ -85,6 +85,10 @@ static void close_client(struct st_h2o_http1client_private_t *client) } if (h2o_timeout_is_linked(&client->_timeout)) h2o_timeout_unlink(&client->_timeout); + if (client->_body_buf) + h2o_buffer_dispose(&client->_body_buf); + if (client->_body_buf_in_flight) + h2o_buffer_dispose(&client->_body_buf_in...
mmiocc: fix bug when overwriting files
@@ -76,6 +76,11 @@ namespace internal_ { std::fill(dims_, dims_+DIMS_MAX, 1); } + Node(const Node&) = delete; + Node(Node&&) = delete; + Node& operator=(const Node&) = delete; + Node& operator=(Node&&) = delete; + virtual ~Node() {} virtual std::string name() const { return name_; } @@ -254,6 +259,8 @@ namespace intern...
Improved detection of local ipv4 address
@@ -244,7 +244,7 @@ int DeRestPluginPrivate::createUser(const ApiRequest &req, ApiResponse &rsp) */ void DeRestPluginPrivate::configToMap(const ApiRequest &req, QVariantMap &map) { - bool ok; + bool ok = false; QVariantMap whitelist; QVariantMap swupdate; QVariantMap devicetypes; @@ -254,50 +254,65 @@ void DeRestPlugin...
Fix too many packets in flight
@@ -999,12 +999,12 @@ int Handler::on_write() { } int Handler::on_write_stream(Stream &stream) { + if (stream.streambuf_idx == stream.streambuf.size()) { + if (stream.should_send_fin) { if (ngtcp2_conn_bytes_in_flight(conn_) >= MAX_BYTES_IN_FLIGHT) { return 0; } - if (stream.streambuf_idx == stream.streambuf.size()) { ...
Fixed error and return code.
@@ -1288,21 +1288,17 @@ static int ciphersuite_cb(const char *elem, int len, void *arg) /* Arbitrary sized temp buffer for the cipher name. Should be big enough */ char name[80]; - if (len > (int)(sizeof(name) - 1)) { - ERR_raise(ERR_LIB_SSL, SSL_R_NO_CIPHER_MATCH); - return 0; - } + if (len > (int)(sizeof(name) - 1)) ...
server: build: on Solaris link to socket and nsl
@@ -42,3 +42,7 @@ message(STATUS "LINKING ${STATIC_PLUGINS_LIBS}") if(MK_HAVE_LINUX_KQUEUE) target_link_libraries(monkey-core-static kqueue) endif() + +if (CMAKE_SYSTEM_NAME MATCHES "SunOS") + target_link_libraries(monkey-core-static socket nsl) +endif()
nix: enables debug symbols in release builds
@@ -20,7 +20,7 @@ let in env.make_derivation { - CFLAGS = if debug then "-O0 -g" else "-O3"; + CFLAGS = if debug then "-O0 -g" else "-O3 -g"; LDFLAGS = if debug then "" else "-s"; MEMORY_DEBUG = debug; CPU_DEBUG = debug;
build: fix build flags for LuaJIT
@@ -429,8 +429,8 @@ if(FLB_LUAJIT) set(LUA_PATH ${CMAKE_CURRENT_SOURCE_DIR}/lib/luajit-2.0.5) ExternalProject_Add(luajit SOURCE_DIR ${LUA_PATH} - CONFIGURE_COMMAND export "CFLAGS=-g -fPIC" #${LUA_PATH}/configure - BUILD_COMMAND make -C ${LUA_PATH} + CONFIGURE_COMMAND ${LUA_PATH}/configure + BUILD_COMMAND make BUILD_MOD...
llcstat: print a nicer error message when hardware events are missing Hardware events such as CACHE_MISSES and CACHE_REFERENCES are usually not available on virtual machine. Print a more useful message when this happen.
@@ -78,12 +78,16 @@ if args.ebpf: exit() b = BPF(text=bpf_text) +try: b.attach_perf_event( ev_type=PerfType.HARDWARE, ev_config=PerfHWConfig.CACHE_MISSES, fn_name="on_cache_miss", sample_period=args.sample_period) b.attach_perf_event( ev_type=PerfType.HARDWARE, ev_config=PerfHWConfig.CACHE_REFERENCES, fn_name="on_cache...
commander/btc: helper function to translate between results enums
#include <wally_bip32.h> // for BIP32_INITIAL_HARDENED_CHILD +static commander_error_t _result(app_btc_result_t result) +{ + switch (result) { + case APP_BTC_OK: + return COMMANDER_OK; + case APP_BTC_ERR_USER_ABORT: + return COMMANDER_ERR_USER_ABORT; + case APP_BTC_ERR_INVALID_INPUT: + return COMMANDER_ERR_INVALID_INPU...
codeowners: fix issue with non-existent user and error
/src/flb_signv4.c @pettitwesley /src/flb_lib.c @edsiper @niedbalski -@ Core: AWS Auth & Utils +# Core: AWS Auth & Utils # ------------ /src/aws @pettitwesley # Output Plugins # -------------- -/plugins/out_datadog @clamoriniere +/plugins/out_datadog @nokute78 @edsiper /plugins/out_es @pettitwesley @edsiper /plugins/out...
tests CHANGE test forvard reference via base in identity definition
@@ -372,12 +372,12 @@ test_identity(void **state) struct ly_ctx *ctx; struct lys_module *mod1, *mod2; - const char *mod1_str = "module a {namespace urn:a;prefix a; identity a1;}"; - const char *mod2_str = "module b {yang-version 1.1;namespace urn:b;prefix b; import a {prefix a;}identity b1; identity b2; identity b3 {ba...
fix: MAX_MESSAGE_LEN for bots is 2000
@@ -44,7 +44,7 @@ typedef uint64_t u64_snowflake_t; ///< snowflake datatype #define MAX_EMAIL_LEN 254 + 1 #define MAX_REGION_LEN 16 + 1 #define MAX_REASON_LEN 512 + 1 -#define MAX_MESSAGE_LEN 4000 + 1 +#define MAX_MESSAGE_LEN 2000 + 1 #define MAX_PAYLOAD_LEN 4096 + 1 /* EMBED LIMITS
Print effective NO_CHECK_IMPORTS. Note: mandatory check (NEED_CHECK) was skipped
@@ -24,6 +24,8 @@ def check_imports(no_check=(), extra=(), skip_func=None): exceptions = list(no_check) for key, _ in __res.iter_keys(b'py/no_check_imports/'): exceptions += str_(__res.find(key)).split() + exceptions.sort() + print('NO_CHECK_IMPORTS', ' '.join(exceptions)) patterns = [re.escape(s).replace(r'\*', r'.*')...
Fixing ReadLine() for multi characters
@@ -129,6 +129,7 @@ bool Library_sys_io_ser_native_System_IO_Ports_SerialPort::GetLineFromRxBuffer( if (newLineIndex == 0) { // found and nothing else to compare + index++; break; } else @@ -168,16 +169,16 @@ bool Library_sys_io_ser_native_System_IO_Ports_SerialPort::GetLineFromRxBuffer( { // allocate memory for the st...
Free string after usage
@@ -205,7 +205,6 @@ static bool joinListItem(VM *vm, int argCount) { if (!IS_STRING(list->values.values[list->values.count - 1])) { free(output); } - free(fullString); pop(vm); if (argCount == 2) { @@ -214,6 +213,8 @@ static bool joinListItem(VM *vm, int argCount) { push(vm, OBJ_VAL(copyString(vm, fullString, index)));...
GPload: change metadata query SQL to improvement performance GPload: change metadata query SQL to improvement performance Old query SQL may take long time if catalog is large.
@@ -1928,8 +1928,8 @@ class gpload: WHERE d.adrelid = a.attrelid AND d.adnum = a.attnum AND a.atthasdef) as has_sequence from pg_catalog.pg_class c join pg_catalog.pg_namespace nt on (c.relnamespace = nt.oid) join pg_attribute a on (a.attrelid = c.oid) - where c.relname = '%s' and nt.nspname = '%s' - and a.attnum > 0 a...
Enable alerts when KPH blocked by third parties
@@ -45,7 +45,7 @@ VOID PhAddDefaultSettings( PhpAddIntegerSetting(L"EnableCycleCpuUsage", L"1"); PhpAddIntegerSetting(L"EnableInstantTooltips", L"0"); PhpAddIntegerSetting(L"EnableKph", L"0"); - PhpAddIntegerSetting(L"EnableKphWarnings", L"0"); + PhpAddIntegerSetting(L"EnableKphWarnings", L"1"); PhpAddIntegerSetting(L"...
Increase timeout for qmcpack build in run_test_suite.sh.
#!/bin/bash #-------------------------------------- +# WARNING: Intended for developers to use with AOMP standalone Git Hub releases. +# # run_test_suite.sh # Available Options: # --Groups-- @@ -296,7 +298,7 @@ function qmcpack(){ header QMCPACK cd $AOMP_SRC/bin echo "Log file at: $log_dir/qmcpack.log" - timeout --fore...
spwaterfall/example: trivial edits to example (typos, re-org)
@@ -15,10 +15,6 @@ int main() unsigned int time = 250; // minimum time buffer unsigned int num_samples = 20e6; // number of samples - // create time-varying multi-path channel object - unsigned int buf_len = 64; - float complex buf[buf_len]; - // create spectral waterfall object spwaterfallcf periodogram = spwaterfallc...
MSR: Use `sh` compatible code to check last char
@@ -95,12 +95,14 @@ translate() then [ -n "$COMMAND" ] && writeBlock "$TMPFILE" COMMAND=$(printf '%s' "$line" | grep -Eo '[^ \t].*') - [ "${line: -1}" == '\' ] && COMMAND=$(printf '%s' "$COMMAND" | sed 's/.$//') - while [ "${line: -1}" == '\' ]; + printf '%s' "$line" | egrep -q '\\$' && COMMAND=$(printf '%s' "$COMMAND"...
lib/pty.c: remove reference to stropts.h very obscure header file generally unsupported closes
@@ -60,10 +60,6 @@ _gftp_ptys_open (int fdm, int fds, char *pts_name) #elif HAVE_GRANTPT -#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(__linux__) || defined(__GNU__)) -#include <stropts.h> -#endif - char * gftp_get_pty_impl (void) {
balloon: Fix INF verification errors The INF verification test in Win10 HLK 1703 started treating some of the verification warnings as errors: Section [destinationdirs] is defined multiple times Section [sourcedisksfiles] is defined multiple times. This commit fixes it by merging the sections into one.
@@ -27,12 +27,14 @@ PnpLockdown = 1 [DestinationDirs] DefaultDestDir = 12 +BALLOON_Device_CoInstaller_CopyFiles = 11 [SourceDisksNames] 1 = %DiskId1%,,,"" [SourceDisksFiles] balloon.sys = 1,, +WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1 ; make sure the number matches with SourceDisksNames ;****************************...
Fix alignment of custom event editor header
@@ -65,7 +65,6 @@ class CustomEventEditor extends Component { return ( <Sidebar onMouseDown={selectSidebar}> <SidebarColumn> - <div> <SidebarHeading title={l10n("CUSTOM_EVENT")} buttons={ @@ -81,6 +80,7 @@ class CustomEventEditor extends Component { </DropdownButton> } /> + <div> <FormField> <label htmlFor="customEvent...
add TravisCI badge although it is not valid yet
# mruby/c +[![Build Status](https://travis-ci.com/mrubyc/mrubyc.svg?branch=master)](https://travis-ci.com/mrubyc/mrubyc) + [![Join the chat at https://gitter.im/mrubyc/mrubyc](https://badges.gitter.im/mrubyc/mrubyc.svg)](https://gitter.im/mrubyc/mrubyc?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content...
Explicit dependency linking allows users to hardcode dependencies when required, rather than using host dependencies
@@ -71,3 +71,11 @@ endif () set(CELIX_BUNDLES_DIR ${REL_INSTALL_DIR}/share/celix/bundles) set(CELIX_SHELL_BUNDLE ${CELIX_BUNDLES_DIR}/shell.zip) set(CELIX_SHELL_TUI_BUNDLE ${CELIX_BUNDLES_DIR}/shell_tui.zip) + +include(CMakeFindDependencyMacro) +find_dependency(ZLIB) +find_dependency(UUID) +find_dependency(OpenSSL) +fi...
Add Xiaomi vibration sensor sensitivy attributes on creation
@@ -4170,6 +4170,16 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const SensorFi sensorNode.addItem(DataTypeInt16, RConfigTemperature); //sensorNode.addItem(DataTypeInt16, RConfigOffset); } + + if (sensorNode.modelId() == QLatin1String("lumi.vibration.aq1")) + { + // low: 0x15, medium: 0x0B, high...
sm2: fix error raise to not fail make update
@@ -313,7 +313,7 @@ int ossl_sm2_decrypt(const EC_KEY *key, C3 = sm2_ctext->C3->data; msg_len = sm2_ctext->C2->length; if (*ptext_len < (size_t)msg_len) { - SM2err(SM2_F_SM2_DECRYPT, SM2_R_BUFFER_TOO_SMALL); + ERR_raise(ERR_LIB_SM2, SM2_R_BUFFER_TOO_SMALL); goto done; }
artik053/nettest: enable netdb dns client This commit is to enable netdb dns client configuration - to fully support netdb library, dns client is needed
@@ -957,7 +957,14 @@ CONFIG_MEMCPY_INDEXED_COPY=y # CONFIG_ARCH_BZERO is not set CONFIG_LIBC_NETDB=y # CONFIG_NETDB_HOSTFILE is not set -# CONFIG_NETDB_DNSCLIENT is not set +CONFIG_NETDB_DNSCLIENT=y +CONFIG_NETDB_DNSCLIENT_ENTRIES=8 +CONFIG_NETDB_DNSCLIENT_NAMESIZE=32 +CONFIG_NETDB_DNSCLIENT_LIFESEC=3600 +CONFIG_NETDB_...
Have "wuffs gen" skip duplicate packages
@@ -69,9 +69,17 @@ type genHelper struct { wuffsRoot string langs []string affected []string + seen map[string]struct{} } func (h *genHelper) gen(dirname string, recursive bool) error { + if h.seen == nil { + h.seen = map[string]struct{}{} + } else if _, ok := h.seen[dirname]; ok { + return nil + } + h.seen[dirname] = ...
porting/riot: add MYNEWT_VAL_BLE_L2CAP_COC_MTU
#define MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM (0) #endif +#ifndef MYNEWT_VAL_BLE_L2CAP_COC_MTU +#define MYNEWT_VAL_BLE_L2CAP_COC_MTU (MYNEWT_VAL_MSYS_1_BLOCK_SIZE - 8) +#endif + #ifndef MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS #define MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS (1) #endif
JNA: Disable binding if `BUILD_SHARED` is off
@@ -12,6 +12,12 @@ if (Java_JAVAC_EXECUTABLE) # as 9.x.x > 1.8 and 1.8.x > 1.8 and 1.9.x > 1.8 # ~~~ if ((${Java_VERSION} VERSION_GREATER "1.8.0") OR (${Java_VERSION} VERSION_EQUAL "1.8.0")) + if (NOT BUILD_SHARED) + # See also: https://travis-ci.org/sanssecours/elektra/jobs/445840045 + exclude_binding (jna "it can onl...
simplify sidebar menu
@@ -884,12 +884,12 @@ div#block-views-diagram-of-usage-block-diagram ul { border-left: 0; } /* line 45, ../scss/modules/docs/_base.scss */ -.page-documentation .docs-menu .toctree-l1 > a.reference.internal::before { +/*.page-documentation .docs-menu .toctree-l1 > a.reference.internal::before { position: absolute; conte...
Fix Linux port Valgrind errors Fix Valgrind uninitialized variables warning.
@@ -280,10 +280,14 @@ struct sigaction sigtick; * up running on the main thread when it is resumed. */ itimer.it_value.tv_sec = 0; itimer.it_value.tv_usec = 0; + + itimer.it_interval.tv_sec = 0; + itimer.it_interval.tv_usec = 0; (void)setitimer( ITIMER_REAL, &itimer, NULL ); sigtick.sa_flags = 0; sigtick.sa_handler = S...
Clean up Gameshell section It's the same as RPI2, without the extra RPI definitions. ;-) (We can use ASM flags too.)
@@ -36,7 +36,8 @@ endif() # Gameshell if(GAMESHELL) - add_definitions(-mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -marm) + add_definitions(-marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard) + set(CMAKE_ASM_FLAGS "-marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard") set(ARM_DYNAREC ON) set(LD80BITS OFF)...
Give a better name for struct member
@@ -105,7 +105,7 @@ typedef struct { uint8_t MBEDTLS_PRIVATE(iv_length); uint8_t MBEDTLS_PRIVATE(block_length); union { - unsigned int MBEDTLS_PRIVATE(initialised); + unsigned int MBEDTLS_PRIVATE(dummy); mbedtls_cipher_context_t MBEDTLS_PRIVATE(cipher); } MBEDTLS_PRIVATE(ctx); } mbedtls_psa_cipher_operation_t;
Clarify some comments in vacuumlazy.c Author: Justin Pryzby Discussion:
@@ -1507,8 +1507,8 @@ lazy_scan_heap(Relation onerel, VacuumParams *params, LVRelStats *vacrelstats, /* * It should never be the case that the visibility map page is set * while the page-level bit is clear, but the reverse is allowed - * (if checksums are not enabled). Regardless, set the both bits - * so that we get b...