message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Explicitly added .bc files to EXTRA_LDFLAGS to allow liba_bundled to pass | @@ -9,7 +9,7 @@ CLANG = clang
OMP_BIN = $(AOMP)/bin/$(CLANG)
CC = $(OMP_BIN) $(VERBOSE)
EXTRA_CFLAGS =
-EXTRA_LDFLAGS =
+EXTRA_LDFLAGS = MyDeviceLib/build/func_1v-$(GPUTYPE)-$(AOMP_GPU).bundled.bc MyDeviceLib/build/func_2v-$(GPUTYPE)-$(AOMP_GPU).bundled.bc MyDeviceLib/build/func_3v-$(GPUTYPE)-$(AOMP_GPU).bundled.bc
EXT... |
show map stats crash when not configured. | @@ -1048,7 +1048,7 @@ show_map_stats_command_fn (vlib_main_t * vm, unformat_input_t * input,
map_main_t *mm = &map_main;
map_domain_t *d;
int domains = 0, rules = 0, domaincount = 0, rulecount = 0;
- if (pool_elts (mm->domains) == 0)
+ if (pool_elts (mm->domains) <= 1)
{
vlib_cli_output (vm, "No MAP domains are configu... |
rescaler_neon: harmonize function suffixes | #error "MULT_FIX/WEBP_RESCALER_RFIX need some more work"
#endif
-static uint32x4_t Interpolate(const rescaler_t* const frow,
+static uint32x4_t Interpolate_NEON(const rescaler_t* const frow,
const rescaler_t* const irow,
uint32_t A, uint32_t B) {
LOAD_32x4(frow, A0);
@@ -91,9 +91,9 @@ static void RescalerExportRowExpan... |
For des.c, eliminate repetition of iv code | @@ -765,24 +765,6 @@ ACVP_RESULT acvp_des_kat_handler (ACVP_CTX *ctx, JSON_Object *obj) {
// Convert to bits
ptlen = ptlen * 4;
- if (alg_id != ACVP_TDES_ECB) {
- iv = json_object_get_string(testobj, "iv");
- if (!iv) {
- ACVP_LOG_ERR("Server JSON missing 'iv'");
- free(key);
- return ACVP_MISSING_ARG;
- }
-
- ivlen = ... |
fixes issue with utf-8 filenames
windows needs to widen the string to properly open files, this
implements a solution for compiling with MSVC anyway using the extension
for fstream to take a wchar | #include <ImfStdIO.h>
#include "Iex.h"
#include <errno.h>
+#ifdef _MSC_VER
+# define VC_EXTRALEAN
+# include <Windows.h>
+# include <string.h>
+#endif
using namespace std;
#include "ImfNamespace.h"
@@ -51,6 +56,21 @@ OPENEXR_IMF_INTERNAL_NAMESPACE_SOURCE_ENTER
namespace {
+#ifdef _MSC_VER
+std::wstring WidenFilename (c... |
Enforce MVEX constraints | @@ -2583,6 +2583,7 @@ ZyanBool ZydisAreMvexFeaturesCompatible(const ZydisEncoderInstructionMatch *matc
ZyanBool ZydisCheckConstraints(const ZydisEncoderInstructionMatch *match)
{
const ZydisEncoderOperand *operands = match->request->operands;
+ ZyanBool is_gather = ZYAN_FALSE;
switch (match->definition->encoding)
{
cas... |
fix the spaces and tabs | @@ -411,16 +411,16 @@ sysreturn open_internal(tuple n, int flags, int mode)
bytes length;
heap h = heap_general(get_kernel_heaps());
unix_heaps uh = get_unix_heaps();
-
- // buffer b = allocate(h, sizeof(struct buffer));
// might be functional, or be a directory
file f = unix_cache_alloc(uh, file);
- if (f == INVALID_A... |
Don't check whether we are using KTLS before calling the cipher function
The KTLS cipher function is a no-op so it doesn't matter if we call it.
We shouldn't special case KTLS in tls_common.c | @@ -1750,7 +1750,6 @@ int tls_write_records_default(OSSL_RECORD_LAYER *rl,
}
}
- if (!using_ktls) {
if (prefix) {
if (rl->funcs->cipher(rl, wr, 1, 1, NULL, mac_size) < 1) {
if (rl->alert == SSL_AD_NO_ALERT) {
@@ -1760,14 +1759,12 @@ int tls_write_records_default(OSSL_RECORD_LAYER *rl,
}
}
- if (rl->funcs->cipher(rl, wr... |
Enable -Wunused-but-set-variable | @@ -1403,7 +1403,6 @@ class GnuCompiler(Compiler):
# Disable some warnings which will fail compilation at the time
self.c_warnings += [
'-Wno-parentheses',
- '-Wno-unused-but-set-variable',
]
self.c_defines = ['-DFAKEID=$CPP_FAKEID']
|
Fix flipped terminal height/width. | @@ -522,7 +522,7 @@ term (tsize, Client{..}) shutdownSTM king enqueueEv =
where
TSize.Window wi hi = tsize
- initialEvents = [(initialBlew hi wi), initialHail]
+ initialEvents = [(initialBlew wi hi), initialHail]
runTerm :: RAcquire e (EffCb e TermEf)
runTerm = do
|
Prevent polling clusters wich don't exist in the simple descriptor
Issue | @@ -406,6 +406,33 @@ void PollManager::pollTimerFired()
}
}
+ // check that cluster exists on endpoint
+ {
+ bool found = false;
+ deCONZ::SimpleDescriptor sd;
+ if (restNode->node()->copySimpleDescriptor(pitem.endpoint, &sd) == 0)
+ {
+ for (const auto &cl : sd.inClusters())
+ {
+ if (cl.id() == clusterId)
+ {
+ found... |
docker: fix user input prompt for abi dockerfile | @@ -29,7 +29,7 @@ RUN yum localinstall -y ${ELEKTRA_ROOT}/*
RUN wget https://rpms.libelektra.org/fedora-34/libelektra.repo -O libelektra.repo \
&& mv libelektra.repo /etc/yum.repos.d/ \
- && yum update
+ && yum update -y
RUN yum -y install --downloadonly --downloaddir=./ elektra-tests \
&& rpm -i --nodeps ./elektra-tes... |
elrs: add aux0 sampling | @@ -280,7 +280,7 @@ static void elrs_unpack_1bit_switches(uint8_t *packet) {
state.aux[AUX_CHANNEL_11] = 0;
}
-static inline uint8_t elrs_unpack_3b_switch(uint16_t val) {
+static uint8_t elrs_unpack_3b_switch(uint16_t val) {
switch (val) {
case 6:
case 7:
@@ -294,7 +294,10 @@ static inline uint8_t elrs_unpack_3b_switch... |
Update Github CI test commands. | @@ -26,7 +26,7 @@ jobs:
- name: make
run: make
- name: test
- run: make test || cat test/error_log*
+ run: make test || cat test/test*.log
build-macos:
@@ -43,7 +43,7 @@ jobs:
- name: make
run: make
- name: test
- run: make test || cat test/error_log*
+ run: make test || cat test/test*.log
build-windows:
|
Use more bits | @@ -7,10 +7,10 @@ extern "C" {
#endif
#define CLAP_VERSION_MAKE(Major, Minor, Revision) \
- ((((Major)&0xff) << 16) | (((Minor)&0xff) << 8) | ((Revision)&0xff))
+ ((((Major)&0xfff) << 20) | (((Minor)&0xfff) << 8) | ((Revision)&0xff))
-#define CLAP_VERSION_MAJ(Version) (((Version) >> 16) & 0xff)
-#define CLAP_VERSION_MI... |
try to fix sponsor pinging | version https://git-lfs.github.com/spec/v1
-oid sha256:495cc6e23d6805366048ef1451deeb3f4836411999ffd4e3329f1434085b72a3
-size 10287843
+oid sha256:52447461c64b4abf79b6daafa9e693077e3342101f1d451f280d5bd145ac544e
+size 10290998
|
sdmmc_host/driver: Add module reset before enabling | @@ -222,6 +222,7 @@ esp_err_t sdmmc_host_init(void)
return ESP_ERR_INVALID_STATE;
}
+ periph_module_reset(PERIPH_SDMMC_MODULE);
periph_module_enable(PERIPH_SDMMC_MODULE);
// Enable clock to peripheral. Use smallest divider first.
|
Remove unused variable in fs.c | @@ -190,7 +190,6 @@ static int luv_check_amode(lua_State* L, int index) {
#if LUV_UV_VERSION_GEQ(1, 31, 0)
static void luv_push_statfs_table(lua_State* L, const uv_statfs_t* s) {
- int i;
lua_createtable(L, 0, 8);
lua_pushinteger(L, s->f_type);
lua_setfield(L, -2, "type");
|
Solve serial test for apple. | @@ -301,7 +301,7 @@ TEST_F(serial_test, DefaultConstructor)
#else
"0x000A7EF2",
#endif
- #elif defined(__linux) || defined(__linux__)
+ #elif defined(__linux) || defined(__linux__) || defined(__APPLE__)
"0xa7ef2",
#else
"<unknown>",
|
psp2kern: Fix indentations of USB headers | @@ -68,10 +68,10 @@ typedef enum SceUsbdErrorCode {
SCE_USBD_ERROR_NO_MEMORY = 0x80240005,
SCE_USBD_ERROR_DEVICE_NOT_FOUND = 0x80240006,
- SCE_USBD_ERROR_80240007 = 0x80240007, //
+ SCE_USBD_ERROR_80240007 = 0x80240007,
- SCE_USBD_ERROR_80240009 = 0x80240009, //
- SCE_USBD_ERROR_8024000A = 0x8024000A, //
+ SCE_USBD_ERR... |
[util] Drop unused template arg in string/url, fix msvc warning. | @@ -44,7 +44,7 @@ namespace {
return 0;
}
- template <typename TChar, typename TTraits, typename TBounds>
+ template <typename TChar, typename TBounds>
inline size_t GetHttpPrefixSizeImpl(const TChar* url, const TBounds& urlSize, bool ignorehttps) {
const TChar httpPrefix[] = {'h', 't', 't', 'p', ':', '/', '/', 0};
con... |
Move cert/private key to stack to satisfy Valgrind
Valgrind started detecting the mallocs in this test as a
memory leak when I touched an unrelated part of the test.
I fixed the leak to satisfy Valgrind, but we need a deeper
investigation. See issue: | @@ -48,6 +48,7 @@ int mock_client(struct s2n_test_piped_io *piped_io)
result = s2n_negotiate(client_conn, &blocked);
+ s2n_piped_io_close_one_end(piped_io, S2N_CLIENT);
s2n_connection_free(client_conn);
s2n_config_free(client_config);
@@ -64,18 +65,12 @@ int main(int argc, char **argv)
s2n_blocked_status blocked;
int s... |
website: revert to npm install | @@ -35,7 +35,7 @@ else ()
# attempt to install npm dependencies
install (
- CODE "execute_process (COMMAND npm ci --unsafe-perm WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${install_directory} OUTPUT_QUIET)"
+ CODE "execute_process (COMMAND npm install --unsafe-perm WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${install_dir... |
added some more weak candidates (yearyearyear) | @@ -419,7 +419,7 @@ return;
/*===========================================================================*/
static void keywriteyearyear(void)
{
-int y, y2;
+int y, y2, y3;
for(y = 1900; y <= thisyear; y++)
{
@@ -429,6 +429,18 @@ for(y = 1900; y <= thisyear; y++)
writepsk(pskstring);
}
}
+
+for(y = 1900; y <= thisyear;... |
use RtlGenRandom on windows to enable compilation as C++ even with dynamic override | @@ -162,20 +162,29 @@ If we cannot get good randomness, we fall back to weak randomness based on a tim
-----------------------------------------------------------------------------*/
#if defined(_WIN32)
+/*
+// We prefer BCryptGenRandom over RtlGenRandom but it leads to a crash a when using dynamic override combined wi... |
LAPACK: Fix lapack-test errors in ARM64 threaded version | @@ -284,6 +284,7 @@ static int inner_advanced_thread(blas_arg_t *args, BLASLONG *range_m, BLASLONG *
}
}
+ MB;
for (i = 0; i < args -> nthreads; i++)
job[mypos].working[i][CACHE_LINE_SIZE * bufferside] = (BLASLONG)buffer[bufferside];
@@ -324,6 +325,7 @@ static int inner_advanced_thread(blas_arg_t *args, BLASLONG *range... |
hoon: make +slab respect variance using given mode and return false | [p.gun (slum q.gat q.sam)]
::
++ slab :: test if contains
- |= {cog/@tas typ/type}
+ |= {cog/@tas way/?(%read %rite %both) typ/type}
?= [%| *]
- (~(find ut typ) %read ~[cog])
+ (~(find ut typ) way ~[cog])
::
++ slap
|= {vax/vase gen/hoon} ^- vase :: untyped vase .*
|
Lock cachelines under hash bucket locks
.. or when holding exclusive global metadata lock. | @@ -414,14 +414,16 @@ static int ocf_engine_evict(struct ocf_request *req)
ocf_engine_unmapped_count(req));
}
-static int lock_clines(struct ocf_request *req, enum ocf_engine_lock_type lock,
- ocf_req_async_lock_cb cb)
+static int lock_clines(struct ocf_request *req,
+ const struct ocf_engine_callbacks *engine_cbs)
{
-... |
fs/nffs: Remove padding from struct nffs_block
This structure is kept only in RAM so there is no need for adding
padding. | @@ -167,7 +167,6 @@ struct nffs_block {
struct nffs_inode_entry *nb_inode_entry; /* Owning inode. */
struct nffs_hash_entry *nb_prev; /* Previous block in file. */
uint16_t nb_data_len; /* # of data bytes in block. */
- uint16_t reserved16;
};
struct nffs_file {
|
feat: better explanation for bot-reddit-search.c | @@ -445,9 +445,17 @@ int main(int argc, char *argv[])
printf("\n\nThis bot demonstrates how easy it is to have two distinct"
" APIs interacting with eachother (Reddit + Discord).\n"
"1. Type reddit.search<?query> <keywords> \n"
- "Ex1: reddit.search Hello everyone!\n"
- "Ex2: reddit.search?srs=CryptoCurrency+dogecoin d... |
Should check amplification limit | @@ -10167,7 +10167,8 @@ ngtcp2_ssize ngtcp2_conn_write_vmsg(ngtcp2_conn *conn, ngtcp2_path *path,
origlen = ngtcp2_min(origlen, server_tx_left);
destlen = ngtcp2_min(destlen, server_tx_left);
- if (destlen == 0 && conn->cstat.loss_detection_timer != UINT64_MAX) {
+ if (server_tx_left == 0 &&
+ conn->cstat.loss_detectio... |
[io] fix bug in last commit
siconos_run_options are only created in write mode. | @@ -576,7 +576,8 @@ class MechanicsHdf5(object):
use_compression=self._use_compression)
self._solv_data = data(self._data, 'solv', 4,
use_compression=self._use_compression)
- if 'siconos_mechanics_run_options' in self._data:
+
+ if self._mode == 'w':
self._run_options_data = data(self._data, 'siconos_mechanics_run_opti... |
OcAppleKernelLib: OSBundleLibraries are optional. | @@ -649,7 +649,7 @@ InternalScanPrelinkedKext (
//
DependencyKext = InternalCachedPrelinkedKext (Context, DependencyId);
if (DependencyKext == NULL) {
- return EFI_NOT_FOUND;
+ continue;
}
Status = InternalInsertPrelinkedKextDependency (Kext, Context, DependencyIndex, DependencyKext);
|
use mergedPE align score for comparison w/ chimeric mergedPE score | @@ -72,7 +72,7 @@ void ReadAlign::chimericDetectionPEmerged(ReadAlign &seRA) {
// new chimeric detection routine
- chimRecord=seRA.chimDet->chimericDetectionMult(seRA.nW, seRA.readLength, trBest->maxScore, true);
+ chimRecord=seRA.chimDet->chimericDetectionMult(seRA.nW, seRA.readLength, seRA.trBest->maxScore, true);
};... |
ok, let's bite the bullet, an example OpenNARS can do due to the flexible higher order reasoning, goal spikes to rescue! | @@ -191,7 +191,6 @@ void Memory_Test()
puts("<<Memory test successful");
}
-
void ANSNA_Alphabet_Test()
{
ANSNA_INIT();
@@ -329,7 +328,6 @@ void ANSNA_Pong_Right()
{
ANSNA_Pong_Right_executed = true;
}
-
void ANSNA_Pong(bool useNumericEncoding)
{
OUTPUT = 0;
@@ -504,6 +502,42 @@ void ANSNA_Multistep_Test()
assert(!ANSN... |
link libpocl-devices-pthread.so with -pthread | @@ -28,5 +28,5 @@ if(MSVC)
endif(MSVC)
add_pocl_device_library(pocl-devices-pthread pocl-pthread.h pthread.c pthread_scheduler.c pthread_utils.c)
if(ENABLE_LOADABLE_DRIVERS)
-target_link_libraries(pocl-devices-pthread PRIVATE pocl-devices-basic)
+target_link_libraries(pocl-devices-pthread PRIVATE pocl-devices-basic ${P... |
Fixes for lovr.filesystem on Linux; | @@ -81,6 +81,13 @@ int lovrFilesystemGetAppdataDirectory(char* dest, unsigned int size) {
#elif EMSCRIPTEN
strncpy(dest, "/home/web_user", size);
return 0;
+#elif __linux__
+ const char* home;
+ if ((home = getenv("HOME")) == NULL) {
+ home = getpwuid(getuid())->pw_dir;
+ }
+
+ snprintf(dest, size, "%s/.config", home);... |
Fix setColorWrite(bool) variant; | @@ -270,7 +270,7 @@ static int l_lovrPassSetColor(lua_State* L) {
static int l_lovrPassSetColorWrite(lua_State* L) {
Pass* pass = luax_checktype(L, 1, Pass);
bool r, g, b, a;
- if (lua_gettop(L) <= 1) {
+ if (lua_gettop(L) <= 2) {
r = g = b = a = lua_toboolean(L, 2);
} else {
r = lua_toboolean(L, 2);
|
add thread id to trace, warning, and error messages | @@ -322,11 +322,22 @@ void _mi_fprintf( mi_output_fun* out, void* arg, const char* fmt, ... ) {
va_end(args);
}
+static void mi_vfprintf_thread(mi_output_fun* out, void* arg, const char* prefix, const char* fmt, va_list args) {
+ if (prefix != NULL && strlen(prefix) <= 32 && !_mi_is_main_thread()) {
+ char tprefix[64];... |
Fix error when compiling union events with variables | @@ -675,6 +675,7 @@ class ScriptBuilder {
}
if(unionValue.type === "variable") {
this.variableCopy(variable, unionValue.value);
+ return variable;
}
throw new Error(`Union type "${unionValue.type}" unknown.`);
}
|
ci: add caching for imgtool pip packages
Cache python dependencies for faster install and test times. | @@ -13,6 +13,11 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
+ - name: Cache pip
+ uses: actions/cache@v1
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip
- name: Install packages
run: |
export PATH="$HOME/.local/bin:$PATH"
|
drivers/lp5523: remove static delays from config | @@ -1053,28 +1053,20 @@ lp5523_config(struct led_itf *itf, struct lp5523_cfg *cfg)
goto err;
}
- lp5523_wait(1);
-
rc = lp5523_set_output_log_dim(itf, i, cfg->per_led_cfg[i - 1].log_dim_en);
if (rc) {
goto err;
}
- lp5523_wait(1);
-
rc = lp5523_set_output_temp_comp(itf, i, cfg->per_led_cfg[i - 1].temp_comp);
if (rc) {
... |
Remove useless loop variable | @@ -236,7 +236,6 @@ void ngtcp2_cc_cubic_cc_free(ngtcp2_cc *cc, const ngtcp2_mem *mem) {
static uint64_t ngtcp2_cbrt(uint64_t n) {
int d;
uint64_t a;
- int i;
if (n == 0) {
return 0;
@@ -257,7 +256,7 @@ static uint64_t ngtcp2_cbrt(uint64_t n) {
#endif
a = 1ULL << ((64 - d) / 3 + 1);
- for (i = 0; a * a * a > n; ++i) {
... |
BugID:23823329: change default loglevel | #include <aos/kernel.h>
#include <aos/yloop.h>
#include <netmgr.h>
+#include "ulog/ulog.h"
static int lwm2m_client_started = 0;
@@ -35,6 +36,9 @@ int application_start(int argc, char *argv[])
sal_init();
#endif
+ /* Set ulog ouput level to INFO */
+ aos_set_log_level(AOS_LL_INFO);
+
netmgr_init();
aos_register_event_fi... |
Fix inline marking introduced in commit
Forgot to add inline marking in changes_filename() declaration. In the passing, add
inline marking for a similar function subxact_filename().
Reported-By: Nathan Bossart
Discussion: | @@ -198,8 +198,8 @@ typedef struct ApplySubXactData
static ApplySubXactData subxact_data = {0, 0, InvalidTransactionId, NULL};
-static void subxact_filename(char *path, Oid subid, TransactionId xid);
-static void changes_filename(char *path, Oid subid, TransactionId xid);
+static inline void subxact_filename(char *path... |
Fix unnecessary rendering of EditorSidebar being caused by useSelector returning full editor state | @@ -8,10 +8,11 @@ import CustomEventEditor from "./CustomEventEditor";
import { VariableEditor } from "./VariableEditor";
import { RootState } from "store/configureStore";
-const EditorSidebar: React.FC = () => {
- const { type, entityId, scene: sceneId } = useSelector((state: RootState) =>
- state.editor
- );
+const E... |
.github/workflows: add clean network environment step in centos nightly build | @@ -58,14 +58,8 @@ jobs:
rpm -ivh epm-$RUNE_VERSION*.rpm
popd
- - name: Install containerd
+ - name: Configure containerd
run: |
- pushd ${WORK_DIR}
- curl -LO http://aliacs-edge-k8s-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/jiazhuo/containerd-1.3.4.linux-amd64.tar.gz
- tar -xvf containerd-1.3.4.linux-amd64.tar.gz
- /bi... |
tools: fix return values | @@ -445,10 +445,10 @@ fpga_result find_dev_feature(fpga_token token,
glob_t pglob;
char feature_path[SYSFS_PATH_MAX] = { 0 };
- res = get_fpga_sbdf(token, &segment, &bus, &device, &function);
- if (res != FPGA_OK) {
+ retval = get_fpga_sbdf(token, &segment, &bus, &device, &function);
+ if (retval != FPGA_OK) {
OPAE_ERR... |
schema BUGFIX return value check | @@ -92,7 +92,8 @@ lys_resolve_schema_nodeid(struct lysc_ctx *ctx, const char *nodeid, size_t nodei
}
if (implement && !mod->implemented) {
/* make the module implemented */
- lys_set_implemented_internal((struct lys_module*)mod, 2);
+ ret = lys_set_implemented_internal((struct lys_module*)mod, 2);
+ LY_CHECK_RET(ret);
... |
[GB] Implement SRA Reg8 instructions | @@ -891,6 +891,21 @@ impl CpuState {
// TODO(PT): Should be four cycles when (HL)
2
}
+ "00101iii" => {
+ // SRA Reg8
+ let (reg, addressing_mode) = self.get_reg_from_lookup_tab1(i);
+ if debug {
+ println!("SRA {reg}");
+ }
+ let contents = reg.read_u8_with_mode(&self, addressing_mode);
+ let lsb = contents & 0b1;
+ l... |
Fix the data race in DispatchEvent
* Fix the data race in DispatchEvent
Fix the data race in DispatchEvent
* Update according to comments | @@ -35,13 +35,14 @@ namespace MAT_NS_BEGIN {
/// <summary>Microsoft Telemetry SDK invokes this method to dispatch event to client callback</summary>
bool DebugEventSource::DispatchEvent(DebugEvent evt)
{
- seq++;
- evt.seq = seq;
evt.ts = PAL::getUtcSystemTime();
bool dispatched = false;
{
DE_LOCKGUARD(stateLock());
+ ... |
rune/libenclave/skeleton/README.md: add declaration that not support DCAP driver until
now for the rune attest command | # Introduction
-This guide will guide you how to use remote attestation based on SGX in skeleton with rune.
+This guide will guide you how to use remote attestation based on SGX in skeleton with rune. **Currently `rune attest` can only run on the machines with [OOT SGX dirver](https://github.com/intel/linux-sgx-driver)... |
net/netmgr: remove unused functions
remove unused functions when DEBUG_PORT is disabled | @@ -164,7 +164,7 @@ static char *_convert_udp_type(struct lwip_sock *sock)
}
return "UDP";
}
-
+#ifdef CONFIG_NET_DEBUG_PORT
static void _get_port(int fd, int *port)
{
*port = -1;
@@ -183,6 +183,7 @@ static void _get_port(int fd, int *port)
*port = upcb->local_port;
}
}
+#endif
static inline void _get_tcp_info(int fd, ... |
fix(setup): Fix sed delimiters for Cradio | @@ -189,7 +189,7 @@ popd
sed -i'.orig' \
-e "s/BOARD_NAME/$board/" \
-e "s/SHIELD_NAME/$shield/" \
- -e "s/KEYBOARD_TITLE/$shield_title/" \
+ -e "s|KEYBOARD_TITLE|$shield_title|" \
.github/workflows/build.yml
if [ "$board" == "proton_c" ]; then
|
address use after free bug | @@ -1601,7 +1601,8 @@ io_readable(neat_ctx *ctx, neat_flow *flow, struct neat_pollable_socket *socket,
#endif // SCTP_MULTISTREAM
// We don't update readBufferSize, so buffer is implicitly "freed"
- if (sctp_event_ret == READ_WITH_ZERO) {
+ if (sctp_event_ret == READ_WITH_ZERO && flow->state == NEAT_FLOW_OPEN) {
+ asse... |
BugID:17865306: Update linkkit Config.in | @@ -5,7 +5,9 @@ menuconfig AOS_LINKKIT
if AOS_LINKKIT
config SRCPATH
string
+## --- Generated Automatically ---
default "middleware/linkkit/sdk-c"
+## --- End ---
source "$SRCPATH/Config.linkkit"
endif
|
add generate one project way | @@ -27,6 +27,13 @@ $ pip install -r requirements.txt
$ progen generate -t uvision
$ venv/Scripts/deactivate
```
+```generate one project
+only generate one specific project,e.g:
+progen generate -f projects.yaml -p stm32f103xb_stm32f746zg_if-t uvision
+use option: -f indication the project file
+ -p indication the proj... |
* fixed generation of .gdbinit file (esp32c3 dbg issue) | @@ -98,10 +98,10 @@ def action_extensions(base_actions, project_path):
def create_local_gdbinit(gdbinit, elf_file):
with open(gdbinit, 'w') as f:
- f.write('target remote :3333\n')
if os.name == 'nt':
elf_file = elf_file.replace('\\','\\\\')
- f.write('symbol-file {}\n'.format(elf_file))
+ f.write('file {}\n'.format(el... |
ORB: Use popcount for distance. | @@ -473,6 +473,16 @@ array_t *orb_find_keypoints(image_t *img, bool normalized, int threshold,
return kpts;
}
+// This is a modifed popcount that counts every 2 different bits as 1.
+// This is what should actually be used with wta_k == 3 or 4.
+static inline uint32_t popcount(uint32_t i)
+{
+ i = i - ((i >> 1) & 0x555... |
toml: adapting grammar for whitespaces | @@ -76,22 +76,22 @@ Toml : AnyNewlines Nodes AnyNewlines { driverExitToml(driver); }
| %empty
;
-Nodes : Node
- | Nodes Newlines Node
+Nodes : AnyWS Node
+ | Nodes Newlines AnyWS Node
;
-Node : AnyWS COMMENT { driverExitComment (driver, $2); }
- | AnyWS Table OptComment { driverExitOptCommentTable (driver); }
- | AnyWS... |
Chatty read errors too. | @@ -210,19 +210,19 @@ class HTTPDriver(BaseDriver):
self.write_session.put(self.url, data=gen, headers=headers)
self.write_response = True
except requests.exceptions.ConnectionError as err:
- msg = "Client connection error to %s with headers %s: msg=%s" \
+ msg = "Client connection error to %s with [PUT] headers %s: ms... |
BugID:19675668: Disable check of gitee url | @@ -41,11 +41,11 @@ def main():
url = sys.argv[1]
dest_dir = sys.argv[2]
- if check_url(url):
- print ("\nCan't reach url: %s" % url)
- print ("Please check your network and download it manually:\n")
- print (" $ git clone %s %s\n" % (url, dest_dir))
- return 1
+ #if check_url(url):
+ # print ("\nCan't reach url: %s" %... |
clock: differentiate date and time colors | @@ -14,18 +14,20 @@ const innerSize = 124; // clock size
// }
// }
-let text = '#000000', background = '#ffffff';
+let timeTextColor = '#000000', dateTextColor = '#333333', background = '#ffffff';
const dark = window.matchMedia('(prefers-color-scheme: dark)');
if (dark.matches) {
- text = '#7f7f7f';
+ timeTextColor = '... |
OpenSSL >= v3.0 is mandatory, now | @@ -126,7 +126,7 @@ Requirements
* detailed knowledge of Linux
* Linux (recommended Arch Linux, but other distros should work, too (no support for other distributions).
* gcc >= 11 recommended (deprecated versions are not supported: https://gcc.gnu.org/)
-* libopenssl and openssl-dev installed
+* libopenssl (>= v3.0) a... |
Minor adjustment in the "function read_version"
Removed the ":" from the "commit hash:" string in the export command because it doesn't allow the compressed *.7z file to be created at the end of the compilation process | @@ -53,7 +53,7 @@ VERSION_DATE=`date '+%Y%m%d%H%M%S'`
if [ -z "${VERSION_COMMIT}" ]; then
export VERSION="v$VERSION_MAJOR.$VERSION_MINOR Build $VERSION_BUILD"
else
- export VERSION="v$VERSION_MAJOR.$VERSION_MINOR Build $VERSION_BUILD (commit hash: ${VERSION_COMMIT})"
+ export VERSION="v$VERSION_MAJOR.$VERSION_MINOR Bui... |
Rename test log file to match reference file name | @@ -538,7 +538,7 @@ void picoquic_binlog_frames(FILE* F, uint8_t* bytes, size_t length);
static char const* log_test_file = "log_test.txt";
static char const* log_fuzz_test_file = "log_fuzz_test.txt";
static char const* log_packet_test_file = "log_fuzz_test.txt";
-static char const* binlog_test_file = "binlog_test.txt"... |
drv doc: add note about binutils >= 2.25
as a requirement for 512-bit PR. | @@ -71,6 +71,13 @@ the AF.
In all other cases PR fails and may cause system instability.
+.. note::
+
+```
+ Platforms that support 512-bit Partial Reconfiguration require
+ binutils >= version 2.25.
+```
+
Close any software program accessing the FPGA, including software programs running in a virtualized host before
i... |
add missing changes in de_web_plugin_private.h | @@ -415,7 +415,6 @@ extern const quint64 silabs2MacPrefix;
extern const quint64 xiaomiMacPrefix;
extern const quint64 computimeMacPrefix;
extern const quint64 konkeMacPrefix;
-extern const quint64 sunricherMacPrefix;
inline bool checkMacVendor(quint64 addr, quint16 vendor)
{
@@ -430,8 +429,7 @@ inline bool checkMacVend... |
Refactor Ethereum ABI decoding logic to do less busywork
++decode-arguments now takes already-parsed words, rather than a of
words, so that we operate on straight atom values instead of hex
strings.
For the ++decode-topics case, we no longer re-string and un-string the
input data prior to processing. | ::
:: decoding
::
- ++ decode-topics
- :: tox: list of hex words
- |* [tox=(lest @ux) tys=(list etyp)]
- =- (decode-arguments (crip -) tys)
- %+ roll `(list @ux)`tox
- |= [top=@ tos=tape]
- (weld tos (render-hex-bytes 32 top))
+ ++ decode-topics decode-arguments
::
++ decode-results
:: rex: string of hex bytes with lea... |
Remove ltests from Lua 5.4 files | @@ -224,7 +224,7 @@ if %LUA_SVER%==53 (
)
)
if %LUA_SVER%==54 (
- set FILES_CORE=lapi lcode lctype ldebug ldo ldump lfunc lgc llex lmem lobject lopcodes lparser lstate lstring ltable ltm lundump lvm lzio ltests lauxlib
+ set FILES_CORE=lapi lcode lctype ldebug ldo ldump lfunc lgc llex lmem lobject lopcodes lparser lsta... |
doc: remove notes section in OSSL_ENCODER.pod
Fixes
The note wasn't adding anything useful. | @@ -108,12 +108,6 @@ otherwise 0.
OSSL_ENCODER_number() returns an integer.
-=head1 NOTES
-
-OSSL_ENCODER_fetch() may be called implicitly by other fetching
-functions, using the same library context and properties.
-Any other API that uses keys will typically do this.
-
=head1 SEE ALSO
L<provider(7)>, L<OSSL_ENCODER_C... |
yasm: actually add include path to command line | @@ -6,7 +6,7 @@ function apply(env, options)
env:set_many {
["YASM"] = "yasm",
- ["ASMCOM"] = "$(YASM) -o $(@) $(ASMDEFS:p-D ) $(ASMOPTS) $(<)",
+ ["ASMCOM"] = "$(YASM) -o $(@) $(ASMDEFS:p-D ) $(ASMINCPATH:p-I ) $(ASMOPTS) $(<)",
["ASMINC_KEYWORDS"] = { "%include" },
}
end
|
CCode: Update documentation of `encodeName` | @@ -182,8 +182,6 @@ class Coder
/**
* @brief This function replaces unescaped characters in a key name with escaped characters.
*
- * @pre The variable `buffer` needs to be twice as large as the size of the name of `key`.
- *
* @param key This `Key` stores a name possibly containing unescaped special characters.
*
* @r... |
testcase/semaphore: Modify sem flag value checking when semaphore is initialized
After initializing semaphore, sem flag will be set like below.
sem_flag = FLAGS_INITIALIZED;
sem_flag &= ~(PRIOINHERIT_FLAGS_DISABLE); | @@ -51,6 +51,7 @@ static void tc_libc_semaphore_sem_init(void)
sem_t sem;
unsigned int value = SEM_VALUE;
int ret_chk;
+ uint8_t sem_flag;
ret_chk = sem_init(NULL, PSHARED, 0);
TC_ASSERT_EQ("sem_init", ret_chk, ERROR);
@@ -64,7 +65,9 @@ static void tc_libc_semaphore_sem_init(void)
TC_ASSERT_EQ("sem_init", ret_chk, OK);... |
Fix missing quotes around thunderx targets | @@ -198,7 +198,7 @@ if (DEFINED CORE AND CMAKE_CROSSCOMPILING AND NOT (${HOST_OS} STREQUAL "WINDOWSS
set(CGEMM_UNROLL_N 4)
set(ZGEMM_UNROLL_M 8)
set(ZGEMM_UNROLL_N 4)
- elseif ("${CORE}" STREQUAL "THUNDERX)
+ elseif ("${CORE}" STREQUAL "THUNDERX")
file(APPEND ${TARGET_CONF_TEMP}
"#define L1_CODE_SIZE\t32768\n"
"#define... |
sets correct gruvbox defaultfg and cursor colors, restores poss. to use 257+ colors | @@ -102,9 +102,10 @@ static const char *colorname[] = {
"#d3869b",
"#8ec07c",
"#ebdbb2",
+ [255] = 0,
/* more colors can be added after 255 to use with DefaultXX */
"black", /* 256 -> bg */
- "brwhite", /* 257 -> fg */
+ "white", /* 257 -> fg */
};
@@ -112,10 +113,10 @@ static const char *colorname[] = {
* Default colo... |
gk110: Add acout37 flag for imul LIMM form | @@ -1536,7 +1536,7 @@ static struct insn tabm[] = {
{ 0x2600000000000002ull, 0x3fc0000000000003ull, N("cvt"), T(sat35), T(cvti2idst), T(neg30), T(abs34), T(cvti2isrc) },
{ 0x25c0000000000002ull, 0x3fc0000000000003ull, N("cvt"), T(frm2a), T(cvti2fdst), T(neg30), T(abs34), T(cvti2fsrc) },
{ 0x27c0000000000002ull, 0x3fc00... |
Use macro for checking return values | @@ -423,19 +423,9 @@ cleanupHAPI()
// If HAPI is not initialized, then don't try to do cleanup. This could be
// because HAPI failed to initialize, or HARS disconnected.
- if( HAPI_FAIL( HAPI_IsInitialized( Util::theHAPISession.get() ) ) )
- {
- return true;
- }
+ CHECK_HAPI_AND_RETURN( HAPI_IsInitialized( Util::theHAP... |
usrsock_rpmsg: fix can't wake ppoll when no ACTION
N/A
no matter open/close CONFIG_SIGUSR1_ACTION, usrsock always do,
unmask SIGUSR1, set action to NULL. | @@ -839,6 +839,7 @@ int main(int argc, char *argv[])
pthread_mutex_init(&priv->mutex, NULL);
pthread_cond_init(&priv->cond, NULL);
+ signal(SIGUSR1, SIG_IGN);
sigprocmask(SIG_SETMASK, NULL, &sigmask);
sigaddset(&sigmask, SIGUSR1);
sigprocmask(SIG_SETMASK, &sigmask, NULL);
|
mynewt.h: Include generated `logcfg/logcfg.h` file
Modify `mynewt.h` to take advantage of the new logcfg newt feature.
Now, `mynewt.h` includes the generated logcfg header. | #include "defs/error.h"
#include "sys/debug_panic.h"
+/* Only include the logcfg header if this version of newt can generate it. */
+#if MYNEWT_VAL(NEWT_FEATURE_LOGCFG)
+#include "logcfg/logcfg.h"
+#endif
+
#endif
|
Allow dns tests that require an internet connection to fail when offline
Closes | @@ -19,6 +19,11 @@ return require('lib/tap')(function (test)
socktype = "stream",
family = "inet",
}, expect(function (err, res)
+ -- allow failure when offline
+ if err == "EAI_AGAIN" then
+ print(err, "skipping")
+ return
+ end
assert(not err, err)
p(res, #res)
assert(#res > 0)
@@ -32,6 +37,11 @@ return require('lib/... |
Update documentation to explain redisConnectWithOptions.
Additionally document the new `REDIS_OPT_PREFER_IPV4`,
`REDIS_OPT_PREFER_IPV6` as well as the rest of our existing options.
See | @@ -82,6 +82,7 @@ an error state. The field `errstr` will contain a string with a description of
the error. More information on errors can be found in the **Errors** section.
After trying to connect to Redis using `redisConnect` you should
check the `err` field to see if establishing the connection was successful:
+
``... |
Prevent warn on sign conversion, overlapping compile flags | @@ -32,6 +32,8 @@ if (CMAKE_BUILD_TYPE MATCHES Debug)
WalletKitCoreTests/test/include
include
src)
+ set_target_properties(test_bitcoin
+ PROPERTIES COMPILE_FLAGS "-Wno-sign-conversion")
target_link_libraries (test_bitcoin
WalletKitCore)
@@ -80,7 +82,7 @@ target_include_directories (WalletKitCore
# specify compiler war... |
board/voxel/board.c: Format with clang-format
BRANCH=none
TEST=none | @@ -80,8 +80,8 @@ static const struct ec_response_keybd_config zbu_old_kb = {
.capabilities = KEYBD_CAP_SCRNLOCK_KEY,
};
-__override
-const struct ec_response_keybd_config *board_vivaldi_keybd_config(void)
+__override const struct ec_response_keybd_config *
+board_vivaldi_keybd_config(void)
{
if (get_board_id() > 2)
re... |
anim_encode: fix integer overflow
calculate the file duration using unsigned math. this could still result
in an incorrect average duration calculation if there were multiple
rollovers. caching the duration is an option if it was desirable to
support such an extreme case. | @@ -1536,7 +1536,8 @@ int WebPAnimEncoderAssemble(WebPAnimEncoder* enc, WebPData* webp_data) {
if (!enc->got_null_frame_ && enc->in_frame_count_ > 1 && enc->count_ > 0) {
// set duration of the last frame to be avg of durations of previous frames.
- const double delta_time = enc->prev_timestamp_ - enc->first_timestamp_... |
Add a test for subtracting a vector from itself. | @@ -279,6 +279,32 @@ vector_vec_norm_0(CuTest *tc)
___TEARDOWN___
}
+void
+vector_vec_sub_same(CuTest *tc)
+{
+ ___SETUP___
+ tsReal vec[5], dist;
+
+ ___GIVEN___
+ vec[0] = (tsReal) 1.0;
+ vec[1] = (tsReal) 2.0;
+ vec[2] = (tsReal) 3.0;
+ vec[3] = (tsReal) 4.0;
+ vec[4] = (tsReal) 5.0;
+
+ ___WHEN___
+ ts_vec_sub(vec,... |
linux-raspberrypi-dev: Update to v4.15.y | @@ -7,8 +7,8 @@ python __anonymous() {
FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:"
-LINUX_VERSION ?= "4.14"
-LINUX_RPI_DEV_BRANCH ?= "rpi-4.14.y"
+LINUX_VERSION ?= "4.15"
+LINUX_RPI_DEV_BRANCH ?= "rpi-4.15.y"
SRCREV = "${AUTOREV}"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=${LI... |
bugID:18350314:[bt] Config BT tx/rx default buffer count to 3,sync with zephyr. | #define CONFIG_BT_RX_BUF_COUNT 5
#else
#ifndef CONFIG_BT_RX_BUF_COUNT
-#define CONFIG_BT_RX_BUF_COUNT 10
+#define CONFIG_BT_RX_BUF_COUNT 3
#endif
#endif
#undef CONFIG_BT_L2CAP_TX_BUF_COUNT
#define CONFIG_BT_L2CAP_TX_BUF_COUNT 3
#else
-#define CONFIG_BT_L2CAP_TX_BUF_COUNT 10
+#define CONFIG_BT_L2CAP_TX_BUF_COUNT 3
#endi... |
Bypass cert path validations in D2C handshakes | @@ -1199,7 +1199,13 @@ oc_tls_add_peer(oc_endpoint_t *endpoint, int role)
transport_type);
#ifdef OC_PKI
+#if defined(OC_CLOUD) && defined(OC_CLIENT)
+ if (ciphers != cloud_priority) {
+#endif /* OC_CLOUD && OC_CLIENT */
mbedtls_ssl_conf_verify(&peer->ssl_conf, verify_certificate, peer);
+#if defined(OC_CLOUD) && defin... |
{AH} ensure that template/header/reference_names are defined when writing | @@ -802,6 +802,11 @@ cdef class AlignmentFile(HTSFile):
if mode[0] == 'w':
# open file for writing
+ if not (template or header or reference_names):
+ raise ValueError(
+ "either supply options `template`, `header` or both `reference_names` "
+ "and `reference_lengths` for writing")
+
if template:
# header is copied, t... |
also prepend digits | @@ -598,6 +598,8 @@ for(d = 0; d < 1000; d++)
{
snprintf(pskstring, 64, "%s%03d", basestring, d);
writepsk(pskstring);
+ snprintf(pskstring, 64, "%03d%s", d, basestring);
+ writepsk(pskstring);
}
return;
}
@@ -610,6 +612,8 @@ for(d = 0; d < 100; d++)
{
snprintf(pskstring, 64, "%s%02d", basestring, d);
writepsk(pskstrin... |
kconfig: extend the max msix table number to 64
There are some devices (like Samsung NVMe SSD SM981/PM981 which has 33 MSIX tables)
which have more than 16 MSIX tables. Extend the default value to 64 to handle them. | @@ -309,7 +309,7 @@ config MAX_PCI_DEV_NUM
config MAX_MSIX_TABLE_NUM
int "Maximum number of MSI-X tables per device"
range 1 2048
- default 16
+ default 64
config ENFORCE_VALIDATED_ACPI_INFO
bool "Enforce the use of validated ACPI info table"
|
Hotfix: disable send queue | @@ -971,11 +971,11 @@ int xdag_create_block(struct xdag_field *fields, int inputsCount, int outputsCou
block[0].field[XDAG_BLOCK_FIELDS - 1].data, sizeof(xdag_hash_t));
}
- if(g_xdag_pool) { /* append pool created block to list */
- xdag_append_new_block(block);
- } else { /* send miner created block directly */
+// if... |
Add printError documentation | @@ -35,6 +35,16 @@ print("test"); // "test"
print(10, "test", nil, true); // 10, "test", nil, true
```
+### printError(...values...)
+
+Prints a given list of values to stderr.
+
+```cs
+printError(10); // 10
+printError("test"); // "test"
+printError(10, "test", nil, true); // 10, "test", nil, true
+```
+
### input(st... |
fixes function cache_memory accounting stats bug
This bug resulted in wrong memory usage statistics after a redis function library is removed. | @@ -293,7 +293,7 @@ static void libraryUnlink(functionsLibCtx *lib_ctx, functionLibInfo* li) {
entry = dictUnlink(lib_ctx->libraries, li->name);
dictSetVal(lib_ctx->libraries, entry, NULL);
dictFreeUnlinkedEntry(lib_ctx->libraries, entry);
- lib_ctx->cache_memory += libraryMallocSize(li);
+ lib_ctx->cache_memory -= lib... |
Match db.yml names pss_crypto_* and update structure
* Match db.yml names (pss_crypto_open)
the _p was from a plugin that hooks these functions ..
* Add pss_crypto_close
* Update unk0 | @@ -14,14 +14,15 @@ extern "C" {
#endif
typedef struct ScePssCryptoHandle {
- uint32_t unk0;
+ SceUID fd;
uint32_t unk1;
SceSize size;
uint32_t unk3;
} ScePssCryptoHandle;
-int pss_crypto_open_p(ScePssCryptoHandle *handle, char *path);
-char *pss_crypto_read_p(ScePssCryptoHandle *handle, int *mode);
+int pss_crypto_ope... |
load config b4 complete | @@ -23,6 +23,11 @@ function targets()
{
function ()
import("core.project.project")
+ import("core.project.config")
+
+ -- load config
+ config.load()
+
return table.keys(project.targets())
end
}
@@ -33,6 +38,11 @@ function runable_targets()
{
function ()
import("core.project.project")
+ import("core.project.config")
+
... |
[catboost] Fix a test | @@ -1903,7 +1903,7 @@ class TestInvalidCustomLossAndMetric(object):
pass
def test_loss_good_metric_none(self):
- with pytest.raises(CatboostError, match='metric is not defined'):
+ with pytest.raises(CatboostError, match='metric is not defined|No metrics specified'):
model = CatBoost({"loss_function": self.GoodCustomLo... |
xive: Don't try to find a target EQ for prio 0xff
Otherwise we get warnings when masking interrupts | @@ -2229,9 +2229,10 @@ static int64_t xive_set_irq_targetting(uint32_t isn, uint32_t target,
bitmap_set_bit(*x->int_enabled_map, GIRQ_TO_IDX(isn));
}
- /* Re-target the IVE. First find the EQ
+ /* If prio isn't 0xff, re-target the IVE. First find the EQ
* correponding to the target
*/
+ if (prio != 0xff) {
if (!xive_eq... |
[Exploit] Output status messages more often | @@ -266,7 +266,7 @@ void _timer_fired(gui_text_view_t* ctx) {
printf("timer fired!\n");
char buf[512];
// Scan 4GB, 512MB at a time
- uint64_t memory_chunk_size = 256LL * 1024LL * 1024LL;
+ uint64_t memory_chunk_size = 4LL * 1024LL * 1024LL;
uint64_t total_memory_to_scan = 4LL * 1024LL * 1024LL * 1024LL;
uint64_t total... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.