message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
add float & cat features count methods to cpp wrapper | @@ -206,6 +206,14 @@ public:
return GetTreeCount(CalcerHolder.get());
}
+ size_t GetFloatFeaturesCount() const {
+ return GetFloatFeaturesCount(CalcerHolder.get());
+ }
+
+ size_t GetCatFeaturesCount() const {
+ return GetCatFeaturesCount(CalcerHolder.get());
+ }
+
bool CheckMetadataHasKey(const std::string& key) {
ret... |
esp32/mphalport: Provide proper implementations of disable_/enable_irq. | #ifndef INCLUDED_MPHALPORT_H
#define INCLUDED_MPHALPORT_H
+#include "freertos/FreeRTOS.h"
#include "py/ringbuf.h"
#include "lib/utils/interrupt_char.h"
extern ringbuf_t stdin_ringbuf;
-// TODO implement me
-#define disable_irq() 0
-#define enable_irq(irq_state) (void)(irq_state)
+// Note: these "critical nested" macros... |
Fix stackoverflow due to recursion in vfs_spiffs_readdir_r | @@ -629,6 +629,9 @@ static int vfs_spiffs_readdir_r(void* ctx, DIR* pdir, struct dirent* entry,
esp_spiffs_t * efs = (esp_spiffs_t *)ctx;
vfs_spiffs_dir_t * dir = (vfs_spiffs_dir_t *)pdir;
struct spiffs_dirent out;
+ size_t plen;
+ char * item_name;
+ do {
if (SPIFFS_readdir(&dir->d, &out) == 0) {
errno = spiffs_res_to... |
XML data parser CHANGE support for RPC_REPLY data tree | @@ -436,10 +436,22 @@ lyd_parse_xml(struct ly_ctx *ctx, const char *data, int options, const struct ly
}
if (options & LYD_OPT_RPCREPLY) {
- /* TODO prepare container for RPC reply, for which we need RPC
+ /* prepare container for RPC reply, for which we need RPC
* - prepare *result as top-level node
* - prepare parent... |
give recommendation if SIOCSIWMODE failed | @@ -7132,6 +7132,7 @@ if((iwr_old.u.mode & IW_MODE_MONITOR) != IW_MODE_MONITOR)
if(ioctl(fd_socket, SIOCSIWMODE, &iwr) < 0)
{
perror("failed to set monitor mode, ioctl(SIOCSIWMODE) not supported by driver");
+ fprintf(stderr, "try to use iw to set monitor mode and ip link to set interface up\n");
if(forceinterfaceflag ... |
tpm_i2c_nuvoton: fix use-after-free in tpm_register_chip failure path | @@ -573,8 +573,10 @@ void tpm_i2c_nuvoton_probe(void)
goto disable;
}
if (tpm_register_chip(node, tpm_device,
- &tpm_i2c_nuvoton_driver))
+ &tpm_i2c_nuvoton_driver)) {
free(tpm_device);
+ continue;
+ }
bus = i2c_find_bus_by_id(tpm_device->bus_id);
assert(bus->check_quirk == NULL);
bus->check_quirk = nuvoton_tpm_quirk;
|
Error if shader push constants are too big; | @@ -1714,6 +1714,8 @@ Shader* lovrShaderCreate(const ShaderInfo* info) {
lovrAssert(shader->constants && shader->resources && shader->attributes, "Out of memory");
lovrAssert(shader->flags && shader->flagLookup, "Out of memory");
+ lovrCheck(shader->constantSize <= state.limits.pushConstantSize, "Shader push constants ... |
[cmake] SiconosVersion: 4.2.0 | # --- set siconos current version ---
# This file is also required for examples.
set(MAJOR_VERSION 4)
-set(MINOR_VERSION 1)
+set(MINOR_VERSION 2)
set(PATCH_VERSION 0)
set(SICONOS_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
|
docs - COPY command supports FORCE_NULL | @@ -28,6 +28,7 @@ QUOTE '<varname>quote_character</varname>'
ESCAPE '<varname>escape_character</varname>'
FORCE_QUOTE { ( <varname>column_name</varname> [, ...] ) | * }
FORCE_NOT_NULL ( <varname>column_name</varname> [, ...] )
+FORCE_NULL ( <varname>column_name</varname> [, ...] )
ENCODING '<varname>encoding_name</varn... |
travis: remove -s SIMD=1 from emscripten options
For details See emscripten issue and commit | @@ -261,7 +261,7 @@ jobs:
- BUILD_WRAPPER=emmake
- EXECUTABLE_EXTENSION=.js
- TEST_WRAPPER="${HOME}/.jsvu/v8 --experimental-wasm-simd"
- - OPTIMIZATION_FLAGS="-O3 -s SIMD=1"
+ - OPTIMIZATION_FLAGS="-O3"
addons:
apt:
packages:
|
api: make all page handlers static | @@ -847,7 +847,7 @@ static void copy_to_response_buf(uint8_t *to_buf, size_t to_len,
memcpy(to_buf, from_buf, to_len > from_len ? from_len : to_len);
}
-int handle_rwrecovery_page(struct tcmu_device *dev, uint8_t *ret_buf,
+static int handle_rwrecovery_page(struct tcmu_device *dev, uint8_t *ret_buf,
size_t ret_buf_len)... |
travis: Build stm32 mboot for PYBD_SF6 as part of CI. | @@ -39,6 +39,7 @@ jobs:
- make ${MAKEOPTS} -C ports/stm32 BOARD=PYBD_SF2
- make ${MAKEOPTS} -C ports/stm32 BOARD=STM32F769DISC
- make ${MAKEOPTS} -C ports/stm32 BOARD=STM32L476DISC
+ - make ${MAKEOPTS} -C ports/stm32/mboot BOARD=PYBD_SF6
# qemu-arm port
- stage: test
|
tests: runtime: filter_kubernetes: add new lines on error debugging | @@ -157,8 +157,8 @@ static int cb_check_result(void *record, size_t size, void *data)
if (!check) {
fprintf(stderr, "Validator mismatch::\n"
"Target: <<%s>>, Suffix: <<%s>\n"
- "Filtered record: <<%s>>\n"
- "Expected record: <<%s>>\n",
+ "Filtered record: <<\n%s\n>>\n"
+ "Expected record: <<\n%s\n>>\n",
result->target,... |
publish: clarify stack trace in +on-agent | =/ rid=resource
(de-path:resource t.wire)
?. ?=(%watch-ack -.sign)
+ ~| "Expected error, please ignore"
(on-agent:def wire sign)
?~ p.sign
:: if watch acked successfully, then host has completed OTA, and
|
hslua-module-text: bump version to hslua-module-text-1.0.3 | cabal-version: 2.2
name: hslua-module-text
-version: 1.0.2
+version: 1.0.3
synopsis: Lua module for text
description: UTF-8 aware subset of Lua's `string` module.
.
|
zephyr/include/emul/emul_bmi.h: Format with clang-format
BRANCH=none
TEST=none | @@ -400,9 +400,8 @@ uint16_t bmi_emul_fifo_len(struct i2c_emul *emul, bool tag_time, bool header);
*
* @return FIFO data byte
*/
-uint8_t bmi_emul_get_fifo_data(struct i2c_emul *emul, int byte,
- bool tag_time, bool header, int acc_shift,
- int gyr_shift);
+uint8_t bmi_emul_get_fifo_data(struct i2c_emul *emul, int byte... |
Include chosen version in client's other list. | @@ -297,6 +297,10 @@ uint8_t* picoquic_encode_transport_param_version_negotiation(uint8_t* bytes, uin
if (cnx->desired_version != 0 && cnx->desired_version != picoquic_supported_versions[cnx->version_index].version) {
bytes = picoquic_frames_uint32_encode(bytes, bytes_max, cnx->desired_version);
}
+ if (bytes != NULL) ... |
Update OfflineStorage_SQLite.cpp | @@ -746,6 +746,13 @@ namespace ARIASDK_NS_BEGIN {
"SELECT tenant_token FROM " TABLE_NAME_EVENTS " ORDER BY persistence ASC, timestamp ASC LIMIT MAX(1,"
"(SELECT COUNT(record_id) FROM " TABLE_NAME_EVENTS ")"
"* ? / 100)");
+ PREPARE_SQL(m_stmtTrimEvents_percent,
+ "DELETE FROM " TABLE_NAME_EVENTS " WHERE record_id IN ("... |
record the original asn. | @@ -63,10 +63,14 @@ else:
if mote not in mote_counter_asn_cellusage.keys():
mote_counter_asn_cellusage[mote] = {}
mote_counter_asn_cellusage[mote]['counter'] = []
+ mote_counter_asn_cellusage[mote]['arriveTime'] = []
+ mote_counter_asn_cellusage[mote]['asnBytes'] = []
mote_counter_asn_cellusage[mote]['latency'] = []
mo... |
Adjusted URL to match 11.7-0 version in package.py, added comments. | @@ -12,9 +12,10 @@ class Aomp(MakefilePackage):
""" llvm openmp compiler from AMD"""
homepage = "https://github.com/ROCm-Developer-Tools/aomp"
- url = "https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_0.7-5/aomp-0.7-5.tar.gz"
+ url = "https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_... |
sys/log/stub: Remove unneeded cbmem dep | #include "log/log.h"
#include "fcb/fcb.h"
-#include "cbmem/cbmem.h"
#ifdef __cplusplus
extern "C" {
#endif
+struct cbmem;
typedef int (* log_fcb_slot1_reinit_fcb_fn) (struct fcb_log *arg);
struct log_fcb_slot1 {
|
Use OMP_ADAPTIVE setting to choose between static and dynamic OMP threadpool size | @@ -403,6 +403,7 @@ int exec_blas(BLASLONG num, blas_queue_t *queue){
break;
}
+if (openblas_omp_adaptive_env() != 0) {
#pragma omp parallel for num_threads(num) schedule(OMP_SCHED)
for (i = 0; i < num; i ++) {
@@ -412,6 +413,17 @@ int exec_blas(BLASLONG num, blas_queue_t *queue){
exec_threads(&queue[i], buf_index);
}
... |
fix: make purge deletes library dir | @@ -98,8 +98,7 @@ install : all
install -m 644 libdiscord.h $(PREFIX)/include/
clean :
- rm -rf $(OBJDIR) $(LIBDIR) \
- *.exe test/*.exe bots/*.exe
+ rm -rf $(OBJDIR) *.exe test/*.exe bots/*.exe
purge : clean
rm -rf $(LIBDIR)
|
capp: Add lid definitions for P9 DD-2.0 & DD-2.1
Update fsp_lid_map to include CAPP ucode lids for phb4-chipid ==
0x200d1 and phb4-chipid == 0x201d1 that corresponds to P9 DD-2.0 &
DD-2.1 chips respectively. | @@ -2357,6 +2357,8 @@ int fsp_fetch_data_queue(uint8_t flags, uint16_t id, uint32_t sub_id,
#define CAPP_IDX_MURANO_DD21 0x201ef
#define CAPP_IDX_NAPLES_DD10 0x100d3
#define CAPP_IDX_NIMBUS_DD10 0x100d1
+#define CAPP_IDX_NIMBUS_DD20 0x200d1
+#define CAPP_IDX_NIMBUS_DD21 0x201d1
static struct {
enum resource_id id;
@@ -... |
update sensor tooltip
add tooltip for sensor | @@ -543,7 +543,7 @@ Blockly.Blocks['sensor_bmp'] = {
]), "key");
this.setOutput(true, Number);
this.setInputsInline(true);
- this.setTooltip(Blockly.MIXLY_MICROBIT_Board_temperature);
+ //this.setTooltip(Blockly.MIXLY_MICROBIT_SENSOR_BMP_temperature_TOOLTIP);
}
};
@@ -560,6 +560,7 @@ Blockly.Blocks['sensor_sht'] = {
])... |
options/ansi: Impl. getc() and related functions | @@ -378,13 +378,20 @@ int fputs(const char *__restrict string, FILE *__restrict stream) {
return fputs_unlocked(string, stream);
}
+int getc_unlocked(FILE *stream) {
+ return fgetc_unlocked(stream);
+}
+
int getc(FILE *stream) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
+ return fgetc(stream);
+}
+
+in... |
[components / drivers]fixed re-include of audio | /**
* Pipe Device
*/
-#include <rtthread.h>
#include <rtdevice.h>
#ifndef RT_PIPE_BUFSZ
@@ -71,6 +70,6 @@ rt_err_t rt_audio_pipe_detach(struct rt_audio_pipe *pipe);
#ifdef RT_USING_HEAP
rt_err_t rt_audio_pipe_create(const char *name, rt_int32_t flag, rt_size_t size);
void rt_audio_pipe_destroy(struct rt_audio_pipe *pip... |
misc: refine upgrade script
There is some issue when use upgrade to update some old xml version to
release_3.1, this patch modify the upgrade script to fix these issue. | @@ -316,6 +316,7 @@ class VirtioDevices(object):
interface_name = network.xpath("./interface_name")[0].text if network.xpath("./interface_name") else None
self.networks.append((virtio_framework, interface_name))
+ if len(virtio_device_node.xpath("./input")) > 0:
if virtio_device_node.xpath("./input")[0].text is not Non... |
Test XML_ParserReset in external entity parsing is ignored | @@ -1592,6 +1592,59 @@ START_TEST(test_reset_in_entity)
}
END_TEST
+/* Test resetting a subordinate parser does exactly nothing */
+static int XMLCALL
+external_entity_resetter(XML_Parser parser,
+ const XML_Char *context,
+ const XML_Char *UNUSED_P(base),
+ const XML_Char *UNUSED_P(systemId),
+ const XML_Char *UNUSED_... |
OpenCore: Add boot picker | @@ -22,6 +22,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/DebugLib.h>
#include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h>
+#include <Library/OcBootManagementLib.h>
#include <Library/OcDevicePathLib.h>
#include <Library/OcStorageLib.h>
#incl... |
Added documentation to the makefile on customization | @@ -65,6 +65,33 @@ Configuration Variables:
BUILD_PKG_VQUAL ${BUILD_PKG_VQUAL}
CFILE $(CFILE)
+Customization:
+
+ There are two main ways that the behavior of this makefile can be customized,
+ (1) pointing the build to an mpool tree that is not installed, and (2) adding
+ custom targets. The latter is primarily useful... |
Add compile errors to cast failure output. | |^ ^- build-receipt
:: load all marks.
::
- =^ maybe-load-marks-result out
+ =^ marks-result out
(load-marks-reachable-from [[%grow source] [%grab target] ~])
- ?~ maybe-load-marks-result
+ ?~ -.marks-result
out
:: find a path through the graph
::
:: Make a list of individual mark translation actions which will
:: take... |
fix(template) update indev template for v8
A few APIs were missed in the last attempt.
Fixes | @@ -39,7 +39,7 @@ static void keypad_read(lv_indev_drv_t * indev_drv, lv_indev_data_t * data);
static uint32_t keypad_get_key(void);
static void encoder_init(void);
-static bool encoder_read(lv_indev_drv_t * indev_drv, lv_indev_data_t * data);
+static void encoder_read(lv_indev_drv_t * indev_drv, lv_indev_data_t * data... |
Remove duplicate SRCS
Note: mandatory check (NEED_CHECK) was skipped | @@ -12,7 +12,6 @@ SRCS(
GLOBAL pfound_f.cpp
GLOBAL pair_logit_pairwise.cpp
GLOBAL multiclass.cpp
- GLOBAL pointwise_region.cpp
GLOBAL multiclass_region.cpp
GLOBAL querywise_region.cpp
GLOBAL pointwise_non_symmetric.cpp
|
Edited changes.xml for the 1.25.0 release. | @@ -57,14 +57,14 @@ application restart control.
<change type="feature">
<para>
-client IP address replacement from specified HTTP header field.
+client IP address replacement from a specified HTTP header field.
</para>
</change>
<change type="bugfix">
<para>
-TLS connection was rejected for configuration with more tha... |
[SATA] Search for free command slots | @@ -275,11 +275,23 @@ impl AhciPortDescription {
this
}
- fn send_command(&mut self) {
- let command_header0 = &mut self.command_list[0];
- let mut active_command = ActiveCommand::new(0, CommandOpcode::IdentifyDevice);
- println!("Got active command");
- command_header0
+ fn find_free_command_slot(&self) -> usize {
+ f... |
count probes provied by h2o or quicly | @@ -869,7 +869,9 @@ if sys.argv[1] == "quic":
# provider h2o:
u.enable_probe(probe="send_response_header", fn_name="trace_h2o__send_response_header")
- cflags = ["-DMAX_EVENT_TYPE_LEN=%s" % (1+max(map(lambda probe: len("%s__%s" % (probe.provider, probe.name)), u.enumerate_probes())))]
+ probes = filter(lambda probe: pr... |
add comments to the converter. | @@ -42,6 +42,11 @@ to return the board's description.
// 1) 255 is the maxium value can be divided.
// 2) on FPGA, 20MHz clock can't be slow down.
+// NOTE:
+// This convert has a problem that when multiple the value, it may exceeds
+// 0xffffffff, resulting a wrong converting. Resolve this problem when the
+// frequen... |
prefer user's path | -#!/bin/sh
+#!/bin/bash
# xmake getter
# usage: bash <(curl -s <my location>) [branch]
@@ -7,7 +7,26 @@ branch=
if [ x != x$1 ];then branch="-b $1";fi
git clone --depth=1 $branch https://github.com/tboox/xmake.git /tmp/$$xmake_getter || exit $?
make -C /tmp/$$xmake_getter --no-print-directory build || exit $?
-if [ 0 -... |
Mention current data privacy regulations | @@ -159,6 +159,15 @@ We use a lot of automated security testing, i.e. static code analysers, fuzzing
If you believe that you've found a security-related issue, please drop us an email to [dev@cossacklabs.com](mailto:dev@cossacklabs.com). Bug bounty program may apply.
+# GDPR, HIPAA, CCPA
+
+As a cryptographic services ... |
initializing seems to have fixed it | @@ -50,9 +50,9 @@ Discord_public_load_message(void *p_message, char *str, size_t len)
{
discord_message_t *message = p_message;
- struct json_token token_author;
- struct json_token token_mentions;
- struct json_token token_referenced_message;
+ struct json_token token_author = {NULL, 0};
+ struct json_token token_ment... |
yin parser CHANGE add name2nsname function | @@ -2846,6 +2846,19 @@ yin_check_relative_order(struct yin_parser_ctx *ctx, enum ly_stmt kw, enum ly_st
return LY_SUCCESS;
}
+char *
+name2nsname(struct yin_parser_ctx *ctx, const char *name, size_t name_len, const char *prefix, size_t prefix_len)
+{
+ const struct lyxml_ns *ns = lyxml_ns_get(&ctx->xml_ctx, prefix, pre... |
Fix CMakes for ST Cube packages
Improvements in CMake syntax.
Include path to CMSIS. | #
# set include directories
-list(APPEND STM32H7_CubePackage_INCLUDE_DIRS "${CMAKE_BINARY_DIR}/STM32H7_CubePackage_Source/Drivers/STM32H7xx_HAL_Driver/Inc")
+list(APPEND STM32H7_CubePackage_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/STM32H7_CubePackage_Source/Drivers/CMSIS/Device/ST/STM32H7xx/Include)
+list(APPEND STM32H7_CubePa... |
Fix curly braces on util/mkrc.pl | @@ -26,9 +26,13 @@ while (<FD>) {
$v4 = ( $ver >> 4 ) & 0xff;
$beta = $ver & 0xf;
$version = "$v1.$v2.$v3";
- if ( $beta == 0xf ) { $version .= chr( ord('a') + $v4 - 1 ) if ($v4); }
- elsif ( $beta == 0 ) { $version .= "-dev"; }
- else { $version .= "-beta$beta"; }
+ if ( $beta == 0xf ) {
+ $version .= chr( ord('a') + ... |
Tests: Added tests for variables in "location". | @@ -161,6 +161,23 @@ Connection: close
), 'location method not allowed'
assert self.get()['headers']['Location'] == 'blah'
+ assert 'success' in self.conf(
+ '"https://${host}${uri}"', 'routes/0/action/location'
+ ), 'location with variables'
+ assert self.get()['headers']['Location'] == 'https://localhost/'
+
+ assert... |
roller: return cryptoSuite in point as json string | :- 'keys'
%- pairs
:~ ['life' s+(json-number life.keys.net)]
- ['suite' s+(json-number suite.keys.net)]
+ ['suite' s+`@t`suite.keys.net]
['auth' (hex 32 auth.keys.net)]
['crypt' (hex 32 crypt.keys.net)]
==
|
fix compiler warning: pointer should be 'char *' instread of 'void *' | @@ -756,7 +756,7 @@ static void proceed_pull(struct st_h2o_http1_conn_t *conn, size_t nfilled)
bufs[bufcnt++] = h2o_iovec_init(conn->_ostr_final.pull.buf, nfilled);
if (nfilled < MAX_PULL_BUF_SZ) {
- h2o_iovec_t cbuf = {conn->_ostr_final.pull.buf + nfilled, MAX_PULL_BUF_SZ - nfilled};
+ h2o_iovec_t cbuf = {(char *)conn... |
Core(M): Describe scatter file templates.
* Core(M): Describe scatter file templates.
* Core(M): Describe scatter file templates.
review changes. | @@ -194,6 +194,7 @@ The template files contain place holders:
The device configuration of the template files is described in detail on the following pages:
- \subpage startup_c_pg
- \subpage startup_s_pg (deprecated)
+ - \subpage linker_sct_pg
- \subpage system_c_pg
- \subpage device_h_pg
\if ARMv8M
@@ -377,6 +378,71 @... |
Add real support for building 2.0 reference | @@ -246,17 +246,24 @@ def get_encoder_params(encoderName, imageSet):
class, the output data name, the output result directory, and the
reference to use.
"""
- if encoderName == "1.7":
+ if encoderName == "ref-1.7":
encoder = te.Encoder1x()
name = "reference-1.7"
outDir = "Test/Images/%s" % imageSet
refName = None
- eli... |
tls1_3:skip handshake msg test with PSA_CRYPTO
tls1_3 hasn't implemented PSA version get transcript | @@ -8675,6 +8675,7 @@ run_test "TLS1.3: handshake dispatch test: tls1_3 only" \
requires_openssl_tls1_3
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL
+requires_config_disabled MBEDTLS_USE_PSA_CRYPTO
run_test "TLS1.3: Test client hello msg work - openssl" \
"$O_NEXT_SRV -tls1_3 -msg" \
"$P_CLI debug_leve... |
ux: default terminal sets correct theme onload
also, increase size of Tab click target | @@ -13,6 +13,7 @@ import React from 'react';
import { Box, Col } from '@tlon/indigo-react';
import { makeTheme } from './lib/theme';
import { showBlit, csi } from './lib/blit';
+import { DEFAULT_SESSION } from './constants';
const termConfig: ITerminalOptions = {
logLevel: 'warn',
@@ -146,7 +147,7 @@ export default fun... |
Fluent interface for SetIndentSpaces and SetWriteNanAsString. | @@ -72,15 +72,17 @@ namespace NJsonWriter {
/*** Indent the resulting JSON with spaces.
* By default (spaces==0) no formatting is done. */
- void SetIndentSpaces(int spaces) {
+ TBuf& SetIndentSpaces(int spaces) {
IndentSpaces = spaces;
+ return *this;
}
/*** NaN and Inf are not valid json values,
* so if WriteNanAsStr... |
Add debug macro for the UseColorHandleProtected setting | @@ -120,6 +120,14 @@ NTSTATUS PhOpenProcess(
clientId.UniqueProcess = ProcessId;
clientId.UniqueThread = NULL;
+#ifdef _DEBUG
+ if (ProcessId == NtCurrentProcessId())
+ {
+ *ProcessHandle = NtCurrentProcess();
+ return STATUS_SUCCESS;
+ }
+#endif
+
if (KphIsVerified() && (DesiredAccess & KPH_PROCESS_READ_ACCESS) == Des... |
CMake: Link libm to test binaries if available.
If libm is available link it to test binaries which will otherwise
fail to compile. Tested on FreeBSD 13-STABLE. | add_executable(vorbis_test util.c util.h write_read.c write_read.h test.c)
-target_link_libraries(vorbis_test PRIVATE Vorbis::vorbisenc)
+target_link_libraries(vorbis_test PRIVATE Vorbis::vorbisenc $<$<BOOL:${HAVE_LIBM}>:m>)
add_test(NAME vorbis_test COMMAND vorbis_test)
|
OcAppleKernelImageLib: Fix _kmod_info stab handling | @@ -108,6 +108,7 @@ PrelinkedFindKmodAddress (
return 0;
}
+ if ((Symbol->Type & MACH_N_TYPE_STAB) == 0) {
SymbolName = MachoGetSymbolName64 (ExecutableContext, Symbol);
if (SymbolName && AsciiStrCmp (SymbolName, "_kmod_info") == 0) {
if (!MachoIsSymbolValueInRange64 (ExecutableContext, Symbol)) {
@@ -115,6 +116,7 @@ P... |
Remove duplicate fabsf | @@ -2745,6 +2745,7 @@ VOID PhCustomDrawTreeTimeLine(
RECT rect = CellRect;
RECT borderRect = CellRect;
FLOAT percent = 0;
+ FLOAT percentabs = 0;
LARGE_INTEGER systemTime;
LARGE_INTEGER startTime;
LARGE_INTEGER createTime;
@@ -2795,13 +2796,14 @@ VOID PhCustomDrawTreeTimeLine(
// Note: Time is 8 bytes, Float is 4 bytes... |
NetKVM: TX: Kick ring when full | @@ -510,9 +510,10 @@ bool CParaNdisTX::SendMapped(bool IsInterrupt, CRawCNBLList& toWaitingList)
{
bool SentOutSomeBuffers = false;
bool bRestartStatus = false;
+ bool HaveBuffers = true;
+
if(ParaNdis_IsSendPossible(m_Context))
{
- auto HaveBuffers = true;
while (HaveBuffers && HaveMappedNBLs())
{
@@ -575,7 +576,7 @@ ... |
add String#empty? method. | @@ -612,6 +612,15 @@ static void c_string_dup(struct VM *vm, mrbc_value v[], int argc)
}
+//================================================================
+/*! (method) empty?
+*/
+static void c_string_empty(struct VM *vm, mrbc_value v[], int argc)
+{
+ SET_BOOL_RETURN( !mrbc_string_size( &v[0] ));
+}
+
+
//=========... |
Add copyright header to pyopae/opae.cpp | +// Copyright(c) 2017-2018, Intel Corporation
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are met:
+//
+// * Redistributions of source code must retain the above copyright notice,
+// this list of conditions and the fo... |
fix for link to doxygen | @@ -58,7 +58,7 @@ The IoTivity project was created to bring together the open-source community to
IoTivity stack features
-----------------------
-- **OS agnostic:** The `IoTivity device stack (https://iotivity.github.io/iotivity-lite-doxygen/)` and modules work cross-platform (pure C code) and execute in an event-driv... |
src: Removed page entry
removing the `TESTING.md` from the documentation menu on the website | }],
"dev-comment": ""
- },
- {
- "name": "Testing",
- "type": "parsereadme",
- "ref": "testing",
- "options": {
- "path": "doc/TESTING.md",
- "target_file": [],
- "parsing": {
- "section_regex": "## ([^#]+)",
- "entry_regex": "^\\- \\[(.+)\\]\\(([^\\)]+)\\)(.*)"
- },
- "name": {
- "make_pretty": false
- }
- },
- "dev-c... |
Fix top-level test makefile (which is not used in Travis), only intended for local use | # SUCH DAMAGE.
TESTS=$(wildcard ??-*)
-SUMMARIES=$(foreach test,$(TESTS),summary-$(test))
+SUMMARIES=$(foreach test,$(TESTS),$(test)/summary)
CONTIKI=..
run: clean summary
summary: $(SUMMARIES)
- grep '' $(SUMMARIES) > summary
+ @cat $(SUMMARIES) > $@
-summary-%:
+%/summary:
@make -C $* summary || true
- @echo -n $* | ... |
Fix gui app initialzation order | @@ -15,10 +15,6 @@ Application::Application(int &argc, char **argv)
while (waitForDebbugger)
;
- qmlRegisterType<ParameterProxy>("org.clap", 1, 0, "ParameterProxy");
- qmlRegisterType<TransportProxy>("org.clap", 1, 0, "TransportProxy");
- qmlRegisterType<PluginProxy>("org.clap", 1, 0, "PluginProxy");
-
QCommandLinePars... |
CBLK: Request timeout is now configurable as env var | #undef CONFIG_WAIT_FOR_IRQ /* Not fully working */
#define CONFIG_REQUEST_TIMEOUT 5
+static int cblk_reqtimeout = CONFIG_REQUEST_TIMEOUT;
+
/*
* FIXME The following stuff most likely neesd to go in a header file
* which can be accessed outside this code, or the functionalty in this
@@ -560,7 +562,7 @@ static void *done... |
redis-cli: Do DNS lookup before sending CLUSTER MEET
Affects `--cluster create` and `--cluster add-node`. | #define CC_FORCE (1<<0) /* Re-connect if already connected. */
#define CC_QUIET (1<<1) /* Don't log connecting errors. */
+/* DNS lookup */
+#define NET_IP_STR_LEN 46 /* INET6_ADDRSTRLEN is 46 */
+
/* --latency-dist palettes. */
int spectrum_palette_color_size = 19;
int spectrum_palette_color[] = {0,233,234,235,237,239... |
interface: add lodash import to prevent crash in NewChannel | @@ -5,6 +5,7 @@ import {
Col,
Text
} from '@tlon/indigo-react';
+import _ from 'lodash';
import { Formik, Form } from 'formik';
import * as Yup from 'yup';
import GlobalApi from '~/logic/api/global';
|
fix possible fatal error | @@ -2036,4 +2036,6 @@ void quicctx_register_noparam_protoops(picoquic_cnx_t *cnx)
/** \todo document these */
register_noparam_protoop(cnx, &PROTOOP_NOPARAM_CONNECTION_ERROR, &connection_error);
+
+ register_noparam_protoop(cnx, &PROTOOP_NOPARAM_NOPARAM_UNKNOWN_TP_RECEIVED, &protoop_noop);
}
\ No newline at end of file... |
[lib][gfx][mandelbrot] make sure alpha channel is set
stm32f7 discovery board apparently requires the alpha channel to be set. | @@ -799,7 +799,7 @@ static int gfx_draw_mandlebrot(gfx_surface * surface){
} else {
color = 0x231AF9 * iter;
}
- gfx_putpixel(surface, x, y, color);
+ gfx_putpixel(surface, x, y, 0xff << 24 | color);
}
ci = ci + dy;
}
|
more detailed location info for mspec failures | @@ -6,7 +6,7 @@ module MSpec
#RHO
@count = 0
@exc_count = 0
- @exc_locations = []
+ @exc_locations = {}
#RHO
@exit = nil
@@ -68,7 +68,7 @@ module MSpec
#RHO
@count = 0
@exc_count = 0
- @exc_locations = []
+ @exc_locations = {}
#RHO
STDOUT.puts RUBY_DESCRIPTION
@@ -139,7 +139,18 @@ module MSpec
#RHO
puts "FAIL: #{curren... |
u3: rewrites +muk jet to skip heap allocations where possible | u3_atom len,
u3_atom key)
{
- c3_w seed_w;
- c3_w len_w;
- c3_y *key_y;
- c3_w out_w;
-
- c3_assert( u3r_met(5, seed) <= 1 );
- c3_assert( u3r_met(0, len) <= 31 );
- c3_assert( u3r_met(3, key) <= len );
-
- seed_w = u3r_word(0, seed);
- len_w = u3r_word(0, len);
+ c3_w key_w = u3r_met(3, key);
- // can't u3a_calloc 0 b... |
bluez5: Replace /lib with ${nonarch_base_libdir}
Use standard /lib variable name and avoid
QA errors when usermerge DISTRO_FEATURE is enabled. | @@ -10,8 +10,8 @@ BCM_BT_SOURCES = " \
"
enable_bcm_bluetooth() {
- install -d ${D}/lib/firmware/brcm/
- install -m 0644 ${WORKDIR}/BCM43430A1.hcd ${D}/lib/firmware/brcm/BCM43430A1.hcd
+ install -d ${D}${nonarch_base_libdir}/firmware/brcm/
+ install -m 0644 ${WORKDIR}/BCM43430A1.hcd ${D}${nonarch_base_libdir}/firmware/... |
dma-pool: 32byte alignment for h7 | @@ -83,9 +83,9 @@ typedef struct _dma_allocation {
struct _dma_allocation *prev;
struct _dma_allocation *next;
-} dma_allocation_t;
+} __attribute__((aligned(32))) dma_allocation_t;
-#define DMA_ALIGN_SIZE 4
+#define DMA_ALIGN_SIZE 32
#define DMA_ALIGN(offset) ((offset + (DMA_ALIGN_SIZE - 1)) & -DMA_ALIGN_SIZE)
static ... |
Fix the compiling errors on msvc ARM64 configuration. | @@ -120,7 +120,7 @@ static inline int vorbis_ftoi(double f){ /* yes, double! Otherwise,
/* MSVC inline assembly. 32 bit only; inline ASM isn't implemented in the
* 64 bit compiler and doesn't work on arm. */
#if defined(_MSC_VER) && !defined(_WIN64) && \
- !defined(_WIN32_WCE) && !defined(_M_ARM)
+ !defined(_WIN32_WCE)... |
bugfix in heuristic for groupping level | @@ -35,25 +35,7 @@ namespace NCatboostCuda {
return binCount * 1.0 / 256;
}
- //for features with binCount > 128 heuristic to group most sparse
- //features together as this'll increase register cache hit
- //and reduce atomic conflicts
- if (DataProvider && !Manager->IsCtr(featureId)) {
- const ui32 dataProviderId = M... |
[testcase/filesystem/itc]fix failure of testcase during call of fgets and fputs
testcase :
1. itc_libc_stdio_fseek_ftell_p is modified for correct implementation of
string constant variable,which is written in file.
2. Earlier itc_libc_stdio_fputs_fgets_p ,which has been resolved after this fix. | @@ -1212,8 +1212,9 @@ static void itc_libc_stdio_fseek_ftell_p(void)
{
FILE *fp;
char *filename = VFS_FILE_PATH;
- char *write_buf;
+ char write_buf[BUFFER_LEN];
char read_buf[BUFFER_LEN];
+ int null_index = 15;
fp = fopen(filename, "w+");
TC_ASSERT_NEQ("fopen", fp, NULL);
@@ -1221,8 +1222,9 @@ static void itc_libc_std... |
Fixed hci uart tx long data error | @@ -154,7 +154,7 @@ void IRAM_ATTR hci_uart_start_tx(int port_num)
data = hci_uart.tx_char(hci_uart.u_func_arg);
if (data >= 0) {
u8_data = data;
- uart_tx_chars(port_num, (char *)&u8_data, 1);
+ uart_write_bytes(port_num, (char *)&u8_data, 1);
} else {
break;
}
|
xfconf-plugin: Remove xfconf from macOS test builds | @@ -99,7 +99,7 @@ task:
env:
BUILD_FULL: ON
BUILD_SHARED: OFF
- PLUGINS: ALL;-curlget # The curlget tests fail: https://github.com/ElektraInitiative/libelektra/issues/3382
+ PLUGINS: ALL;-curlget;-xfconf # The curlget tests fail: https://github.com/ElektraInitiative/libelektra/issues/3382 xfce4 is uncommon on macOS
ins... |
packaging: add package dependencies augeas-lenses + glibc-locale to opensuse | @@ -66,6 +66,9 @@ set (CPACK_RPM_LIBELEKTRA${SO_VERSION}-EXPERIMENTAL_PACKAGE_DESCRIPTION "${PACKA
set (CPACK_RPM_LIBELEKTRA${SO_VERSION}-EXPERIMENTAL_DEBUGINFO_PACKAGE "${PACKAGE_DEBUGINFO}")
set (CPACK_RPM_LIBELEKTRA${SO_VERSION}-EXTRA_PACKAGE_NAME "${CPACK_COMPONENT_LIBELEKTRA${SO_VERSION}-EXTRA_DISPLAY_NAME}")
+if ... |
BugID:19199002: Fix defect of HAL implementation. | @@ -257,12 +257,14 @@ static void stop_netmgr(void *p)
void do_awss_dev_ap()
{
aos_task_new("netmgr_stop", stop_netmgr, NULL, 4096);
+ netmgr_clear_ap_config();
aos_task_new("dap_open", awss_open_dev_ap, NULL, 4096);
}
void do_awss()
{
aos_task_new("dap_close", awss_close_dev_ap, NULL, 2048);
+ netmgr_clear_ap_config()... |
Fix inline asm in dscal: mark x, x1 as clobbered. Fixes
The leaq instructions in dscal_kernel_inc_8 modify x and x1 so they
must be declared as input/output constraints, otherwise the compiler
may assume the corresponding registers are not modified. | @@ -136,10 +136,10 @@ static void dscal_kernel_inc_8(BLASLONG n, FLOAT *alpha, FLOAT *x, BLASLONG inc_
"jnz 1b \n\t"
:
- "+r" (n) // 0
+ "+r" (n), // 0
+ "+r" (x), // 1
+ "+r" (x1) // 2
:
- "r" (x), // 1
- "r" (x1), // 2
"r" (alpha), // 3
"r" (inc_x), // 4
"r" (inc_x3) // 5
|
LMS7002M: control usage of SX VCO cache with useCache flag | @@ -1520,7 +1520,7 @@ int LMS7002M::SetFrequencySX(bool tx, float_type freq_Hz, SX_details* output)
Modify_SPI_Reg_bits(LMS7param(PD_VCO_COMP), 0);
// try setting tuning values from the cache, if it fails perform full tuning
- if (tuning_cache_sel_vco.count(freq_Hz) > 0)
+ if (useCache && tuning_cache_sel_vco.count(fre... |
Handle the renamed command POD files in find-doc-nits | @@ -533,6 +533,7 @@ my %skips = (
sub checkflags() {
my $cmd = shift;
+ my $doc = shift;
my %cmdopts;
my %docopts;
my $ok = 1;
@@ -548,8 +549,8 @@ sub checkflags() {
close CFH;
# Get the list of flags from the synopsis
- open CFH, "<doc/man1/$cmd.pod"
- || die "Can't open $cmd.pod, $!";
+ open CFH, "<$doc"
+ || die "Ca... |
List Test: Fix side effect of test | @@ -3,7 +3,7 @@ Mountpoint: system/tmount/list
File: /tmp/listtest.dump
MountArgs: list placements=,placements/set="presetstorage precommit postcommit",plugins=,plugins/#0=tracer,plugins/#0/placements=,plugins/#0/placements/set="presetstorage precommit postcommit",plugins/#1=timeofday,plugins/#1/placements=,plugins/#1/... |
tcp_accept stub man page filled in | @@ -11,7 +11,11 @@ tcp_accept - accepts an incoming TCP connection
# DESCRIPTION
-TODO
+TCP protocol is a bytestream protocol (i.e. data can be sent via **bsend()** and received via **brecv()**) for transporting data among machines.
+
+This function accepts an incoming TCP connection from the listening socket _s_.
+
+_... |
Allow miter joints in hardware rendering for line widths of 1 pixel. | @@ -1868,7 +1868,8 @@ public:
UserPoint p;
UserPoint dir1;
- bool fancyJoints = mPerpLen*mScale > 1.0 && (mJoints==sjRound || mJoints==sjMiter);
+ bool fancyJoints = ( mPerpLen*mScale > 1.0 && mJoints==sjRound ) ||
+ ( mPerpLen*mScale >= 0.999 && mJoints==sjMiter);
for(int i=1;i<inPath.size();i++)
{
|
Add iterator for all section, key, val pairs in inifile. | @@ -8,7 +8,11 @@ pkg inifile =
ini : inifile#
idx : int
;;
+ type inikviter = struct
+ iter : std.htkviter((byte[:], byte[:]), byte[:])
+ ;;
impl iterable inisectiter -> byte[:]
+ impl iterable inikviter -> (byte[:], byte[:], byte[:])
/* key getting/setting */
const get : (ini : inifile#, sect : byte[:], key : byte[:] ... |
Break the input loop on error or EOF | @@ -170,8 +170,8 @@ void app_main(void)
* The line is returned when ENTER is pressed.
*/
char* line = linenoise(prompt);
- if (line == NULL) { /* Ignore empty lines */
- continue;
+ if (line == NULL) { /* Break on EOF or error */
+ break;
}
/* Add the command to the history */
linenoiseHistoryAdd(line);
@@ -195,4 +195,... |
Bugfix + core example (but has infinite type until recursive types are implemented). | @@ -134,7 +134,8 @@ infer sut = \case
infer ty bod
Eva new bod -> do
sut' <- infer sut new
- infer sut bod >>= nokResTy sut
+ nokTy <- infer sut bod
+ nokResTy sut' nokTy
Fir n (corTy, armTys) cor -> do
corTy' <- infer sut cor
armTys' <- battery corTy
@@ -208,6 +209,25 @@ eatEx = Eat [Nat, Nat]
, Inc (Lit 0)
]
+lamEx :... |
HAL: Create the hal_gpio_deinit() prototype
In order to revert the hal_gpio_init_*() to
disconnect the physical pin | @@ -101,6 +101,15 @@ int hal_gpio_init_in(int pin, hal_gpio_pull_t pull);
*/
int hal_gpio_init_out(int pin, int val);
+/**
+ * Deinitialize the specified pin to revert the previous initialization
+ *
+ * @param pin Pin number to unset
+ *
+ * @return int 0: no error; -1 otherwise.
+ */
+int hal_gpio_deinit(int pin);
+
... |
Move a fall through comment
When compiling with --strict-warnings using gcc 7.4.0 the compiler
complains that a case falls through, even though there is an explicit
comment stating this. Moving the comment outside of the conditional
compilation section resolves this. | @@ -718,8 +718,8 @@ int BIO_lookup_ex(const char *host, const char *service, int lookup_type,
hints.ai_flags &= ~AI_ADDRCONFIG;
goto retry;
}
- /* fall through */
# endif
+ /* fall through */
default:
BIOerr(BIO_F_BIO_LOOKUP_EX, ERR_R_SYS_LIB);
ERR_add_error_data(1, gai_strerror(gai_ret));
|
filter_lua: remove context on VM creation failure (CID 183628) | @@ -358,6 +358,7 @@ static int cb_lua_init(struct flb_filter_instance *f_ins,
/* Create LuaJIT state/vm */
lj = flb_luajit_create(config);
if (!lj) {
+ lua_config_destroy(ctx);
return -1;
}
ctx->lua = lj;
|
fix ppc64 build
Missing open paren.
fixes:
blame: | @@ -52,7 +52,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#define UC_MCONTEXT_V_REGS ( ((void *)&dmy_ctxt.uc_mcontext.v_regs - (void *)&dmy_ctxt) )
-#define _UC_MCONTEXT_GPR(x) ( (void *)&dmy_ctxt.uc_mcontext.gp_regs[x] - (void *)&dmy_ctxt) )
+#define _UC_MCONTEXT_GPR(x) ( ((void *)&dmy_ctxt.... |
Specify IsoTpMessage keywords | @@ -560,7 +560,7 @@ class UdsClient():
req += data
# send request, wait for response
- isotp_msg = IsoTpMessage(self._can_client, self.timeout, self.debug)
+ isotp_msg = IsoTpMessage(self._can_client, timeout=self.timeout, debug=self.debug)
isotp_msg.send(req)
response_pending = False
while True:
|
apps/cmp.c: Fix glitch in -newkeypass warning and extend warnings for genm | @@ -1583,11 +1583,11 @@ static int setup_request_ctx(OSSL_CMP_CTX *ctx, ENGINE *engine)
&& opt_oldcert == NULL && opt_cert == NULL)
CMP_warn("missing -recipient, -srvcert, -issuer, -oldcert or -cert; recipient will be set to \"NULL-DN\"");
- if (opt_cmd == CMP_P10CR || opt_cmd == CMP_RR) {
- const char *msg = "option i... |
Fix apparent off-by-one error in calculation of MAX_ALLOCATING_THREADS
fixes | @@ -497,7 +497,7 @@ static const int allocation_block_size = BUFFER_SIZE + sizeof(struct alloc_t);
#if defined(SMP) && !defined(USE_OPENMP)
/* This is the number of threads than can be spawned by the server, which is the
server plus the number of threads in the thread pool */
-# define MAX_ALLOCATING_THREADS MAX_CPU_NU... |
hoon: add +snip and +rear
Helper functions for dealing with the ends of lists. | ?~ a ~
[b $(a (dec a))]
::
+++ rear :: last item of list
+ ~/ %rear
+ |* a=(list)
+ ^- _?>(?=(^ a) i.a)
+ ?> ?=(^ a)
+ ?: =(~ t.a) i.a ::NOTE avoiding tmi
+ $(a t.a)
+::
++ reel :: right fold
~/ %reel
|* {a/(list) b/_=>(~ |=({* *} +<+))}
?: =(0 a) i.b
$(b t.b, a (dec a))
::
+++ snip :: drop tail off list
+ ~/ %snip
+ |... |
BugID:23251461: fix mem leak when sending fails | @@ -413,6 +413,7 @@ void rws_socket_idle_send(rws_socket s) {
rws_frame_delete(frame);
cur = cur->next;
}
+ rws_socket_delete_all_frames_in_list(s->send_frames);
rws_list_delete_clean(&s->send_frames);
if (s->error) {
s->command = COMMAND_INFORM_DISCONNECTED;
|
Enum: Save test data below `/tests` | @@ -40,44 +40,44 @@ But `middle_small_small` would fail because every entry might only occur once.
## Example
```sh
-# Backup-and-Restore:/examples/enum
+# Backup-and-Restore:/tests/enum
-sudo kdb mount enum.ecf /examples/enum enum dump
+sudo kdb mount enum.ecf /tests/enum enum dump
# valid initial value + setup valid ... |
Update kscan_gpio_get_extra_flags | @@ -126,11 +126,10 @@ static void kscan_direct_irq_callback_handler(const struct device *port, struct
#endif
static gpio_flags_t kscan_gpio_get_extra_flags(const struct gpio_dt_spec *gpio, bool active) {
- gpio_flags_t flags = BIT(0) & gpio->dt_flags;
if (!active) {
- flags |= flags ? GPIO_PULL_UP : GPIO_PULL_DOWN;
+ r... |
Add DCMI MSP Deinit. | @@ -139,25 +139,27 @@ void HAL_MspInit(void)
#if defined(DCMI_RESET_PIN) || defined(DCMI_PWDN_PIN) || defined(DCMI_FSYNC_PIN)
/* Configure DCMI GPIO */
GPIO_InitTypeDef GPIO_InitStructure;
- GPIO_InitStructure.Pull = GPIO_PULLDOWN;
GPIO_InitStructure.Speed = GPIO_SPEED_LOW;
GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.