message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
curlget: remove leftover files | @@ -518,7 +518,10 @@ static int moveFile(const char *source, const char *dest)
{
return -1;
}
- unlink(source);
+ if(unlink(source))
+ {
+ return -1;
+ }
return 0;
}
@@ -892,7 +895,13 @@ int elektraCurlgetSet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned ELEKTRA
{
if (data->useLocalCopy)
{
- moveFile (data->tmpFil... |
fix bug, m is always defined | @@ -2295,15 +2295,13 @@ motionnotify(XEvent *e)
tagwidth = gettagwidth();
// detect mouse hovering over other monitor
- if (focusfollowsmouse) {
m = recttomon(ev->x_root, ev->y_root, 1, 1);
- if (m && m != selmon) {
+ if (m && m != selmon && focusfollowsmouse) {
unfocus(selmon->sel, 1);
selmon = m;
focus(NULL);
return;... |
common/ec_ec_comm_slave: initialize seq
Found-by: Coverity Scan
Commit-Ready: Patrick Georgi
Tested-by: Patrick Georgi | @@ -212,7 +212,7 @@ void ec_ec_comm_slave_task(void *u)
* aligned on a 32-bit boundary.
*/
uint8_t __aligned(4) params[COMMAND_BUFFER_PARAMS_SIZE];
- unsigned int len, seq, hascrc, cmdver;
+ unsigned int len, seq = 0, hascrc, cmdver;
uint32_t start;
while (1) {
|
fix authcode uri printed instead of redirect uri when doing manual redirect | @@ -84,15 +84,13 @@ char* gen_parseResponse(char* res, const struct arguments* arguments) {
"account configuration generation process there.\n");
no_statelookup = 1;
} else if (arguments->noWebserver) {
- char* baseuri = getBaseUri(_uri);
printImportant(
"\nYou have chosen to not use a webserver. You therefore have to ... |
Make exponentiation generate a var name | @@ -1394,6 +1394,25 @@ local function generate_binop_idiv_flt(exp, ctx)
return cstats, r.name
end
+-- see luai_numpow
+local function generate_binop_pow(exp, ctx)
+ local x_stats, x_var = generate_exp(exp.lhs, ctx)
+ local y_stats, y_var = generate_exp(exp.rhs, ctx)
+ local r = ctx:new_tvar(exp._type)
+ local cstats = ... |
nimble/ll: Remove redundant variable in local scope | @@ -2080,7 +2080,6 @@ ble_ll_conn_next_event(struct ble_ll_conn_sm *connsm)
connsm->anchor_point += connsm->conn_itvl_ticks;
connsm->anchor_point_usecs += connsm->conn_itvl_usecs;
} else {
- uint32_t ticks;
ticks = os_cputime_usecs_to_ticks(itvl);
connsm->anchor_point += ticks;
connsm->anchor_point_usecs += (itvl - os_... |
OcBootManagementLib: Set IsExternal from FileSystem->External in custom entries; required for BootEntryProtocol. | @@ -593,6 +593,8 @@ InternalAddBootEntryFromCustomEntry (
return EFI_OUT_OF_RESOURCES;
}
+ BootEntry->IsExternal = FileSystem->External;
+
if (CustomEntry->Id != NULL) {
BootEntry->Id = AsciiStrCopyToUnicode (CustomEntry->Id, 0);
if (BootEntry->Id == NULL) {
|
add a check for the return of sk_SRP_gN_new_null() so that capture the potential memory error in time | @@ -391,7 +391,7 @@ static BIGNUM *SRP_gN_place_bn(STACK_OF(SRP_gN_cache) *gN_cache, char *ch)
int SRP_VBASE_init(SRP_VBASE *vb, char *verifier_file)
{
- int error_code;
+ int error_code = SRP_ERR_MEMORY;
STACK_OF(SRP_gN) *SRP_gN_tab = sk_SRP_gN_new_null();
char *last_index = NULL;
int i;
@@ -403,6 +403,9 @@ int SRP_VB... |
Fix wrong type name | @@ -30,7 +30,7 @@ typedef struct SceKernelIntrOptHandlers {
SceKernelIntrOptHandlersCb2 *fptr3;
SceKernelIntrOptHandlersCb1 *fptr4;
SceKernelIntrOptHandlersCb1 *fptr5;
-} SceKernelIntrOptParam2;
+} SceKernelIntrOptHandlers;
typedef struct SceKernelIntrOptParam {
uint32_t size; // 0x14
|
Update footer for Datafari 3.2.1 | pageEncoding="utf-8"%>
<footer class="bar-footer">
<div>
- <img src="images/datafari.png"><a href="mailto:support@francelabs.com" class="link"> Datafari v3.2.0 © Copyright France Labs</a>
+ <img src="images/datafari.png"><a href="mailto:support@francelabs.com" class="link"> Datafari v3.2.1 © Copyright France ... |
requirements.txt: remove unnecessary version pins that conflict with piksi_tools | -boto==2.42.0
construct==2.5.2
-httpretty
requests>=2.8.1
-futures==2.2.0
requests-futures>=0.9.5
+futures>=2.2.0
+boto
+httpretty
pyftdi
pylibftdi
-pyserial==2.7
-pyyaml==3.11
+pyserial
+pyyaml
|
Documentation: Cclass IoTClient, IoT Utility are not a Bundle | @@ -334,8 +334,8 @@ Device | Startup and system setup components
Extension Board * | Drivers that support an extension boards or shield
File System* | File drive support and file system
Graphics* | Graphical libraries for user interfaces
-IoT Client * | IoT cloud client connectors
-IoT Utility * | IoT specific utilitie... |
BugID:17132092:[WhiteScan] fix string length check | @@ -814,7 +814,12 @@ static int notify_cip_connect_status_events(int sockid, int status,
}
remoteip = inet_ntoa(peer.sin_addr);
- // TODO: check len
+ // check len
+ if (strlen(remoteip) >= sizeof(addr_str)) {
+ LOGE(TAG, "invalid remote ip addr len %d\n", strlen(remoteip));
+ goto err;
+ }
+
memcpy(addr_str, remoteip,... |
Fix fullscreen textures; | @@ -604,8 +604,12 @@ void lovrGraphicsPlaneFullscreen(Texture* texture) {
};
lovrGraphicsSetDefaultShader(SHADER_FULLSCREEN);
+ Material* material = lovrGraphicsGetMaterial();
+ Texture* lastTexture = lovrMaterialGetTexture(material, TEXTURE_DIFFUSE);
+ lovrMaterialSetTexture(material, TEXTURE_DIFFUSE, texture);
lovrGr... |
Glib Bindings: Remove outdated CMake code | include (LibAddMacros)
-if (CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION EQUAL 8)
- if (CMAKE_PATCH_VERSION LESS 12)
- # needed for PRIVATE and PUBLIC flags in target_link_libraries
- # also in tests subdirectory
- # see also https://cmake.org/cmake/help/v3.0/policy/CMP0023.html
- remove_binding (glib "cmake 2.8... |
Use UINT64_C macro for uint64_t constant in tests
A long constant might not be sufficient. | @@ -78,7 +78,7 @@ static void test_serialize_inject_touch_event(void) {
.type = CONTROL_MSG_TYPE_INJECT_TOUCH_EVENT,
.inject_touch_event = {
.action = AMOTION_EVENT_ACTION_DOWN,
- .pointer_id = 0x1234567887654321L,
+ .pointer_id = UINT64_C(0x1234567887654321),
.position = {
.point = {
.x = 100,
|
Set default material normalScale to 1; | @@ -596,6 +596,7 @@ bool lovrGraphicsInit(GraphicsConfig* config) {
.data.uvScale = { 1.f, 1.f },
.data.metalness = 0.f,
.data.roughness = 1.f,
+ .data.normalScale = 1.f,
.texture = state.defaultTexture
});
|
Completions: Improve ordering of complete commands | @@ -355,17 +355,23 @@ end
# =============
complete -c kdb -n 'not __fish_kdb_subcommand' -x -a '(__fish_kdb_print_subcommands -v)'
+
set -l completion_function '__fish_kdb_needs_namespace complete editor export file fstab get getmeta import ls lsmeta set 1'
complete -c kdb -n "$completion_function" -x -a '(__fish_kdb_p... |
king: drop ames packets when >1k are unprocessed | @@ -17,6 +17,14 @@ import Urbit.Vere.Ames.DNS (galaxyPort, resolvServ)
import Urbit.Vere.Ames.UDP (UdpServ(..), fakeUdpServ, realUdpServ)
+-- Constants -------------------------------------------------------------------
+
+-- | How many unprocessed ames packets to allow in the queue before we stop
+-- dropping incoming... |
ui32 -> double | @@ -35,7 +35,7 @@ namespace NCatboostCuda {
return binCount * 1.0 / 256;
}
- return 1.0 + binCount / 256;
+ return 1.0 + binCount * 1.0 / 256;
}
bool IsOneHot(ui32 featureId) const {
|
Fix signed to unsigned conversion warning for this test | @@ -85,7 +85,7 @@ static EventGroupHandle_t xSyncEventGroup;
CK_SESSION_HANDLE xGlobalSession;
CK_FUNCTION_LIST_PTR pxGlobalFunctionList;
-#define pkcs11testINVALID_SLOT_ID -1
+#define pkcs11testINVALID_SLOT_ID ( CK_SLOT_ID )-1
extern CK_RV xProvisionDevice( CK_SESSION_HANDLE xSession,
|
Don't set wifi working variables when checking wifi | @@ -2716,22 +2716,12 @@ int DeRestPluginPrivate::putWifiUpdated(const ApiRequest &req, ApiResponse &rsp)
{
gwWifiStateString = QLatin1String("check-ap");
- if (gwWifiWorkingType != QLatin1String("accesspoint"))
- {
- gwWifiWorkingType = QLatin1String("accesspoint");
- }
-
updateEtag(gwConfigEtag);
}
else if (status == ... |
move the callback call outside of schedule_frames_on_path
Make the plugin easier, without thinking about callbacks | @@ -3042,25 +3042,6 @@ protoop_arg_t schedule_frames_on_path(picoquic_cnx_t *cnx)
uint8_t* bytes = packet->bytes;
picoquic_packet_type_enum packet_type = picoquic_packet_1rtt_protected_phi0;
- if (!cnx->ready_notified &&
- ((cnx->cnx_state == picoquic_state_server_ready &&
- cnx->crypto_context[3].aead_decrypt != NULL)... |
esp32: fix the bug that SYSTEM_EVENT_STA_GOT_IP is forbidden when gateway is 0.0.0.0
Closes: | @@ -103,7 +103,7 @@ esp_err_t system_event_eth_connected_handle_default(system_event_t *event)
tcpip_adapter_get_ip_info(TCPIP_ADAPTER_IF_ETH, ð_ip);
- if (!(ip4_addr_isany_val(eth_ip.ip) || ip4_addr_isany_val(eth_ip.netmask) || ip4_addr_isany_val(eth_ip.gw))) {
+ if (!(ip4_addr_isany_val(eth_ip.ip) || ip4_addr_isan... |
Testing: NCEP local (fix path) | temp=output.grib_local_NCEP.grib
sample=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
-grib_set -s centre=kwbc,discipline=3,parameterCategory=192,parameterNumber=35 $sample $temp
+${tools_dir}/grib_set -s centre=kwbc,discipline=3,parameterCategory=192,parameterNumber=35 $sample $temp
grib_check_key_equals $temp paramId,shortName '7... |
Always set blockreward to zero if orphaned | @@ -137,6 +137,7 @@ namespace Miningcore.Blockchain.Bitcoin
if (cmdResult.Error.Code == -5)
{
block.Status = BlockStatus.Orphaned;
+ block.Reward = 0;
result.Add(block);
}
@@ -150,6 +151,7 @@ namespace Miningcore.Blockchain.Bitcoin
else if (transactionInfo?.Details == null || transactionInfo.Details.Length == 0)
{
bloc... |
file_name --> filename
Silly change | @@ -68,8 +68,8 @@ function util.abort(msg)
os.exit(1)
end
-function util.split_ext(file_name)
- local name, ext = string.match(file_name, "(.*)%.(.*)")
+function util.split_ext(filename)
+ local name, ext = string.match(filename, "(.*)%.(.*)")
return name, ext
end
|
updates :ph +raw-ship booted heuristic | ::
:~
?. %^ is-dojo-output her who :- uf
- "+ /{(scow %p her)}/base/2/web/testing/udon"
+ "clay: committed initial filesystem (all)"
~
[%test-done &]~
::
|
yatest.common.output_ram_drive_path() should return None if no ram drive was provided
issue:DEVTOOLS-6543 | @@ -114,9 +114,10 @@ def ram_drive_path(path=None):
def output_ram_drive_path(path=None):
"""
Returns path inside ram drive directory which will be saved in the testing_out_stuff directory after testing.
- If no ram drive was provided by environment - returns path inside testing_out_stuff directory.
+ Returns None if n... |
remove Maxim Epsilon HIC | @@ -15,7 +15,6 @@ There are many ARM microcontroller-based Hardware Interface Circuits (HICs) that
* [NXP OpenSDA based on K20, K22 and KL26](http://www.nxp.com/products/software-and-tools/run-time-software/kinetis-software-and-tools/ides-for-kinetis-mcus/opensda-serial-and-debug-adapter:OPENSDA)
* [NXP LPC-Link2 based... |
util/mkdef.pl: use better array in search of 'DEPRECATEDIN_'
%disabled_algorithms isn't necessarily initialised with the "algos"
'DEPRECATEDIN_1_1_0' etc. However, we know that has
them all, so use that to find them instead.
Fixes
(where this was reported) | @@ -152,7 +152,7 @@ my %disabled_algorithms =
map { (my $x = uc $_) =~ s|-|_|g; $x => 1; } keys %disabled;
my $apiv = sprintf "%x%02x%02x", split(/\./, $config{api});
-foreach (keys %disabled_algorithms) {
+foreach (@known_algorithms) {
if (/^DEPRECATEDIN_(\d+)_(\d+)_(\d+)$/) {
my $depv = sprintf "%x%02x%02x", $1, $2, ... |
Add a test for read_ahead data crossing a key change
If read_ahead is switched on, it should still work even if the data that
is read cross epochs. | @@ -9844,6 +9844,72 @@ end:
#endif
}
+#ifndef OSSL_NO_USABLE_TLS1_3
+/* Test that read_ahead works across a key change */
+static int test_read_ahead_key_change(void)
+{
+ SSL_CTX *cctx = NULL, *sctx = NULL;
+ SSL *clientssl = NULL, *serverssl = NULL;
+ int testresult = 0;
+ char *msg = "Hello World";
+ size_t written,... |
Remove unused variable 'sctx'
In the openssl-3.0.0 and system provided, the variable 'sctx' is unused in test_509_dup_cert.
Therefore, it might be better to remove the definition and operation of it.
CLA: trivial | static int test_509_dup_cert(int n)
{
int ret = 0;
- X509_STORE_CTX *sctx = NULL;
X509_STORE *store = NULL;
X509_LOOKUP *lookup = NULL;
const char *cert_f = test_get_argument(n);
@@ -28,7 +27,6 @@ static int test_509_dup_cert(int n)
&& TEST_true(X509_load_cert_file(lookup, cert_f, X509_FILETYPE_PEM)))
ret = 1;
- X509_S... |
doc: remove the guest cpu number option '-c' from the document
This commit updates the DM parameters reference document to reflect
the removal of the guest cpu number option '-c' implementation. | @@ -33,11 +33,6 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters:
specifies the kernel log level at 7
- * - :kbd:`-c, --ncpus <cpus>`
- - Set number of CPUs for UOS. This number is an integer and must not be
- more than the total number of CPUs in the system, minus one (which is
- used by ... |
Remove short timeout in change password test to prevent jenkins failures
Tested-by: Jake Rawsthorne
Tested-by: Build Bot | @@ -1111,10 +1111,6 @@ TEST_F(GetUnitTest, testChangePassword)
createConnection(hwHttp, &instanceHttp);
(void)lcb_install_callback(instanceHttp, LCB_CALLBACK_HTTP, (lcb_RESPCALLBACK)change_password_http_callback);
- // Set short timeout
- lcb_uint32_t tmoval = 100000;
- lcb_cntl(instance, LCB_CNTL_SET, LCB_CNTL_OP_TIME... |
Improved Go configure test. | $echo -n "checking for Go ..."
-$echo -n "checking for Go ..." >> $NXT_AUTOCONF_ERR
+$echo "checking for Go ..." >> $NXT_AUTOCONF_ERR
-NXT_GO_VERSION="`${NXT_GO} version`"
+nxt_go_test="GOPATH=`pwd` CGO_CPPFLAGS=-DNXT_CONFIGURE \
+ \"${NXT_GO}\" build -o build/nxt_go_gen.a --buildmode=c-archive nginext"
-if /bin/sh -c ... |
Clarify the linkerscript example
* Clarify the linkerscript example
* Explain that backslash escape sequences are supported
Fixes | .Sh DESCRIPTION
The linker script is an external file that allows the user to specify the order of sections at link time and in a centralized manner.
.Pp
-A linker script consists on a series of banks followed by a list of sections and, optionally, commands.
-They can be lowercase or uppercase, it is ignored.
+A linker... |
groups: properly check and await notebook join | @@ -31,7 +31,7 @@ function isJoined(app: string, path: string) {
return props.graphKeys.has(path);
case "publish":
[, ship, name] = path.split("/");
- return !!props.notebooks[ship.slice(1)][name];
+ return !!props.notebooks[ship]?.[name];
case "chat":
return !!props.inbox[path];
default:
|
Skip matched keypoints. | @@ -473,6 +473,7 @@ static kp_t *find_best_match(kp_t *kp1, array_t *kpts, int *dist_out)
int dist = 0;
kp_t *kp2 = array_at(kpts, i);
+ if (kp2->matched == 0) {
for (int m=0; m<(KDESC_SIZE/4); m++) {
uint32_t v = ((uint32_t*)(kp1->desc))[m] ^ ((uint32_t*)(kp2->desc))[m];
while (v) {
@@ -488,6 +489,7 @@ static kp_t *fi... |
Simple INI: Use fences for code snippets | @@ -21,7 +21,9 @@ It is quite suitable to export configuration if you want line-by-line key, value
without sections or metadata.
(Thus +3000 in status)
- $ kdb export system/samba simpleini
+```sh
+kdb export system/samba simpleini
+```
## Configuration
@@ -37,9 +39,11 @@ The default is `% = %`.
For example, if you wan... |
netkvm: split OnAdapterAttach procedure
OnAdapterAttach is splitted to:
OnAdapterFound sets m_BoundAdapter
OnAdapterAttached sets m_Started flag and starts state
machines of packets redirection. | @@ -224,37 +224,51 @@ public:
void OnSendCompletion(PNET_BUFFER_LIST Nbls, ULONG Flags);
// called under protocol mutex from NETKVM's Halt()
void OnAdapterHalted()
+ {
+ if (m_Started)
{
m_TxStateMachine.Stop();
m_RxStateMachine.Stop();
+ }
+ m_Started = false;
m_BoundAdapter = NULL;
}
// called under protocol mutex
- ... |
Fix no-rc2
Skip a test that relies on RC2 being present in a no-rc2 build. | @@ -90,6 +90,9 @@ ok(run(app(["openssl", "pkcs12", "-export",
"-out", $outfile2])),
"test_pkcs12_passcerts");
+SKIP: {
+ skip "Skipping legacy PKCS#12 test because RC2 is disabled in this build", 1
+ if disabled("rc2");
# Test reading legacy PKCS#12 file
ok(run(app(["openssl", "pkcs12", "-export",
"-in", srctop_file(@p... |
input_thread: removed lagging references to flb_base_conn | @@ -384,13 +384,13 @@ static void input_thread(void *data)
event->handler(event);
}
else if (event->type == FLB_ENGINE_EV_THREAD) {
- struct flb_base_conn *connection;
+ struct flb_connection *connection;
/*
* Check if we have some co-routine associated to this event,
* if so, resume the co-routine
*/
- connection = (s... |
Added function reference | This library offers convenient functions for interacting with your new [Pimoroni Automation 2040W](https://shop.pimoroni.com/products/automation-2040-w), an all-in-one, Pico W powered industrial/automation controller with 2.4GHz wireless connectivity, relays and a plethora of inputs and outputs.
## Table of Content
-- ... |
stats: add a retry mechanism in a symlink test
When creating a new node, a corresponding node symlink is created when
the nodes counters update. To be sure we are able to access this
symlink, a retry mechanism was added.
Type: fix | import unittest
import psutil
+import sys
+import six
from vpp_papi.vpp_stats import VPPStats
from framework import tag_fixme_vpp_workers
@@ -108,7 +110,19 @@ class StatsClientTestCase(VppTestCase):
# We wait for nodes symlinks to update (interfaces created/deleted).
# ... and packets to be sent
self.sleep(0.1)
+ for _... |
Removed an example of -DCMAKE_C_FLAGS=-g3 from the doc because it will become the default | @@ -76,7 +76,6 @@ As an example, <a href="https://en.wikipedia.org/wiki/AddressSanitizer">AddressS
<dd>
This option specifies the build type, <code>Release</code> or <code>Debug</code>.
The default is <code>Release</code>.
-You'd like to add some more debugging flags to `CMAKE_C_FLAGS` on <code>Debug</code> build, for ... |
u3: enables ASan for u3i_molt and friends | @@ -472,7 +472,6 @@ u3i_list(u3_weak one, ...);
return cut_t ? cut_w : i_w;
}
- __attribute__((no_sanitize_address))
static u3_noun // transfer
_molt_apply(u3_noun som, // retain
c3_w len_w,
@@ -498,7 +497,6 @@ u3i_list(u3_weak one, ...);
}
}
-__attribute__((no_sanitize_address))
u3_noun
u3i_molt(u3_noun som, ...)
{
|
Clarified assembly checker section in README file | @@ -52,7 +52,7 @@ Each report is written into its own file and it is named after the input file, f
### Debugulator
-There are some simple errors that can be automatically fixed. The most common error is the presence of duplicate variants. The needed parameters are the original VCF and the report generated by a previous... |
wasm: windows: Adjust build rules | @@ -41,7 +41,11 @@ set (WAMR_BUILD_FAST_INTERP 1)
set (WAMR_BUILD_AOT 1)
set (WAMR_BUILD_JIT 0)
set (WAMR_BUILD_LIBC_BUILTIN 1)
-if (NOT MSVC)
+if (MSVC)
+ # Currently, LIBC_UVWASI build is disabled.
+ # FIXME: Need to investigate how to build libuv and uvwasi without fetching repos.
+ set (WAMR_BUILD_LIBC_UVWASI 0)
+e... |
Packcore tests were failing on 6x. Current change makes sure that we are in parity with gpdb6.
Packcore tests on RHEL8 were failing because of GDB failing to start. And this was happening because GDB needs some environment variables set before invoking command. | @@ -128,7 +128,7 @@ def _getLibraryListWithGDB(coreFile, binary):
# list shared libraries explicitly
'-c', coreFile,
binary],
- stdout=PIPE, stderr=PIPE)
+ stdout=PIPE, stderr=PIPE, env=environ)
result = cmd.communicate()[0].decode()
# gdb output looks like below:
|
test-suite: add gnu8 m4 var | @@ -29,6 +29,11 @@ elif test "x$LMOD_FAMILY_COMPILER" = "xgnu7"; then
CXX=g++
FC=gfortran
AC_MSG_RESULT([gnu7])
+elif test "x$LMOD_FAMILY_COMPILER" = "xgnu8"; then
+ CC=gcc
+ CXX=g++
+ FC=gfortran
+ AC_MSG_RESULT([gnu8])
elif test "x$LMOD_FAMILY_COMPILER" = "xllvm4"; then
CC=clang
CXX=clang++
|
Get basic text working. | @@ -7,12 +7,13 @@ import Arvo hiding (Term)
import Vere.Pier.Types
import Foreign.Marshal.Alloc
+import Foreign.Storable
import System.Posix.IO
import System.Posix.Terminal
import System.Console.Terminfo.Base
-import qualified Urbit.Time as Time
+import Data.ByteString.Internal
-- Types --------------------------------... |
OcAppleKernelLib: Improved `ExtendBTFeatureFlags` quirk on newer macOS versions, thx | OpenCore Changelog
==================
#### v0.8.1
-- Fixed `ExtendBTFeatureFlags` quirk on newer macOS versions, thx @lvs1974
+- Improved `ExtendBTFeatureFlags` quirk on newer macOS versions, thx @lvs1974
#### v0.8.0
- Added support for early log preservation
|
Mazda: more generic ignition signal | @@ -216,7 +216,7 @@ void ignition_can_hook(CANPacket_t *to_push) {
// Mazda exception
if ((addr == 0x9E) && (len == 8)) {
- ignition_can = (GET_BYTE(to_push, 0) >> 4) == 0xDU;
+ ignition_can = (GET_BYTE(to_push, 0) >> 5) == 0x6U;
}
}
|
add a test for EC-JPAKE compatibility in TLS1.2
This is to ensure that the MbedTLS based implementation of EC-JPAKE
is compatible with the PSA crypto one | @@ -1437,6 +1437,31 @@ component_test_tls1_2_default_cbc_legacy_cbc_etm_cipher_only_use_psa () {
tests/ssl-opt.sh -f "TLS 1.2"
}
+# We're not aware of any other (open source) implementation of EC J-PAKE in TLS
+# that we could use for interop testing. However, we now have sort of two
+# implementations ourselves: one u... |
Add comment to explain the NULLs in calls to doErrorMetric(). | @@ -962,7 +962,9 @@ reportPeriodicStuff(void)
doTotalDuration(TOT_NET_DURATION);
doTotalDuration(TOT_DNS_DURATION);
- // Report errors
+ // Having NULL in the third and fourth parameters (func and name)
+ // is how report.c knows that this doErrorMetric() is a "summary"
+ // (aggregated) metric.
doErrorMetric(NET_ERR_C... |
android: checking another android versions on travis | @@ -86,7 +86,7 @@ matrix:
- language: android
os: linux
- env: RHO_TARGET="android" RHO_APP="auto_common_spec"
+ env: RHO_TARGET="android" RHO_APP="auto_common_spec" RHO_ANDROID_LEVEL="21"
#- language: android
# os: linux
@@ -94,7 +94,7 @@ matrix:
- language: android
os: linux
- env: RHO_TARGET="android" RHO_APP="frame... |
options/ansi: Fix tzh_timecnt == 0 case in tzinfo
This bug was reported in managarm/managarm#80. | @@ -325,18 +325,27 @@ int unix_local_from_gmt(time_t unix_gmt, time_t *offset, bool *dst) {
memcpy(&ttime, reinterpret_cast<char *>(window.get()) + sizeof(tzfile)
+ i * sizeof(int32_t), sizeof(int32_t));
ttime = bswap_32(ttime);
- if(ttime > unix_gmt) {
- __ensure(i);
+ // If we are before the first transition, the for... |
Eliminate ambiguity | @@ -356,7 +356,7 @@ M3Result ReadLebSigned (i64 * o_value, u32 i_maxNumBits, bytes_t * io_bytes, c
{
result = c_m3Err_none;
- if (byte & 0x40 and shift < 64) // do sign extension
+ if ((byte & 0x40) and (shift < 64)) // do sign extension
{
u64 extend = 1;
extend <<= shift;
|
Tiny tweak to error message when bamToFastq doesn't get a bam file
Before this commit the bamToFastq utility produced an error message
asking for '-bam' when no bam file was provided, this commit matches
the error message to the required argument (-i) | @@ -98,7 +98,7 @@ int bamtofastq_main(int argc, char* argv[]) {
// make sure we have a BAM file
if (!haveInBam) {
- cerr << endl << "*****" << endl << "*****ERROR: Need -bam. " << endl << "*****" << endl;
+ cerr << endl << "*****" << endl << "*****ERROR: Need bam file (-i). " << endl << "*****" << endl;
showHelp = true... |
Docs: Change /gpmaster to /gpcoordinator
Remove the master reference from gpinitsystem single node template by changing the `COORDINATOR_DIRECTORY` value from `/gpmaster` to `/gpcoordinator` | @@ -66,7 +66,7 @@ COORDINATOR_HOSTNAME=hostname_of_machine
# create this directory on the coordinator host before running
# gpinitsystem and chown it to the appropriate user.
-COORDINATOR_DIRECTORY=/gpmaster
+COORDINATOR_DIRECTORY=/gpcoordinator
# The port number for the coordinator instance. This is the port number
|
config-tools: check vmsix enablement for ehl-crb-b
Assign extra vbar for vmsix devive for ehl-crb-b only. | @@ -95,6 +95,7 @@ def write_vbar(i_cnt, bdf, pci_bar_dic, bar_attr, \
free = MmioWindow(0, 0)
is_vmsix = False
# If the device is vmsix device, find a free mmio window up to 4k size
+ if board_cfg_lib.is_matched_board(('ehl-crb-b')):
for vm_i in pci_devs_per_vm:
if bdf in pci_devs_per_vm[vm_i]:
if scenario_cfg_lib.VM_D... |
Fix library suffix for Ruby | @@ -1224,6 +1224,14 @@ function(tinyspline_add_swig_library)
PROPERTY SUFFIX ".dylib"
)
endif()
+ # Fix library suffix for Ruby.
+ if(${ARGS_LANG} STREQUAL "ruby")
+ set_property(
+ TARGET ${ARGS_TARGET}
+ APPEND
+ PROPERTY SUFFIX ".so"
+ )
+ endif()
if(NOT ${ARGS_NAME} STREQUAL "")
set_property(
TARGET ${ARGS_TARGET}
|
fix(backlight): Improve initial power on behaviour | @@ -91,7 +91,9 @@ static int zmk_backlight_init(const struct device *_arg) {
LOG_ERR("Failed to load backlight settings: %d", rc);
}
#endif
-
+#if IS_ENABLED(CONFIG_ZMK_BACKLIGHT_AUTO_OFF_USB)
+ state.on = zmk_usb_is_powered();
+#endif
return zmk_backlight_update();
}
|
remove debug output when parsing enums | export const parseEnum = (valueFn, i = 0, values = []) => {
const v = valueFn(i) // get next enum value
- console.log('v', v)
if (v === false || typeof v === 'undefined') { // we are done
- console.log('done')
return values
}
return parseEnum(valueFn, i + 1, [ ...values, v ])
|
hoon: remove unused $links
done for future-proofing purposes - don't want to presume how they will
get used in the future | +$ foot $% [%dry p=hoon] :: dry arm, geometric
[%wet p=hoon] :: wet arm, generic
== ::
-::TODO: only add %plan since otherwise we might need a migration
-::in the future. leave the others in another branch for future
-::recollection
+$ link :: lexical segment
$% [%chat p=term] :: |chapter
[%cone p=aura q=atom] :: %cons... |
RTX5: osDelayUntil longest delay limited to 2^31-1 | @@ -46,7 +46,7 @@ static osStatus_t svcRtxDelay (uint32_t ticks) {
static osStatus_t svcRtxDelayUntil (uint32_t ticks) {
ticks -= osRtxInfo.kernel.tick;
- if (ticks == 0xFFFFFFFFU) {
+ if (ticks > 0x7FFFFFFFU) {
EvrRtxThreadError(NULL, (int32_t)osErrorParameter);
//lint -e{904} "Return statement before end of function"... |
add option in CMakeLists to activate plugins running time measurement | @@ -23,6 +23,10 @@ if($ENV{STATIC_RESPONSE})
SET(CMAKE_C_FLAGS "-DSTATIC_RESPONSE=$ENV{STATIC_RESPONSE} ${CMAKE_C_FLAGS}")
endif()
+if($ENV{DEBUG_PLUGIN_EXECUTION_TIME})
+ SET(CMAKE_C_FLAGS "-DDEBUG_PLUGIN_EXECUTION_TIME ${CMAKE_C_FLAGS}")
+endif()
+
INCLUDE_DIRECTORIES(picoquic picoquictest ../picotls/include
${PICOTL... |
Configure: base compiler-specific decisions on pre-defines.
The commit subject is a bit misleading in sense that decisions affect
only gcc and gcc-alikes, like clang, recent icc... | @@ -117,12 +117,12 @@ my $usage="Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [-Dxxx] [-lx
# but 'long long' type.
my $gcc_devteam_warn = "-DDEBUG_UNUSED"
- . " -Wswitch"
. " -DPEDANTIC -pedantic -Wno-long-long"
. " -Wall"
. " -Wextra"
. " -Wno-unused-parameter"
. " -Wno-missing-field-initializers"
+ . " -W... |
Properly set return values for Dump Debug command in error scenarios
In certain error scenario the dump debug command returns success. One such
scenario is when the destination argument is invalid. This change detects
such scenarios and sets the correct return values. | @@ -174,7 +174,9 @@ DumpDebugCommand(
if (!dictExists)
{
+ ReturnCode = EFI_LOAD_ERROR;
PRINTER_SET_MSG(pPrinterCtx, ReturnCode, L"The passed dictionary file doesn't exist\n");
+ goto Finish;
}
}
@@ -184,6 +186,7 @@ DumpDebugCommand(
dict_head = load_nlog_dict(pCmd, pDictUserPath, &dict_version, &dict_entries);
if (!di... |
eve: LED changes
Use amber for charge when in suspend/off states and leave red
to indicate something is wrong.
Blink non-charging LED in S0ix/S3 states.
BRANCH=none
TEST=verify led operation in s3/s5 while charging | @@ -136,14 +136,21 @@ static void eve_led_set_power_battery(void)
/* Suspend or Standby state */
if (chipset_in_state(CHIPSET_STATE_SUSPEND) ||
chipset_in_state(CHIPSET_STATE_STANDBY)) {
- if (chg_state == PWR_STATE_DISCHARGE) {
+ enum led_side blinkside = LED_BOTH;
+
+ if (chg_state == PWR_STATE_CHARGE) {
+ set_color(... |
py/mkrules.cmake: Add MPY_LIB_DIR and BOARD_DIR to makemanifest call.
So that the FROZEN_MANIFEST option in cmake works the same as make. | @@ -125,9 +125,13 @@ if(MICROPY_FROZEN_MANIFEST)
MICROPY_MODULE_FROZEN_MPY=\(1\)
)
+ if(NOT MICROPY_LIB_DIR)
+ set(MICROPY_LIB_DIR ${MICROPY_DIR}/../micropython-lib)
+ endif()
+
add_custom_command(
OUTPUT ${MICROPY_FROZEN_CONTENT}
- COMMAND ${Python3_EXECUTABLE} ${MICROPY_DIR}/tools/makemanifest.py -o ${MICROPY_FROZEN_... |
fixed some gxx warnings | @@ -752,9 +752,9 @@ memcpy(&packetout, &hdradiotap, HDRRT_SIZE);
macftx = (mac_t*)(packetout +HDRRT_SIZE);
macftx->type = IEEE80211_FTYPE_DATA;
macftx->subtype = IEEE80211_STYPE_QOS_DATA;
-memcpy(macftx->addr1, &macsta, 6);
-memcpy(macftx->addr2, &macap, 6);
-memcpy(macftx->addr3, &macap, 6);
+memcpy(macftx->addr1, mac... |
Add IKEA Tradfri remote to supported devices | @@ -68,6 +68,7 @@ static const SupportedDevice supportedDevices[] = {
{ VENDOR_DDEL, "Scene Switch" },
{ VENDOR_DDEL, "FLS-NB1" },
{ VENDOR_DDEL, "FLS-NB2" },
+ { VENDOR_IKEA, "TRADFRI remote control" },
{ VENDOR_INSTA, "Remote" },
{ VENDOR_INSTA, "HS_4f_GJ_1" },
{ VENDOR_INSTA, "WS_4f_J_1" },
@@ -2551,6 +2552,10 @@ vo... |
Patch for opt_design errors due to trimming of unused paths | @@ -93,4 +93,10 @@ module axi_sts_register #
assign s_axi_rdata = int_rdata_reg;
assign s_axi_rvalid = int_rvalid_reg;
+ // Patch for opt_design errors due to trimming of unused paths
+ assign s_axi_bresp = 2'd0;
+ assign s_axi_awready = 1'd0;
+ assign s_axi_bvalid = 1'd0;
+ assign s_axi_wready = 1'd0;
+
endmodule
|
build/configs: Remove spiflash library link in esp32 Make.defs.
Remove spiflash library link in esp32 Make.defs, as spiflash now
is not built to separate library(libspiflash), it moves to
os/arch/xtensa,then as part of libarch.a. | @@ -72,8 +72,6 @@ EXTRA_LIBS += -lsoc
EXTRA_LIBPATHS += -L"$(TOPDIR)/../external/esp_idf_port/esp32"
EXTRA_LIBS += -lesp32
-EXTRA_LIBPATHS += -L"$(TOPDIR)/../external/esp_idf_port/spi_flash"
-EXTRA_LIBS += -lspiflash
endif
ifeq ($(WINTOOL),y)
|
Replace delete with free. | @@ -90,7 +90,7 @@ std::vector<tinyspline::real> tinyspline::DeBoorNet::points() const
tinyspline::real *end = begin + num_points * dimension();
std::vector<tinyspline::real> vec =
std::vector<tinyspline::real>(begin, end);
- delete points;
+ free(points);
return vec;
}
@@ -105,7 +105,7 @@ std::vector<tinyspline::real> ... |
lib/oofatfs: Update oofatfs library to fix issue with logic not.
From branch work-R0.13c,
commit | @@ -3356,7 +3356,7 @@ static FRESULT validate ( /* Returns FR_OK or FR_INVALID_OBJECT */
res = FR_TIMEOUT;
}
#else
- if (disk_ioctl(obj->fs->drv, IOCTL_STATUS, &stat) == RES_OK && (!stat & STA_NOINIT)) { /* Test if the phsical drive is kept initialized */
+ if (disk_ioctl(obj->fs->drv, IOCTL_STATUS, &stat) == RES_OK &&... |
OcMainLib: Fix incorrect debug print statement | @@ -289,7 +289,6 @@ OcKernelApplyPatches (
DEBUG_INFO,
"OC: %a patcher skips DummyPowerManagement patch due to version %u <= %u <= %u\n",
PRINT_KERNEL_CACHE_TYPE (CacheType),
- Target,
MinKernel,
DarwinVersion,
MaxKernel
|
Don't attempt to close file descriptor when not valid. | @@ -13355,10 +13355,12 @@ static void wsgi_hook_child_init(apr_pool_t *p, server_rec *s)
for (i = 0; i < wsgi_daemon_list->nelts; ++i) {
entry = &entries[i];
+ if (entry->listener_fd != -1) {
close(entry->listener_fd);
entry->listener_fd = -1;
}
}
+ }
#endif
/* Remember worker process ID. */
|
scripts: add netcat to code analysis helper script | @@ -11,7 +11,7 @@ CONTAINER_RUNTIME=${CONTAINER_RUNTIME:-docker}
# From the Dockerfile
FLB_CMAKE_OPTIONS=${FLB_CMAKE_OPTIONS:--DFLB_BACKTRACE=Off -DFLB_SHARED_LIB=Off -DFLB_DEBUG=On -DFLB_ALL=On -DFLB_EXAMPLES=Off -DFLB_TESTS_INTERNAL=On -DFLB_TESTS_RUNTIME=On}
-ADDITIONAL_DEPS=${ADDITIONAL_DEPS:-libssl-dev libsasl2-de... |
Prevent calling set callbacks during the opening of a service tracker. | @@ -218,8 +218,11 @@ namespace celix {
opts.trackerCreatedCallbackData = this;
opts.trackerCreatedCallback = [](void *data) {
auto* trk = static_cast<GenericServiceTracker*>(data);
+ {
std::lock_guard<std::mutex> callbackLock{trk->mutex};
trk->state = TrackerState::OPEN;
+ }
+ trk->invokeSetCallbacks();
};
}
@@ -266,6 ... |
merge cookie headers in O(n) order | @@ -147,7 +147,7 @@ static void build_request(h2o_req_t *req, h2o_iovec_t *method, h2o_url_t *url, h
char remote_addr[NI_MAXHOST];
struct sockaddr_storage ss;
socklen_t sslen;
- h2o_iovec_t cookie_buf = {NULL}, xff_buf = {NULL}, via_buf = {NULL};
+ h2o_iovec_t xff_buf = {NULL}, via_buf = {NULL};
int preserve_x_forwarde... |
Added distro package (Fedora/RHEL/CentOS) dep notes - README.md. | @@ -118,8 +118,9 @@ However, below is a table of some optional dependencies in some distros to
build GoAccess from source.
Distro | NCurses | GeoIP (optional) | Tokyo Cabinet (optional) | OpenSSL (optional)
------------------ | -----------------|------------------| -------------------------| -------------------
+------... |
Cleaned up adjustment in message encoding, fixes spurious negative TTLs | @@ -454,6 +454,7 @@ packed_rrset_encode(struct ub_packed_rrset_key* key, sldns_buffer* pkt,
size_t i, j, owner_pos;
int r, owner_labs;
uint16_t owner_ptr = 0;
+ time_t adjust = 0;
struct packed_rrset_data* data = (struct packed_rrset_data*)
key->entry.data;
@@ -464,9 +465,12 @@ packed_rrset_encode(struct ub_packed_rrse... |
R-package add early_stopping_round option | @@ -1453,6 +1453,13 @@ prepare_train_export_parameters <- function(params) {
return ("{}")
}
+ if (!is.null(params$early_stopping_rounds)) {
+ params$od_type <- "Iter"
+ params$od_pval <- NULL
+ params$od_wait <- params$early_stopping_rounds
+ params$early_stopping_rounds <- NULL
+ }
+
if (!is.null(params$per_float_fea... |
testcase: fix a compilation error
This patch fixes following compilation error:
CC: le_tc/filesystem/fs_main.c
le_tc/filesystem/fs_main.c: In function 'fs_vfs_select_tc':
le_tc/filesystem/fs_main.c:1260:11: error: unused variable 'c' [-Werror=unused-variable]
int ret, c, errcnt;
^
cc1: all warnings being treated as er... | @@ -1257,7 +1257,7 @@ static int fs_vfs_select_tc(void)
{
struct timeval tv;
fd_set readfds;
- int ret, c, errcnt;
+ int ret, errcnt;
printf("%d. select Test started. \n", g_tc_count++);
|
Add error log message when failing to set ssl config defaults | @@ -656,6 +656,11 @@ BaseType_t TLS_Connect( void * pvContext )
MBEDTLS_SSL_IS_CLIENT,
MBEDTLS_SSL_TRANSPORT_STREAM,
MBEDTLS_SSL_PRESET_DEFAULT );
+
+ if( 0 != xResult )
+ {
+ TLS_PRINT( ( "ERROR: Failed to set ssl config defaults %d \r\n", xResult ) );
+ }
}
if( 0 == xResult )
|
examples/apache: instrumentation of string cmp functions | @@ -108,6 +108,63 @@ index bda60827c..2e4abccfe 100644
char c;
int showcompile = 0, showdirectives = 0;
const char *confname = SERVER_CONFIG_FILE;
+diff --git a/server/util.c b/server/util.c
+index d302764e3..e4848b2c8 100644
+--- a/server/util.c
++++ b/server/util.c
+@@ -27,6 +27,8 @@
+ * #define DEBUG_CFG_LINES to tr... |
Handle TLSv1.3 being disabled in clienthello test | #define F5_WORKAROUND_MIN_MSG_LEN 0xff
#define F5_WORKAROUND_MAX_MSG_LEN 0x200
-const char *sessionfile = NULL;
+static const char *sessionfile = NULL;
+/* Dummy ALPN protocols used to pad out the size of the ClientHello */
+static const char alpn_prots[] =
+ "01234567890123456789012345678901234567890123456789012345678... |
[hardware] Propagate `MaxOutStandingReads` to address demux | @@ -116,7 +116,7 @@ module tcdm_shim #(
.NrOutput (NumOutput),
.AddressWidth (AddrWidth),
.NumRules (NumRules ), // TODO
- .MaxOutStandingReads(NumOutput), // TODO
+ .MaxOutStandingReads(MaxOutStandingReads),
.req_t (dreq_t ),
.resp_t (dresp_t )
) i_snitch_addr_demux (
|
Improve world mousewheel fix by setting event listener as non-passive | @@ -35,7 +35,7 @@ class World extends Component {
window.addEventListener("paste", this.onPaste);
window.addEventListener("keydown", this.onKeyDown);
window.addEventListener("mouseup", this.onMouseUp);
- window.addEventListener("mousewheel", this.onMouseWheel);
+ window.addEventListener("mousewheel", this.onMouseWheel,... |
Replace - by _ in Jenkinsfile | @@ -635,8 +635,8 @@ def generateFullBuildStages() {
)
// Build Elektra via mingw for Windows
- tasks << buildAndTestMingwW64-x86_64()
- tasks << buildAndTestMingwW64-i686()
+ tasks << buildAndTestMingwW64_x86_64()
+ tasks << buildAndTestMingwW64_i686()
// Build Elektra on alpine
tasks << buildAndTest(
@@ -919,7 +919,7 ... |
Minor: typo
Minor typo: missing parenthesis | @@ -18,7 +18,7 @@ Tests are added in a function in the C file as follows:
.. code-block:: c
- TEST_CASE("test name", "[module name]"
+ TEST_CASE("test name", "[module name]")
{
// Add test here
}
|
bootutil: log the boot source
Use the bootutil_log.h APIs to log the boot source chosen by the
loader, as well as the image trailer state that led it to its
conclusion. | #include "bootutil/image.h"
#include "bootutil_priv.h"
+#define BOOT_LOG_LEVEL BOOT_LOG_LEVEL_INFO
+#include "bootutil/bootutil_log.h"
+
#define BOOT_MAX_IMG_SECTORS 120
/** Number of image slots in flash; currently limited to two. */
@@ -150,6 +153,15 @@ static const uint8_t boot_swap_trans_table[][2] = {
#define BOOT... |
Testing: use bufr_filter instead of bufr_ls | label="bufr_ecc-765-test"
tempLog=temp.${label}.log
tempSupp=temp.${label}.supp
+tempFilt=temp.${label}.filt
if test "x$ECCODES_TEST_WITH_VALGRIND" = "x"; then
echo "Environment variable ECCODES_TEST_WITH_VALGRIND not defined. Test disabled"
@@ -30,10 +31,14 @@ tools_dir=$build_dir/bin
files=`cat ${data_dir}/bufr/bufr_... |
Change billboard rendering to ignore depth testing. Better fit with 3D objects. | #include "renderers/RendererCaptureListener.h"
#include "renderers/RedrawRequestListener.h"
#include "renderers/components/RayIntersectedElement.h"
+#include "renderers/components/RayIntersectedElementComparator.h"
#include "renderers/cameraevents/CameraPanEvent.h"
#include "renderers/cameraevents/CameraRotationEvent.h... |
Fix CFG_TUD_AUDIO_EP_IN/OUT_SW_BUFFER_SIZE to be defined anyway | #ifndef CFG_TUD_AUDIO_EP_IN_SW_BUFFER_SIZE
#define CFG_TUD_AUDIO_EP_IN_SW_BUFFER_SIZE CFG_TUD_AUDIO_EPSIZE_IN // TX
#endif
+#else
+#define CFG_TUD_AUDIO_EP_IN_SW_BUFFER_SIZE 0
#endif
#if CFG_TUD_AUDIO_EPSIZE_OUT
#ifndef CFG_TUD_AUDIO_EP_OUT_SW_BUFFER_SIZE
#define CFG_TUD_AUDIO_EP_OUT_SW_BUFFER_SIZE CFG_TUD_AUDIO_EPSIZE... |
threads: Fixed race condition with thread wakeup | @@ -160,6 +160,9 @@ int threads_timeintr(unsigned int n, cpu_context_t *context, void *arg)
break;
lib_rbRemove(&threads_common.sleeping, &t->sleeplinkage);
+ t->wakeup = 0;
+ hal_cpuSetReturnValue(t->context, -ETIME);
+
t->state = READY;
if (t->wait != NULL) {
@@ -688,7 +691,8 @@ int proc_threadSleep(unsigned int us)
... |
Make NGTCP2_PKT_FLAG_* macro | @@ -616,25 +616,26 @@ typedef struct ngtcp2_pkt_info {
#define NGTCP2_ERR_CALLBACK_FAILURE -502
/**
- * @enum
+ * @macro
*
- * :type:`ngtcp2_pkt_flag` defines flags for QUIC packet header.
+ * :macro:`NGTCP2_PKT_FLAG_NONE` indicates no flag set.
*/
-typedef enum ngtcp2_pkt_flag {
- /**
- * :enum:`NGTCP2_PKT_FLAG_NONE` ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.