message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
test/math_util.c: Format with clang-format
BRANCH=none
TEST=none | @@ -45,7 +45,6 @@ static int test_acos(void)
return EC_SUCCESS;
}
-
const mat33_fp_t test_matrices[] = {
{ { 0, FLOAT_TO_FP(-1), 0 },
{ FLOAT_TO_FP(-1), 0, 0 },
@@ -55,7 +54,6 @@ const mat33_fp_t test_matrices[] = {
{ FLOAT_TO_FP(3), FLOAT_TO_FP(4), 0 } }
};
-
static int test_rotate(void)
{
int i, j, k;
|
vlib: fix "<command> help"
Walk the sub_commands vector directly.
Type: fix
Fixes: | @@ -392,8 +392,6 @@ vlib_cli_dispatch_sub_commands (vlib_main_t * vm,
unformat_input_t sub_input;
u8 *string;
uword is_main_dispatch = cm == &vm->cli_main;
- uword value;
- u8 *key;
parent = vec_elt_at_index (cm->commands, parent_command_index);
if (is_main_dispatch && unformat (input, "help"))
@@ -428,17 +426,15 @@ vl... |
ocvalidate: Always print compatibility info | @@ -78,11 +78,12 @@ int ENTRY_POINT(int argc, const char *argv[]) {
PcdGet32 (PcdFixedDebugPrintErrorLevel) |= DEBUG_INFO;
PcdGet32 (PcdDebugPrintErrorLevel) |= DEBUG_INFO;
+ DEBUG ((DEBUG_ERROR, "\nNOTE: This version of ocvalidate is only compatible with OpenCore version %a!\n\n", OPEN_CORE_VERSION));
+
//
// Print us... |
Handle trailing spaces and empty condition variables | @@ -43,7 +43,8 @@ macro(ParseMakefileVars MAKEFILE_IN)
if (NOT "${line_match}" STREQUAL "")
#message(STATUS "match on ${line_match}")
set(var_name ${CMAKE_MATCH_1})
- set(var_value ${CMAKE_MATCH_2})
+# set(var_value ${CMAKE_MATCH_2})
+ string(STRIP ${CMAKE_MATCH_2} var_value)
# check for Makefile variables in the strin... |
Use Dispose instead of CloseHandle | @@ -132,7 +132,7 @@ namespace MiningCore.Stratum
{
sub.Dispose();
- handle.CloseHandle();
+ handle.Dispose();
});
client.Subscription = Disposable.Create(() =>
@@ -140,6 +140,7 @@ namespace MiningCore.Stratum
disposer.Send();
});
+ // register client
lock (clients)
{
clients[connectionId] = client;
@@ -182,6 +183,7 @@ ... |
in_dummy: remove irrelevant comment. | @@ -74,7 +74,6 @@ static int in_dummy_collect(struct flb_input_instance *ins,
return 0;
}
-/* cb_collect callback */
static int gen_msg(struct flb_input_instance *ins, void *in_context)
{
size_t off = 0;
|
rms/slurm: update requirements for json; packages names differ per OS | @@ -333,7 +333,13 @@ according to the Slurm
Summary: Slurm REST API translator
Group: System Environment/Base
Requires: %{name}%{?_isa} = %{version}-%{release}
-BuildRequires: json-c-devel, http-parser-devel
+BuildRequires: http-parser-devel
+%if 0%{?rhel}
+BuildRequires: json-c-devel
+%endif
+%if 0%{?suse_version:1}
+... |
fix: replace BoatIotSdkDeInit(); with BoatFree(); in test_002InitWallet_0006SetNodeUrlFailureNullParam
fix the issue aitos-io#1050 | @@ -672,7 +672,7 @@ START_TEST(test_002InitWallet_0006SetNodeUrlFailureNullParam)
/* 2-2. verify the global variables that be affected */
ck_assert(wallet_ptr->network_info.node_url_ptr == NULL);
- BoatIotSdkDeInit();
+ BoatFree(wallet_ptr);
}
END_TEST
|
virtio: fix the len offset
Type: fix | @@ -472,8 +472,8 @@ virtio_device_input_gso_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
{
increment_last (last, packed, vring);
u16 cslot = virtio_get_slot_id (vring, packed, last, mask);
- u16 clen =
- virtio_get_len (vring, packed, hdr_sz, last, mask);
+ /* hdr size is 0 after 1st packet in chain buffers */... |
oic/observe: Set correct content type for notification | @@ -289,6 +289,7 @@ coap_notify_observers(oc_resource_t *resource,
coap_set_payload(notification, response_buf->buffer,
OS_MBUF_PKTLEN(response_buf->buffer));
coap_set_status_code(notification, response_buf->code);
+ coap_set_header_content_format(notification, APPLICATION_CBOR);
if (notification->code < BAD_REQUEST_4_... |
Update: fix for noun composition support | @@ -150,7 +150,7 @@ def getNounRelNoun(words):
if nextmod != EMPTY:
Cs.append(nextmod)
Ms.append(EMPTY)
- elif x[0][0] == '[' or (i+1 < len(VALUES) and VALUES[i+1][1] - x[1] == 1):
+ elif x[0][0] == '[' or (i+1 < len(VALUES) and VALUES[i+1][1] - x[1] == 1 and x[3] + " " + VALUES[i+1][3] in sentence):
nextmod = x
else:
... |
usb: Don't access uninit pointer if usbh_install fails | @@ -438,8 +438,8 @@ assign_err:
hub_err:
ESP_ERROR_CHECK(usbh_uninstall());
usbh_err:
- if (p_host_lib_obj->constant.phy_handle) {
- ESP_ERROR_CHECK(usb_del_phy(p_host_lib_obj->constant.phy_handle));
+ if (host_lib_obj->constant.phy_handle) {
+ ESP_ERROR_CHECK(usb_del_phy(host_lib_obj->constant.phy_handle));
}
phy_err:... |
Safe equality check | @@ -403,6 +403,9 @@ static bool AreFeaturesValuesEqual(
if (!lhs) {
return !rhs;
}
+ if (!rhs) {
+ return false;
+ }
if (lhs->GetSize() != rhs->GetSize()) {
return false;
}
|
[libretro] fix implicit-function-declaration | #include "pccore.h"
#include "iocore.h"
#include "sxsi.h"
+#include "sysmng.h"
#if defined(SUPPORT_IDEIO)
#include "ideio.h"
#endif
+#if !defined(_MSC_VER)
#include <sys/time.h>
+#endif
_SXSIDEV sxsi_dev[SASIHDD_MAX + SCSIHDD_MAX];
|
Trim any trailing spaces from lines in dojo
Trim any trailing spaces on the line. fixes | ++ he-duke :: ++he-dope variant
|= txt/tape
^- (each (unit (each dojo-command tape)) @ud)
- =+ foy=(he-dope txt)
+ =+ trim-space=;~(pfix spac:poja (star next))
+ =+ trimed-text=(flop (scan (flop txt) trim-space))
+ =+ foy=(he-dope trimed-text)
?- -.foy
$| [%| q.p.foy]
$& [%& p.foy]
|
Fix filename for script | @@ -1039,6 +1039,7 @@ static InterpretResult run(VM *vm) {
// If we have imported this file already, skip.
if (tableGet(&vm->modules, fileName, &moduleVal)) {
+ ++vm->scriptNameCount;
vm->lastModule = AS_MODULE(moduleVal);
DISPATCH();
}
|
Fix ip6 address cann't display completely when show ip6 neighbors | @@ -342,7 +342,7 @@ format_ip6_neighbor_ip6_entry (u8 * s, va_list * va)
u8 *flags = 0;
if (!n)
- return format (s, "%=12s%=25s%=6s%=20s%=40s", "Time", "Address", "Flags",
+ return format (s, "%=12s%=45s%=6s%=20s%=40s", "Time", "Address", "Flags",
"Link layer", "Interface");
if (n->flags & IP6_NEIGHBOR_FLAG_DYNAMIC)
@@... |
Test Fix: Add a null check in OTA teardown | @@ -171,7 +171,10 @@ TEST_SETUP( Full_OTA_AGENT )
TEST_TEAR_DOWN( Full_OTA_AGENT )
{
/* Disconnect from the MQTT broker. */
+ /* This must be protected against a Null xMQTTClientHandle if setup failed, for example due to an intermittent network connection */
+ if ( xMQTTClientHandle != NULL ) {
IotMqtt_Disconnect( xMQT... |
usb: Codeowners for /examples/peripherals/usb/ | /examples/network/ @esp-idf-codeowners/network @esp-idf-codeowners/wifi
/examples/openthread/ @esp-idf-codeowners/ieee802154
/examples/peripherals/ @esp-idf-codeowners/peripherals
+/examples/peripherals/usb/ @esp-idf-codeowners/peripherals @esp-idf-codeowners/peripherals/usb
/examples/protocols/ @esp-idf-codeowners/net... |
parallel-libs/trilinos: update patch for v13.2.0 | ---- a/cmake/tribits/core/installation/set_installed_group_and_permissions.cmake.in 2020-08-05 18:22:40.000000000 -0700
-+++ b/cmake/tribits/core/installation/set_installed_group_and_permissions.cmake.in 2020-09-09 09:57:51.407553935 -0700
+-- a/cmake/tribits/core/installation/set_installed_group_and_permissions.cmake.... |
Re-enable unit test for C2 tcp_transport | @@ -49,8 +49,6 @@ TEST_CASE("tcp_transport: connect timeout", "[tcp_transport]")
esp_transport_list_destroy(transport_list);
}
-#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
-//IDF-5144
TEST_CASE("ssl_transport: connect timeout", "[tcp_transport]")
{
// Init the transport under test
@@ -123,7 +121,6 @@ TEST_CASE("ssl_tr... |
authzone work | @@ -2959,6 +2959,7 @@ xfr_probe_end_of_list(struct auth_xfer* xfr)
static int
xfr_transfer_nextmaster(struct auth_xfer* xfr)
{
+ /* TODO: no return value */
if(!xfr->task_transfer->scan_specific &&
!xfr->task_transfer->scan_target)
return 0;
@@ -2985,6 +2986,7 @@ xfr_transfer_nextmaster(struct auth_xfer* xfr)
static in... |
TestMp3: EDK-II codestyle cleanup | #include <Library/OcMp3Lib.h>
#include <Library/OcMiscLib.h>
-#include <string.h>
-#include <sys/time.h>
-#include <stdio.h>
-#include <stdint.h>
-
#include <UserFile.h>
int
@@ -31,35 +26,37 @@ ENTRY_POINT (
char *argv[]
)
{
- uint32_t size;
- uint8_t *buffer;
- if ((buffer = UserReadFile(argc > 1 ? argv[1] : "test.mp3... |
grid: remove notification prompt for browser settings | @@ -3,7 +3,6 @@ import Mousetrap from 'mousetrap';
import { BrowserRouter, Switch, Route, useHistory, useLocation } from 'react-router-dom';
import { ErrorBoundary } from 'react-error-boundary';
import FingerprintJS from '@fingerprintjs/fingerprintjs';
-import { addNote } from '@urbit/api';
import { Grid } from './page... |
Update artik053/iotivity defconfig | @@ -246,13 +246,16 @@ CONFIG_ARTIK053_FLASH_CAPACITY=8388608
CONFIG_ARTIK053_FLASH_PAGE_SIZE=4096
CONFIG_ARTIK053_FLASH_PART=y
CONFIG_ARTIK053_FLASH_MINOR=0
-CONFIG_ARTIK053_FLASH_PART_LIST="16,48,192,32,512,2400,1536,1536,1400,8,512,"
-CONFIG_ARTIK053_FLASH_PART_TYPE="none,ftl,none,none,none,none,none,ftl,smartfs,conf... |
typing stuff and clean the __init__ of replay parser | @@ -14,55 +14,49 @@ class ReplayEvent(object):
class Replay(object):
- __BYTE = 1
- __SHORT = 2
- __INT = 4
- __LONG = 8
+ """
+ R.A.P.E
+
+ R - redz
+ A - amazing
+ P - parser for replay
+ E - epic
+ """
+
+ game_mode: int = 0
+ game_version: int = 0
+ beatmap_hash: str = ''
+ player_name: str = ''
+ replay_hash: str ... |
updates ames i/o driver to drop outbound packets if not live | @@ -309,6 +309,12 @@ u3_ames_ef_send(u3_pier* pir_u, u3_noun lan, u3_noun pac)
return;
}
+ if ( c3n == sam_u->liv ) {
+ u3l_log("ames: not yet live, dropping outbound\r\n");
+ u3z(lan); u3z(pac);
+ return;
+ }
+
u3_pact* pac_u = c3_calloc(sizeof(*pac_u));
if ( c3y == _ames_lane_ip(lan, &pac_u->por_s, &pac_u->pip_w) ) {... |
Allow compile.sh to run on Windows dev machines | @@ -39,7 +39,7 @@ function (GetVersion OUTVAR)
# Otherwise, append our custom suffix -<date>-git<short hash>
execute_process (
- COMMAND git rev-parse --revs-only --short=10 HEAD^{commit}
+ COMMAND git rev-parse --revs-only --short=10 HEAD
OUTPUT_VARIABLE SUFFIX_SHA
RESULT_VARIABLE GIT_STATUS
ERROR_VARIABLE GIT_ERROR
|
Set CU type in inter search functions | @@ -1381,6 +1381,7 @@ static void search_pu_inter_ref(inter_search_info_t *info,
unit_stats_map_t *cur_map = &amvp[ref_list];
int entry = cur_map->size;
cu_info_t *unipred_pu = &cur_map->unit[entry];
+ unipred_pu->type = CU_INTER;
unipred_pu->merged = false;
unipred_pu->skipped = false;
unipred_pu->inter.mv_dir = ref_l... |
fix very relevant compiler warning | @@ -634,8 +634,8 @@ dispatch_ip_discovery(oc_client_cb_t *cb4, const char *query,
return false;
}
- oc_client_cb_t *cb = oc_ri_alloc_client_cb(
- "/oic/res", endpoint, OC_GET, query, handler, LOW_QOS, user_data);
+ oc_client_cb_t *cb = oc_ri_alloc_client_cb("/oic/res", endpoint, OC_GET,
+ query, handler, qos, user_data... |
Use dedicated clang-cl option for Windows system header files | @@ -2019,9 +2019,11 @@ when ($MSVC_INLINE_OPTIMIZED == "no") {
vc_include = os.path.join(self.tc.vc_root, 'include') if not self.tc.ide_msvs else "$(VC_VC_IncludePath.Split(';')[0].Replace('\\','/'))"
if not self.tc.ide_msvs:
+ def include_flag(path):
+ return '{flag}"{path}"'.format(path=path, flag='/I' if not self.tc... |
shm sub FEATURE check update edit for foreign data
Refs | @@ -2100,9 +2100,9 @@ sr_shmsub_change_listen_process_module_events(struct modsub_change_s *change_sub
{
sr_error_info_t *err_info = NULL;
uint32_t i, data_len = 0, valid_subscr_count;
- char *data = NULL;
+ char *data = NULL, *path;
int ret = SR_ERR_OK;
- struct lyd_node *diff;
+ struct lyd_node *diff, *iter;
sr_error... |
Fixing values | @@ -58,8 +58,8 @@ namespace FFXIVClientStructs.FFXIV.Client.Game.Gauge {
public int UmbralStacks => ElementStance >= 0 ? 0 : ElementStance * -1;
public int AstralStacks => ElementStance <= 0 ? 0 : ElementStance;
- public bool EnochianActive => Enochian != 0;
- public bool ParadoxActive => Enochian == 3;
+ public bool E... |
Fix again code formatting issue. | @@ -185,8 +185,7 @@ int od_instance_main(od_instance_t *instance, int argc, char **argv)
if (rc == -1) {
od_error(&instance->logger, "init", NULL, NULL,
"failed to create pid file %s: %s",
- instance->config.pid_file,
- strerror(errno));
+ instance->config.pid_file, strerror(errno));
goto error;
}
}
|
INI: Sort files in crash test | @@ -4,7 +4,7 @@ The following Markdown Shell Recorder test checks that the INI plugin does not c
not properly formatted.
```sh
-for file in $(find -E src/plugins/ini/crash_test -regex '.*crash[0-9]{3}.ini$'); do \
+for file in $(find -E src/plugins/ini/crash_test -regex '.*crash[0-9]{3}.ini$' | sort); do \
cat "$file" ... |
wsman-soap-envelope: fix a possible memory leak
In case of duplicate parameters we rewrote stored pointer
and leaking memory.
Release data stored in the pointer before allocating the new one. | @@ -671,13 +671,19 @@ int wsman_parse_credentials(WsXmlDocH doc, WsSubscribeInfo * subsInfo,
node = ws_xml_get_child(node, 0, XML_NS_SE, WSSE_USERNAMETOKEN);
if(node) {
temp = ws_xml_get_child(node, 0, XML_NS_SE, WSSE_USERNAME);
- if(temp)
+ if(temp) {
+ if (subsInfo->username)
+ u_free(subsInfo->username);
subsInfo->u... |
Combine multi-repo release notes. | <release-feature-list>
<release-item>
+ <commit subject="Enhance expire command multi-repo support."/>
+ <commit subject="Expire continues if an error occurs processing a repository."/>
+ <commit subject="Add archive-get command multi-repo support."/>
+ <commit subject="Enhance restore command multi-repo support."/>
+ ... |
Allow binding for Tuyatec devices | @@ -1974,6 +1974,10 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
sensor->modelId().contains(QLatin1String("ST218")) ||
// Tuya
sensor->modelId().contains(QLatin1String("TS0201")) ||
+ // Tuyatec
+ sensor->modelId().startsWith(QLatin1String("RH3040")) ||
+ sensor->modelId().startsW... |
intelrvp: Enable PD 3.0 support
BRANCH=none
TEST=tglrvp can negotiate with TBT3 docks | #define CONFIG_CHARGE_RAMP_HW
#endif
+/* Enable USB-PD REV 3.0 */
+#define CONFIG_USB_PD_REV30
+#define CONFIG_USB_PID 0x8086
+
/* USB PD config */
#define CONFIG_USB_PD_ALT_MODE
#define CONFIG_USB_PD_ALT_MODE_DFP
|
Fix a debug log mistake when create AF_PACKET socket | @@ -172,7 +172,7 @@ create_packet_v2_sock (int host_if_index, tpacket_req_t * rx_req,
if ((err =
setsockopt (*fd, SOL_PACKET, PACKET_TX_RING, tx_req, req_sz)) < 0)
{
- DBG_SOCK ("Failed to set packet rx ring options");
+ DBG_SOCK ("Failed to set packet tx ring options");
ret = VNET_API_ERROR_SYSCALL_ERROR_1;
goto error... |
fix logic for fsconflock/mnconflock | @@ -1174,7 +1174,8 @@ bool AppInit2()
}
}
- if(GetBoolArg("-mnconflock", true) && pwalletMain || GetBoolArg("-fsconflock", true) && pwalletMain) {
+ if (pwalletMain) {
+ if(GetBoolArg("-fsconflock", true) & GetBoolArg("-mnconflock", true)) {
LOCK(pwalletMain->cs_wallet);
printf("Locking Fortunastakes:\n");
uint256 mnTx... |
avx2: _mm256_bsrli_epi128 wasn't present in GCC until 4.8 | @@ -1019,6 +1019,7 @@ simde_mm256_bsrli_epi128 (simde__m256i a, const int imm8)
return simde__m256i_from_private(r_);
}
#if defined(SIMDE_X86_AVX2_NATIVE) && \
+ (!defined(HEDLEY_GCC_VERSION) || HEDLEY_GCC_VERSION_CHECK(4,8,0)) && \
SIMDE_DETECT_CLANG_VERSION_NOT(3,7,0)
#define simde_mm256_bsrli_epi128(a, imm8) _mm256_... |
fix ssh-oidc alias to use a new socket each time | @@ -21,7 +21,7 @@ test -z $OIDC_SOCK && {
And in the `.bash_aliases` on your local machine:
```
alias OA='echo -R /tmp/oidc-forward-$RANDOM:$OIDC_SOCK'
-alias ssh-oidc="ssh $(OA)"
+alias ssh-oidc="ssh \`OA\`"
```
You can then call ssh the following way:
```
|
fix ios i386 tests | @@ -5409,8 +5409,14 @@ module DEFAULT_IOS_INTERFACE: IOS_INTERFACE {
SET(MODULE_SUFFIX .default.ios.interface)
}
+when ($ARCH_I386) {
+ TEST_IOS_DEVICE_TYPE_VALUE=com.apple.CoreSimulator.SimDeviceType.iPhone-5
+ TEST_IOS_RUNTIME_TYPE_VALUE=com.apple.CoreSimulator.SimRuntime.iOS-10-3
+}
+otherwise {
TEST_IOS_DEVICE_TYPE... |
docs: fixes a broken link | @@ -6,7 +6,7 @@ This document intention is to provide guidelines on how to best contribute to th
### Join the Community
-Skip over to our [Discord Server](https://discord.gg/Q4Ub3wuF), we will be more than happy to assist you!
+Skip over to our [Discord Server](https://discord.gg/nBUqrWf), we will be more than happy to... |
cleanup page break | \subsection{Add \InfiniBand{} support services on {\em master} node} \label{sec:add_ofed}
\input{common/ibsupport_sms_sles}
+\vspace*{-0.3cm}
\subsection{Complete basic Warewulf setup for {\em master} node} \label{sec:setup_ww}
\input{common/warewulf_setup}
\input{common/warewulf_setup_sles}
|
make test a little bit harder | @@ -5254,7 +5254,7 @@ int migration_test_loss()
int migration_zero_test()
{
- return migration_test_scenario(test_scenario_q_and_r, sizeof(test_scenario_q_and_r), 0, 1);
+ return migration_test_scenario(test_scenario_very_long, sizeof(test_scenario_q_and_r), 0, 1);
}
/* Failed migration test.
|
arch: qemu-rv: Fix build errors in chip.h for BUILD_KERNEL + SMP
Summary:
This commit fixes build errors for BUILD_KERNEL + SMP
Impact:
None
Testing:
Tested with rv-virt:ksmp64 (will be added later) | @@ -66,7 +66,7 @@ extern void up_serialinit(void);
#if defined(CONFIG_SMP) && CONFIG_ARCH_INTERRUPTSTACK > 15
.macro setintstack tmp0, tmp1
- csrr \tmp0, mhartid
+ riscv_mhartid \tmp0
li \tmp1, STACK_ALIGN_DOWN(CONFIG_ARCH_INTERRUPTSTACK)
mul \tmp1, \tmp0, \tmp1
la \tmp0, g_intstacktop
@@ -74,12 +74,14 @@ extern void u... |
board/nocturne/battery.c: Format with clang-format
BRANCH=none
TEST=none | @@ -78,8 +78,8 @@ enum battery_disconnect_state battery_get_disconnect_state(void)
return BATTERY_NOT_DISCONNECTED;
/* Check if battery discharge FET is disabled. */
- rv = sb_read_mfgacc(PARAM_OPERATION_STATUS,
- SB_ALT_MANUFACTURER_ACCESS, data, sizeof(data));
+ rv = sb_read_mfgacc(PARAM_OPERATION_STATUS, SB_ALT_MANU... |
CLI code coverage: add gpperfmon code coverage
This is a followup to commit - "CLI code coverage: add coverage
to the production pipeline". This updates the master-generated pipeline
now that gpperfmon has been updated to collect and upload coverage. | ## file (example: templates/gpdb-tpl.yml) and regenerate the pipeline
## using appropriate tool (example: gen_pipeline.py -t prod).
## ----------------------------------------------------------------------
-## Generated by gen_pipeline.py at: 2019-06-11 11:39:13.445019
+## Generated by gen_pipeline.py at: 2019-06-19 18... |
Use forward slashes for Windows home directory. | @@ -184,7 +184,8 @@ cups_globals_alloc(void)
#ifdef _WIN32
HKEY key; /* Registry key */
DWORD size; /* Size of string */
- static char installdir[1024] = "", /* Install directory */
+ static char homedir[1024] = "", /* Home directory */
+ installdir[1024] = "", /* Install directory */
confdir[1024] = "", /* Server root... |
build.sh: fix building on fedora | DATA_DIR=$HOME/.local/share/MangoHud
LAYER=build/release/usr/share/vulkan/implicit_layer.d/mangohud.json
IMPLICIT_LAYER_DIR=$HOME/.local/share/vulkan/implicit_layer.d
+DISTRO=$(sed 1q /etc/os-release | sed 's/NAME=//g' | sed 's/"//g')
dependencies() {
if [[ ! -f build/release/usr/lib64/libMangoHud.so ]]; then
- DISTRO=... |
Fix: segment fault bug in Graph_FillRectARGB() | @@ -684,32 +684,32 @@ static int Graph_FillRectARGB( LCUI_Graph *graph, LCUI_Color color,
LCUI_Rect rect, LCUI_BOOL with_alpha )
{
int x, y;
- LCUI_Rect rect_src;
- LCUI_ARGB *px_p, *px_row_p;
+ LCUI_Graph canvas;
+ LCUI_ARGB *pixel, *pixel_row;
if( !Graph_IsValid( graph ) ) {
return -1;
}
- Graph_GetValidRect( graph, ... |
VarDiff log rounding | @@ -147,7 +147,7 @@ namespace MiningCore.Mining
if (newDiff.HasValue)
{
- logger.Info(() => $"[{LogCat}] [{client.ConnectionId}] VarDiff update to {newDiff}");
+ logger.Info(() => $"[{LogCat}] [{client.ConnectionId}] VarDiff update to {Math.Round(newDiff.Value, 2)}");
OnVarDiffUpdate(client, newDiff.Value);
}
|
doc: Update Config Overview
Regarding post-launched VMs, update the messaging about static vs. dynamic. Dynamic is more about creating a VM at runtime per PR 7802, not changing the configuration of an existing VM at runtime. | @@ -101,20 +101,21 @@ ACRN offers three types of VMs:
* **Post-launched User VMs**: These VMs typically share hardware resources via
the Service VM and Device Model. They can also access hardware devices
- directly if they've been configured as passthrough devices. Unlike
- pre-launched VMs, you can change the configur... |
Makefile: add an optional compiler wrapper
Use as 'make WRAPCC="ccache"', for example. | @@ -76,9 +76,9 @@ else
endif
CCFLAGS += -ffunction-sections -fno-jump-tables -fdata-sections
AR = xtensa-lx106-elf-ar
- CC = xtensa-lx106-elf-gcc
+ CC = $(WRAPCC) xtensa-lx106-elf-gcc
NM = xtensa-lx106-elf-nm
- CPP = xtensa-lx106-elf-cpp
+ CPP = $(WRAPCC) xtensa-lx106-elf-gcc -E
OBJCOPY = xtensa-lx106-elf-objcopy
FIRMW... |
updated run_examples | @@ -10,7 +10,7 @@ path = pathlib.Path(__file__).parents[0].absolute()
example_list = sorted(glob.glob(str(path.parents[0] / "examples" / "*" / "makeplot.py")))
# list of examples that should not be ran in the test
-no_fly_list = ["AbioticO2", "ChaoticResonances", "DampedCBP", "TidalEarth", "SS_NBody", "MagneticBreaking... |
rm mdb.dll file | @@ -100,7 +100,6 @@ def buildXamarinDLL(args, target):
return False
return makedirs(distDir) and \
copyfile('%s/bin/%s/CartoMobileSDK.%s.dll' % (buildDir, args.configuration, target), '%s/CartoMobileSDK.%s.dll' % (distDir, target)) and \
- copyfile('%s/bin/%s/CartoMobileSDK.%s.dll.mdb' % (buildDir, args.configuration, ... |
Add CI_UPSTREAM_COMMIT_SHA | @@ -247,6 +247,7 @@ installer:
CI_UPSTREAM_PIPELINE_SOURCE: $CI_PIPELINE_SOURCE
CI_UPSTREAM_COMMIT_BRANCH: $CI_COMMIT_BRANCH
CI_UPSTREAM_DEFAULT_BRANCH: $CI_DEFAULT_BRANCH
+ CI_UPSTREAM_COMMIT_SHA: ${CI_UPSTREAM_COMMIT_SHA}
PLUGIN_REF: main
AGENT_REF: $CI_COMMIT_REF_NAME
trigger:
|
Install SCons via Pip in workflow.
This gives better control over the installed version of SCons. | @@ -19,15 +19,23 @@ jobs:
steps:
- uses: actions/checkout@v2
+ - name: Set up Python 3
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.x
+ - name: Install SCons
+ run: |
+ python -m pip install --upgrade pip
+ python -m pip install scons
- name: Install APT dependencies
if: runner.os == 'Linux'
run: |
sudo ... |
options/posix: Define old C compatibility names | @@ -31,5 +31,9 @@ typedef unsigned short u_short;
typedef char *caddr_t;
typedef off64_t loff_t;
+typedef unsigned long int ulong;
+typedef unsigned short int ushort;
+typedef unsigned int uint;
+
#endif // _SYS_TYPES_H
|
provisioning/warewulf-provision: define conditional | --- a/configure.ac 2018-07-11 13:56:05.000000000 -0700
-+++ b/configure.ac 2018-07-11 20:39:32.000000000 -0700
-@@ -35,7 +35,8 @@
++++ b/configure.ac 2018-07-11 20:55:42.000000000 -0700
+@@ -35,7 +35,9 @@
AC_MSG_CHECKING([for Debian based system])
-AM_CONDITIONAL(ISDEB, [test -f /etc/debian_version])
-+AS_IF([test -f /... |
honggfuzz: test for input/output dirs existence | @@ -313,6 +313,12 @@ int main(int argc, char** argv) {
if (cmdlineParse(argc, myargs, &hfuzz) == false) {
LOG_F("Parsing of the cmd-line arguments failed");
}
+ if (hfuzz.io.inputDir && access(hfuzz.io.inputDir, R_OK) == -1) {
+ PLOG_F("Input directory '%s' is not readable", hfuzz.io.inputDir);
+ }
+ if (hfuzz.io.outpu... |
Initialize memory | @@ -478,7 +478,7 @@ static void* fuzz_threadNew(void* arg) {
run_t run = {
.global = hfuzz,
.pid = 0,
- .dynfile = (dynfile_t*)util_Malloc(sizeof(dynfile_t) + hfuzz->io.maxFileSz),
+ .dynfile = (dynfile_t*)util_Calloc(sizeof(dynfile_t) + hfuzz->io.maxFileSz),
.fuzzNo = fuzzNo,
.persistentSock = -1,
.tmOutSignaled = fal... |
sim: Implement function in sim
The function `flash_area_id_from_image_slot` is used in the RAM_LOAD and
DIRECT_XIP configurations. Define a version for use in the simulator. | @@ -438,6 +438,11 @@ uint8_t flash_area_get_device_id(const struct flash_area *fa)
return fa->fa_device_id;
}
+int flash_area_id_from_image_slot(int slot) {
+ /* For single image cases, just use the first image. */
+ return flash_area_id_from_multi_image_slot(0, slot);
+}
+
void sim_assert(int x, const char *assertion,... |
system/ramspeed: Add system interrupt switch.
system/ramspeed: Add system interrupt switch. | @@ -457,10 +457,12 @@ int main(int argc, FAR char *argv[])
parse_commandline(argc, argv, &ramspeed);
memcpy_speed_test(ramspeed.dest, ramspeed.src,
- ramspeed.size, ramspeed.repeat_num, ramspeed.irq_disable);
+ ramspeed.size, ramspeed.repeat_num,
+ ramspeed.irq_disable);
memset_speed_test(ramspeed.dest, ramspeed.value,... |
Added casting macros | @@ -65,7 +65,8 @@ extern "C" {
/**
* \brief Align x value to specific number of bytes, provided from \ref ESP_MEM_ALIGNMENT configuration
* \param[in] x: Input value to align
- * \retval Input value aligned to specific number of bytes
+ * \return Input value aligned to specific number of bytes
+ * \hideinitializer
*/
#... |
imgtool: fix validation with protected TLVs
After the change to support protected TLVs, the `verify` command was not
updated with proper support. Fix it by skipping any protected TLV found,
and fix the size of the hashed/signed region to also include the
protected TLV area. | @@ -544,16 +544,22 @@ class Image():
if magic != IMAGE_MAGIC:
return VerifyResult.INVALID_MAGIC, None, None
- tlv_info = b[header_size+img_size:header_size+img_size+TLV_INFO_SIZE]
+ tlv_off = header_size + img_size
+ tlv_info = b[tlv_off:tlv_off+TLV_INFO_SIZE]
+ magic, tlv_tot = struct.unpack('HH', tlv_info)
+ if magic... |
Sockeye: Mark regions in use | @@ -547,8 +547,8 @@ init :-
add_SYSTEM([]),
DRAM_ID = ["DRAM"],
initial_dram_block(Block),
- assert(node_in_use(["DRAM"], [memory, [Block]])),
- printf("Decoding net initialized using %p as DRAM", Block).
+ assert(node_accept(["DRAM"], [memory, [Block]])),
+ printf("Decoding net initialized using %p as DRAM\n", Block).... |
Reformat CMake: Do not split command output | @@ -11,7 +11,7 @@ SCRIPTS_DIR=$(dirname "$0")
# The command `cmake-format --version` seems to print the version number either to `stdout` or `stderr`, depending on the current system.
# To make sure we always capture the version number correctly we therefore redirect `stderr` to the same file descriptor as `stdout`,
# ... |
SOVERSION bump to version 5.0.14 | @@ -39,7 +39,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 5)
set(SYSREPO_MINOR_SOVERSION 0)
-set(SYSREPO_MICRO_SOVERSION 13)
+set(SYSREPO_MICRO_S... |
BugID:17865306: Adjust order for menu configs | @@ -19,14 +19,20 @@ config AOS_BUILD_APP
help
This option holds the name of the application that is going to build.
-#config MBINS
-# string
-# option env="MBINS"
+menu "Application Configuration"
+choice
+ prompt "Select App"
+ default AOS_APP_NULL
-## --- Generated Automatically ---
-source "board/Config.in"
+config ... |
skeleton/sgxsign: fix EINIT failure dueto SGX_INVALID_SIGNATURE
q2 is not always 384-byte length. Sometimes it only has 383-byte.
In this case, the valid portion of q2 is reordered reversely for
little endian order, and the remaining portion is filled with zero. | @@ -508,8 +508,11 @@ static bool calc_q1q2(const uint8_t *s, const uint8_t *m, uint8_t *q1,
goto out;
}
- BN_bn2bin(ctx.q1, q1);
- BN_bn2bin(ctx.q2, q2);
+ int len = BN_bn2bin(ctx.q1, q1);
+ /* convert to little endian */
+ reverse_bytes(q1, len);
+ len = BN_bn2bin(ctx.q2, q2);
+ reverse_bytes(q2, len);
free_q1q2_ctx(&... |
build - less verbose rsync of gpaddon_src | @@ -188,7 +188,7 @@ function _main() {
# symlink and `cd`s to the actual directory. Currently the Makefile in the
# addon directory assumes that it is located in a particular location under
# the source tree and hence needs to be copied over.
- rsync -auv gpaddon_src/ $GPDB_SRC_PATH/gpAux/$ADDON_DIR
+ rsync -au gpaddon... |
Add metadata command/key to README.md of gopts plugin
This is an addendum to | - infos/recommends =
- infos/placements = procgetstorage
- infos/status = recommended productive maintained nodep libc
-- infos/metadata = args args/index command opt opt/long opt/arg opt/flagvalue opt/help opt/hidden opt/# opt/#/long opt/#/arg opt/#/flagvalue opt/#/hidden env env/#
+- infos/metadata = args args/index ... |
Fix uninitialized variable usage in tabview | @@ -165,6 +165,7 @@ lv_obj_t * lv_tabview_create(lv_obj_t * par, const lv_obj_t * copy)
lv_tabview_ext_t * copy_ext = lv_obj_get_ext_attr(copy);
ext->point_last.x = 0;
ext->point_last.y = 0;
+ ext->tab_cnt = 0; /*Incremented later when the old tabs are copied*/
ext->btns = lv_btnm_create(new_tabview, copy_ext->btns);
e... |
net/oic; add newline to end of log_printf() for endpoint | @@ -47,7 +47,7 @@ oc_log_endpoint(uint16_t lvl, struct oc_endpoint *oe)
str = "<unkwn>";
}
}
- log_printf(&oc_log, LOG_MODULE_IOTIVITY, lvl, str);
+ log_printf(&oc_log, LOG_MODULE_IOTIVITY, lvl, "%s\n", str);
}
void
|
Fixed CMakeLists.txt regarding VMA_DYNAMIC_VULKAN_FUNCTIONS, VMA_STATIC_VULKAN_FUNCTIONS
Closes | @@ -26,20 +26,8 @@ set_target_properties(
target_include_directories(VulkanMemoryAllocator PUBLIC "${PROJECT_SOURCE_DIR}/include")
-if(${VMA_DYNAMIC_VULKAN_FUNCTIONS})
- set(VULKAN_USE_DYNAMIC ${VMA_DYNAMIC_VULKAN_FUNCTIONS})
-else()
- set(VULKAN_USE_DYNAMIC 0)
-endif()
-
-if(${VMA_STATIC_VULKAN_FUNCTIONS})
- set(VULKA... |
ci: add test for partition_table target | @@ -447,6 +447,10 @@ function run_tests()
(grep '"command"' build/compile_commands.json | grep -v mfix-esp32-psram-cache-issue) && failure "All commands in compile_commands.json should use PSRAM cache workaround"
rm -r build
+ print_status "Displays partition table when executing target partition_table"
+ idf.py partit... |
gethostlatency: remove unused code | @@ -34,7 +34,6 @@ struct val_t {
struct data_t {
u32 pid;
- u64 ts;
u64 delta;
char comm[TASK_COMM_LEN];
char host[80];
@@ -77,7 +76,6 @@ int do_return(struct pt_regs *ctx) {
bpf_probe_read(&data.host, sizeof(data.host), (void *)valp->host);
data.pid = valp->pid;
data.delta = tsp - valp->ts;
- data.ts = tsp / 1000;
eve... |
build: Run CodeQL automatically if binary present | @@ -168,13 +168,15 @@ call "%~dp0\SetVsEnv.bat" x86
if /I "!TAG!"=="SDV" (
echo Running SDV for %BUILD_FILE%, configuration %TARGET_VS_CONFIG%
call :runsdv "%TARGET_PROJ_CONFIG% %BUILD_FLAVOR%" %BUILD_ARCH%
- if not "%VIRTIO_WIN_RUN_CODEQL%"=="" (
+ if exist "%CODEQL_BIN%" (
if "%TARGET_PROJ_CONFIG%"=="Win10" (
echo Ru... |
Makefile: adjust compilation flags order | @@ -114,7 +114,7 @@ $(SYMTABSRC): $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_all)
$(Q) $(call TESTANDREPLACEFILE, $@.tmp, $@)
$(SYMTABOBJ): %$(OBJEXT): %.c
- $(call COMPILE, -fno-lto -fno-builtin $<, $@)
+ $(call COMPILE, $<, $@, -fno-lto -fno-builtin)
$(BIN): $(SYMTABOBJ)
$(call ARCHIVE_ADD, $(call CONVERT_PATH,$(BIN... |
Fixed RTOS2 message queue example. | @@ -113,7 +113,6 @@ typedef struct { // object dat
uint8_t Idx;
} MSGQUEUE_OBJ_t;
-osMemoryPoolId_t mpid_MemPool2; // memory pool id
osMessageQueueId_t mid_MsgQueue; // message queue id
int Init_MsgQueue (void) {
@@ -132,24 +131,25 @@ int Init_MsgQueue (void) {
}
void Thread_MsgQueue1 (void *argument) {
- MSGQUEUE_OBJ_... |
Add support for Context inspection | @@ -500,6 +500,10 @@ namespace MAT_NS_BEGIN
LOG_TRACE("SetContext(\"%s\", ..., %u)", name.c_str(), piiKind);
EventProperty prop(value, piiKind);
m_context.SetCustomField(name, prop);
+ if (m_dataInspector)
+ {
+ m_dataInspector->InspectSemanticContext(name, value, /*isGlobalContext: */ true, std::string{});
+ }
return ... |
only delete dataKs if they have been initialized. | @@ -1851,6 +1851,7 @@ int kdbGet (KDB * handle, KeySet * ks, Key * parentKey)
if (goptsActive && !handle->hooks.gopts.get (handle->hooks.gopts.plugin, dataKs, parentKey))
{
clear_bit (parentKey->flags, KEY_FLAG_RO_NAME | KEY_FLAG_RO_VALUE);
+ ksDel (dataKs);
goto error;
}
clear_bit (parentKey->flags, KEY_FLAG_RO_NAME |... |
bignum_mod_raw.py: Added BignumModRawConvertfromMont
This patch adds test class for 'mpi_mod_raw_from_mont_rep()`. | @@ -211,6 +211,37 @@ class BignumModRawConvertToMont(BignumModRawOperationArchSplit):
@property
def hex_x(self) -> str:
return "{:x}".format(self.x).zfill(self.hex_digits)
+
+class BignumModRawConvertFromMont(BignumModRawConvertToMont):
+ """ Test cases for mpi_mod_raw_from_mont_rep(). """
+
+ test_function = "mpi_mod_... |
changed all pixel types to use the 40/80Mhz clock | @@ -422,23 +422,23 @@ static int set_pixformat(sensor_t *sensor, pixformat_t pixformat)
case PIXFORMAT_RGB565:
ret |= cambus_writeb2(sensor->slv_addr, FORMAT_CONTROL, 0x61);
ret |= cambus_writeb2(sensor->slv_addr, FORMAT_CONTROL_MUX, 0x01);
- pll = (resolution[sensor->framesize][0] > 2048) ? 0x50 : 0x64; // 32 MHz vs 4... |
prepare kernel for sve zgemm | @@ -169,15 +169,24 @@ CGEMMOTCOPY = ../generic/zgemm_tcopy_$(CGEMM_UNROLL_N).c
CGEMMONCOPYOBJ = cgemm_oncopy$(TSUFFIX).$(SUFFIX)
CGEMMOTCOPYOBJ = cgemm_otcopy$(TSUFFIX).$(SUFFIX)
-ZGEMMKERNEL = zgemm_kernel_$(ZGEMM_UNROLL_M)x$(ZGEMM_UNROLL_N).S
-ZTRMMKERNEL = ztrmm_kernel_$(ZGEMM_UNROLL_M)x$(ZGEMM_UNROLL_N).S
-ifneq ($... |
tests: add more pthread_cancel tests | #include <pthread.h>
#include <unistd.h>
-_Atomic int ready = 0;
+_Atomic int worker_ready = 0;
+_Atomic int main_ready = 0;
-static void *worker(void *arg) {
+static void *worker1(void *arg) {
(void)arg;
assert(!pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL));
assert(!pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRO... |
Use USBHS_Handler | @@ -109,7 +109,7 @@ void board_init(void)
//--------------------------------------------------------------------+
// USB Interrupt Handler
//--------------------------------------------------------------------+
-void UDP_Handler(void)
+void USBHS_Handler(void)
{
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
tud_int_handl... |
BugID:23266661: Remove redundant http api | @@ -72,6 +72,12 @@ typedef struct httpc_s {
#endif
} httpc_t;
+/** @brief This structure defines the httpclient and HTTP data structure. */
+typedef struct {
+ httpclient_t client;
+ httpclient_data_t client_data;
+} httpclient_source_t;
+
#define HTTPC_VERSION "HTTP/1.1"
#define HTTPC_CRLF "\r\n"
@@ -81,6 +87,28 @@ ty... |
sysdeps/managarm: convert TIOCSCTTY to helix_ng | @@ -162,44 +162,28 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) {
return 0;
}
case TIOCSCTTY: {
- HelAction actions[4];
- globalQueue.trim();
-
managarm::fs::CntRequest<MemoryAllocator> req(getSysdepsAllocator());
req.set_req_type(managarm::fs::CntReqType::PT_IOCTL);
req.set_command(request);... |
VERSION bump to version 2.1.75 | @@ -64,7 +64,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 2)
set(SYSREPO_MINOR_VERSION 1)
-set(SYSREPO_MICRO_VERSION 74)
+set(SYSREPO_MICRO_VERSION 75)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
Camel: Save test data below `/tests` | @@ -18,28 +18,28 @@ This plugin reads configuration data specified in a **very limited** subset of
### Basic Usage
```sh
-# Mount yaml plugin to cascading namespace `/examples/camel`
-sudo kdb mount config.yaml /examples/camel camel
+# Mount yaml plugin to cascading namespace `/tests/camel`
+sudo kdb mount config.yaml ... |
We don't need to handle handshake completion in server write event | @@ -6981,31 +6981,7 @@ static ssize_t conn_write_handshake(ngtcp2_conn *conn, uint8_t *dest,
return res;
}
- nwrite = conn_write_handshake_ack_pkts(conn, dest, origlen, ts);
- if (nwrite < 0) {
- return nwrite;
- }
-
- res += nwrite;
-
- if (!(conn->flags & NGTCP2_CONN_FLAG_TRANSPORT_PARAM_RECVED)) {
- return NGTCP2_ER... |
bsync: using error-handling interface | /*
- * Copyright (c) 2007 - 2015 Joseph Gaeddert
+ * Copyright (c) 2007 - 2020 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -77,10 +77,9 @@ BSYNC() BSYNC(_create_msequence)(unsigned int... |
mesh: Fix printing heartbeat publication storing log | @@ -1026,6 +1026,7 @@ static void store_pending_hb_pub(void)
struct bt_mesh_hb_pub *pub = bt_mesh_hb_pub_get();
struct hb_pub_val val;
char *str;
+ int err;
if (!pub) {
return;
@@ -1051,7 +1052,12 @@ static void store_pending_hb_pub(void)
BT_DBG("Saving Heartbeat Publication as value %s",
str ? str : "(null)");
- setti... |
acrn: allow to specify the build output folder
Usages: make O=<any folder> | @@ -4,8 +4,8 @@ T := $(CURDIR)
PLATFORM ?= uefi
RELEASE ?= 0
-BUILD_DIR := build
-ROOT_OUT := $(T)/$(BUILD_DIR)
+O ?= build
+ROOT_OUT := $(shell mkdir -p $(O);cd $(O);pwd)
HV_OUT := $(ROOT_OUT)/hypervisor
DM_OUT := $(ROOT_OUT)/devicemodel
TOOLS_OUT := $(ROOT_OUT)/tools
|
fuzz/asn1parse: Use BIO_s_mem() as fallback output
/dev/null is not available everywhere. | @@ -24,6 +24,8 @@ static BIO *bio_out;
int FuzzerInitialize(int *argc, char ***argv)
{
bio_out = BIO_new_file("/dev/null", "w");
+ if (bio_out == NULL)
+ bio_out = BIO_new(BIO_s_mem());
OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL);
ERR_clear_error();
CRYPTO_free_ex_index(0, -1);
|
GBP: format include EPG index | @@ -331,7 +331,8 @@ format_gbp_endpoint_group (u8 * s, va_list * args)
vnet_main_t *vnm = vnet_get_main ();
if (NULL != gg)
- s = format (s, "%d, sclass:%d bd:[%d,%d], rd:[%d] uplink:%U locks:%d",
+ s = format (s, "[%d] %d, sclass:%d bd:[%d,%d], rd:[%d] uplink:%U locks:%d",
+ gg - gbp_endpoint_group_pool,
gg->gg_id,
gg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.