message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
tests: fix bihash unit test threads count
In test_bihash_threads, if a test thread fails to be created,
it is still counted towards the total thread count, which could
lead to never-ending test loop. This patch fixes the issue.
Type: fix | @@ -207,16 +207,16 @@ test_bihash_threads (bihash_test_main_t * tm)
tm->thread_barrier = 1;
/* Start the worker threads */
+ tm->threads_running = 0;
for (i = 0; i < tm->nthreads; i++)
{
rv = pthread_create (&handle, NULL, test_bihash_thread_fn,
(void *) (uword) i);
if (rv)
- {
clib_unix_warning ("pthread_create return... |
ipsec: Add/Del IPSec SA is not MP safe
Type: fix
we can probably do better, but for now this is needed | @@ -1004,13 +1004,6 @@ ipsec_api_hookup (vlib_main_t * vm)
foreach_vpe_api_msg;
#undef _
- /*
- * Adding and deleting SAs is MP safe since when they are added/delete
- * no traffic is using them
- */
- am->is_mp_safe[VL_API_IPSEC_SAD_ENTRY_ADD_DEL] = 1;
- am->is_mp_safe[VL_API_IPSEC_SAD_ENTRY_ADD_DEL_REPLY] = 1;
-
/*
*... |
hark-fe: address mp review | @@ -20,7 +20,6 @@ type HarkState = Pick<StoreState,
export const HarkReducer = (json: any, state: HarkState) => {
const data = _.get(json, "harkUpdate", false);
if (data) {
- console.log(data);
reduce(data, state);
}
const graphHookData = _.get(json, "hark-graph-hook-update", false);
@@ -134,7 +133,6 @@ function graphW... |
Fix nullptr crash regression related to recent billboard animation change | @@ -225,7 +225,9 @@ namespace carto {
void BillboardRenderer::updateElement(const std::shared_ptr<Billboard>& element) {
std::lock_guard<std::recursive_mutex> lock(_mutex);
- element->getDrawData()->setRenderer(this);
+ if (std::shared_ptr<BillboardDrawData> drawData = element->getDrawData()) {
+ drawData->setRenderer(... |
Disable epoll by default for evloop. | /* #define JANET_STACK_MAX 16384 */
/* #define JANET_OS_NAME my-custom-os */
/* #define JANET_ARCH_NAME pdp-8 */
-#define JANET_EV_EPOLL
+/* #define JANET_EV_EPOLL */
/* Main client settings, does not affect library code */
/* #define JANET_SIMPLE_GETLINE */
|
Clean up some more stuff in readme | ## Prerequisites
-Core library: A C99 compiler (no VLAs required), plus enough libc for `malloc`, `realloc`, `free`, `memcpy`, `memset`, and `memmove`.
+Core library: A C99 compiler (no VLAs required), plus enough libc for `malloc`, `realloc`, `free`, `memcpy`, `memset`, and `memmove`. (Also, `#pragma once` must be sup... |
Add FX3 Reset option to LimeUtil | @@ -41,7 +41,7 @@ static int printHelp(void)
std::cout << " --info \t\t\t\t Print module information" << std::endl;
std::cout << " --find[=\"module=foo,serial=bar\"] \t Discover available devices" << std::endl;
std::cout << " --make[=\"module=foo,serial=bar\"] \t Create a device instance" << std::endl;
- std::cout << "... |
CLEANUP:Element Free | @@ -2302,8 +2302,7 @@ static void process_bop_insert_complete(conn *c)
(add_iov_einfo_value_all(c, &c->einfo) != 0) ||
(add_iov(c, "TRIMMED\r\n", strlen("TRIMMED\r\n")) != 0))
{
- mc_engine.v1->btree_elem_release(mc_engine.v0, c,
- &trim_result.elems, trim_result.count);
+ mc_engine.v1->btree_elem_free(mc_engine.v0, c,... |
bsp: fix stm32 rtc hal library error. | @@ -110,6 +110,9 @@ static rt_err_t rt_rtc_config(struct rt_device *dev)
#endif
HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct);
+ /* Enable RTC Clock */
+ __HAL_RCC_RTC_ENABLE();
+
RTC_Handler.Instance = RTC;
if (HAL_RTCEx_BKUPRead(&RTC_Handler, RTC_BKP_DR1) != BKUP_REG_DATA)
{
|
Superfluous dependecies in Makefile | @@ -167,7 +167,7 @@ no-drill-config-h:
exit -1 ; \
fi
-drill/drill: lib $(DRILL_LOBJS) $(LIB) $(LIBLOBJS)
+drill/drill: $(DRILL_LOBJS) $(LIB) $(LIBLOBJS)
$(LINK_EXE) $(DRILL_LOBJS) $(LIBLOBJS) $(LIB) $(LIBSSL_LIBS) $(LIBS) -o drill/drill
drill/drill.1: $(srcdir)/drill/drill.1.in
@@ -188,7 +188,7 @@ uninstall-drill:
cle... |
Remove ZMQ stuff | <PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="2.0.0" />
<PackageReference Include="NBitcoin" Version="4.0.0.47" />
- <PackageReference Include="NetMQ" Version="4.0.0.1" />
<PackageReference... |
Link test_libbcc directly with libbcc.so
Linking with bcc-shared will use all the libraries in bcc-shared
which compose libbcc, instead of libbcc.so dynamic link. | @@ -31,7 +31,10 @@ add_executable(test_libbcc
file(COPY dummy_proc_map.txt DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
add_library(usdt_test_lib SHARED usdt_test_lib.c)
-target_link_libraries(test_libbcc bcc-shared dl usdt_test_lib)
+add_dependencies(test_libbcc bcc-shared)
+target_link_libraries(test_libbcc ${PROJECT_BIN... |
handle len < fs->blocksize case | @@ -30,7 +30,6 @@ static void fs_read_extent(filesystem fs,
{
range i = range_intersection(q, ex);
// offset within a block - these are just the extents, so might be a sub
- status_handler f = apply(m);
u64 xfer = range_span(i);
u64 block_start = u64_from_pointer(val);
u64 tail = range_span(q) & (fs->blocksize -1);
@@ ... |
fix memory order for weak CAS, issue thanks | @@ -219,7 +219,7 @@ static inline uintptr_t mi_atomic_or(volatile _Atomic(uintptr_t)* p, uintptr_t x
}
static inline bool mi_atomic_cas_weak(volatile _Atomic(uintptr_t)* p, uintptr_t desired, uintptr_t expected) {
MI_USING_STD
- return atomic_compare_exchange_weak_explicit(p, &expected, desired, memory_order_release, m... |
Clean up infer state structure and comments. | typedef struct Inferstate Inferstate;
struct Inferstate {
+ /* tracking where we are in the inference */
int ingeneric;
int inaggr;
int innamed;
int indentdepth;
Type *ret;
- /* bound by patterns turn into decls in the action block */
- Node **impldecl;
- size_t nimpldecl;
- /* nodes that need post-inference checking/u... |
Detect 32Blit.exe flash tool if 32Blit not found | @@ -16,8 +16,14 @@ if (NOT DEFINED BLIT_ONCE)
# attempt to find the upload tool
find_program(32BLIT_TOOL 32Blit PATHS
${CMAKE_CURRENT_BINARY_DIR}/../build/tools/src/
+ )
+
+ if(NOT 32BLIT_TOOL)
+ message(WARNING "32Blit tool not found. Looking for 32Blit.exe instead")
+ find_program(32BLIT_TOOL 32Blit.exe PATHS
${CMAKE... |
build: fixing broken archive object in 'install' target | @@ -47,11 +47,11 @@ VERSION := @PACKAGE_VERSION@
BUGREPORT := @PACKAGE_BUGREPORT@
# paths
-srcdir := @srcdir@
-libdir := @libdir@
prefix := @prefix@
exec_prefix := @exec_prefix@
VPATH := @srcdir@
+srcdir := @srcdir@
+libdir := @libdir@
include_dirs := . include
# programs
@@ -1226,10 +1226,10 @@ help:
install: all
@ech... |
Fixes a mem leak in celix_launcher | @@ -97,6 +97,7 @@ int celixLauncher_launchAndWaitForShutdown(int argc, char *argv[], celix_propert
if (showEmbeddedBundles) {
printEmbeddedBundles();
+ celix_properties_destroy(packedConfig);
return 0;
}
|
Fix move group/list attributes to TaskListStyle | @@ -1155,7 +1155,7 @@ void ParseTrayStyle(const TokenNode *tp, FontType font, ColorType fg)
settings.listAllTasks = !strcmp(temp, "all");
}
} else if(tp->type == TOK_TRAYSTYLE) {
- ParseDecorations(tp, &settings.taskListDecorations);
+ ParseDecorations(tp, &settings.trayDecorations);
}
for(np = tp->subnodeHead; np; np ... |
[snitch] Remove FP extension from Verilator trace | @@ -321,8 +321,8 @@ module mempool_cc #(
extras_str = $sformatf("%s'%s': 0x%8x, ", extras_str, "acc_pid", i_snitch.acc_pid_i,);
extras_str = $sformatf("%s'%s': 0x%8x, ", extras_str, "acc_pdata_32",i_snitch.acc_pdata_i[31:0],);
// FPU offload
- extras_str = $sformatf("%s'%s': 0x%8x, ", extras_str, "fpu_offload", (i_snit... |
refactor(endpoints): rename usage_report parameter to usage_page
Aligns zmk_endpoints_send_report function declaration with its definition.
PR: | @@ -18,4 +18,4 @@ int zmk_endpoints_select(enum zmk_endpoint endpoint);
int zmk_endpoints_toggle();
enum zmk_endpoint zmk_endpoints_selected();
-int zmk_endpoints_send_report(uint8_t usage_report);
+int zmk_endpoints_send_report(uint8_t usage_page);
|
Fix index FieldType shorthand; | @@ -308,7 +308,7 @@ static uint32_t luax_checkfieldtype(lua_State* L, int index, uint32_t* nameHash)
return FIELD_UN8x4;
}
- if (length == 6 && !memcmp(string, "index", length)) {
+ if (length == 5 && !memcmp(string, "index", length)) {
return FIELD_INDEX32;
}
|
use tuple rtts in scheduler | #include "../bpf.h"
+static uint64_t find_smallest_smooth_rtt(bpf_data *bpfd, int sending_index) {
+ uint64_t srtt = 0;
+ for (int i = 0; i < bpfd->nb_receive_proposed; i++) {
+ if (srtt == 0 || bpfd->tuple_stats[i][sending_index].smoothed_rtt < srtt) {
+ srtt = bpfd->tuple_stats[i][sending_index].smoothed_rtt;
+ }
+ }... |
Router: joint must be checked before memory pool destruction. | @@ -1456,6 +1456,7 @@ nxt_router_listen_socket_release(nxt_task_t *task,
static void
nxt_router_conf_release(nxt_task_t *task, nxt_socket_conf_joint_t *joint)
{
+ nxt_bool_t exit;
nxt_socket_conf_t *skcf;
nxt_router_conf_t *rtcf;
nxt_thread_spinlock_t *lock;
@@ -1490,6 +1491,9 @@ nxt_router_conf_release(nxt_task_t *tas... |
CLI: 'hse kvdb compact' compacts by default (instead of requiring '-C' option) | @@ -750,31 +750,22 @@ cli_hse_kvdb_compact_impl(
struct cli *cli,
const char *cfile,
const char *kvdb,
- bool compact,
bool status,
bool cancel,
uint32_t timeout_secs)
{
- int count;
const char * req;
struct hse_params *hp = 0;
- count = compact + status + cancel;
- if (count != 1) {
- fprintf(
- stderr,
- "%s: must sp... |
contributing: add 'issues' section
Replaces "what to work on" with a section that describes how we track
issues, as well as guidelines for submitting them. | @@ -201,17 +201,34 @@ $ git lfs pull
[git-lfs]: https://git-lfs.github.com
-## What to work on
-
-If you are not thinking of contributing with a specific goal in mind, the
-GitHub issue tracker is the first place you should look for ideas. Issues are
-occasionally tagged with a priority and a difficulty; a good place t... |
stm32/spi: Be sure to set all SPI config values in SPI proto init. | @@ -572,6 +572,11 @@ STATIC int spi_proto_ioctl(void *self_in, uint32_t cmd) {
switch (cmd) {
case MP_SPI_IOCTL_INIT:
+ self->spi->spi->Init.Mode = SPI_MODE_MASTER;
+ self->spi->spi->Init.Direction = SPI_DIRECTION_2LINES;
+ self->spi->spi->Init.NSS = SPI_NSS_SOFT;
+ self->spi->spi->Init.TIMode = SPI_TIMODE_DISABLE;
+ s... |
Rename referer to referrer in goaccess.conf
Now that GoAccess prefers "referrer" over "referer", the example configuration file should probably cover that. | @@ -465,10 +465,10 @@ double-decode false
#enable-panel MIME_TYPE
#enable-panel TLS_TYPE
-# Hide a referer but still count it. Wild cards are allowed. i.e., *.bing.com
+# Hide a referrer but still count it. Wild cards are allowed. i.e., *.bing.com
#
-#hide-referer *.google.com
-#hide-referer bing.com
+#hide-referrer *.... |
Make `pairsFromTable` a separate function | @@ -43,6 +43,7 @@ module Foreign.Lua.Types.FromLuaStack
( FromLuaStack (..)
, Result
, peekEither
+ , pairsFromTable
) where
import Data.ByteString (ByteString)
@@ -112,7 +113,11 @@ instance FromLuaStack a => FromLuaStack [a] where
amendError err = throwLuaError ("Could not read list: " ++ show err)
instance (Ord a, Fr... |
kernel/binary_manager_recovery.c : Add reboot reason write for recovery failure case
When fail to recover the binary, board will be reboot. So we'd better write the reboot reason for this case. | #include <sys/types.h>
#ifdef CONFIG_BOARDCTL_RESET
#include <sys/boardctl.h>
+#ifdef CONFIG_SYSTEM_REBOOT_REASON
+#include <tinyara/reboot_reason.h>
+#endif
#endif
#include <tinyara/irq.h>
#include <tinyara/arch.h>
@@ -80,6 +83,9 @@ static faultmsg_t g_prealloc_faultmsg[FAULTMSG_COUNT];
*******************************... |
Try to fix ccache path | @@ -50,10 +50,13 @@ jobs:
- name: Install dependencies
run: |
- 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
+ sudo apt install -y ccache ninja-build
export PATH=/usr/lib/ccache:${{ runner.temp }}/arm... |
Add check for address when connecting | @@ -139,7 +139,7 @@ typedef struct{
static Link_t xWaitingEventQueue;
/* Tests are waiting event on callback queue, if an unexpected event comes, it is added to the waiting queue to be processed later. */
static QueueHandle_t xCallbackQueue;
-
+static const char bletestsBADADDRESS[btADDRESS_LEN] = {0, 0, 0, 0, 0, 0};
s... |
Change default job processing time to 1-4 seconds. | @@ -434,7 +434,7 @@ serverProcessJob(server_job_t *job) /* I - Job */
* Sleep for a random amount of time to simulate job processing.
*/
- sleep((unsigned)(5 + (CUPS_RAND() % 11)));
+ sleep((unsigned)(1 + (CUPS_RAND() % 4)));
}
if (job->cancel)
|
length of frame can be 4 bytes. | @@ -349,7 +349,7 @@ void radio_getReceivedFrame(uint8_t* pBufRead,
}
- if(len <= CC2538_RF_MIN_PACKET_LEN) {
+ if(len < CC2538_RF_MIN_PACKET_LEN) {
//too short
CC2538_RF_CSP_ISFLUSHRX();
return;
|
final stats to text report | @@ -142,6 +142,11 @@ namespace ebi
~TextAssemblyReportWriter()
{
+ file << "Number of matches: " << match_stats.get_num_matches()
+ << "/" << match_stats.get_num_variants() << std::endl;
+ file << "Percentage of matches: "
+ << (static_cast<double>(match_stats.get_num_matches()) / match_stats.get_num_variants()) * 100
... |
Simpler scroll locking, position updates, and message fetching | @@ -22,7 +22,6 @@ export class ChatScreen extends Component {
};
this.hasAskedForMessages = false;
- this.topMessage = {};
this.buildMessage = this.buildMessage.bind(this);
this.onScroll = this.onScroll.bind(this);
@@ -37,9 +36,6 @@ export class ChatScreen extends Component {
componentDidMount() {
this.updateNumPeople(... |
[kernel][vm] Move the VM postheap init hook back one step
This is a cheesy solution to adding another top level hook, which really
should be done. | @@ -200,4 +200,4 @@ STATIC_COMMAND("vm", "vm commands", &cmd_vm)
STATIC_COMMAND_END(vm);
LK_INIT_HOOK(vm_preheap, &vm_init_preheap, LK_INIT_LEVEL_HEAP - 1);
-LK_INIT_HOOK(vm, &vm_init_postheap, LK_INIT_LEVEL_VM);
+LK_INIT_HOOK(vm, &vm_init_postheap, LK_INIT_LEVEL_VM - 1);
|
Add extra check for private modules | // SPDX-License-Identifier: Apache-2.0
//
#define EVTSDK_VERSION_PREFIX "EVT"
-#if defined(_WIN32) /* && defined(HAVE_PRIVATE_MODULES) */
-#define HAVE_MAT_UTC
+#if defined(_WIN32)
+#if defined __has_include
+# if __has_include ("modules/azmon/AITelemetrySystem.hpp")
# define HAVE_MAT_AI
# endif
+# if __has_include ("m... |
fcrypt: skip empty key IDs as recipients/signers
I discovered this bug during my work on .
If an empty recipient/signature key ID is defined, GnuPG reports an error because it receives invalid command line arguments. | @@ -206,7 +206,7 @@ static size_t getRecipientCount (KeySet * config, const char * keyName)
ksRewind (config);
while ((k = ksNext (config)) != 0)
{
- if (keyIsBelow (k, root))
+ if (keyIsBelow (k, root) && strlen (keyString (k)) > 0)
{
recipientCount++;
}
@@ -330,11 +330,12 @@ static int fcryptEncrypt (KeySet * pluginC... |
media: Add doxygen comment in SpeechDetector.h
These comments are needed to use doxygen | namespace media {
namespace voice {
+/**
+ * @class
+ * @brief This class is speech detector
+ * @details @b #include <media/voice/SpeechDetector.h>
+ * @since TizenRT v2.0
+ */
class SpeechDetector
{
public:
+ /**
+ * @brief Get SpeechDetector Instance
+ * @details @b #include <media/voice/SpeechDetector.h>
+ * @retur... |
jenkins: disable unreliable tasks
also sometimes fail to network problems
"docker pull unexpected EOF" | @@ -931,8 +931,10 @@ coveralls -b '${buildDir}' \
def generateArtifactStages() {
def tasks = [:]
tasks << buildPackageDebianStretch()
+ /*
tasks << buildHomepage()
tasks << buildWebUI()
+ */
return tasks
}
|
Fix switch case with missing break | @@ -153,9 +153,7 @@ static void alc5658_writereg(FAR struct alc5658_dev_s *priv, uint16_t regaddr, u
ret = i2c_write(dev, alc5658_i2c_config, (uint8_t *) reg, 4);
if (ret < 0) {
auddbg("Error, cannot write reg %x\n", regaddr);
- return;
}
-
return;
}
@@ -581,6 +579,7 @@ static int alc5658_configure(FAR struct audio_low... |
network/wifi_manager: fix svace issue WGID 617364
Refer WGID 617364 | @@ -179,6 +179,7 @@ wifi_manager_result_e wifi_manager_connect_ap_config(wifi_manager_ap_config_s *c
{
if (!config || !conn_config) {
WIFIADD_ERR_RECORD(ERR_WIFIMGR_INVALID_ARGUMENTS);
+ return WIFI_MANAGER_INVALID_ARGS;
}
WIFIMGR_CHECK_AP_CONFIG(config);
@@ -195,6 +196,7 @@ wifi_manager_result_e wifi_manager_connect_a... |
Fixed incorrect usage of uni:by. | %+ murn
=< $
%~ tap by
- %- ~(uni by nas)
- ^- _nas
- (~(run by folks) some)
+ %. nas
+ ~(uni by `_nas`(~(run by folks) some))
==
|= {s/ship h/(unit human)}
?~ h ~
|= cofs/(map station config)
^+ +>
::TODO ++sh arm for printing of remote configs.
- +>(mirrors (~(uni by cofs) mirrors))
+ +>(mirrors (~(uni by mirrors) co... |
decision: fix spelling of hard coded | @@ -53,7 +53,7 @@ As new keys by design have the 'key needs sync' flag set, the plugins that imple
### Observed problems with changing values (normalization)
-Suppose we have a plugin that changes the value of a key to the hard-coded value `1` during the storage phase of the `set` operation.
+Suppose we have a plugin t... |
Log the errors occurred in require()'d module | @@ -291,7 +291,7 @@ void LuaSandbox::InitializeIOForSandbox(Sandbox& aSandbox, const std::string& ac
return func().get<sol::object>(); // is OK, dofile should throw if there is an error, we try to copy it...
};
- sbEnv["require"] = [this, cLoadString, cSBRootPath, sbStateView](const std::string& acPath) -> std::tuple<s... |
testbench - Add BLE peripheral support
Fix build error when BLE disabled. | #define H_TBB_
#include "syscfg/syscfg.h"
-#include "log/log.h"
+
+#if MYNEWT_VAL(TESTBENCH_BLE)
+
#include "nimble/ble.h"
#ifdef __cplusplus
extern "C" {
#endif
-#if MYNEWT_VAL(TESTBENCH_BLE)
void tbb_init(void);
|
naive: fix correct insert to ordered-map | =/ res=(unit [=effects new-point=^point]) (fun u.point rest)
?~ res
~
- `[effects.u.res state(points (~(put by points.state) ship new-point.u.res))]
+ `[effects.u.res state(points (put:orm points.state ship new-point.u.res))]
::
++ w-point-esc
|* [fun=$-([ship point *] (unit [effects point])) =ship rest=*]
=/ res=(unit... |
doc, clion: fix broken link | @@ -382,7 +382,7 @@ branch you've referenced for this pull request, they will be added
automatically to it. In any case check the output of the automated tests!
If you want to use CLion for creating Pull Request, please check out
-[this](https://www.jetbrains.com/help/clion/contribute-to-projects.html#create-pull-reque... |
Re-enable the heapmem_realloc(NULL, X) special case. | @@ -410,7 +410,9 @@ heapmem_realloc_debug(void *ptr, size_t size,
heapmem_realloc(void *ptr, size_t size)
#endif
{
- if(!IN_HEAP(ptr)) {
+ /* Allow the special case of ptr being NULL as an alias
+ for heapmem_alloc(). */
+ if(ptr != NULL && !IN_HEAP(ptr)) {
LOG_WARN("%s: ptr %p is not in the heap\n", __func__, ptr);
re... |
Handle edge-case in tunslip6 causing crashes with certain flow label bytes | @@ -162,6 +162,13 @@ is_sensible_string(const unsigned char *s, int len)
return 0;
}
}
+
+ /* Edge-case: printable characters in flow label */
+ if(len >= 2 && (s[0] & 0xF0) == 0x60
+ && (s[1] == '\r' || s[1] == '\n' || s[1] == '\t')) {
+ return 0;
+ }
+
return 1;
}
|
rtdl: delete unused declaration of initialRepository | @@ -74,9 +74,6 @@ private:
frg::hash<frg::string_view>, MemoryAllocator> _nameMap;
};
-// FIXME: Do not depend on the initial universe everywhere.
-extern frg::manual_box<ObjectRepository> initialRepository;
-
// --------------------------------------------------------
// SharedObject
// -------------------------------... |
oled: use _write_cmd_with_param for better clarity | @@ -252,8 +252,7 @@ void oled_mirror(bool mirror)
_write_cmd(OLED_CMD_SET_SEGMENT_RE_MAP_COL0_SEG0);
_write_cmd(OLED_CMD_SET_COM_OUTPUT_SCAN_DOWN);
// Shift the columns by 32 when display is in mirrored orientation
- _write_cmd(OLED_CMD_SET_DISPLAY_OFFSET);
- _write_cmd(0x20);
+ _write_cmd_with_param(OLED_CMD_SET_DISPL... |
Drop function `typenameindex`
The function is very simple and rarely used. | @@ -743,6 +743,3 @@ getglobal2 n = do
(x : xs) = splitdot n
splitdot = filter (/= ".") . L.groupBy (\a b -> a /= '.' && b /= '.')
dotable a = getfield (-1) a *> gettop >>= \i -> remove (i - 1)
-
-typenameindex :: StackIndex -> Lua String
-typenameindex n = ltype n >>= typename
|
{AH} move htslib etc versions to 1.5 on travis | @@ -25,7 +25,7 @@ conda config --add channels defaults
conda config --add channels r
conda config --add channels bioconda
-conda install -y "samtools=1.4" "bcftools=1.4" "htslib=1.4"
+conda install -y "samtools=1.5" "bcftools=1.5" "htslib=1.5"
# Need to make C compiler and linker use the anaconda includes and libraries... |
Expose offline geocoder rank weights via custom parameters | @@ -53,6 +53,18 @@ namespace carto {
if (locationSigma.getType() != VariantType::VARIANT_TYPE_NULL) {
options.locationSigma = static_cast<float>(locationSigma.getDouble());
}
+ Variant matchRankWeight = request->getCustomParameter("ranking.match_weight");
+ if (matchRankWeight.getType() != VariantType::VARIANT_TYPE_NUL... |
Identity map kernel ELF sections | @@ -284,15 +284,40 @@ void vmm_init(void) {
boot_info_t* info = boot_info_get();
info->vmm_kernel = kernel_vmm_pd;
- // Identity-map the lowest region of memory up to the end of the kernel image
- vmm_identity_map_region(kernel_vmm_pd, 0x0, info->kernel_image_end);
-
- // Identity-map a memory region just above the ker... |
.github/workflows: workround occlum package dependency problem when nightly build | @@ -33,7 +33,7 @@ jobs:
sudo pkill -9 kube-controller-manager || true
sudo pkill -9 kube-proxy || true
sudo pkill -9 kube-scheduler || true
- sudo yum remove -y occlum || true
+ sudo yum remove -y occlum occlum-runtime occlum-pal occlum-sgx-tools || true
sudo rpm -e shim-rune || true
sudo rpm -e rune || true
sudo rpm -... |
Update README.md
Specified that the cross-compiler installation command is for Linux. | @@ -29,7 +29,7 @@ Then you have to include `ulab` in the compilation process by editing `mpconfigp
#define MODULE_ULAB_ENABLED (1)
```
-This line will inform the compiler that you want `ulab` in the resulting firmware. If you don't have the cross-compiler installed, your might want to do that now by executing
+This lin... |
updated uri functions to not accept the empty string as a username | @@ -1009,8 +1009,8 @@ mongoc_uri_finalize_auth (mongoc_uri_t *uri, bson_error_t *error)
}
}
/* MONGODB-X509 is the only mechanism that doesn't require username */
- if (strcasecmp (mongoc_uri_get_auth_mechanism (uri), "MONGODB-X509")) {
- if (!mongoc_uri_get_username (uri)) {
+ if (strcasecmp (mongoc_uri_get_auth_mecha... |
Fix by making cppwinrt a private dependency
Fixes
cppwinrt is a build-time dependency for WinObjC. The dependency should
not propagate to other projects that depend on WinObjC. | <ItemGroup>
<PackageReference Include="NuGet.Build.Packaging" Version="0.1.186" />
<PackageReference Include="WinObjC.Language" Version="*" />
- <PackageReference Include="cppwinrt" Version="*" />
+ <PackageReference Include="cppwinrt" Version="*">
+ <PrivateAssets>all</PrivateAssets>
+ </PackageReference>
</ItemGroup>... |
[core] li_base64_decode mark cold code path | @@ -56,22 +56,20 @@ static size_t li_base64_decode(unsigned char * const result, const size_t out_le
/* run through the whole string, converting as we go */
for (i = 0; i < in_length; i++) {
- unsigned char c = (unsigned char) in[i];
- int ch;
-
- if (c == '\0') break;
- if (c >= 128) return 0; /* only 7-bit characters... |
Docs: Hide GUI headers and internal namespace. | @@ -949,7 +949,8 @@ EXCLUDE_SYMLINKS = NO
EXCLUDE_PATTERNS = */libtcod_int.h \
*_internal.h \
- *_.h
+ *_.h \
+ */libtcod/gui/*
# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
# (namespaces, classes, functions, etc.) that should be excluded from the
@@ -961,7 +962,8 @@ EXCLUDE_PATTERNS = */lib... |
DVR: save the rewrite length in packet meta-data for features | @@ -288,8 +288,12 @@ dvr_dpo_inline (vlib_main_t * vm,
(u8*)ethernet_buffer_get_header(b0));
len1 = ((u8*)vlib_buffer_get_current(b1) -
(u8*)ethernet_buffer_get_header(b1));
- vnet_buffer(b0)->l2.l2_len = len0;
- vnet_buffer(b1)->l2.l2_len = len1;
+ vnet_buffer(b0)->l2.l2_len =
+ vnet_buffer(b0)->ip.save_rewrite_length... |
stm32/modnetwork: Fix query of DNS IP address in ifconfig().
Thanks to for the fix. | @@ -133,7 +133,7 @@ mp_obj_t mod_network_nic_ifconfig(struct netif *netif, size_t n_args, const mp_o
netutils_format_ipv4_addr((uint8_t*)&netif->ip_addr, NETUTILS_BIG),
netutils_format_ipv4_addr((uint8_t*)&netif->netmask, NETUTILS_BIG),
netutils_format_ipv4_addr((uint8_t*)&netif->gw, NETUTILS_BIG),
- netutils_format_ip... |
ble_mesh: fix MESH/NODE/CFG/GPXY/BV-02-C & MESH/NODE/CFG/NID/BV-02-C related bug | @@ -1144,14 +1144,25 @@ static bool advertise_subnet(struct bt_mesh_subnet *sub)
static struct bt_mesh_subnet *next_sub(void)
{
+ struct bt_mesh_subnet *sub = NULL;
int i;
- for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) {
- struct bt_mesh_subnet *sub;
+ for (i = next_idx; i < ARRAY_SIZE(bt_mesh.sub); i++) {
+ sub = &bt... |
examples/apache: new version of apr | @@ -13,7 +13,7 @@ index b20aad0..eec5ba2 100644
else
diff --git a/hfuzz.compile_and_install.asan.sh b/hfuzz.compile_and_install.asan.sh
new file mode 100755
-index 0000000..e1f86ce
+index 0000000..f8a9a41
--- /dev/null
+++ b/hfuzz.compile_and_install.asan.sh
@@ -26,7 +26,7 @@ index 0000000..e1f86ce
+# Change this to a ... |
calls +qeu treap-order validation in mold with $| | $| (tree (pair key value))
|=(a=(tree (pair)) ~(apt by a))
::
-+* qeu [item] (tree item) :: queue
++* qeu [item] :: queue
+ $| (tree item)
+ |=(a=(tree) ~(apt to a))
::
+* set [item] :: set
$| (tree item)
|
Update comments syntax | @@ -561,9 +561,7 @@ esp_conn_write(esp_conn_p conn, const void* data, size_t btw, uint8_t flush, siz
* 4. Flush (send) current buffer if necessary
*/
- /*
- * Step 1
- */
+ /* Step 1 */
if (conn->buff.buff != NULL) {
len = ESP_MIN(conn->buff.len - conn->buff.ptr, btw);
ESP_MEMCPY(&conn->buff.buff[conn->buff.ptr], d, le... |
WindowExplorer: Fix | @@ -638,11 +638,12 @@ INT_PTR CALLBACK WepWindowsDlgProc(
if (selectedNode = WeGetSelectedWindowNode(&context->TreeContext))
{
- WINDOWPLACEMENT placement = { sizeof(placement) };
+ WINDOWPLACEMENT placement = { sizeof(WINDOWPLACEMENT) };
- GetWindowPlacement(selectedNode->WindowHandle, &placement);
+ if (!GetWindowPla... |
Rmove omp_wtime from epasses its flakey, add comple | @@ -4,6 +4,7 @@ atomic
atomic_double
class
collapse
+complex
data_enter_issue01
data_issue_59
data_share1
@@ -51,7 +52,6 @@ OmpHipMallocManaged
omp_lock
omp_num_teams_generic
omp_num_teams_SPMD
-omp_wtime
pfspecifier
pfspecifier_str
red_bug_51
|
CMake: Make vrapi an imported target; | @@ -290,8 +290,11 @@ endif()
# VrApi (Oculus Mobile SDK) -- tested on 1.34.0
if(LOVR_ENABLE_HEADSET AND LOVR_USE_VRAPI)
- include_directories(deps/VrApi/include)
- set(LOVR_VRAPI ${CMAKE_CURRENT_SOURCE_DIR}/deps/VrApi/Libs/Android/${ANDROID_ABI}/Release/libvrapi.so)
+ set(LOVR_VRAPI_PATH "${CMAKE_CURRENT_SOURCE_DIR}/de... |
Add capability masks for CCI-P speculative reads. | @@ -52,7 +52,9 @@ package ccip_cfg_pkg;
typedef enum
{
C0_REQ_RDLINE_S = 1,
- C0_REQ_RDLINE_I = 2
+ C0_REQ_RDLINE_I = 2,
+ C0_REQ_RDLSPEC_S = 4,
+ C0_REQ_RDLSPEC_I = 8
}
e_c0_req;
|
perfmon: fix xtensa_perfmon build target | -idf_build_get_property(target IDF_TARGET)
-if(${target} STREQUAL "esp32c3" OR ${target} STREQUAL "esp32h2" OR ${target} STREQUAL "esp32c2")
+idf_build_get_property(arch IDF_TARGET_ARCH)
+
+if(NOT "${arch}" STREQUAL "xtensa")
return()
endif()
|
Explain master and dev branches in BUILD
People may not guess that `master` is not the development branch. | @@ -8,6 +8,22 @@ case, use the [prebuilt server] (so you will not need Java or the Android SDK).
[prebuilt server]: #prebuilt-server
+## Branches
+
+### `master`
+
+The `master` branch concerns the latest release, and is the home page of the
+project on Github.
+
+
+### `dev`
+
+`dev` is the current development branch.... |
Document SSL_SESSION_set1_master_key() | =head1 NAME
-SSL_get_client_random, SSL_get_server_random, SSL_SESSION_get_master_key - retrieve internal TLS/SSL random values and master key
+SSL_get_client_random,
+SSL_get_server_random,
+SSL_SESSION_get_master_key,
+SSL_SESSION_set1_master_key
+- get internal TLS/SSL random values and get/set master key
=head1 SYN... |
Rounding issues | @@ -427,9 +427,9 @@ static int angle_can_be_encoded(const double angle, const double angular_precisi
{
const double angle_expanded = angle * angular_precision;
Assert(angular_precision>0);
- double rounded = (int)(angle_expanded+0.5)/angular_precision;
+ double rounded = (long)(angle_expanded+0.5)/angular_precision;
if... |
display: use snprintf to overwrite tmpstr initially | @@ -279,7 +279,7 @@ void display_createTargetStr(honggfuzz_t* hfuzz) {
}
static char tmpstr[1024 * 128] = {0};
- util_ssnprintf(tmpstr, sizeof(tmpstr), "%s", hfuzz->exe.cmdline[0]);
+ snprintf(tmpstr, sizeof(tmpstr), "%s", hfuzz->exe.cmdline[0]);
for (int i = 1; i < hfuzz->exe.argc; i++) {
util_ssnprintf(tmpstr, sizeof... |
Fix typo in x25519-x86_64.pl | # details see http://www.openssl.org/~appro/cryptogams/.
# ====================================================================
#
-# X25519 lower-level primitives for x86_86.
+# X25519 lower-level primitives for x86_64.
#
# February 2018.
#
|
Chrysler: safety limits updated | -const int CHRYSLER_MAX_STEER = 230;
+const int CHRYSLER_MAX_STEER = 261;
const int CHRYSLER_MAX_RT_DELTA = 112; // max delta torque allowed for real time checks
const int32_t CHRYSLER_RT_INTERVAL = 250000; // 250ms between real time checks
-const int CHRYSLER_MAX_RATE_UP = 3;
-const int CHRYSLER_MAX_RATE_DOWN = 3;
+co... |
stm32/powerctrl: Ensure SysTick is disabled on STOP mode entry for H7.
Even though IRQs are disabled this seems to be required on H7 Rev Y,
otherwise Systick interrupt triggers and the MCU leaves the stop mode
immediately. | @@ -502,6 +502,13 @@ void powerctrl_enter_stop_mode(void) {
// executed until after the clocks are reconfigured
uint32_t irq_state = disable_irq();
+ #if defined(STM32H7)
+ // Disable SysTick Interrupt
+ // Note: This seems to be required at least on the H7 REV Y,
+ // otherwise the MCU will leave stop mode immediately... |
Avoid goto in hdr luma encoding function | @@ -1685,33 +1685,27 @@ static int try_quantize_hdr_luminance_small_range3(
v0 = lowval & 0x7F;
v0e = color_quantization_tables[quantization_level][v0];
v0d = color_unquantization_tables[quantization_level][v0e];
- if ((v0d & 0x80) == 0x80)
- {
- goto LOW_PRECISION_SUBMODE;
- }
- lowval = (lowval & ~0x7F) | (v0d & 0x7F... |
Fix ConfigurationManager_StoreConfigurationBlock for ESP32 | @@ -341,7 +341,7 @@ bool ConfigurationManager_StoreConfigurationBlock(void* configurationBlock, Devi
while( pConfig < (pConfig + blockSize) )
{
// Network interface block ?
- if ( *pConfig == 'C')
+ if ( *pConfig == 'N')
{
HAL_Configuration_NetworkInterface * pNetConfig = (HAL_Configuration_NetworkInterface*)pConfig;
p... |
Update FindCHIBIOS.cmake
correct include folders order and remove wrong one | @@ -31,10 +31,9 @@ list(APPEND CHIBIOS_INCLUDE_DIRS ${PROJECT_BINARY_DIR}/ChibiOS_Source/os/hal/boa
list(APPEND CHIBIOS_INCLUDE_DIRS ${PROJECT_BINARY_DIR}/ChibiOS_Source/os/hal/osal/rt)
list(APPEND CHIBIOS_INCLUDE_DIRS ${PROJECT_BINARY_DIR}/ChibiOS_Source/os/common/oslib/include)
list(APPEND CHIBIOS_INCLUDE_DIRS ${PROJ... |
In Soviet Russia, C has booleans: sdb_set_internal | @@ -546,7 +546,7 @@ SDB_API void sdbkv_free(SdbKv *kv) {
}
}
-static ut32 sdb_set_internal(Sdb* s, const char *key, char *val, int owned, ut32 cas) {
+static ut32 sdb_set_internal(Sdb* s, const char *key, char *val, bool owned, ut32 cas) {
ut32 vlen, klen;
SdbKv *kv;
bool found;
@@ -628,11 +628,11 @@ static ut32 sdb_se... |
Optimizations for Aqara FP1 presence sensor | },
{
"name": "config/triggerdistance",
- "refresh.interval": 300,
+ "refresh.interval": 360,
"parse": {
- "at": "0x0146",
- "cl": "0xfcc0",
+ "at": "0xff07",
"ep": 1,
"eval": "if (Attr.val == 0) { Item.val = 'far' } else if (Attr.val == 1) { Item.val = 'medium' } else if (Attr.val == 2) { Item.val = 'near' } else { Ite... |
Update sedem image
r6414112 by Sedem release info for metaservice | },
"sedem": {
"formula": {
- "sandbox_id": 617830604,
+ "sandbox_id": 617886925,
"match": "SEDEM archive"
},
"executable": {
|
CLEANUP: SCRUB_MIN_COUNT and SCRUB_MAX_COUNT. | @@ -113,8 +113,8 @@ extern int genhash_string_hash(const void* p, size_t nkey);
#endif
/* scan count definitions */
-#define SCRUB_MIN_SCAN_COUNT 32
-#define SCRUB_MAX_SCAN_COUNT 320
+#define SCRUB_MIN_COUNT 32
+#define SCRUB_MAX_COUNT 320
/* btree position debugging */
static bool btree_position_debug = false;
@@ -795... |
jni: also mention Java 8 | @@ -34,12 +34,15 @@ The Java plugin itself needs to have the following methods:
Install openjdk-9-jdk openjdk-9-jdk-headless openjdk-9-jre from backports.
-When manually executing testcases the following LD_LIBRARY_PATH might be needed:
-`/usr/lib/jvm/java-9-openjdk-amd64/lib:/usr/lib/jvm/java-9-openjdk-amd64/lib/serve... |
fix GetColorf() bug
We should only use the lower 8 bits, masking was missing. | @@ -286,7 +286,7 @@ static void PrintString(const char* const text) {
}
static float GetColorf(uint32_t color, int shift) {
- return (color >> shift) / 255.f;
+ return ((color >> shift) & 0xff) / 255.f;
}
static void DrawCheckerBoard(void) {
|
Got tired of finding all of the weird dirs and removing them in order to make this test work. | @@ -77,8 +77,10 @@ cfgPathHonorsPriorityOrder(void** state)
homeConfDir};
int i;
for (i=0; i<sizeof(newdir)/sizeof(newdir[0]); i++) {
+ if (access(newdir[i], F_OK) == -1) {
assert_int_equal(mkdir(newdir[i], 0777), 0);
}
+ }
// get the basedir, set cwd and scopeHome from it
char basedir[MAX_PATH];
|
Fix incorrect mruby x-compilation logic | @@ -19,9 +19,7 @@ MRuby::CrossBuild.new('target') do |conf|
conf.cc do |cc|
cc.command = ENV["TARGET_CC"] || 'cc'
cc.flags = [ENV["TARGET_CFLAGS"] || %w()]
- unless ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']
- cc.flags << '-fPIC'
- end
+ cc.flags << '-fPIC' unless ENV['MRUBY_TOOLCHAIN'] == 'visualcpp'
end
conf.l... |
sched: irq: Refactor irq_spinlock.c
Summary:
Call this_cpu() properly in spin_unlock_irqrestore()
Impact:
None
Testing:
Tested with spresense:wifi_smp | @@ -137,10 +137,9 @@ irqstate_t spin_lock_irqsave(spinlock_t *lock)
void spin_unlock_irqrestore(spinlock_t *lock, irqstate_t flags)
{
- int me = this_cpu();
-
if (NULL == lock)
{
+ int me = this_cpu();
DEBUGASSERT(0 < g_irq_spin_count[me]);
g_irq_spin_count[me]--;
|
Raise debug level for request onAir message | @@ -5376,7 +5376,7 @@ void DeRestPluginPrivate::processTasks()
}
else
{
- DBG_Printf(DBG_INFO, "request %u send time %d, cluster 0x%04X, onAir %d\n", i->req.id(), j->sendTime, j->req.clusterId(), onAir);
+ DBG_Printf(DBG_INFO_L2, "request %u send time %d, cluster 0x%04X, onAir %d\n", i->req.id(), j->sendTime, j->req.cl... |
fix failsafe condition | @@ -306,7 +306,6 @@ static uint8_t frsky_d16_handle_packet() {
}
if ((current_packet_received_time - last_packet_received_time) >= max_sync_delay) {
- failsafe = 1;
rx_rssi = 0;
// make sure we are in rx mode
@@ -393,6 +392,8 @@ static uint8_t frsky_d16_handle_packet() {
if (frames_lost >= FRSKY_MAX_MISSING_FRAMES) {
m... |
docs: Add missing sudo to command
BRANCH=none
TEST=run "JLinkRemoteServerCLExe -select USB"
Cannot connect to J-Link. Retrying in 5 seconds..
TEST=run "sudo JLinkRemoteServerCLExe -select USB" -> success | @@ -18,7 +18,7 @@ machine against a board connected to a local machine. For example:
Start servod and JLink locally:
(local chroot) $ sudo servod --board dragonclaw
-(local chroot) $ JLinkRemoteServerCLExe -select USB
+(local chroot) $ sudo JLinkRemoteServerCLExe -select USB
Forward the FPMCU console on a TCP port:
|
CI: Add cache action into workflow | @@ -26,6 +26,13 @@ jobs:
steps:
- uses: actions/checkout@v2
+ - name: Cache ImageMagick
+ uses: actions/cache@v1
+ with:
+ path: ./build-ImageMagick
+ key: v1-imagemagick-${{ matrix.imagemagick-version }}
+ restore-keys: |
+ v1-imagemagick-${{ matrix.imagemagick-version }}
- name: Set up Ruby ${{ matrix.ruby-version }}... |
Fix test_attributes() to work for builds | @@ -3109,18 +3109,18 @@ START_TEST(test_attributes)
"<tag c='3'/>"
"</doc>";
AttrInfo doc_info[] = {
- { "a", "1" },
- { "b", "2" },
- { "id", "one" },
+ { XCS("a"), XCS("1") },
+ { XCS("b"), XCS("2") },
+ { XCS("id"), XCS("one") },
{ NULL, NULL }
};
AttrInfo tag_info[] = {
- { "c", "3" },
+ { XCS("c"), XCS("3") },
{ N... |
vlib: fix buffer pool alignment size
Alignment size should be CLIB_CACHE_LINE_BYTES(64)
instead of CLIB_LOG2_CACHE_LINE_BYTES(6)
Type: fix | @@ -509,7 +509,7 @@ vlib_buffer_pool_create (vlib_main_t * vm, char *name, u32 data_size,
if (vec_len (bm->buffer_pools) >= 255)
return ~0;
- vec_add2_aligned (bm->buffer_pools, bp, 1, CLIB_LOG2_CACHE_LINE_BYTES);
+ vec_add2_aligned (bm->buffer_pools, bp, 1, CLIB_CACHE_LINE_BYTES);
if (bm->buffer_mem_size == 0)
{
|
Shell Recorder: Remove unneeded slash from export | @@ -28,7 +28,7 @@ nbTest=0
if [ -z "@USE_CMAKE_KDB_COMMAND@" ]; then
KDBCOMMAND="@KDB_COMMAND@"
- export PATH="`dirname \"$KDBCOMMAND\"`:/$PATH"
+ export PATH="`dirname \"$KDBCOMMAND\"`:$PATH"
else
KDBCOMMAND="kdb"
fi
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.