message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Add generic strategy for hor_sad'ing an non-split width block | @@ -619,6 +619,58 @@ static uint32_t ver_sad_generic(const kvz_pixel *pic_data, const kvz_pixel *ref_
return sad;
}
+/**
+ * \brief Horizontally interpolate SAD outside the frame.
+ *
+ * \param data1 Starting point of the first picture.
+ * \param data2 Starting point of the second picture.
+ * \param width Width of t... |
improve %ames /a/give error message | :: routed directly out to unix
::
?: ?=([%give *] q.kyz)
- ~| [%ames-bad-duct %give duct=gad.fox p.kyz]
+ ~| [%ames-bad-duct %give from=p.kyz route=q.kyz]
?> ?=(^ gad.fox)
:_ +>.$
[[gad.fox %give kyz] [hen %give %mack ~] ~]
|
adds comet mining (but not yet booting) | @@ -235,8 +235,54 @@ _king_fake(u3_noun ship, u3_noun pill, u3_noun path)
void
_king_come(u3_noun star, u3_noun pill, u3_noun path)
{
- fprintf(stderr, "boot: comets not yet supported\r\n");
- exit(1);
+ u3_noun seed;
+
+ if ( u3_nul == star ) {
+ // XX ~marzod hardcoded
+ // choose from list, at random, &c
+ //
+ star... |
decisions: clarify updates | @@ -75,6 +75,8 @@ For each solution a proposal, rationale and optionally implications should be gi
- "Decision", "Rationale" and "Implications" are now filled out and fixed according to the reviews
- decisions of this step usually already have an implementation PR
+Decisions that need an update, e.g. because assumption... |
Update monero_pool.json
forgotten comma | "perPoolLogFile": false
},
"banning": {
- "manager": "integrated"
+ "manager": "integrated",
"banOnJunkReceive": true,
"banOnInvalidShares": false
},
|
specialize mi_mallocn for count=1 | @@ -443,7 +443,12 @@ mi_decl_allocator void* mi_calloc(size_t count, size_t size) mi_attr_noexcept {
// Uninitialized `calloc`
extern mi_decl_allocator void* mi_heap_mallocn(mi_heap_t* heap, size_t count, size_t size) mi_attr_noexcept {
size_t total;
- if (mi_mul_overflow(count,size,&total)) return NULL;
+ if (count==1... |
os/se/ameba: Link non-secure print to Secure
Allow to print secure log using non-secure print to prevent mixed log | ***************************************************************************************************/
#include <stdint.h>
+#include <stdio.h>
#include "flash_api.h"
#include "device_lock.h"
@@ -29,6 +30,7 @@ typedef struct {
void (*device_unlock)(uint32_t);
void (*setstatusbits)(uint32_t);
int (*get_random_bytes)(void *... |
Addition of an option to compute the Nesterov-Todd scaling either by "Qp formula" or "F formula". | @@ -1708,6 +1708,7 @@ void gfc3d_IPM(GlobalFrictionContactProblem* restrict problem, double* restrict
printIteresProbMatlabFile(iteration, globalVelocity, velocity, reaction, d, n, m, iterates);
hasNotConverged = 0;
+
// numerics_printf_verbose(-1, "%9.2e %9.2e %9.2e\n", norm2VecDiff(tmpsol, globalVelocity, m), norm2Ve... |
don't clog up jenkins build queue | @@ -19,6 +19,11 @@ pipeline {
PARTIAL_TESTS = "${env.BRANCH_NAME == 'master' ? ' ' : '1'}"
DOCKER_IMAGE_TAG = "panda:build-${env.GIT_COMMIT}"
}
+ options {
+ timeout(time: 3, unit: 'HOURS')
+ disableConcurrentBuilds(abortPrevious: env.BRANCH_NAME != 'master')
+ }
+
stages {
stage ('Acquire resource locks') {
options {
|
toml: updated readme | # TODO: Documentation
+## NULL keys
+The plugin supports null keys. They are represented as special string of value '!ELEKTRA_NULL!' in a toml file, since toml doesn't support empty assignments. Be aware that a string of that value (full string must match exactly) will always be translated into a null key.
+
## Require... |
build CHANGE increase libyang dep version
There is a bugfix that could manifest in sysrepo. | @@ -44,8 +44,8 @@ set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION}
set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION})
# Version of libyang library that this sysrepo depends on
-set(LIBYANG_DEP_VERSION 1.0.119)
-set(LIBYANG_DEP_SOVERSION 1.5.14)
+set(LIBYANG_DEP_VERSION 1.0.120)
+set(LIBYA... |
Check for tagged release | set -e
set -o pipefail
+SKIP_VALIDATE=false
+
+function usage
+{
+ echo "Usage: $0 [--skip-validate]"
+ echo "Initialize Chipyard submodules and setup initial env.sh script."
+ echo ""
+ echo " --skip-validate Skip prompt checking for tagged release"
+}
+
+while test $# -gt 0
+do
+ case "$1" in
+ --skip-validate)
+ SKI... |
GUI: Warning when opening ipfs-urls.
Extra question if you really want to open IPFS-url.
Only activated on left-clicking the asset in the overview-page. | @@ -712,7 +712,18 @@ void OverviewPage::openIPFSForAsset(const QModelIndex &index)
QString ipfsbrowser = walletModel->getOptionsModel()->getIpfsUrl();
// If the ipfs hash isn't there or doesn't start with Qm, disable the action item
- if (ipfshash.count() > 0 && ipfshash.indexOf("Qm") == 0 && ipfsbrowser.indexOf("http"... |
[state] Fix bug: infinite loop problem to rollback block state | @@ -38,6 +38,7 @@ type BlockInfo struct {
BlockHash types.BlockID
PrevHash types.BlockID
}
+
type StateEntry struct {
State *types.State
Undo *types.State
@@ -214,8 +215,9 @@ func (sdb *ChainStateDB) Rollback(blockNo types.BlockNo) error {
sdb.Lock()
defer sdb.Unlock()
- for sdb.latest.BlockNo > blockNo {
- bs, err := ... |
Clean up some printfs. | u3_noun ref,
u3_noun syn)
{
- fprintf(stderr, "ar: hook\r\n");
u3_noun gat = u3j_hook(u3k(van), "ar");
- fprintf(stderr, "ar: hooked\r\n");
return u3i_molt(gat, u3x_sam, u3nc(u3k(ref), u3k(syn)), 0);
}
{
u3_noun gat = u3j_soft(_ar_core(van, ref, syn), "fish");
- fprintf(stderr, "got gate\r\n");
- return u3n_slam_on(gat... |
BugID:18373779:delete AOS_DEBUG_PANIC | #include <k_api.h>
#include <assert.h>
#include "aos/hal/uart.h"
-
-#ifdef AOS_DEBUG_PANIC
#include <debug_api.h>
-#endif
#if (RHINO_CONFIG_HW_COUNT > 0)
extern unsigned long long system_clock(void);
|
INTERNAL: Disable reconfig when domain name given | @@ -1337,6 +1337,42 @@ static void sm_reload_ZK_config(zhandle_t *zh, int *retry_ms)
}
#endif
+static int arcus_check_domain_name(char *ensemble_list) {
+ char *copy, *token, *save_ptr;
+ struct hostent *zkhost;
+ int ret;
+
+ copy = strdup(ensemble_list);
+ if (copy == NULL) {
+ return -1;
+ }
+
+ do {
+ if (strchr(co... |
X509 build_chain(): Rename variable 'depth' to 'max_depth'
This should increase readability and maintainability. | @@ -2992,7 +2992,7 @@ static int build_chain(X509_STORE_CTX *ctx)
int may_alternate = 0;
int trust = X509_TRUST_UNTRUSTED;
int alt_untrusted = 0;
- int depth;
+ int max_depth;
int ok = 0;
int prev_error = ctx->error;
int i;
@@ -3048,7 +3048,7 @@ static int build_chain(X509_STORE_CTX *ctx)
* Build chains up to one longe... |
Change Changelog link to point at Changelog readme
Make the contributing document link to how to create a changelog rather
than just linking to the Changelog itself. | @@ -79,4 +79,4 @@ Mbed TLS is well documented, but if you think documentation is needed, speak out
1. Complex parts in the code should include comments.
1. If needed, a Readme file is advised.
1. If a [Knowledge Base (KB)](https://tls.mbed.org/kb) article should be added, write this as a comment in the PR description.
... |
Separate projects for CUDA libraries | @@ -172,15 +172,9 @@ IF (CUDA_REQUIRED)
ENDIF()
IF (HOST_OS_WINDOWS)
- LDFLAGS(cublas.lib curand.lib cudart_static.lib cusparse.lib)
+ LDFLAGS(cudart_static.lib)
ELSE()
- EXTRALIBS(-lcurand_static -lcudart_static -lcusparse_static -lculibos)
- IF (CUDA_VERSION STREQUAL "10.1" AND USE_ARCADIA_CUDA)
- FROM_SANDBOX(100679... |
Remove duplicate statement. | #ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_indata.c 321289 2017-07-20 11:09:33Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_indata.c 321463 2017-07-25 11:05:53Z tuexen $");
#endif
#include <netinet/sctp_os.h>
@@ -2060,7 +2060,6 @@ sctp_process_a_data_chunk(struct sct... |
Clean the buffers | @@ -425,6 +425,7 @@ createCron(const char *scopePath, const char* filterPath) {
return FALSE;
}
+ scope_memset(path, 0, PATH_MAX);
// Create the cron entry
if (scope_snprintf(path, sizeof(path), SCOPE_CRON_PATH) < 0) {
scope_perror("createCron: cron: error: snprintf() failed\n");
@@ -432,6 +433,7 @@ createCron(const ch... |
hark: use vertical rules
FIxes urbit/landscape#150. | import React from "react";
-import { Text as NormalText, Row, Icon } from "@tlon/indigo-react";
+import { Text as NormalText, Row, Icon, Rule } from "@tlon/indigo-react";
import f from "lodash/fp";
import _ from "lodash";
import moment from "moment";
@@ -11,12 +11,6 @@ const Text = (props: PropFunc<typeof Text>) => (
<... |
sysrpeo-plugind BUGFIX create plugins dir recursively
Refs | @@ -206,6 +206,34 @@ daemon_init(int debug, sr_log_level_t log_level)
sr_log_syslog("sysrepo-plugind", log_level);
}
+/* from src/common.c */
+int
+sr_mkpath(const char *path, mode_t mode)
+{
+ char *p, *dup;
+
+ dup = strdup(path);
+ for (p = strchr(dup + 1, '/'); p; p = strchr(p + 1, '/')) {
+ *p = '\0';
+ if (mkdir(... |
Work around Windows ftell() bug as per Microsoft engineering's suggestion
See | @@ -237,6 +237,15 @@ static long file_ctrl(BIO *b, int cmd, long num, void *ptr)
_setmode(fd, _O_TEXT);
else
_setmode(fd, _O_BINARY);
+ /*
+ * Reports show that ftell() isn't trustable in text mode.
+ * This has been confirmed as a bug in the Universal C RTL, see
+ * https://developercommunity.visualstudio.com/content/... |
oc_cred:Allow for provisioning of 256-bit PSKs | @@ -510,13 +510,13 @@ oc_sec_add_new_cred(size_t device, bool roles_resource, oc_tls_peer_t *client,
if (privatedata && privatedata_size > 0) {
if (credtype == OC_CREDTYPE_PSK &&
privatedata_encoding == OC_ENCODING_BASE64) {
- if (privatedata_size != 24) {
+ if (privatedata_size > 64) {
oc_sec_remove_cred(cred, device)... |
Fix cone winding; | @@ -4792,7 +4792,7 @@ void lovrPassCone(Pass* pass, float* transform, uint32_t segments) {
// Sides
for (uint32_t i = 0; i < segments; i++) {
- uint16_t tri[] = { segments + i, segments + (i + 1) % segments, vertexCount - 1 };
+ uint16_t tri[] = { segments + (i + 1) % segments, segments + i, vertexCount - 1 };
memcpy(i... |
driver/ioexpander/pca9555.h: Format with clang-format
BRANCH=none
TEST=none | #define PCA9555_IO_6 BIT(6)
#define PCA9555_IO_7 BIT(7)
-static inline int pca9555_read(const int port,
- const uint16_t i2c_addr_flags,
+static inline int pca9555_read(const int port, const uint16_t i2c_addr_flags,
int reg, int *data_ptr)
{
return i2c_read8(port, i2c_addr_flags, reg, data_ptr);
}
-static inline int pc... |
pyocf: Add new error codes | @@ -49,6 +49,9 @@ class OcfErrorCode(IntEnum):
OCF_ERR_INVALID_CACHE_LINE_SIZE = auto()
OCF_ERR_CACHE_NAME_MISMATCH = auto()
OCF_ERR_INVAL_CACHE_DEV = auto()
+ OCF_ERR_CORE_UUID_EXISTS = auto()
+ OCF_ERR_METADATA_LAYOUT_MISMATCH = auto()
+ OCF_ERR_CACHE_LINE_SIZE_MISMATCH = auto()
class OcfCompletion:
|
Make batchbuild should forward CXX and DBG | @@ -159,10 +159,10 @@ clean:
@echo "[Clean] Removing $(VEC) build outputs"
batchbuild:
- @+$(MAKE) -s VEC=nointrin
- @+$(MAKE) -s VEC=sse2
- @+$(MAKE) -s VEC=sse4.2
- @+$(MAKE) -s VEC=avx2
+ @+$(MAKE) -s CXX=$(CXX) DBG=$(DBG) VEC=nointrin
+ @+$(MAKE) -s CXX=$(CXX) DBG=$(DBG) VEC=sse2
+ @+$(MAKE) -s CXX=$(CXX) DBG=$(DBG... |
[CUDA] Fix crash with printf without any _cl_var_arg calls | @@ -217,7 +217,8 @@ void pocl_cuda_fix_printf(llvm::Module *module)
// Replace calls to _cl_va_arg with reads from new i64 array argument
llvm::Function *cl_va_arg = module->getFunction("_cl_va_arg");
- assert(cl_va_arg);
+ if (cl_va_arg)
+ {
llvm::Argument *args_in = &*++new_cl_printf->getArgumentList().begin();
std::... |
docs: small tweak to WW recipes to support installation for tarball-based local
repo | @@ -43,6 +43,6 @@ default location for this example is in
[sms](*\#*) wwmkchroot -v centos-8 $CHROOT
# Enable OpenHPC and EPEL repos inside chroot
[sms](*\#*) dnf -y --installroot $CHROOT install epel-release
-[sms](*\#*) cp -p /etc/yum.repos.d/OpenHPC.repo $CHROOT/etc/yum.repos.d
+[sms](*\#*) cp -p /etc/yum.repos.d/Op... |
don't stop inhibit after endOfframe. | @@ -790,8 +790,6 @@ port_INLINE void activity_synchronize_endOfFrame(PORT_TIMER_WIDTH capturedTime)
// return to listening state
changeState(S_SYNCLISTEN);
-
- openserial_inhibitStop();
}
port_INLINE bool ieee154e_processIEs(OpenQueueEntry_t* pkt, uint16_t* lenIE) {
|
doc UPDATE clarify optional parameter | @@ -281,7 +281,7 @@ int nc_client_tls_ch_add_bind_listen(const char *address, uint16_t port);
*
* @param[in] address IP address to bind to.
* @param[in] port Port to bind to.
- * @param[in] hostname Expected server hostname, verified by TLS when connecting to it.
+ * @param[in] hostname Expected server hostname, verifi... |
fix noexcept attribute on array delete operators | @@ -32,8 +32,8 @@ terms of the MIT license. A copy of the license can be found in the file
void* operator new[](std::size_t n, const std::nothrow_t& tag) noexcept { (void)(tag); return mi_new_nothrow(n); }
#if (__cplusplus >= 201402L || _MSC_VER >= 1916)
- void operator delete (void* p, std::size_t n) { mi_free_size(p,... |
Fix 'memory.lock' not released when allocation failed, in function 'block_new' | @@ -7136,8 +7136,10 @@ static inline block_s *block_new(void) {
}
/* collect memory from the system */
blk = sys_alloc(FIO_MEMORY_BLOCK_SIZE * FIO_MEMORY_BLOCKS_PER_ALLOCATION, 0);
- if (!blk)
+ if (!blk) {
+ fio_unlock(&memory.lock);
return NULL;
+ }
FIO_LOG_DEBUG("memory allocator allocated %p from the system", (void... |
[meson] add license keyword to project declaration | -project('lighttpd', 'c', version: '1.4.67', default_options : ['c_std=c11'])
+project('lighttpd', 'c', version: '1.4.67', license: 'BSD-3-Clause',
+ default_options : ['c_std=c11']
+)
subdir('src')
subdir('tests')
@@ -10,10 +12,10 @@ subdir('tests')
# $ ninja
# full build:
-# $ meson configure -D build_extra_warnings=... |
bump lmod-defaults to 1.3.3 | Summary: OpenHPC default login environments
Name: lmod-defaults-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 1.3.1
+Version: 1.3.3
Release: 1
License: BSD
Group: %{PROJ_NAME}/admin
|
Config: Don't clean hardware w/o config change | @@ -25,6 +25,8 @@ hardware_subdirs += $(SNAP_ROOT)/hardware
action_subdirs += $(SNAP_ROOT)/actions
snap_config = .snap_config
+snap_config_bak = .snap_config_test.bak
+snap_config_new = .snap_config_test.new
snap_config_sh = .snap_config.sh
snap_config_cflags = .snap_config.cflags
snap_env_sh = snap_env.sh
@@ -124,12 +... |
Make test_alloc_long_entity_value() robust vs allocation changes | @@ -10096,22 +10096,9 @@ START_TEST(test_alloc_long_entity_value)
"<doc>&e2;</doc>";
char entity_text[] = "Hello world";
int i;
-#define MAX_ALLOC_COUNT 20
- int repeat = 0;
+#define MAX_ALLOC_COUNT 40
for (i = 0; i < MAX_ALLOC_COUNT; i++) {
- /* Repeat certain counts to defeat cached allocations */
- if (i == 5 && rep... |
Fix test results
In a rare case a failure can occur in a VppTestCase which hasn't been
part of the original TestSuite, such as in memif testcases. Fix the
reporting after test run in these cases. | @@ -87,10 +87,6 @@ class TestResult(dict):
return suite_from_failed(self.testcase_suite, rerun_ids)
def get_testcase_names(self, test_id):
- if re.match(r'.+\..+\..+', test_id):
- test_name = self._get_test_description(test_id)
- testcase_name = self._get_testcase_doc_name(test_id)
- else:
# could be tearDownClass (tes... |
YAMBi: Execute unit tests again
Since commit the unit test would not execute the test suite
for the plugin any more. | @@ -140,5 +140,6 @@ TEST (yambi, map)
int main (int argc, char * argv[])
{
init (argc, argv); // Required for `srcdir_file` to work properly
- return 0;
+ ::testing::InitGoogleTest (&argc, argv);
+ return RUN_ALL_TESTS ();
}
|
[ctr/lua] update state var prefix for merkle proof verification | @@ -563,7 +563,7 @@ func (cw *ChainWorker) Receive(context actor.Context) {
logger.Error().Str("hash", enc.ToString(msg.ContractAddress)).Err(err).Msg("failed to get state for account")
} else if contractProof.Inclusion {
contractTrieRoot := contractProof.State.StorageRoot
- varId := bytes.NewBufferString("_")
+ varId ... |
Correct HTML output for netconn_server example | @@ -25,7 +25,8 @@ resp_data_mainpage_top[] = ""
" <meta http-equiv=\"refresh\" content=\"1\" />"
" </head>"
" <body>"
-" <p>Netconn driven website! <p>Total system up time: <b>";
+" <p>Netconn driven website!</p>"
+" <p>Total system up time: <b>";
/**
* \brief Bottom part of main page
|
Hide missleading exception | @@ -26,6 +26,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using CsProtocol;
using System.Linq;
+using Fiddler;
namespace CommonSchema
{
@@ -325,6 +326,10 @@ namespace CommonSchema
outputBuffer.SetLength(0);
} while (true);
}
+ catch (EndOfStreamException)
+ {
+ Logger.LogDebug("End of Binary Stream");
+ }
ca... |
Update syslog message priority format to match sysrepo | @@ -42,10 +42,10 @@ struct {
NC_VERB_LEVEL level;
const char *label;
} verb[] = {
- {NC_VERB_ERROR, "ERROR"},
- {NC_VERB_WARNING, "WARNING"},
- {NC_VERB_VERBOSE, "VERBOSE"},
- {NC_VERB_DEBUG, "DEBUG"}
+ {NC_VERB_ERROR, "[ERR]"},
+ {NC_VERB_WARNING, "[WRN]"},
+ {NC_VERB_VERBOSE, "[INF]"},
+ {NC_VERB_DEBUG, "[DBG]"}
};
#... |
Raise clap version to 0.15.0 | @@ -22,7 +22,7 @@ typedef struct clap_version {
}
#endif
-static CLAP_CONSTEXPR const clap_version CLAP_VERSION = {0, 14, 0};
+static CLAP_CONSTEXPR const clap_version CLAP_VERSION = {0, 15, 0};
static CLAP_CONSTEXPR inline bool clap_version_is_compatible(const clap_version &v) {
// For version 0, we require the same m... |
Configurations/50-masm.conf: add /nologo to ml64 command line. | inherit_from => [ "VC-WIN64-common", asm("x86_64_asm"),
sub { $disabled{shared} ? () : "x86_64_uplink" } ],
as => "ml64",
- asflags => "/c /Cp /Cx /Zi",
+ asflags => "/nologo /c /Cp /Cx /Zi",
asoutflag => "/Fo",
sys_id => "WIN64A",
bn_asm_src => sub { return undef unless @_;
|
ipmi-watchdog: WD_POWER_CYCLE_ACTION -> WD_RESET_ACTION
The IPMI specification denotes that action 0x1 is Host Reset and 0x3 is
Host Power Cycle. Use the correct name for Reset in our watchdog code. | /* WDT expiration actions */
#define WDT_PRETIMEOUT_SMI 0x10
-#define WDT_POWER_CYCLE_ACTION 0x01
+#define WDT_RESET_ACTION 0x01
#define WDT_NO_ACTION 0x00
/* How long to set the overall watchdog timeout for. In units of
@@ -122,7 +122,7 @@ void ipmi_wdt_final_reset(void)
/* todo: this is disabled while we're waiting o... |
add reference to the technical report | @@ -47,7 +47,7 @@ Notable aspects of the design include:
and usually uses less memory (up to 25% more in the worst case). A nice property
is that it does consistently well over a wide range of benchmarks.
-You can read more on the design of _mimalloc_ in the upcoming technical report
+You can read more on the design of... |
router_readconfig: keep around all resolved addresses
Removing all but the first resolved address disallows us to try
fail-over strategies lateron. | @@ -625,7 +625,6 @@ router_readconfig(router *orig,
char sport[8];
int err;
struct addrinfo *walk = NULL;
- struct addrinfo *next = NULL;
char hnbuf[256];
for (; *p != '\0' && !isspace(*p) && *p != ';'; p++) {
@@ -733,30 +732,16 @@ router_readconfig(router *orig,
router_free(ret);
return NULL;
}
-
- if (!useall && sadd... |
Improved the README of the CMSIS-DSP Python wrapper.
More details about the installation procedure. | @@ -8,15 +8,35 @@ But even with those limitations, it can be very useful to test a CMSIS-DSP imple
# How to build and install
+## Tested configurations
+
+The building of this package has been tested on Windows with the Python install from python.org and Microsoft Visual 2017.
+
+It has also been tested with cygwin. In... |
Add objcopy for clang7_cortex toolchains
Add objcopy for clang7_cortex toolchains | "nm": {
"description": "Run nm"
},
+ "objcopy": {
+ "description": "Run objcopy"
+ },
"svn": {
"description": "Subversion command-line client"
},
"strip": {
"bottle": "clang7",
"executable": "llvm-strip"
+ },
+ "objcopy": {
+ "bottle": "clang7",
+ "executable": "llvm-objcopy"
}
},
"platforms": [
"strip": {
"bottle": "c... |
capture: adding attr parsing | * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
#include <stdio.h>
+#include <string.h>
#include "m_pd.h"
#include "common/loud.h"
#include "hammer/file.h"
#define CAPTURE_DEFSIZE 512
+#define CAPTURE_DEFPREC 64 //default precision
+#define CAPTURE_MINPREC 1 //minimum preision
+//not sure what's pla... |
no-op on bad mugs | ::
|%
++ bite :: packet to cake
- |= pac=rock ^- cake
+ |= pac=rock
+ ^- (unit cake)
=+ [mag=(end 5 1 pac) bod=(rsh 5 1 pac)]
=+ :* vez=(end 0 3 mag) :: protocol version
chk=(cut 0 [3 20] mag) :: checksum
vix=(bex +((cut 0 [25 2] mag))) :: width of sender
tay=(cut 0 [27 5] mag) :: message type
==
- ?> =(protocol-versio... |
VERSION bump to version 2.0.90 | @@ -62,7 +62,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 89)
+set(LIBYANG_MICRO_VERSION 90)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
... |
buffers: performance improvement
Initialize the local variables as to prevent first fall
through one by one processing; skip prefetching rather
than doing one by one when count below 12.
Type: improvement | @@ -786,28 +786,42 @@ vlib_buffer_free_inline (vlib_main_t * vm, u32 * buffers, u32 n_buffers,
vlib_buffer_t bt = { };
#if defined(CLIB_HAVE_VEC128)
vlib_buffer_t bpi_mask = {.buffer_pool_index = ~0 };
- vlib_buffer_t bpi_vec = {.buffer_pool_index = ~0 };
+ vlib_buffer_t bpi_vec = {};
vlib_buffer_t flags_refs_mask = {
... |
fixed memory leak and cleaned up style | @@ -993,15 +993,16 @@ _cw_intr_win(c3_c* han_c)
}
#endif
-c3_c
-*_cw_eval_get_input(FILE* fp, size_t size)
+/* _cw_eval_get_input(): Read input from file and return a concatenated string
+*/
+c3_c*
+_cw_eval_get_input(FILE* fp, size_t size)
{
-//The size is extended by the input with the value of the provisional
c3_c *... |
Disable profile recorder controller by default to get the e2e test passing | @@ -499,6 +499,10 @@ func (r *ReconcileSPOd) getConfiguredSPOd(
useCustomHostProc := cfg.Spec.HostProcVolumePath != bindata.DefaultHostProcPath
volume, mount := bindata.CustomHostProcVolume(cfg.Spec.HostProcVolumePath)
+ // Disable profile recording controller by default
+ templateSpec.Containers[bindata.ContainerIDDae... |
Adjust nrf52832 compile output | @@ -182,7 +182,7 @@ nrf52832.a: $(OBJECTS)
# Assemble files
$(OBJECT_DIRECTORY)/%.o: %.s
- @echo Compiling file: $(notdir $<)
+ $(TRACE_CC)
$(Q)$(CC) $(ASMFLAGS) $(addprefix -I$(NRF52_SDK_ROOT)/, $(INC_PATHS)) -c -o $@ $<
%.jlink:
|
Enable more Mal tests | @@ -65,7 +65,6 @@ commands_full = [
"args": ["16", "64"],
"expect_sha1": "d85df3561eb15f6f0e6f20d5640e8e1306222c6d"
}, {
- "skip": True, # Fails on Windows-uvwasi, on CI only (CNR locally)
"name": "mal",
"wasm": "./wasi/mal/mal.wasm",
"args": ["./wasi/mal/test-fib.mal", "16"],
|
Fix buffer overflow in the cc26x0-cc13x0 BMP280 sensor driver
The calibration data structure's size is 28 bytes, but we were only allocating 24 bytes for the buffer used for calibration I2C transactions. I2C transactions would write 4 bytes beyond the end of the buffer. | /*---------------------------------------------------------------------------*/
/* Misc. */
#define MEAS_DATA_SIZE 6
-#define CALIB_DATA_SIZE 24
/*---------------------------------------------------------------------------*/
#define RES_OFF 0
#define RES_ULTRA_LOW_POWER 1
@@ -120,8 +119,8 @@ typedef struct bmp_280_cali... |
Makefile: Add make all target
This is a covenient way to ensure that everything builds before pushing changes. | @@ -4,6 +4,10 @@ help:
.PHONY: doc
+all: movehub cityhub cplushub nxt ev3dev-armel
+
+clean-all: clean-movehub clean-cityhub clean-cplushub clean-nxt clean-ev3dev-armel
+
ev3dev-host:
@$(MAKE) -C bricks/ev3dev CROSS_COMPILE=
|
Added --browsers-file command line option to default config file. | @@ -427,6 +427,12 @@ no-term-resolver false
#
all-static-files false
+# Include an additional delimited list of browsers/crawlers/feeds etc.
+# See config/browsers.list for an example or
+# https://raw.githubusercontent.com/allinurl/goaccess/master/config/browsers.list
+#
+#browsers-file <filename>
+
# Date specificity... |
tests: stop overriding hashbang in scripts
Execute scripts directly so they use
the specified interpreter + parameters
in the first line.
This aligns the behavior between running
scripts through make and manually in
the shell. | @@ -12,7 +12,7 @@ summary: $(TESTLOGS)
%.testlog: %.sh
@echo "========== Running script test $(basename $@).sh =========="
- @bash "$(basename $@).sh" "$(CONTIKI)"
+ @./"$(basename $@).sh" "$(CONTIKI)"
clean:
@rm -f *.*log report summary
|
fix free memory issue. | @@ -1165,7 +1165,7 @@ static void *sync_thread(void *arg)
static void reset_callback(struct ldus_rbtree *node)
{
- struct block_internal *b = (struct block_internal *)_rbtree_ptr(node);
+ struct block_internal *b = (struct block_internal *)node;
if(b->remark) {
xdag_free(b->remark);
}
|
update api_platon.h
fix the issue | @@ -298,7 +298,7 @@ __BOATSTATIC __BOATINLINE BOAT_RESULT BoatPlatONTxSetData(BoatPlatONTx *tx_ptr,
* @brief Prase RPC method RESPONSE.
* @see web3_parse_json_result()
******************************************************************************/
-BOAT_RESULT BoatPlatONPraseRpcResponseStringResult(const BCHAR *json_st... |
bricks/_common: Group module configs.
This makes it easier to see at a glance what is enabled. | #define MICROPY_ENABLE_COMPILER (PYBRICKS_OPT_COMPILER)
+// Enabled modules
+#define MICROPY_PY_IO (PYBRICKS_OPT_EXTRA_MOD)
+#define MICROPY_PY_MATH (PYBRICKS_OPT_FLOAT)
+#define MICROPY_PY_STRUCT (PYBRICKS_OPT_EXTRA_MOD)
+#define MICROPY_PY_SYS (PYBRICKS_OPT_EXTRA_MOD)
+#define MICROPY_PY_UERRNO (1)
+#define MICROPY_P... |
PH: Center choose columns window | @@ -131,6 +131,7 @@ INT_PTR CALLBACK PhpColumnsDlgProc(
context->InactiveList = GetDlgItem(hwndDlg, IDC_INACTIVE);
context->ActiveList = GetDlgItem(hwndDlg, IDC_ACTIVE);
+ PhCenterWindow(hwndDlg, GetParent(hwndDlg));
if (context->Type == PH_CONTROL_TYPE_TREE_NEW)
{
|
generalizes =model syntax to be valid for any toro
tsfs, tssm, tshp, etc. | ?~(a !! ?~(t.a [%wing i.a] [%tsgl [%wing i.a] $(a t.a)]))
(most col rope)
::
+ ++ espy :: face for =model
+ |= rot=root
+ ^- (unit (pair term root))
+ =; mot
+ ?~(mot ~ `[u.mot rot])
+ |- ^- (unit term)
+ ?+ rot ~
+ {$bcsm *} $(rot p.rot)
+ {$wing *} ?~(p.rot ~ ?^(i.p.rot ~ `i.p.rot))
+ {$limb *} `p.rot
+ {$dbug *} $(r... |
crypto.c: Clarify comments on use of userdata for header + context + key opad blocks | @@ -172,7 +172,8 @@ static int crypto_lhash (lua_State *L)
static int crypto_new_hash_hmac (lua_State *L, int what)
{
- /* get pointer to relevant hash_mechs table entry in app/crypto/digest.c */
+ // get pointer to relevant hash_mechs table entry in app/crypto/digest.c. Note that
+ // the size of the table needed is d... |
ssl-opt: add state check | @@ -10484,6 +10484,7 @@ run_test "TLS 1.3: Server side check - openssl" \
-s "tls13 server state: MBEDTLS_SSL_CLIENT_HELLO" \
-s "tls13 server state: MBEDTLS_SSL_SERVER_HELLO" \
-s "tls13 server state: MBEDTLS_SSL_ENCRYPTED_EXTENSIONS" \
+ -s "tls13 server state: MBEDTLS_SSL_SERVER_CERTIFICATE" \
-s "SSL - The requeste... |
Make ioclass name bigger | @@ -293,7 +293,7 @@ typedef enum {
#define OCF_IO_CLASS_INVALID OCF_IO_CLASS_MAX
/** Maximum size of the IO class name */
-#define OCF_IO_CLASS_NAME_MAX 33
+#define OCF_IO_CLASS_NAME_MAX 1024
/** IO class priority which indicates pinning */
#define OCF_IO_CLASS_PRIO_PINNED -1
|
mesh: Initialize msg_ctx when re-encrypting friend msg
Set app_idx and net_idx in the msg_ctx before calling
bt_mesh_keys_resolve when re-encrypting friend messages, as they'll be
referenced inside the function.
this is port of | @@ -345,7 +345,12 @@ static int unseg_app_sdu_unpack(struct bt_mesh_friend *frnd,
struct unseg_app_sdu_meta *meta)
{
uint16_t app_idx = FRIEND_ADV(buf)->app_idx;
- struct bt_mesh_net_rx net;
+ struct bt_mesh_net_rx net = {
+ .ctx = {
+ .app_idx = app_idx,
+ .net_idx = frnd->subnet->net_idx,
+ },
+ };
int err;
meta->sub... |
free IPD receive buffer when connection gets lost or reset event occurs | @@ -341,6 +341,12 @@ espi_reset_everything(uint8_t forced) {
#endif /* ESP_CFG_MODE_STATION */
esp.m.sta.is_connected = 0;
+ /* Check if IPD active */
+ if (esp.m.ipd.buff != NULL) {
+ esp_pbuf_free(esp.m.ipd.buff);
+ esp.m.ipd.buff = NULL;
+ }
+
/* Invalid ESP modules */
ESP_MEMSET(&esp.m, 0x00, sizeof(esp.m));
@@ -98... |
SW: Fix error handling when polling for job completion | @@ -712,6 +712,7 @@ int snap_action_completed(struct snap_action *action, int *rc, int timeout)
}
if (rc)
*rc = _rc;
+
return (action_data & ACTION_CONTROL_IDLE) == ACTION_CONTROL_IDLE;
}
@@ -797,9 +798,16 @@ int snap_action_sync_execute_job(struct snap_action *action,
snap_action_start(action);
completed = snap_action... |
Tests: added test for encoding in the "pass" option. | @@ -181,6 +181,61 @@ class TestRouting(TestApplicationProto):
self.assertEqual(self.get(url='/blah')['status'], 200, '/blah')
self.assertEqual(self.get(url='/BLAH')['status'], 404, '/BLAH')
+ def test_routes_pass_encode(self):
+ def check_pass(path, name):
+ self.assertIn(
+ 'success',
+ self.conf(
+ {
+ "listeners": {... |
VERSION bump to version 2.0.214 | @@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 213)
+set(LIBYANG_MICRO_VERSION 214)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}... |
Reduce default text size | @@ -38,8 +38,8 @@ text_box_t* text_box_create(Size size, Color background_color) {
text_box_t* tb = calloc(1, sizeof(text_box_t));
tb->layer = create_layer(size);
tb->size = size;
- tb->font_size = size_make(12, 12);
- tb->font_padding = size_make(2, 2);
+ tb->font_size = size_make(8, 12);
+ tb->font_padding = size_mak... |
fixed outline items corruption | @@ -1885,17 +1885,12 @@ static void drawOutlineBar(Code* code, s32 x, s32 y)
tic_api_rect(code->tic, rect.x - 1, rect.y + code->outline.index*STUDIO_TEXT_HEIGHT,
rect.w + 1, TIC_FONT_HEIGHT + 2, tic_color_red);
- for(s32 i = 0; i < code->outline.size; i++)
+ for(const tic_outline_item* ptr = code->outline.items, *end =... |
pci: Wait 20ms before checking presence detect on PCIe
As the PHB presence logic has a debounce timer that can take
a while to settle. | @@ -1641,6 +1641,11 @@ void pci_init_slots(void)
{
unsigned int i;
+ /* Some PHBs may need that long to debounce the presence detect
+ * after HW initialization.
+ */
+ time_wait_ms(20);
+
prlog(PR_NOTICE, "PCI: Resetting PHBs...\n");
pci_do_jobs(pci_reset_phb);
|
btc-wallet: fix imports | @@ -12,10 +12,10 @@ import {
import Sigil from '../Sigil';
import * as bitcoin from 'bitcoinjs-lib';
import { isValidPatp } from 'urbit-ob';
-import Sent from './sent.js';
+import Sent from './Sent.tsx';
import Error from '../Error';
-import { copyToClipboard, satsToCurrency } from '../../lib/util.js';
-import { useSet... |
fix COPY_FILES_TO_BUILD_PREFIX to accept arguments started started with ${CURDIR}/ and ${BINDIR}/ | from _common import sort_by_keywords
-SOURCE_ROOT = '${ARCADIA_ROOT}'
-BUILD_ROOT = '${ARCADIA_BUILD_ROOT}'
+SOURCE_ROOT = '${ARCADIA_ROOT}/'
+BUILD_ROOT = '${ARCADIA_BUILD_ROOT}/'
+CURDIR = '${CURDIR}/'
+BINDIR = '${BINDIR}/'
def oncopy_files_to_build_prefix(unit, *args):
@@ -22,8 +24,13 @@ def oncopy_files_to_build_p... |
Integrate DataViewer APIs with LogManager | #include "Enums.hpp"
#include "ILogger.hpp"
#include "IAuthTokensController.hpp"
+#include "IDataViewer.hpp"
#include "ISemanticContext.hpp"
#include "LogConfiguration.hpp"
#include "LogSessionData.hpp"
@@ -348,6 +349,41 @@ namespace ARIASDK_NS_BEGIN
/// <param name="defaultLevel">Diagnostic level for the LogManager</p... |
Manually clone the repository for Conan builds.
Since actions/checkout will always break `git describe` I've decided to
make my own step for cloning the repo. | @@ -13,9 +13,15 @@ jobs:
CONAN_GCC_VERSIONS: [7, 8, 9]
steps:
- - uses: actions/checkout@v2
- with:
- fetch-depth: 0 # Needed to support tags.
+ # actions/checkout breaks `git describe` so a manual clone is needed.
+ # https://github.com/actions/checkout/issues/272
+ - name: Clone libtcod
+ run: |
+ git clone https://g... |
in_mqtt: fix head overflow in parser (FLU-01-005, FLU-01-006)
Current implementation trust in packet information leading to
security issues (buffer overflow).
The following patch makes sure to add proper validation of
topic length specified in the packet and also add extra checks
on packet drop routine to avoid overflo... | @@ -76,6 +76,14 @@ static inline int mqtt_packet_drop(struct mqtt_conn *conn)
return 0;
}
+ /* Check boundaries */
+ if (conn->buf_pos + 1 > conn->buf_len) {
+ conn->buf_frame_end = 0;
+ conn->buf_len = 0;
+ conn->buf_pos = 0;
+ return 0;
+ }
+
move_bytes = conn->buf_pos + 1;
memmove(conn->buf,
conn->buf + move_bytes,
... |
tests: fix centos detection
Type: fix
Fixes: | @@ -218,7 +218,7 @@ def _running_on_centos():
return True if "centos" in os_id.lower() else False
-running_on_centos = _running_on_centos
+running_on_centos = _running_on_centos()
class KeepAliveReporter(object):
|
Fix Travis CI script exit | @@ -72,3 +72,5 @@ script:
- ./picohttp_ct -n -r && HTTPRESULT=$?
- if [[ ${QUICRESULT} != 0 ]]; then for i in $(find ./ -maxdepth 1 -name 'core*' -print); do gdb $(pwd)/picoquic_ct core* -ex "thread apply all bt" -ex "set pagination 0" -batch; done; fi;
- if [[ ${HTTPRESULT} != 0 ]]; then for i in $(find ./ -maxdepth 1... |
Add prototypes for SceGpu MMU functions | @@ -16,6 +16,9 @@ int PVRSRVGetMiscInfoKM(void *info);
int ksceGpuGetRegisterDump(void *dst, SceSize size);
+int ksceGpuMmuMapMemory(void *mmuContext, uint32_t vaddr, void *base, uint32_t size, uint32_t flags);
+int ksceGpuMmuUnmapMemory(void *mmuContext, uint32_t vaddr, uint32_t size);
+
#ifdef __cplusplus
}
#endif
|
Remove legacy dot elements from checkdamageeffects(). | @@ -24958,11 +24958,6 @@ void checkdamageeffects(s_collision_attack *attack)
#define _steal attack->steal
#define _seal attack->seal
#define _sealtime attack->sealtime
-#define _dot attack->recursive->mode
-#define _dot_index attack->recursive->index
-#define _dot_time attack->recursive->time
-#define _dot_force attack... |
run with only ASan | @@ -18,7 +18,7 @@ jobs:
- name: default
command: make -f misc/docker-ci.mk
- name: asan
- command: make -f misc/docker-ci.mk CMAKE_ARGS='"-DCMAKE_C_COMPILER=clang;-fsanitize=address,undefined" "-DCMAKE_CXX_COMPILER=clang++;-fsanitize=address,undefined"' CHECK_ENVS="ASAN_OPTIONS=detect_leaks=0"
+ command: make -f misc/d... |
feat(fabric test case):
add fabric test case "CreatePersistWalletFail_KeyTypeErr" | @@ -668,6 +668,21 @@ START_TEST(test_001CreateWallet_0013CreatePersistWalletFail_11wallets)
}
END_TEST
+START_TEST(test_001CreateWallet_0014CreatePersistWalletFail_KeyTypeErr)
+{
+ BSINT32 rtnVal;
+ BoatHlfabricWallet *g_fabric_wallet_ptr = NULL;
+ BoatHlfabricWalletConfig wallet_config = get_fabric_wallet_settings();
... |
graph-store: updated deep-node retrieval to use +tab | (~(get by graphs) [ship term])
?~ result
[~ ~]
- =* graph p.u.result
- =/ =(list [atom node:store]) (tap:orm graph)
:- ~ :- ~ :- %graph-update-2
!> ^- update:store
- :- now.bowl
+ :+ %0
+ now.bowl
:+ %add-nodes
[ship term]
- =| deep-map=(map index:store node:store)
- =| iter=@ud
- =| =index:store
- |- ^- (map index:sto... |
Add WithMultiRoCCFromBuildRoCC to make heterogeneous accelerator configs easier | @@ -83,6 +83,17 @@ class WithMultiRoCC extends Config((site, here, up) => {
case BuildRoCC => site(MultiRoCCKey).getOrElse(site(TileKey).hartId, Nil)
})
+/**
+ * Assigns what was previously in the BuildRoCC key to specific harts with MultiRoCCKey
+ * Must be paired with WithMultiRoCC
+ */
+class WithMultiRoCCFromBuildR... |
doc/security: fix re-flashable bootloader section
Add pointer to key generation section
Fix sequence point ordering | @@ -129,11 +129,11 @@ To enable a reflashable bootloader:
2. If necessary, set the :ref:`CONFIG_SECURE_BOOTLOADER_KEY_ENCODING` based on the coding scheme used by the device. The coding scheme is shown in the ``Features`` line when ``esptool.py`` connects to the chip, or in the ``espefuse.py summary`` output.
-2. Follo... |
build: compile flb_http_client_debug.c if it support is enabled | @@ -44,7 +44,6 @@ set(src
flb_plugin.c
flb_gzip.c
flb_http_client.c
- flb_http_client_debug.c
flb_callback.c
)
@@ -105,6 +104,13 @@ if(FLB_SIGNV4 AND FLB_TLS)
)
endif()
+if(FLB_HTTP_CLIENT_DEBUG)
+ set(src
+ ${src}
+ "flb_http_client_debug.c"
+ )
+endif()
+
if(FLB_LUAJIT)
set(src
${src}
|
Fixing request_app_link reference counting.
Racing conditions reproduced periodically on test_python_process_switch. | @@ -731,9 +731,7 @@ nxt_request_app_link_release_handler(nxt_task_t *task, void *obj, void *data)
nxt_assert(req_app_link->work.data == data);
- nxt_atomic_fetch_add(&req_app_link->use_count, -1);
-
- nxt_request_app_link_release(task, req_app_link);
+ nxt_request_app_link_use(task, req_app_link, -1);
}
@@ -4695,7 +469... |
tunslip6: print connection error info
Print the errno relating to the failed
connect rather than the (potential) errno
from close. If close succeeded, errno is
undefined. | @@ -1044,8 +1044,8 @@ exit(1);
}
if(connect(slipfd, p->ai_addr, p->ai_addrlen) == -1) {
- close(slipfd);
perror("client: connect");
+ close(slipfd);
continue;
}
break;
|
move wrapup_free_hs_transform | @@ -1009,31 +1009,6 @@ static void ssl_update_checksum_sha384( mbedtls_ssl_context *ssl,
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
-void mbedtls_ssl_handshake_wrapup_free_hs_transform( mbedtls_ssl_context *ssl )
-{
- MBEDTLS_SSL_DEBUG_MSG( 3, ( "=> handshake wrapup: final free" ) );
-
- /*
- * Free our handshake params
- *... |
cmake policy CMP0025 was introduced in CMake 3.0 | @@ -38,11 +38,6 @@ else()
set(CMAKE_CXX_STANDARD "${SUPPORTED_CXX_STD_VERSION}")
endif()
-# Fix behavior of CMAKE_CXX_STANDARD when targeting macOS.
-if(POLICY CMP0025)
- cmake_policy(SET CMP0025 NEW)
-endif()
-
include(CheckCCompilerFlag)
include(CPackComponent)
macro(pass_through_cpack_vars)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.