message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
with asymmetry, server must also decides to use its paths | #define COOLDOWN_RTT_COEF 8
protoop_arg_t path_manager(picoquic_cnx_t* cnx) {
- int client_mode = (int) get_cnx(cnx, AK_CNX_CLIENT_MODE, 0);
- /* Prevent the server from starting using new paths */
- if (!client_mode) {
- return 0;
- }
+ /* Now, even the server MUST itself setup its sending paths */
bpf_data *bpfd = ge... |
Prebuilt -> Pre-built. | @@ -15,7 +15,7 @@ MIT License - see the LICENSE file in the source distribution.
### Installation
-#### Prebuilt Binaries
+#### Pre-built Binaries
Releases can be downloaded from the
[releases](https://github.com/msteinbeck/tinyspline/releases) page.
|
control: remove idle_state | @@ -80,7 +80,6 @@ motor_test_t motor_test = {
.value = {0, 0, 0, 0},
};
-static uint8_t idle_state;
static uint8_t arming_release;
extern int ledcommand;
@@ -371,12 +370,6 @@ void control() {
flags.throttle_safety = 0;
}
- if (!rx_aux_on(AUX_IDLE_UP)) {
- idle_state = 0;
- } else {
- idle_state = 1;
- }
-
// CONDITION:... |
OcAppleDiskImageLib: Even more debug logging | @@ -77,6 +77,13 @@ OcAppleDiskImageInitializeContext (
&Trailer
);
if (!Result || (Trailer.Signature != SwappedSig)) {
+ DEBUG ((
+ DEBUG_INFO,
+ "Dmg trailer error: %d - %X/%X.\n",
+ Result,
+ SwappedSig,
+ Trailer.Signature
+ ));
return FALSE;
}
|
fixes bug in %eyre proxy config, repairs existing config in +load | ::
$init :: register ownership
=. our ?~(hov p.kyz (min u.hov p.kyz))
- =. fig [~ ?=(%king our) & &]
+ =. fig [~ ?=(%king (clan:title our)) & &]
+>.$(hov [~ our], top [[our %home ud+0] /web])
::
?($chis $this) :: inbound request
^+ ..^$
?- -.old
$0 $(old [%1 ~ *http-config [8.080 ~] [~ ~] +.old])
- $1 ..^$(+>- old)
+ :... |
In --print-ir, explicitly show CallStatic and CallDyn
Previously, --print-ir didn't distinguish between CallStatic and CallDyn
x2 <- f(x1)
Now it shows which one it is.
x2 <- CallStatic f(x1)
x2 <- CallDyn g(x1) | @@ -219,8 +219,10 @@ local function Cmd(cmd)
elseif tag == "ir.Cmd.SetField" then rhs = Val(cmd.src_v)
elseif tag == "ir.Cmd.NewClosure" then rhs = Call("NewClosure", { Fun(cmd.f_id) })
elseif tag == "ir.Cmd.InitUpvalues" then rhs = comma_concat(Vals(cmd.srcs))
- elseif tag == "ir.Cmd.CallStatic" then rhs = Call(Val(cm... |
Improving content type handling
If request content type not empty, means user expecting something else, do not override it. | @@ -61,6 +61,9 @@ class LoaderInfo extends URLLoader
var dot = pendingURL.lastIndexOf(".");
var extension = dot > 0 ? pendingURL.substr(dot + 1).toLowerCase() : "";
+ if(request.contentType == null ||
+ request.contentType.length == 0 ||
+ request.contentType == "application/x-www-form-urlencoded")
contentType = switch... |
fixed code selection | @@ -1160,20 +1160,19 @@ static void doTab(Code* code, bool shift, bool crtl)
// Add a block-ending keyword or symbol, and put the cursor in the line between.
static void newLineAutoClose(Code* code)
{
- newLine(code);
-
const char* blockEnd = tic_core_script_config(code->tic)->blockEnd;
if (blockEnd != NULL)
{
newLine(... |
Fix RPZ's get_tld_label maxdnamelen check | @@ -118,13 +118,17 @@ get_tld_label(uint8_t* dname, size_t maxdnamelen)
uint8_t* prevlab = dname;
size_t dnamelen = 0;
+ /* one byte needed for label length */
+ if(dnamelen+1 > maxdnamelen)
+ return NULL;
+
/* only root label */
if(*dname == 0)
return NULL;
while(*dname) {
dnamelen += ((size_t)*dname)+1;
- if(dnamelen... |
docs/utime: Explicitly describe that ticks_ms(), etc. return small int.
I.e. never allocate memory. | @@ -78,7 +78,8 @@ Functions
.. function:: ticks_ms()
Returns an increasing millisecond counter with an arbitrary reference point, that
- wraps around after some value.
+ wraps around after some value. The returned value is guaranteed to be a `small integer`,
+ i.e. this function works without memory allocation.
The wra... |
Update sys_a.s
SYS_setInterruptMaskLevel also set internal saved int level so it's not overwritten when using SYS_enablesInts() | @@ -46,6 +46,7 @@ SYS_setInterruptMaskLevel:
move.w 6(%sp),%d0 | d0 = value
andi.w #0x07,%d0
+ move.w %d0,intLevelSave | overwrite intLevelSave so we do not lost new interrupt mask
ori.w #0x20,%d0
lsl.w #8,%d0
move.w %d0,%sr
|
Port to new API for | #include "fire.hpp"
-using namespace engine;
-
-using namespace graphics;
+using namespace blit;
uint8_t logo[16][16] = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
@@ -40,8 +38,8 @@ uint8_t __pb[screen_width * screen_height] __attribute__((section(".fb")));
/* create surfaces */
//surface fb((uint8_t *)__fb, si... |
Update PSA_CIPHER_ENCRYPT_OUTPUT_MAX_SIZE | */
#define PSA_CIPHER_ENCRYPT_OUTPUT_MAX_SIZE(input_length) \
(PSA_ROUND_UP_TO_MULTIPLE(PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE, \
- (input_length) + PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE))
+ (input_length) + 1) + \
+ PSA_CIPHER_IV_MAX_SIZE)
/** The maximum size of the output of psa_cipher_decrypt(), in bytes.
*
|
Add GPose target | @@ -11,6 +11,7 @@ namespace FFXIVClientStructs.FFXIV.Client.Game.Control
{
[FieldOffset(0x80)] public GameObject* Target;
[FieldOffset(0x88)] public GameObject* SoftTarget;
+ [FieldOffset(0x98)] public GameObject* GPoseTarget;
[FieldOffset(0xD0)] public GameObject* MouseOverTarget;
[FieldOffset(0xF8)] public GameObject... |
Change Azure SonarCloud job to run for every PR, rather than only for manual or scheduled builds. | @@ -83,7 +83,6 @@ jobs:
# ------------------------------------------------------------------------------
- job: SonarCloud
displayName: SonarCloud Ubuntu 16.04 VFX CY2019
- condition: in(variables['Build.Reason'], 'Manual', 'Schedule')
timeoutInMinutes: 360
pool:
vmImage: 'ubuntu-16.04'
|
parallel-libs/boost: packaging issues arise with newer version, revert back to v1.71.0 | Summary: Boost free peer-reviewed portable C++ source libraries
Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 1.73.0
+Version: 1.71.0
-%define version_exp 1_73_0
+%define version_exp 1_71_0
Release: 1%{?dist}
License: BSL-1.0
|
When element is removed, reset its animation frame to 0 | @@ -220,6 +220,7 @@ namespace carto {
void BillboardRenderer::removeElement(const std::shared_ptr<Billboard>& element) {
std::lock_guard<std::recursive_mutex> lock(_mutex);
+ element->getDrawData()->setTransition(0.0f);
_elements.erase(std::remove(_elements.begin(), _elements.end(), element), _elements.end());
}
|
media/audiomanager: Fix resampler bug
Capture should resample data based on user input.(Contrary case for playback) | @@ -331,12 +331,6 @@ static audio_manager_result_t get_actual_audio_in_card_id()
if (g_audio_in_cards[i].config[j].status != AUDIO_CARD_NONE) {
if (g_audio_in_cards[i].config[j].status == AUDIO_CARD_IDLE) {
cnt++;
- } else {
- /* found activated one */
- g_audio_in_cards[i].card_id = i;
- g_audio_in_cards[i].device_id ... |
pocl_binary: add reqd_wg_size informations into pocl_binary_kernel structure | program.bc, so older binaries may fail
to run with "undefined symbol" errors. */
/* changes for version 5: added program binary_type into header */
-#define POCLCC_VERSION 5
+/* changes for version 6: added reqd_wg_size informations into
+ pocl_binary_kernel structure */
+#define POCLCC_VERSION 6
/* pocl binary structu... |
Directory Value: Do not add leaf for parent key | @@ -59,7 +59,7 @@ static int addDirectoryData (KeySet * output, Key const * const key, Key const *
ELEKTRA_LOG_DEBUG ("Key `key` is null");
return ELEKTRA_PLUGIN_STATUS_NO_UPDATE;
}
- if (keyBaseName (next)[0] == '#' || keyIsBelow (key, next) != 1)
+ if (keyBaseName (next)[0] == '#' || keyIsBelow (key, next) != 1 || el... |
dev-tools/numpy: include python3-devel for latest centos7 | @@ -38,6 +38,7 @@ Requires: lmod%{PROJ_DELIM} >= 7.6.1
BuildRequires: fdupes
#!BuildIgnore: post-build-checks
%else
+BuildRequires: python3-devel
%if "%{compiler_family}" == "intel" || "%{compiler_family}" == "arm"
BuildRequires: python34-build-patch%{PROJ_DELIM}
%endif
|
Add a warning if some but not all of the request-xfr patterns use XoT for a given zone | @@ -506,6 +506,15 @@ xfrd_init_slave_zone(xfrd_state_type* xfrd, struct zone_options* zone_opt)
/* set refreshing anyway, if we have data it may be old */
xfrd_set_refresh_now(xzone);
+ /*Check all or none of acls use XoT*/
+ int num=0, num_xot=0;
+ for (; xzone->master != NULL; xzone->master = xzone->master->next, num... |
[mod_auth] accept "nonce-secret" & "nonce_secret" | @@ -463,7 +463,8 @@ static handler_t mod_auth_require_parse_array(const array *value, array * const
require = &ds->value;
} else if (buffer_is_equal_string(&ds->key, CONST_STR_LEN("algorithm"))) {
algos = &ds->value;
- } else if (buffer_is_equal_string(&ds->key, CONST_STR_LEN("nonce_secret"))) {
+ } else if (buffer_is_... |
Fix vulkan driver's patch version | @@ -1808,7 +1808,7 @@ static VkResult overlay_CreateSwapchainKHR(
ss << "." << "0";
} else {
ss << "." << VK_VERSION_MINOR(prop.driverVersion);
- ss << "." << VK_VERSION_PATCH(prop.driverVersion) + 1;
+ ss << "." << VK_VERSION_PATCH(prop.driverVersion);
}
}
|
VERSION bump to version 2.0.226 | @@ -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 225)
+set(LIBYANG_MICRO_VERSION 226)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}... |
bricks/stm32: disable scheduler
movehub fw size -456 | #define MICROPY_CPYTHON_COMPAT (0)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_NONE)
#define MICROPY_KBD_EXCEPTION (1)
-#define MICROPY_ENABLE_SCHEDULER (1)
+#define MICROPY_ENABLE_SCHEDULER (0)
#define MICROPY_PY_UERRNO (1)
#define MICROPY_PY_UERRNO_LIST \
|
display: Don't allow time_left to go below 0 | @@ -178,6 +178,9 @@ static void display_displayLocked(honggfuzz_t * hfuzz)
display_put("\n Run Time : " ESC_BOLD "%s" ESC_RESET, time_elapsed_str);
if (hfuzz->runEndTime > 0) {
time_t time_left = hfuzz->runEndTime - time(NULL);
+ if (time_left < 0) {
+ time_left = 0;
+ }
if (time_left > 3600) {
char end_time_str[512];
... |
ulDNSHandlePacket() - check length before calculating payload size | @@ -916,7 +916,13 @@ for testing purposes, by the module iot_test_freertos_tcp.c
uint32_t ulDNSHandlePacket( NetworkBufferDescriptor_t *pxNetworkBuffer )
{
DNSMessage_t *pxDNSMessageHeader;
-size_t uxPayloadSize = pxNetworkBuffer->xDataLength - sizeof( UDPPacket_t );
+size_t uxPayloadSize;
+
+ /* Only proceed if the pa... |
DA: Ignore empty parse and read function parameters | @@ -744,7 +744,9 @@ ParseFunction_t DA_GetParseFunction(const std::vector<QVariant> ¶ms)
if (params.size() == 1 && params.front().type() == QVariant::Map)
{
const auto params1 = params.front().toMap();
- if (params1.contains("fn"))
+ if (params1.isEmpty())
+ { }
+ else if (params1.contains("fn"))
{
fnName = params1... |
pid: fix typo in next_pid_term | @@ -372,11 +372,11 @@ int next_pid_term() {
switch (current_pid_term) {
case 0:
- current_pid_term_pointer = profile.pid.ki.axis;
+ current_pid_term_pointer = profile.pid.kp.axis;
current_pid_term = 1;
break;
case 1:
- current_pid_term_pointer = profile.pid.kd.axis;
+ current_pid_term_pointer = profile.pid.ki.axis;
cur... |
Pointer over the set location to seem buttonish | @@ -65,7 +65,7 @@ export default class WeatherTile extends Component {
style={{left: 8, top: 4}}>
Weather
</p>
- <p className="absolute w-100 flex-col body-regular white" style={{verticalAlign: "bottom", bottom: 8, left: 8, cursor: "default"}}>Set location</p>
+ <p className="absolute w-100 flex-col body-regular white"... |
fix bug in multipart data | #include "rhodes/JNINetRequest.h"
#include <common/RhodesApp.h>
+#include <common/RhoFilePath.h>
#include <common/RhoConf.h>
#include <net/URI.h>
@@ -293,8 +294,8 @@ size_t rho::net::JNINetRequest::processMultipartItems(VectorPtr<CMultipartItem*>
if ( oItem.m_strFileName.length() == 0 ) {
if (oItem.m_strFilePath.length... |
Fixing failure to invalidate indicator | @@ -950,6 +950,8 @@ static void next_color_mode(lv_obj_t * cpicker)
static void refr_indic_pos(lv_obj_t * cpicker)
{
+ invalidate_indic(cpicker);
+
lv_cpicker_ext_t * ext = lv_obj_get_ext_attr(cpicker);
lv_coord_t w = lv_obj_get_width(cpicker);
lv_coord_t h = lv_obj_get_height(cpicker);
|
remove guards for write_key_share | @@ -798,7 +798,7 @@ static int ssl_tls13_write_selected_version_ext( mbedtls_ssl_context *ssl,
return( 0 );
}
-#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
+
/* Generate and export a single key share. For hybrid KEMs, this can
* be called multiple times with the different components of the hybrid. */
@@ -894,7 +... |
Fix compiler warning from Clang.
Per build farm.
Discussion: | @@ -2238,7 +2238,7 @@ static struct config_int ConfigureNamesInt[] =
GUC_UNIT_MB
},
&min_dynamic_shared_memory,
- 0, 0, Min(INT_MAX, SIZE_MAX / 1024 / 1024),
+ 0, 0, (int) Min((size_t) INT_MAX, SIZE_MAX / (1024 * 1024)),
NULL, NULL, NULL
},
|
Java: fixing typo in context initialization. | @@ -55,7 +55,7 @@ nxt_java_initContext(JNIEnv *env, jobject cl)
}
nxt_java_Context_stop = (*env)->GetMethodID(env, cls, "stop", "()V");
- if (nxt_java_Context_service == NULL) {
+ if (nxt_java_Context_stop == NULL) {
nxt_unit_warn(NULL, "nginx.unit.Context.stop() not found");
goto failed;
}
|
glfs: update the glfs config descritions and add usage of creation | @@ -699,13 +699,25 @@ out:
return SAM_STAT_TASK_SET_FULL;
}
+/*
+ * For backstore creation
+ *
+ * Specify volume, hostname and filepath e.g,
+ *
+ * $ targetcli /backstores/user:glfs create $blockname $size \
+ * $volume@$hostname/$filepath
+ *
+ * volume: must be the name of an existing Gluster volume.
+ * hostname: ... |
Fix paths to data files | @@ -59,7 +59,7 @@ Defining curves using row index for X coordinate
Here are the first 10 lines of an example of a file representing curves where the *abscissa* (e.g. x-coordinate) is implied by the row number (starting from 0) in the file.
In this example, the values on each row are separated by commas.
-.. literalincl... |
u3: remove unwanted assertions in emergency printf | @@ -98,28 +98,22 @@ _cm_punt(u3_noun tax)
}
#endif
-static void _write(int fd, const void *buf, size_t count)
-{
- if (count != write(fd, buf, count)){
- u3l_log("write failed\r\n");
- c3_assert(0);
- }
-}
-
-
/* _cm_emergency(): write emergency text to stderr, never failing.
*/
static void
_cm_emergency(c3_c* cap_c, c... |
doc: add limitation for UEFI services
add limitation for UEFI services | @@ -162,6 +162,11 @@ The Boot process proceeds as follows:
bootloader through dm-verity
#. Virtual bootloader starts the User-side verified boot process
+.. note::
+ To avoid hardware resources conflict with ACRN hypervisor, UEFI
+ services shall not use IOMMU. In addtion, currently we only support
+ UEFI timer with HP... |
wsman-soap: account for NULL from ws_xml_get_node_text
Bail early if ws_xml_get_node_text returns NULL. | @@ -252,8 +252,18 @@ create_enum_info(SoapOpH op,
enumInfo->releaseproc = wsman_get_release_endpoint(epcntx, indoc);
to = ws_xml_get_node_text(
ws_xml_get_child(header, 0, XML_NS_ADDRESSING, WSA_TO));
+ if (to == NULL) {
+ error("No to node");
+ fault_code = WSMAN_INTERNAL_ERROR;
+ goto DONE;
+ }
uri = ws_xml_get_node_... |
Add host access callback to auth test script. | +def allow_access(environ, host):
+ print('HOST', host, environ['REQUEST_URI'])
+ return True
+
def check_password(environ, user, password):
print('USER', user, environ['REQUEST_URI'])
if user == 'spy':
|
fix multiclass in python | @@ -11,6 +11,7 @@ namespace NCatboostCuda {
if (TargetHelper) {
TargetHelper->MakeTargetAndWeights(!IsTest, &DataProvider.Targets, &DataProvider.Weights);
+ DataProvider.ClassificationTargetHelper = TargetHelper;
}
DataProvider.CatFeatureIds.insert(Pool.CatFeatures.begin(), Pool.CatFeatures.end());
|
uname: Implement error handling | @@ -28,7 +28,14 @@ static void elektraAddUname (KeySet * returned, Key * parentKey)
struct utsname buf;
- uname (&buf); // TODO: handle error
+ if (uname (&buf) < 0)
+ {
+ dir = keyDup (parentKey, KEY_CP_ALL);
+ keyAddBaseName (dir, "error");
+ keySetString (dir, strerror (errno));
+ ksAppendKey (returned, dir);
+ retu... |
YAML CPP: Use explicit imports in read code | #include <sstream>
-using namespace std;
-using namespace kdb;
-
namespace
{
+
+using std::istringstream;
+using std::ostringstream;
+using std::string;
+using std::to_string;
+
+using kdb::Key;
+using kdb::KeySet;
+
/**
* @brief This function converts a given number to an array base name.
*
|
Travis: Use latest version of LLVM on Linux | @@ -167,14 +167,14 @@ matrix:
addons:
apt:
sources:
- - llvm-toolchain-trusty-6.0
+ - llvm-toolchain-trusty-7
- ubuntu-toolchain-r-test
packages:
- - clang-6.0
+ - clang-7
env:
- ENABLE_ASAN=ON
- - CC_COMPILER=clang-6.0
- - CXX_COMPILER=clang++-6.0
+ - CC_COMPILER=clang-7
+ - CXX_COMPILER=clang++-7
- TEST_COMMAND='ninj... |
Implement Ethereum transaction signing
Includes RLP encoding logic. | [%bytes p=octs]
==
::
+ :: raw transaction data
+ +$ transaction
+ $: nonce=@ud
+ gas-price=@ud
+ gas=@ud
+ to=address
+ value=@ud
+ data=@ux
+ chain-id=@ux
+ ==
+ ::
:: ethereum address, 20 bytes.
++ address @ux
::
=, mimes:html
=, ethe
|%
+ ++ sign-transaction
+ =, crypto
+ |= [tx=transaction pk=@]
+ ^- @ux
+ =/ dat=... |
Use sym_FindSymbol() where possible | @@ -207,7 +207,7 @@ struct sSymbol *findsymbol(char *s, struct sSymbol *scope)
}
/*
- * Find a symbol by name and scope
+ * Find a symbol by name, with automatically determined scope
*/
struct sSymbol *sym_FindSymbol(char *tzName)
{
@@ -256,14 +256,7 @@ void sym_Purge(char *tzName)
*/
uint32_t sym_isConstDefined(char *... |
VERSION bump to version 1.3.63 | @@ -31,7 +31,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 1)
set(SYSREPO_MINOR_VERSION 3)
-set(SYSREPO_MICRO_VERSION 62)
+set(SYSREPO_MICRO_VERSION 63)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
Adding terminal guard around tty column/row calculations | @@ -919,10 +919,13 @@ u3_term_get_blew(c3_l tid_l)
c3_l col_l, row_l;
struct winsize siz_u;
- if ( uty_u && (0 == ioctl(uty_u->fid_i, TIOCGWINSZ, &siz_u)) ) {
+ if ( (c3y == u3_Host.ops_u.tem) &&
+ uty_u && (0 == ioctl(uty_u->fid_i, TIOCGWINSZ, &siz_u)) )
+ {
col_l = siz_u.ws_col;
row_l = siz_u.ws_row;
- } else {
+ }
+... |
Don't capture curloperation in the lambda | @@ -73,9 +73,17 @@ namespace ARIASDK_NS_BEGIN {
auto curlOperation = std::make_shared<CurlHttpOperation>(curlRequest->m_method, curlRequest->m_url, callback, requestHeaders, curlRequest->m_body);
curlRequest->SetOperation(curlOperation);
+ auto operationLifetime = std::weak_ptr<CurlHttpOperation>(curlOperation);
- // H... |
fix bug in multithreaded quantization exception handling | @@ -64,7 +64,7 @@ static void ApplyBlockImpl(
}
};
if (executor) {
- executor->ExecRange(applyOnBlock, 0, blockParams.GetBlockCount(), TLocalExecutor::WAIT_COMPLETE);
+ executor->ExecRangeWithThrow(applyOnBlock, 0, blockParams.GetBlockCount(), TLocalExecutor::WAIT_COMPLETE);
} else {
applyOnBlock(0);
}
@@ -171,7 +171,7... |
Fix FreeBSD vnet stuff and cleanup debug output. | #ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 359288 2020-03-24 23:04:07Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 359301 2020-03-25 13:19:41Z tuexen $");
#endif
#include <netinet/sctp_os.h>
@@ -1746,12 +1746,12 @@ sctp_timeout_handler(void *t)
(type != S... |
BugID:23823143: Added ramfs unregister API | @@ -25,6 +25,15 @@ extern "C" {
*/
int32_t ramfs_register(const char *mount_path);
+/**
+ * ramfs unregister
+ *
+ * @return 0 on success, negative error on failure
+ *
+ */
+int32_t ramfs_unregister(const char *mount_path);
+
+
/** @} */
#ifdef __cplusplus
|
Update documentation following review comment | @@ -282,7 +282,7 @@ void mbedtls_mpi_core_shift_r( mbedtls_mpi_uint *X, size_t limbs,
*
* Calculates `A + B` where `A` and `B` have the same size.
*
- * This function operates modulo 2^(biL*limbs) and returns the carry
+ * This function operates modulo `2^(biL*limbs)` and returns the carry
* (1 if there was a wraparoun... |
update dependencies requirement | @@ -18,15 +18,21 @@ make bot deployment deadly simple. The primary design goals are:
## Build
### Install dependencies:
-For Debian and Ubuntu
+For Ubuntu
```
sudo apt-get install -y build-essential libssl-dev
+sudo apt-get install -y libcurl4-openssl-dev
```
-curl-7.66 or higher is needed.
+
+For Debian
+```
+sudo apt... |
git-archive-all: Don't include non-submodules in the archive | @@ -220,12 +220,8 @@ superfile=`head -n 1 $TMPFILE`
if [ $VERBOSE -eq 1 ]; then
echo -n "looking for subprojects..."
fi
-# find all '.git' dirs, these show us the remaining to-be-archived dirs
-# we only want directories that are below the current directory
-find . -mindepth 2 -name '.git' -type d -print | sed -e 's/^\... |
doc: fix links from Object to values
Fix two broken links from the documentation for the Object class to the
page describing values. | ### **same**(obj1, obj2)
Returns `true` if *obj1* and *obj2* are the same. For [value
-types](../values.html), this returns `true` if the objects have equivalent
+types](../../values.html), this returns `true` if the objects have equivalent
state. In other words, numbers, strings, booleans, and ranges compare by value.... |
added correct include | @@ -12,6 +12,21 @@ struct apstaessidlist_s
typedef struct apstaessidlist_s apstaessidl_t;
#define APSTAESSIDLIST_SIZE (sizeof(apstaessidl_t))
/*===========================================================================*/
+static int sort_apstaessidlist_by_ap_sta(const void *a, const void *b)
+{
+const apstaessidl_t *i... |
OcConsoleControlEntryModeLib: Look for ConsoleControl on other handles | @@ -27,6 +27,7 @@ OcConsoleControlEntryModeInit (
{
EFI_STATUS Status;
EFI_CONSOLE_CONTROL_PROTOCOL *ConsoleControl;
+
//
// On several firmwares we need to use legacy console control protocol to
// switch to text mode, otherwise a black screen will be shown.
@@ -36,6 +37,14 @@ OcConsoleControlEntryModeInit (
&gEfiCons... |
slock hotkey | @@ -77,6 +77,7 @@ static const Layout layouts[] = {
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = {"dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL};
static const char *termcmd[... |
[persistence] IMPROVE: do not increase the refcount when allocate an hash_item. | @@ -10076,8 +10076,9 @@ item_apply_kv_link(const char *key, const uint32_t nkey,
if (ret == ENGINE_SUCCESS) {
/* Override the cas with the master's cas. */
item_set_cas(new_it, cas);
+ } else {
+ do_item_free(new_it);
}
- do_item_release(new_it);
} else {
ret = ENGINE_ENOMEM;
if (old_it) { /* Remove inconsistent hash_i... |
jinlon: Update fan table
BRANCH=firmware-hatch-12672.B
TEST=Thermal team verified thermal policy is expected. | @@ -76,7 +76,7 @@ static const struct fan_step fan_table_clamshell[] = {
},
{
/* level 6 */
- .on = {65, -1, 62, 40},
+ .on = {65, -1, 64, 40},
.off = {62, -1, 61, 39},
.rpm = {5400, 5300},
},
@@ -84,7 +84,7 @@ static const struct fan_step fan_table_clamshell[] = {
/* level 7 */
.on = {100, -1, 100, 100},
.off = {65, -... |
Use StackIndex instead of int for settable index | @@ -972,8 +972,8 @@ setmetatable idx = liftLua $ \l -> lua_setmetatable l (fromStackIndex idx)
--
-- See also:
-- <https://www.lua.org/manual/5.3/manual.html#lua_settable lua_settable>.
-settable :: Int -> Lua ()
-settable index = liftLua $ \l -> lua_settable l (fromIntegral index)
+settable :: StackIndex -> Lua ()
+se... |
drivers/serial: remove unreachable statement
The slot has the address of fds->priv and fds->priv is checked at previous conditional
so that slot can't be null. | @@ -1071,13 +1071,6 @@ int uart_poll(FAR struct file *filep, FAR struct pollfd *fds, bool setup)
struct pollfd **slot = (struct pollfd **)fds->priv;
-#ifdef CONFIG_DEBUG
- if (!slot) {
- ret = -EIO;
- goto errout;
- }
-#endif
-
/* Remove all memory of the poll setup */
*slot = NULL;
|
mousefilter: getting rid of unneeded string.h require | * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
#include "m_pd.h"
-#include<string.h>
#include "hammer/gui.h"
//2016 note: now works with anything, pre v3: only floats - Derek Kwan
|
consistent setting of sin_len | @@ -62,6 +62,9 @@ static int ipaddr_ipany(struct ipaddr *addr, int port, int mode)
ipv4->sin_family = AF_INET;
ipv4->sin_addr.s_addr = htonl(INADDR_ANY);
ipv4->sin_port = htons((uint16_t)port);
+#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
+ ipv4->sin_len = sizeof(struct sockaddr_in);
+#endif
return 0;
}
else {
@@ -69,6 +72,9 @@... |
graph-store: clean up merge artefact | ?~ update-log *update-log:store
=* start i.t.t.t.t.t.path
=* end i.t.t.t.t.t.t.path
- ?~ update-log *update-log:store
%^ lot:orm-log
u.update-log
(slaw %da start)
|
Add printout of total time executing to quicinterop | @@ -1070,7 +1070,9 @@ RunInteropTests()
{
const uint16_t* Ports = CustomPort == 0 ? PublicPorts : &CustomPort;
const uint32_t PortsCount = CustomPort == 0 ? PublicPortsCount : 1;
+ uint32_t StartTime = 0, StopTime = 0;
+ StartTime = QuicTimeMs32();
for (uint32_t b = 0; b < PortsCount; ++b) {
for (uint32_t c = 0; c < Qu... |
Warn when using gcc older than version 6.x on platform nRF52840 | @@ -16,6 +16,17 @@ ifeq ("$(CC)","arm-none-eabi-gcc")
endif
endif
+# Warn if using anything older than version 6.x of arm-none-eabi-gcc on nrf52840
+ifeq ("$(TARGET)","nrf52840")
+ ifeq ("$(CC)","arm-none-eabi-gcc")
+ ifeq ($(shell test $(GCC_MAJOR_VERSION) -lt 6; echo $$?),0)
+ $(warning Warning: you're using a versio... |
zephyr: frdm_k64f: Remove partition defines
Now that the partition table has been added to the device tree for the
frdm_k64f in upstream Zephyr, these symbols become redundant defines.
Remove them to fully use the partitions defined in Zephyr. | #define FLASH_DRIVER_NAME CONFIG_SOC_FLASH_MCUX_DEV_NAME
#define FLASH_ALIGN 8
-#define FLASH_AREA_IMAGE_0_OFFSET 0x20000
-#define FLASH_AREA_IMAGE_0_SIZE 0x60000
-#define FLASH_AREA_IMAGE_1_OFFSET 0x80000
-#define FLASH_AREA_IMAGE_1_SIZE 0x60000
-#define FLASH_AREA_IMAGE_SCRATCH_OFFSET 0xe0000
-#define FLASH_AREA_IMAG... |
doc: add mitigation description for CVE-2018-12207 in advisory
Mitigation for this vulnerability is applied in 1.4 release, update
related notes in adviosry. | @@ -6,6 +6,12 @@ Advisory
We recommend that all developers upgrade to this v1.4 release, which addresses the following security
issues that were discovered in previous releases:
+Mitigation for Machine Check Error on Page Size Change
+ Improper invalidation for page table updates by a virtual guest operating system for... |
Boten: Increase stack sizes
Align boten's stack sizes with those chosen for drawcia, as there is
sufficient space.
BRANCH=Dedede
TEST=make -j buildall | TASK_ALWAYS(HOOKS, hook_task, NULL, VENTI_TASK_STACK_SIZE) \
TASK_ALWAYS(MOTIONSENSE, motion_sense_task, NULL, VENTI_TASK_STACK_SIZE) \
TASK_ALWAYS(USB_CHG_P0, usb_charger_task, 0, LARGER_TASK_STACK_SIZE) \
- TASK_ALWAYS(CHARGER, charger_task, NULL, VENTI_TASK_STACK_SIZE) \
+ TASK_ALWAYS(CHARGER, charger_task, NULL, TR... |
build libssl with no-seed | @@ -37,7 +37,7 @@ set(OPENSSL_CONFIG_FLAGS
no-comp no-cms no-ct no-srp no-srtp no-ts no-gost no-dso no-ec2m
no-tls1 no-tls1_1 no-tls1_2 no-dtls no-dtls1 no-dtls1_2 no-ssl
no-ssl3-method no-tls1-method no-tls1_1-method no-tls1_2-method no-dtls1-method no-dtls1_2-method
- no-siphash no-whirlpool no-aria no-bf no-blake2 n... |
make sure grep filter only omits .h files | @@ -80,7 +80,7 @@ harness_macro_temp: $(HARNESS_SMEMS_CONF)
# remove duplicate files and headers in list of simulation file inputs
########################################################################################
$(sim_common_files): $(sim_files) $(sim_top_blackboxes) $(sim_harness_blackboxes)
- awk '{print $1;}... |
Fix a missing call to SSLfatal
Under certain error conditions a call to SSLfatal could accidently be
missed. | @@ -2370,10 +2370,14 @@ int tls_construct_server_hello(SSL *s, WPACKET *pkt)
if (!WPACKET_sub_memcpy_u8(pkt, session_id, sl)
|| !s->method->put_cipher_by_char(s->s3->tmp.new_cipher, pkt, &len)
- || !WPACKET_put_bytes_u8(pkt, compm)
- || !tls_construct_extensions(s, pkt,
- s->hello_retry_request
- == SSL_HRR_PENDING
+ |... |
hdata: Add DIMM actual speed to device tree
Recent HDAT provides DIMM actuall speed. Lets add this to device tree.
[stewart: use Hz rather than Mhz, consistent with other properties] | -/* Copyright 2013-2014 IBM Corp.
+/* Copyright 2013-2018 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,6 +32,8 @@ struct HDIF_ram_area_id {
#define RAM_AREA_INSTALLED 0x8000
#define RAM_AREA_FUNCTIONAL 0x4000
__be... |
Added DIAG product. Treated the same as BUDG | @@ -64,7 +64,7 @@ if(kindOfProduct == `GRIB`){
template GRIB "grib[GRIBEditionNumber:l]/boot.def" ;
}
-if(kindOfProduct == `BUDG`){
+if(kindOfProduct == `BUDG` || kindOfProduct == `DIAG`){
template BUDG "budg/boot.def" ;
}
|
Fix bus input for fpgaconf in bist | @@ -80,7 +80,7 @@ def get_mode_from_path(gbs_path):
def load_gbs(gbs_file, bus_num):
print "Attempting Partial Reconfiguration:"
- cmd = "{} -b {} -v {}".format('fpgaconf', bus_num, gbs_file)
+ cmd = "{} -b 0x{} -v {}".format('fpgaconf', bus_num, gbs_file)
try:
subprocess.check_call(cmd, shell=True)
except subprocess.C... |
meta: update chromatic CI for lerna | @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- - run: cd 'pkg/interface' && npm i
+ - run: npm i && npm run bootstrap
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
|
apps/blemesh: add missing newline in printf | @@ -171,7 +171,7 @@ static int output_number(bt_mesh_output_action action, uint32_t number)
static void prov_complete(void)
{
- console_printf("Provisioning completed");
+ console_printf("Provisioning completed\n");
}
static const uint8_t dev_uuid[16] = MYNEWT_VAL(BLE_MESH_DEV_UUID);
|
hv: Save secure world memory info into vm instead of vm0
A bugfix for saving secure world memory info.
Maybe there are multiple UOS, each VM has its own secure
world and normal world, should save memory info into individual VM.
Acked-by: Eddie Dong | @@ -152,9 +152,9 @@ void create_secure_world_ept(struct vm *vm, uint64_t gpa,
/* Backup secure world info, will be used when
* destroy secure world */
- vm0->sworld_control.sworld_memory.base_gpa = gpa;
- vm0->sworld_control.sworld_memory.base_hpa = hpa;
- vm0->sworld_control.sworld_memory.length = size;
+ vm->sworld_c... |
Homebridge-managed handling | @@ -222,13 +222,24 @@ function checkHomebridge {
if [[ -z $HOMEBRIDGE_AUTH ]]; then
# generate a new deconz apikey for homebridge-hue
addUser
+ if [[ "$HOMEBRIDGE" != "managed" ]]; then
+ putHomebridgeUpdated "homebridge" "managed"
+ HOMEBRIDGE="managed"
+ fi
else
# homebridge-hue apikey exists
if [ -z $(echo $HOMEBRID... |
Add script to remove signing directory | @@ -242,6 +242,7 @@ pipeline {
usernameVariable: 'USERNAME',
passwordVariable: 'PASSWORD')]) {
sh 'python3 ./signing/macos-client-wrapper.py ${USERNAME} *.zip'
+ sh 'rm -rf ./signing'
}
}
dir('upload') {
|
fixed spike~ | @@ -22,7 +22,7 @@ static t_class *spike_class;
static void spike_tick(t_spike *x)
{
- outlet_float(((t_object *)x)->ob_outlet, x->x_count * x->x_rcpksr);
+ outlet_float(((t_object *)x)->ob_outlet, (x->x_count + 1) * x->x_rcpksr);
x->x_count = x->x_precount;
}
|
add --backtrace to test in .travis.yml | @@ -38,7 +38,7 @@ script:
- cat xmake/core/_xmake_main.lua >> tmp
- mv tmp xmake/core/_xmake_main.lua
- cp core/build/xmake $(which xmake) || sudo cp core/build/xmake $(which xmake)
- - make test
+ - xmake lua --backtrace tests\test.lua
after_success:
- luacov
|
net/oic; when deleting resource, remove it from oc_app_resources
list. | @@ -251,6 +251,14 @@ oc_ri_alloc_resource(void)
void
oc_ri_delete_resource(oc_resource_t *resource)
{
+ oc_resource_t *tmp;
+
+ SLIST_FOREACH(tmp, &oc_app_resources, next) {
+ if (tmp == resource) {
+ SLIST_REMOVE(&oc_app_resources, tmp, oc_resource, next);
+ break;
+ }
+ }
os_memblock_put(&oc_resource_pool, resource);... |
Fix documentation error for Ubuntu 18.04
Fix documentation error for Ubuntu 18.04 | @@ -67,7 +67,7 @@ found at [packages.ubuntu.com](https://packages.ubuntu.com/search?suite=default&
sudo apt-get install bpfcc-tools linux-headers-$(uname -r)
```
-The tools are installed in `/sbin` with a `-bpfcc` extension. Try running `sudo opensnoop-bpfcc`.
+The tools are installed in `/sbin` (`/usr/sbin` in Ubuntu ... |
Make NGTCP2_QLOG_WRITE_FLAG_* macro | @@ -1588,23 +1588,18 @@ typedef struct ngtcp2_cc {
typedef void (*ngtcp2_printf)(void *user_data, const char *format, ...);
/**
- * @enum
+ * @macro
*
- * :type:`ngtcp2_qlog_write_flag` defines the set of flags passed to
- * :type:`ngtcp2_qlog_write` callback.
- */
-typedef enum ngtcp2_qlog_write_flag {
- /**
- * :enum... |
CONFIG_FLASH_BASE_ADDRESS is defined only for memory-mapped Flash
Made FLASH_DEVICE_BASE 0 for non-memory-mapped Flash. | @@ -19,13 +19,14 @@ MCUBOOT_LOG_MODULE_DECLARE(mcuboot);
#if (!defined(CONFIG_XTENSA) && defined(DT_FLASH_DEV_NAME))
#define FLASH_DEVICE_ID SOC_FLASH_0_ID
+#define FLASH_DEVICE_BASE CONFIG_FLASH_BASE_ADDRESS
#elif (defined(CONFIG_XTENSA) && defined(DT_SPI_NOR_DRV_NAME))
#define FLASH_DEVICE_ID SPI_FLASH_0_ID
+#define ... |
Add missing set_name() | @@ -124,6 +124,12 @@ typedef const struct clap_preset_discovery_metadata_receiver {
// If unset, they are then inherited from the location.
void(CLAP_ABI *set_flags)(const struct clap_preset_discovery_metadata_receiver, uint32_t flags);
+ // Sets the preset name.
+ // The preset name can be infered from the file name, ... |
in_syslog: add more verbosity when failed to parse log message
This patch makes the warning message [ warn] [in_syslog] error parsing log
message more detailed by showing alias name of input plugin and parser
name. It also prints the content of the message not parsed in debug mode. | @@ -104,7 +104,10 @@ int syslog_prot_process(struct syslog_conn *conn)
flb_free(out_buf);
}
else {
- flb_warn("[in_syslog] error parsing log message");
+ flb_warn("[in_syslog] error parsing log message "
+ "on \"%s\" with parser '%s')",
+ flb_input_name(ctx->i_ins), ctx->parser->name);
+ flb_debug("[in_syslog] unparsed... |
Reduce processing time of ack of ack | @@ -2141,33 +2141,37 @@ static picoquic_packet_t* picoquic_update_rtt(picoquic_cnx_t* cnx, uint64_t larg
return packet;
}
-static void picoquic_process_ack_of_ack_range(picoquic_sack_item_t* first_sack,
+static picoquic_sack_item_t* picoquic_process_ack_of_ack_range(picoquic_sack_item_t* first_sack, picoquic_sack_item_... |
Enable some tests that were disabled. | @@ -810,12 +810,10 @@ int main(int argc, char** argv)
test_include_callback();
test_save_load_rules();
test_scanner();
-// test_ast_callback();
-// //TODO(vmalvarez): Enable these tests.
-// //test_rules_stats();
-//
-// test_issue_834();
-// test_issue_920();
+ test_ast_callback();
+ test_rules_stats();
+ test_issue_8... |
use heap_stat_increase macros when possible | @@ -252,7 +252,7 @@ static mi_page_t* mi_page_fresh_alloc(mi_heap_t* heap, mi_page_queue_t* pq, size
// a fresh page was found, initialize it
mi_assert_internal(pq==NULL || _mi_page_segment(page)->page_kind != MI_PAGE_HUGE);
mi_page_init(heap, page, block_size, heap->tld);
- _mi_stat_increase(&heap->tld->stats.pages, 1... |
Send admin notification on share recorder policy fallback engage | @@ -28,11 +28,13 @@ using System.Net.Sockets;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Text;
+using Autofac.Features.Metadata;
using AutoMapper;
using MiningCore.Blockchain;
using MiningCore.Configuration;
using MiningCore.Extensions;
using MiningCore.Mining;
+using MiningCore.Notific... |
Rework the documentation | /// 1. clap_plugin_gui->is_api_supported(), check what can work
/// 2. clap_plugin_gui->create(), allocates gui resources
/// 3. if the plugin window is floating
-/// 4. -> clap_plugin_gui->suggest_title()
-/// 5. else
-/// 6. -> clap_plugin_gui->set_scale(), if the function pointer is provided by the plugin
-/// 7. ->... |
acrn-config: Add d3hot_reset sub-parameter for passthrough device
Add d3hot_reset sub-parameter if passthrough USB device for WaaG. | @@ -416,8 +416,11 @@ def set_dm_pt(names, sel, vmid, config):
uos_type = names['uos_types'][vmid]
if sel.bdf['usb_xdci'][vmid] and sel.slot['usb_xdci'][vmid]:
- print(' -s {},passthru,{}/{}/{} \\'.format(sel.slot["usb_xdci"][vmid], sel.bdf["usb_xdci"][vmid][0:2],\
- sel.bdf["usb_xdci"][vmid][3:5], sel.bdf["usb_xdci"][v... |
drivers/sdcard: In test use os.umount and machine module instead of pyb.
pyb.umount(None, mountpoint) no longer works. | # Test for sdcard block protocol
# Peter hinch 30th Jan 2016
-import os, sdcard, pyb
+import os, sdcard, machine
def sdtest():
- sd = sdcard.SDCard(pyb.SPI(1), pyb.Pin.board.X21) # Compatible with PCB
- pyb.mount(sd, '/fc')
+ spi = machine.SPI(1)
+ spi.init() # Ensure right baudrate
+ sd = sdcard.SDCard(spi, machine.Pi... |
Fixed free functions for structs. | @@ -1087,9 +1087,9 @@ void ts_deboornet_move(tsDeBoorNet *from, tsDeBoorNet *to)
void ts_deboornet_free(tsDeBoorNet *deBoorNet)
{
- if (deBoorNet->points != NULL)
- free(deBoorNet->points);/* automatically frees the field result */
- ts_deboornet_default(deBoorNet);
+ if (deBoorNet->pImpl != NULL)
+ free(deBoorNet->pIm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.