message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
fix svd typo | @@ -502,7 +502,7 @@ FLT bc_svd_compute_pose(bc_svd *self, FLT R[3][3], FLT t[3]) {
rep_errors[2] = bc_svd_compute_R_and_t(self, ut, Betas[3], Rs[3], ts[3]);
int N = 0;
- if (rep_errors[0] < rep_errors[1])
+ if (rep_errors[1] < rep_errors[0])
N = 1;
if (rep_errors[2] < rep_errors[N])
N = 2;
|
u3: document snapshot system invariants | //! - memory protections (and file-backed mappings) are re-established.
//! - patch files are deleted.
//!
+//! ### invariants
+//!
+//! definitions:
+//! - a clean page is PROT_READ and 0 in the bitmap
+//! - a dirty page is (PROT_READ|PROT_WRITE) and 1 in the bitmap
+//! - the guard page is PROT_NONE and 1 in the bit... |
BRANCH=None
TEST=None
Commit-Ready: Ningning Xia
Tested-by: Ningning Xia | # chromeos-ec. We use the no-vmtest-pre-cq configs since the tests won't
# actually test against our EC changes. (That's what FAFT is for)
pre-cq-configs: gru-no-vmtest-pre-cq reef-no-vmtest-pre-cq chell-no-vmtest-pre-cq
+ strago-no-vmtest-pre-cq
# Stages to ignore in the commit queue. If these steps break, your CL wil... |
Updated the list of optional libraries in build_visit. | <group name="optional" comment="All optional libraries" enabled="no">
<lib name="adios"/>
- <lib name="adios2"/>
+<!-- <lib name="adios2"/> Removed for now by Eric Brugger-->
<lib name="advio"/>
<lib name="boost"/>
<lib name="boxlib"/>
<lib name="cfitsio"/>
<lib name="conduit"/>
<lib name="cgns"/>
+<!-- <lib name="eavl... |
Use ProjectRef for FIRRTL and use it for firrtl-interpreter | @@ -83,7 +83,10 @@ def isolateAllTests(tests: Seq[TestDefinition]) = tests map { test =>
lazy val chisel = (project in file("tools/chisel3"))
+lazy val firrtl = ProjectRef(workspaceDirectory / "firrtl", "firrtl")
+
lazy val firrtl_interpreter = (project in file("tools/firrtl-interpreter"))
+ .dependsOn(firrtl)
.setting... |
Fix spelling in status
Fixes | @@ -599,7 +599,7 @@ bool KVCSetViaIvar(NSObject* self, struct objc_ivar* ivar, id value, NSString* k
}
/**
- @Status Interopertable
+ @Status Interoperable
*/
- (NSMutableSet*)mutableSetValueForKeyPath:(NSString*)keyPath {
NSString* restOfKeypath = nil;
|
Reduce max uniform/attribute name length; | #define LOVR_SHADER_TANGENT 4
#define LOVR_SHADER_BONES 5
#define LOVR_SHADER_BONE_WEIGHTS 6
-#define LOVR_MAX_UNIFORM_LENGTH 256
-#define LOVR_MAX_ATTRIBUTE_LENGTH 256
+#define LOVR_MAX_UNIFORM_LENGTH 64
+#define LOVR_MAX_ATTRIBUTE_LENGTH 64
static struct {
Texture* defaultTexture;
|
util/export_taskinfo.c: Format with clang-format
BRANCH=none
TEST=none | @@ -25,14 +25,13 @@ struct taskinfo {
uint32_t stack_size;
};
-#define TASK(n, r, d, s, ...) { \
+#define TASK(n, r, d, s, ...) \
+ { \
.name = #n, \
.routine = #r, \
.stack_size = s, \
},
-static const struct taskinfo taskinfos[] = {
- CONFIG_TASK_LIST
-};
+static const struct taskinfo taskinfos[] = { CONFIG_TASK_LIST... |
out_cloudwatch_logs: use new tls prototype for upstream creation | @@ -304,7 +304,7 @@ static int cb_cloudwatch_init(struct flb_output_instance *ins,
struct flb_upstream *upstream = flb_upstream_create(config, ctx->endpoint,
443, FLB_IO_TLS,
- &ctx->client_tls);
+ ctx->client_tls);
if (!upstream) {
flb_plg_error(ctx->ins, "Connection initialization error");
goto error;
|
server session MAINTENANCE code formatting | @@ -2958,8 +2958,7 @@ nc_ch_client_thread(void *arg)
/* set next endpoint to try */
if (client->start_with == NC_CH_FIRST_LISTED) {
next_endpt_index = 0;
- }
- else {
+ } else {
/* we keep the current one but due to unlock/lock we have to find it again */
for (next_endpt_index = 0; next_endpt_index < client->ch_endpt_c... |
srpd REFACTOR return value check | @@ -285,7 +285,7 @@ srpd_rotation_change_cb(sr_session_ctx_t *session, uint32_t UNUSED(sub_id), cons
} else if (oper == SR_OP_DELETED) {
ATOMIC_STORE_RELAXED(data->running, 0);
if ((rc = pthread_join(data->tid, NULL))) {
- SRPLG_LOG_ERR(SRPD_PLUGIN_NAME, "pthread_join failed (%s).", sr_strerror(rc));
+ SRPLG_LOG_ERR(SR... |
out_forward: always initialize salt with random numbers
There is an initialization bug that leaves the shared key salt
being uninitialized when SSL is not enabled.
This might allow attackers to guess the shared key by looking at
the hash. Let's always initialize the salt buffer securely using
flb_randombytes(). | @@ -65,9 +65,6 @@ static int secure_forward_init(struct flb_forward *ctx,
secure_forward_tls_error(ctx, ret);
return -1;
}
-
- /* Gernerate shared key salt */
- mbedtls_ctr_drbg_random(&fc->tls_ctr_drbg, fc->shared_key_salt, 16);
return 0;
}
#endif
@@ -520,6 +517,12 @@ static int forward_config_init(struct flb_forward_... |
Update joy.h
added s16 JOY_writeJoypadX(u16 joy, u16 pos); and s16 JOY_writeJoypadY(u16 joy, u16 pos); | @@ -324,6 +324,21 @@ u16 JOY_readJoypad(u16 joy);
*/
s16 JOY_readJoypadX(u16 joy);
+/**
+ * \brief
+ * Write joypad X axis.
+ *
+ * \param joy
+ * Joypad we query state.<br>
+ * <b>JOY_1</b> = joypad 1<br>
+ * <b>JOY_2</b> = joypad 2<br>
+ * <b>... </b> = ...<br>
+ * <b>JOY_8</b> = joypad 8 (only possible with 2 teampl... |
data REFACTOR use internal function instead of types plugins wrapper | @@ -584,9 +584,9 @@ ly_store_prefix_data(const struct ly_ctx *ctx, const char *value, size_t value_l
size_t len = stop - start;
/* do we already have the prefix? */
- mod = ly_type_store_resolve_prefix(ctx, start, len, *format_p, *prefix_data_p);
+ mod = ly_resolve_prefix(ctx, start, len, *format_p, *prefix_data_p);
if... |
consolidate branch tagging | @@ -15,10 +15,10 @@ before_script:
build-alpine-arm:
stage: build
script:
- - docker pull $CONTAINER_IMAGE:ARM32V6 || true
- - docker build -f Dockerfile.ARM32V6 --cache-from $CONTAINER_IMAGE:ARM32V6-$CI_COMMIT_REF_SLUG --tag $CONTAINER_IMAGE:$CI_BUILD_REF --tag $CONTAINER_IMAGE:ARM32V6-$CI_COMMIT_REF_SLUG .
- - test -... |
Fix get axis float types and get axis principal int. | @@ -337,6 +337,93 @@ HRESULT openbor_get_axis_principal_float_property(ScriptVariant **varlist , Scri
// All values are float (DOUBLE) type.
ScriptVariant_ChangeType(*pretvar, VT_INTEGER);
+ switch(property)
+ {
+ case _AXIS_PRINCIPAL_X:
+
+ (*pretvar)->dblVal = (DOUBLE)handle->x;
+
+ break;
+
+ case _AXIS_PRINCIPAL_Y:... |
Check dup function definition and missing nid | @@ -6,10 +6,24 @@ import fnmatch
CURR_DIR = os.path.dirname(os.path.realpath(__file__))
DEF_FILE = 'definitions.dox'
DEF_FILE_PATH = os.path.join(CURR_DIR, '..', 'docs', DEF_FILE)
+DB_FILE = 'db.yml'
+DB_FILE_PATH = os.path.join(CURR_DIR, '..', 'db.yml')
INCLUDE_DIR = os.path.join(CURR_DIR, '..', 'include')
DEFINE_RULE... |
[chain] Fix seg-fault | @@ -300,7 +300,11 @@ func newExecutor(cs *ChainService, bState *types.BlockState, block *types.Block)
}
func (e *executor) execute() error {
- defer e.receiptTx.Commit()
+ defer func() {
+ if e.receiptTx != nil {
+ e.receiptTx.Commit()
+ }
+ }()
if e.execTx != nil {
for _, tx := range e.txs {
|
doc/man3/SSL_set_bio.pod: Fix wrong function name in return values section | @@ -90,7 +90,7 @@ use SSL_set0_rbio() and SSL_set0_wbio() instead.
=head1 RETURN VALUES
-SSL_set_bio(), SSL_set_rbio() and SSL_set_wbio() cannot fail.
+SSL_set_bio(), SSL_set0_rbio() and SSL_set0_wbio() cannot fail.
=head1 SEE ALSO
@@ -104,7 +104,7 @@ SSL_set0_rbio() and SSL_set0_wbio() were added in OpenSSL 1.1.0.
=he... |
out_flowcounter: on config_map, use new set_property flag | @@ -251,17 +251,17 @@ static int out_fcount_exit(void *data, struct flb_config* config)
static struct flb_config_map config_map[] = {
{
FLB_CONFIG_MAP_STR, "unit", NULL,
- 0,
+ FLB_FALSE, 0,
NULL
},
{
FLB_CONFIG_MAP_BOOL, "event_based", "false",
- offsetof(struct flb_flowcounter, event_based),
+ FLB_TRUE, offsetof(stru... |
Updated FR po files and goaccess.pot. | @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: hello@goaccess.io\n"
-"POT-Creation-Date: 2018-12-13 22:47-0600\n"
+"POT-Creation-Date: 2018-12-13 22:48-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LA... |
Fix a warning that occurred in sceneview when running in checker texture mode
[ci skip] | @@ -151,7 +151,9 @@ int main()
// Set up resource data
char *resourceData = readResourceFile();
const FileHeader *resourceHeader = (FileHeader*) resourceData;
+#ifndef TEST_TEXTURE
const TextureEntry *texHeader = (TextureEntry*)(resourceData + sizeof(FileHeader));
+#endif
const MeshEntry *meshHeader = (MeshEntry*)(reso... |
Default CAN baudrate is 125 kbps | @@ -10,7 +10,7 @@ from pyb import CAN
TRANSMITTER = True
can = CAN(2, CAN.NORMAL)
-# Set a different baudrate (default is 250Kbps)
+# Set a different baudrate (default is 125Kbps)
# NOTE: The following parameters are for the H7 only.
#
# can.init(CAN.NORMAL, prescaler=32, sjw=1, bs1=8, bs2=3) # 125Kbps
|
hark-store: crash on invalid note read
Two %read-note actions set on the same notification could cause the
cache to become invalid. Instead, crash if we read a note that is
already read. | &(=(read read.u.not) !?=(?(%read-note %unread-note) -.in))
~& >> "Inconsistent hark cache, rebuilding"
rebuild-cache
+ ?< &(=(read read.u.not) ?=(?(%read-note %unread-note) -.in))
=. u.tib
(~(put by u.tib) index u.not(read read))
=. notifications
|
schema tree BUGFIX allow generating document root paths
Fixes | @@ -533,7 +533,6 @@ lysc_path_until(const struct lysc_node *node, const struct lysc_node *parent, LY
char *path = NULL;
int len = 0;
- LY_CHECK_ARG_RET(NULL, node, NULL);
if (buffer) {
LY_CHECK_ARG_RET(node->module->ctx, buflen > 1, NULL);
buffer[0] = '\0';
|
better default error message | @@ -103,11 +103,8 @@ end
-- @param tag The type tag at which the error is to be thown (string)
-- @param message The optional error message. (?string)
function typedecl.tag_error(tag, message)
- local error_msg = message
- and string.format("error at tag '%s': %s", tag, message)
- or string.format("error at tag '%s'.",... |
Use address-from-prv from zuse | net=(unit [crypt=@ux auth=@ux])
==
::
-::TODO into zuse
-++ address-from-prv
- =, secp256k1:secp:crypto
- =, keccak:crypto
- |= pk=@
- %^ end 3 20
- %+ keccak-256 64
- %^ rev 3 64
- %- serialize-point
- (priv-to-pub pk)
-::
++ tape-to-ux
|= t=tape
(scan t zero-ux)
|
doc: add PG 14 relnote item about array function references
User-defined objects that reference some built-in array functions will
need to be recreated in PG 14.
Reported-by: Justin Pryzby
Discussion: | @@ -291,6 +291,35 @@ Author: Tom Lane <tgl@sss.pgh.pa.us>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
+2020-11-04 [9e38c2bb5] Declare assorted array functions using anycompatible not
+-->
+
+ <para>
+ User-defined objects that reference some built-in array functions
+ along with their argument types must be re... |
add coverity build target to makefile | @@ -26,3 +26,7 @@ apply_fmt:
run_test:
rm -fr $(BUILD_TARGET_DIR) && mkdir $(BUILD_TARGET_DIR) && cd $(BUILD_TARGET_DIR) && cmake -DCMAKE_BUILD_TYPE=Release "$(CMAKE_FLAGS)" .. && make -j2 && cd test && ./odyssey_test
docker-compose -f docker-compose-test.yml up --force-recreate --build
+
+submit-cov:
+ mkdir cov-build... |
Updated README.md with latest v1.4.2 changes. | @@ -96,9 +96,9 @@ GoAccess can be compiled and used on *nix systems.
Download, extract and compile GoAccess with:
- $ wget https://tar.goaccess.io/goaccess-1.4.1.tar.gz
- $ tar -xzvf goaccess-1.4.1.tar.gz
- $ cd goaccess-1.4.1/
+ $ wget https://tar.goaccess.io/goaccess-1.4.2.tar.gz
+ $ tar -xzvf goaccess-1.4.2.tar.gz
+... |
Only set VMA_EXAMPLE_SOURCE_FILES when building sample app | @@ -30,6 +30,8 @@ target_link_libraries(
Vulkan::Vulkan
)
+if (VMA_BUILD_EXAMPLE_APP)
+ if(WIN32)
set(VMA_EXAMPLE_SOURCE_FILES
Common.cpp
SparseBindingTest.cpp
@@ -37,8 +39,6 @@ set(VMA_EXAMPLE_SOURCE_FILES
VulkanSample.cpp
)
-if (VMA_BUILD_EXAMPLE_APP)
- if(WIN32)
add_executable(VmaExample ${VMA_EXAMPLE_SOURCE_FILES})... |
fix unreferenced argument warning. | buffered.writeln(result, "")
buffered.writeln(result, "void registerModules(lua_State* L)")
buffered.writeln(result, "{")
+ buffered.writeln(result, "\t(void)(L);")
for _, name in ipairs(nativeTable) do
buffered.writeln(result, string.format("\tregister%s(L);", name))
end
|
ipv4 vrf test doc cleaning | @@ -142,7 +142,7 @@ class TestIp4VrfMultiInst(VppTestCase):
raise
def setUp(self):
- """ip_add_del_route
+ """
Clear trace and packet infos before running each test.
"""
super(TestIp4VrfMultiInst, self).setUp()
@@ -158,7 +158,7 @@ class TestIp4VrfMultiInst(VppTestCase):
self.logger.info(self.vapi.ppcli("show ip arp"))
... |
Fix struct definition in UBO;
You can't define a new struct in an interface block. | @@ -26,11 +26,12 @@ const char* lovrShaderVertexPrefix = ""
"out vec2 texCoord; \n"
"out vec4 vertexColor; \n"
"out vec4 lovrColor; \n"
-"uniform lovrDrawData { \n"
-" struct { \n"
+"struct DrawData { \n"
" mat4 model; \n"
" vec4 color; \n"
-" } lovrDraws[MAX_DRAWS]; \n"
+"}; \n"
+"uniform lovrDrawData { \n"
+" DrawDat... |
Update oic/sec/cred
* Added function to clear all credentials to handle
DELETE requests without a query parameter.
* Updated DELETE request handler to delete credential
entries by credid.
* Fixed schema in oc_sec_encode_cred().
* Fixed bug in oc_sec_decode_cred(). | @@ -122,6 +122,17 @@ oc_sec_remove_cred_by_credid(int credid, int device)
return false;
}
+static void
+oc_sec_clear_creds(int device)
+{
+ oc_sec_cred_t *cred = oc_list_head(devices[device].creds), *next;
+ while (cred != NULL) {
+ next = cred->next;
+ oc_sec_remove_cred(cred, device);
+ cred = next;
+ }
+}
+
oc_sec_c... |
Updating PMU Event Counter Number from 12 to 8 to align with Cortex-M55's default number when the PMU is configured. | * ARMCM55 Device Series (configured for ARMCM55 with double precision FPU,
* DSP extension, MVE, TrustZone)
* @version V1.0.0
- * @date 03. March 2020
+ * @date 26. March 2020
******************************************************************************/
/*
* Copyright (c) 2020 Arm Limited. All rights reserved.
@@ -10... |
docs - remove Deprecated from gp_ignore_error_table
also changed emphasized deprecation information to a NOTE | </body>
</topic>
<topic id="gp_ignore_error_table">
- <title>gp_ignore_error_table (Deprecated)</title>
+ <title>gp_ignore_error_table</title>
<body>
<p>Controls Greenplum Database behavior when the deprecated <codeph>INTO ERROR TABLE</codeph>
clause is specified in a <codeph>CREATE EXTERNAL TABLE</codeph> or <codeph>C... |
Fix to masm support for SEH to work on a per file basis | priority = 7,
emitFiles = function(prj, group)
- local fileCfgFunc = {
+ local fileCfgFunc = function(fcfg, condition)
+ if fcfg then
+ return {
m.excludedFromBuild,
m.exceptionHandlingSEH,
}
-
- m.emitFiles(prj, group, "Masm", nil, fileCfgFunc, function(cfg)
- return cfg.system == p.WINDOWS
- end)
+ else
+ return {
+ ... |
chore(test-discord-ws.c): trigger a callback for sending the ping | #include <assert.h>
#include "discord.h"
+#include "discord-internal.h"
#include "cee-utils.h"
#define THREADPOOL_SIZE "4"
@@ -95,7 +96,19 @@ void on_force_error(
struct discord_create_message_params params = {
.content = (char *)discord_strerror(code, client)
};
+ discord_create_message(client, msg->channel_id, ¶m... |
Add new_session_ticket err handler | @@ -2645,8 +2645,6 @@ send_request:
/*
* 7. Read the HTTP response
*/
- mbedtls_printf( " < Read from server:" );
- fflush( stdout );
/*
* TLS and DTLS need different reading styles (stream vs datagram)
@@ -2694,6 +2692,18 @@ send_request:
ret = 0;
goto reconnect;
+#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
+
+#if defined(M... |
u3: protect guard page if necessary after reprotecting loom | @@ -860,6 +860,19 @@ _ce_loom_protect_north(c3_w pgs_w, c3_w old_w)
c3_assert(0);
}
+ // protect guard page if clobbered
+ //
+ // NB: < pgs_w is precluded by assertion in _ce_patch_compose()
+ //
+ if ( (gar_pag_p >> u3a_page) < old_w ) {
+ fprintf(stderr, "loom: guard on reprotect\r\n");
+ if ( 0 != mprotect(u3a_into... |
Improve filters for IAS zone sensors | @@ -80,7 +80,29 @@ void DeRestPluginPrivate::handleIasZoneClusterIndication(const deCONZ::ApsDataIn
DBG_Printf(DBG_ZCL, "IAS Zone Status Change, status: 0x%04X, zoneId: %u, delay: %u\n", zoneStatus, zoneId, delay);
- Sensor *sensor = getSensorNodeForAddressAndEndpoint(ind.srcAddress(), ind.srcEndpoint());
+ Sensor *sen... |
[GB] RegisterPair can write to its pointee in the Deref addressing mode | @@ -281,8 +281,10 @@ impl VariableStorage for CpuRegisterPair {
((upper.read_u8(cpu) as u16) << 8) | (lower.read_u8(cpu) as u16)
}
- fn write_u8(&self, _cpu: &CpuState, val: u8) {
- panic!("Wide register cannot write u8")
+ fn write_u8(&self, cpu: &CpuState, val: u8) {
+ // Implicitly dereference the memory pointed to ... |
fix: the check of BEARSSL | @@ -25,10 +25,10 @@ TEST_EXES := $(filter %.exe, $(TEST_SRC:.cpp=.exe) $(TEST_SRC:.c=.exe))
LIBDISCORD_CFLAGS := -I./
LIBDISCORD_LDFLAGS := -L./$(LIBDIR) -ldiscord -lcurl
-ifeq ($(CC),stensal-c)
+ifeq ($(BEARSSL),1)
LIBDISCORD_LDFLAGS += -lbearssl -static
- CFLAGS += -DBEARSSL
-else ifdef $(BEARSSL)
+ CFLAGS += -DBEARS... |
Added time initialization to the performance field | @@ -1003,6 +1003,7 @@ NVM_API int nvm_get_device_performance(const NVM_UID device_uid,
p_performance->host_writes = pmem_info_output->TotalWriteRequests.Uint64;
p_performance->block_reads = 0;
p_performance->block_writes = 0;
+ p_performance->time = time(NULL);
rc = NVM_SUCCESS;
goto finish;
}
|
minor caption updates | @@ -1013,7 +1013,7 @@ Notice that RSD and magnification predictions are not currently validated. We do
\includegraphics[width=0.49\textwidth]{Cl_dd}
\includegraphics[width=0.49\textwidth]{Cl_dl}
\includegraphics[width=0.49\textwidth]{Cl_ll}
-\caption{Tests of the angular power spectra accuracy. The black dot-dashed lin... |
add manual python version check | @@ -7,6 +7,17 @@ if (NOT Python3_Interpreter_FOUND)
return ()
endif ()
+# Sometimes CMake returns an invalid version of python: check for that
+execute_process (
+ COMMAND ${Python3_EXECUTABLE} -c "import sys; exit(sys.version_info < (3, 8))"
+ RESULT_VARIABLE EXIT_CODE
+ OUTPUT_QUIET)
+
+if (NOT EXIT_CODE EQUAL 0)
+ r... |
typechecker-regex-prototype: augeas also required for haskell for travis | @@ -72,6 +72,7 @@ before_install:
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
brew install ninja
+ brew install augeas
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" && "$HASKELL" != "ON" ]]; then
@@ -94,7 +95,6 @@ before_install:
# Unfortunately Xerces 3.2 causes multiple problems if we translate Elektra with GCC o... |
Minor update to configure.ac configuration summary. | @@ -288,12 +288,12 @@ Your build configuration:
Prefix : $prefix
Package : $PACKAGE_NAME
Version : $VERSION
+ Compiler flags : $CFLAGS
+ Linker flags : $LIBS $LDFLAGS
Dynamic buffer : $with_getline
Geolocation : $geolocation
Storage method : $storage
TLS/SSL : $openssl
- Compiler flags : $CFLAGS
- Linker flags : $LIBS ... |
DEV_InitDeviceFromDescription() update doc string | @@ -103,9 +103,9 @@ static ResourceItem *DEV_InitDeviceDescriptionItem(const DeviceDescription::Item
return item;
}
-/*! Creates and initialises sub-device Resources and ResourceItems if not already present.
+/*! Creates and initializes sub-device Resources and ResourceItems if not already present.
- This function can ... |
imgtool: Update docs for new key format
Update the dependencies needed, as well as adding a blurb about how to
password protect the private key. | @@ -8,13 +8,11 @@ this script should be preferred to the manual steps described in
This program is written for Python3, and has several dependencies on
Python libraries. These can be installed using 'pip3' manually:
- pip3 install --user pycrypto
- pip3 install --user pyasn1
- pip3 install --user ecdsa
+ pip3 install -... |
Add daily measurement information to READ.md
JerryScript-DCO-1.0-Signed-off-by: Youngil Choi | @@ -17,6 +17,8 @@ Key characteristics of JerryScript:
Additional information can be found on our [project page](http://jerryscript.net) and [Wiki](https://github.com/jerryscript-project/jerryscript/wiki).
+Memory usage and Binary footprint are measured at [here](https://jerryscript-project.github.io/jerryscript-test-re... |
bootloader: fixed the issue custom_uart_gpio doesn't take effect | @@ -76,10 +76,12 @@ void bootloader_console_init(void)
// Route GPIO signals to/from pins
const uint32_t tx_idx = UART_PERIPH_SIGNAL(uart_num, SOC_UART_TX_PIN_IDX);
const uint32_t rx_idx = UART_PERIPH_SIGNAL(uart_num, SOC_UART_RX_PIN_IDX);
+ gpio_hal_iomux_func_sel(GPIO_PIN_MUX_REG[uart_rx_gpio], PIN_FUNC_GPIO);
PIN_IN... |
meta: more realistic buffer limit for binary keys. | @@ -993,14 +993,17 @@ static int _meta_flag_preparse(token_t *tokens, const size_t ntokens,
p += 2; \
}
-// TODO: calc bytes remaining in buffer
+// NOTE: being a little casual with the write buffer.
+// the buffer needs to be sized that the longest possible meta response will
+// fit. Here we allow the key to fill up ... |
Fix function return type confusion
When parse_hba_line's return type was changed from bool to a pointer,
the MANDATORY_AUTH_ARG macro wasn't adjusted. | @@ -761,7 +761,7 @@ check_same_host_or_net(SockAddr *raddr, IPCompareMethod method)
authname, argname), \
errcontext("line %d of configuration file \"%s\"", \
line_num, HbaFileName))); \
- return false; \
+ return NULL; \
} \
} while (0);
|
Poll manager: fast skip unavailable nodes | @@ -15055,10 +15055,16 @@ void DeRestPluginPrivate::pollNextDevice()
RestNodeBase *restNode = nullptr;
- if (!pollNodes.empty())
+ while (!pollNodes.empty())
{
restNode = pollNodes.front();
pollNodes.pop_front();
+
+ DBG_Assert(restNode);
+ if (restNode && restNode->isAvailable())
+ {
+ break;
+ }
}
if (pollNodes.empty... |
sdl_image: fix filename strings freed too early
In ReadXPMFromArray() and SavePNG(), the passed filename parameter are
converted to CString but then freed immediately using C.free(). | @@ -337,7 +337,7 @@ func LoadWEBP_RW(src *sdl.RWops) (*sdl.Surface, error) {
// (http://www.libsdl.org/projects/SDL_image/docs/SDL_image_28.html)
func ReadXPMFromArray(xpm string) (*sdl.Surface, error) {
_xpm := C.CString(xpm)
- C.free(unsafe.Pointer(_xpm))
+ defer C.free(unsafe.Pointer(_xpm))
_surface := C.IMG_ReadXPM... |
Add 'Any' states for copy-done | @@ -266,6 +266,7 @@ purposes; they are not actually present in the boot vector.
-----------------+--------+--------|
magic | Unset | Unset |
image-ok | Any | Any |
+ copy-done | Any | Any |
-----------------+--------+--------'
pending | | |
confirmed | X | |
@@ -279,6 +280,7 @@ purposes; they are not actually present i... |
tools: Kconfig checker ignores test files | @@ -34,6 +34,9 @@ OUTPUT_SUFFIX = '.new'
IGNORE_DIRS = (
# Kconfigs from submodules need to be ignored:
os.path.join('components', 'mqtt', 'esp-mqtt'),
+ # Test Kconfigs are also ignored
+ os.path.join('tools', 'ldgen', 'test', 'data'),
+ os.path.join('tools', 'kconfig_new', 'test'),
)
SPACES_PER_INDENT = 4
|
Build: do not trunc docker tags | @@ -515,10 +515,10 @@ def imageId(image) {
def checksum(file) {
// Used to identify if a Dockerfile changed
- // Collissions result in not rebuilding the Docker image even though it
- // changed.
+ // TODO expand to use more than one file if Dockerfile ever depends on
+ // external files
return sh(returnStdout: true,
-... |
fix 4 ios build | @@ -2,6 +2,14 @@ RESOURCES_LIBRARY()
+IF (GCC OR CLANG)
+ # headers must be fixed later
+ CFLAGS(
+ GLOBAL "-Wno-error=unused-parameter"
+ GLOBAL "-Wno-error=sign-compare"
+ )
+ENDIF()
+
IF (OS_LINUX)
# Qt + protobuf 2.6.1 + GL headers + GLES2
DECLARE_EXTERNAL_RESOURCE(MAPKIT_SDK sbr:648642209)
|
define H2O_RAND_MAX | * Wrapper of rand (3) or arc4random (3). Guaranteed to be multi-thread safe.
*/
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#define H2O_RAND_MAX UINT32_MAX
#define h2o_rand() arc4random()
#else
+#define H2O_RAND_MAX RAND_MAX
#define H2O_DEFINE_RAND 1
int h2o_rand(void)... |
stm32/network_wiznet5k: Automatically set MAC if device doesn't have one | @@ -128,6 +128,14 @@ STATIC void wiznet5k_init(void) {
// Seems we need a small delay after init
mp_hal_delay_ms(250);
+ // If the device doesn't have a MAC address then set one
+ uint8_t mac[6];
+ getSHAR(mac);
+ if ((mac[0] | mac[1] | mac[2] | mac[3] | mac[4] | mac[5]) == 0) {
+ mp_hal_get_mac(MP_HAL_MAC_ETH0, mac);
... |
Add TSP logic reset after stream start | @@ -608,6 +608,7 @@ int Streamer::UpdateThreads(bool stopAll)
const uint32_t data[] = {reg9 | (5 << 1), reg9 & ~(5 << 1)};
fpga->StartStreaming();
fpga->WriteRegisters(addr, data, 2);
+ lms->ResetLogicregisters();
}
else if(not needTx and not needRx)
{
|
sdl/pixels: add ABGR4444Model | @@ -361,6 +361,7 @@ var (
BGR565Model color.Model = color.ModelFunc(bgr565Model)
BGR555Model color.Model = color.ModelFunc(bgr555Model)
ARGB4444Model color.Model = color.ModelFunc(argb4444Model)
+ ABGR4444Model color.Model = color.ModelFunc(abgr4444Model)
)
func rgb444Model(c color.Color) color.Color {
@@ -485,3 +486,2... |
usb: try to get zlp and stall handling right | @@ -173,8 +173,6 @@ static uint32_t ubuf[0x20];
static volatile bool usb_device_configured = false;
-static volatile bool tx_buffer_in_use = false;
-
static uint8_t tx_buffer_data[BUFFER_SIZE];
static circular_buffer_t tx_buffer = {
.buffer = tx_buffer_data,
@@ -254,23 +252,41 @@ static void cdc_rxonly(usbd_device *dev... |
86 psxe patch | @@ -76,7 +76,7 @@ C interfaces, and can interface with ordering tools such as Scotch.
%patch0 -p1
%patch1 -p1
%if "%{compiler_family}" == "intel"
-%patch2 -p2
+#%patch2 -p2
%endif
%build
|
fix(gradient): assert before dividing by 0 | @@ -324,6 +324,8 @@ LV_ATTRIBUTE_FAST_MEM lv_grad_color_t lv_gradient_calculate(const lv_grad_dsc_t
}
}
+ LV_ASSERT(d != 0);
+
/*Then interpolate*/
frac -= min;
lv_opa_t mix = (frac * 255) / d;
|
Block reading if queue is full | @@ -199,11 +199,10 @@ netconn_evt(esp_evt_t* evt) {
return espOKIGNOREMORE; /* Return OK to free the memory and ignore further data */
}
nc->mbox_receive_entries++; /* Increase number of packets in receive mbox */
-
#if ESP_CFG_CONN_MANUAL_TCP_RECEIVE
/* Check against 1 less to still allow potential close event to be w... |
luci-mod-status: re-enable LuCI version display | @@ -40,16 +40,14 @@ return baseclass.extend({
var boardinfo = data[0],
systeminfo = data[1],
cpubench = data[2],
- cpuusage = data[3]; //,
-// luciversion = data[4];
+ cpuusage = data[3],
+ luciversion = data[4];
-/*
luciversion = luciversion.filter(function(l) {
return l.match(/^\s*(luciname|luciversion)\s*=/);
}).map... |
dispatch_connection: add some more elaborate comments
Explain a bit better why we can always add another character without
overrunning our buffer. | @@ -432,8 +432,12 @@ dispatch_connection(connection *conn, dispatcher *self, struct timeval start)
}
__sync_add_and_fetch(&(self->metrics), 1);
+ /* add newline and terminate the string, we can do this
+ * because we substract one from buf and we always store
+ * a full metric in buf before we copy it to metric
+ * (wh... |
schema tree BUGFIX make sure features are correctly set
... when using ly_ctx_load_module and the module is
already loaded and implemented. | #include "in_internal.h"
#include "log.h"
#include "parser_schema.h"
+#include "schema_features.h"
+#include "schema_compile.h"
#include "set.h"
#include "tree.h"
#include "tree_data.h"
@@ -874,13 +876,26 @@ search_file:
/*
* module found, make sure it is implemented if should be
*/
- if (implement && !(*mod)->implemen... |
Update Managed heap allocator | //
-// Copyright (c) 2017 The nanoFramework project contributors
+// Copyright (c) 2019 The nanoFramework project contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include <nanoHAL.h>
-// Define an area for the CL... |
merge dwm patches | @@ -3339,10 +3339,12 @@ tile(Monitor *m)
if (i < m->nmaster) {
h = (m->wh - my) / (MIN(n, m->nmaster) - i);
resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0);
+ if (my + HEIGHT(c) < m->wh)
my += HEIGHT(c);
} else {
h = (m->wh - ty) / (n - i);
resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2... |
Add FORCE Z14
from patch provided by aarnez in | @@ -1085,6 +1085,16 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define CORENAME "Z13"
#endif
+#ifdef FORCE_Z14
+#define FORCE
+#define ARCHITECTURE "ZARCH"
+#define SUBARCHITECTURE "Z14"
+#define ARCHCONFIG "-DZ14 " \
+ "-DDTB_DEFAULT_ENTRIES=64"
+#define LIBNAME "z14"
+#define CORENAME... |
Filter out net.IPNet and sort the IPv4 addresses | @@ -1394,6 +1394,7 @@ func FindJumpMap(ap *tc.AttachPoint) (mapFD bpf.MapFD, err error) {
}
func (m *bpfEndpointManager) getInterfaceIP(ifaceName string) (*net.IP, error) {
+ var ipAddrs []net.IP
if ip, ok := m.ifaceToIpMap[ifaceName]; ok {
return &ip, nil
}
@@ -1405,14 +1406,19 @@ func (m *bpfEndpointManager) getInter... |
Correct consumption calculation for Immax 07048L | "name": "state/alert"
},
{
- "name": "state/on"
+ "name": "state/on",
+ "refresh.interval": 86400
},
{
"name": "state/reachable"
"name": "state/lastupdated"
},
{
- "name": "state/power"
+ "name": "state/power",
+ "refresh.interval": 86400
}
]
},
"name": "config/reachable"
},
{
- "name": "state/consumption"
+ "name": "s... |
XDP TX fix
Remove the workaround in QUIC for XDP TX hangs. XDP version updated to 0.16.1. | @@ -391,7 +391,7 @@ CxPlatXdpReadConfig(
Xdp->RxRingSize = 128;
Xdp->TxBufferCount = 4096;
Xdp->TxRingSize = 128;
- Xdp->TxAlwaysPoke = TRUE;
+ Xdp->TxAlwaysPoke = FALSE;
//
// Read config from config file.
@@ -621,8 +621,8 @@ CxPlatDpRawInterfaceInitialize(
goto Error;
}
- uint32_t Flags = 0; // TODO: support native/g... |
[util/generic] Docs for TInputRangeAdaptor. __FORCE_COMMIT__ | @@ -34,23 +34,21 @@ namespace NStlIterator {
*
* Derived class is expected to define:
* \code
- * using TRetVal = <pointer>;
- * TRetVal Next();
+ * TSomething* Next();
* \endcode
*
- * `TRetVal` is expected to be a pointer-like type. `Next()` returning nullptr
- * signals end of range.
+ * `Next()` returning `nullptr`... |
os/binfmt/libelf: Correctly update no. of blocks for caching
Update number of blocks for caching correctly based on extra
unaligned data in file. | @@ -454,15 +454,15 @@ int elf_cache_init(int filfd, uint16_t offset, off_t filelen, uint8_t compressio
elf_compress_type = compression_type;
/* Set number of blocks to use for caching */
- if (CONFIG_ELF_CACHE_BLOCKS_COUNT < (CUTOFF_RATIO_CACHE_BLOCKS) * (number_of_blocks)) {
- number_blocks_caching = CONFIG_ELF_CACHE_... |
Set SHA cap to match FOM | @@ -406,7 +406,7 @@ ACVP_RESULT acvp_enable_hash_cap(
//TODO: need to validate that cipher, mode, etc. are valid values
// we also need to make sure we're not adding a duplicate
- cap->in_bit = 1;
+ cap->in_bit = 0;
cap->in_empty = 1;
return (acvp_append_hash_caps_entry(ctx, cap, cipher, crypto_handler));
|
some change. | @@ -52,12 +52,14 @@ void vcp_putch(uint8_t ch)
uint8_t vcp_getch(void)
{
- /* for debugging */
- //uint8_t ch = CDC_Itf_Getch();
- //drv_uart_write(DRV_UART_NUM_4, ch);
- //return ch;
-
+#if 1
return CDC_Itf_Getch();
+#else
+ /* for debugging */
+ uint8_t ch = CDC_Itf_Getch();
+ drv_uart_write(DRV_UART_NUM_4, ch);
+ re... |
copy desktop file | @@ -45,7 +45,9 @@ install: all
sed "s/VERSION/${VERSION}/g" < instantwm.1 > ${DESTDIR}${MANPREFIX}/man1/instantwm.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/instantwm.1
cp -f instantwm.desktop ${DESTDIR}/usr/share/xsessions
+ cp -f instantwm.desktop ${DESTDIR}/usr/share/xsessions/default.desktop
chmod 644 ${DESTDIR}/usr/s... |
added more ESSID iterations | @@ -72,34 +72,39 @@ if(lflag == true)
return;
}
/*===========================================================================*/
-void writeessidreversed(FILE *fhout, uint8_t essidlen, uint8_t *essid)
+static void writeessidsweeped(FILE *fhout, uint8_t essidlen, uint8_t *essid)
{
-char pskstring[PSKSTRING_LEN_MAX] = {};... |
ec_commands: fix DP PIN assignment flag
The DP PIN assignment mask was shifted by 1 bit since
CL:2432452.
TEST=ensure asurada DP out
BRANCH=none | @@ -6461,13 +6461,13 @@ enum tcpc_cc_polarity {
POLARITY_COUNT
};
-#define MODE_DP_PIN_A BIT(1)
-#define MODE_DP_PIN_B BIT(2)
-#define MODE_DP_PIN_C BIT(3)
-#define MODE_DP_PIN_D BIT(4)
-#define MODE_DP_PIN_E BIT(5)
-#define MODE_DP_PIN_F BIT(6)
-#define MODE_DP_PIN_ALL GENMASK(6, 0)
+#define MODE_DP_PIN_A BIT(0)
+#def... |
interface: stringify number prop
0 is falsy. | @@ -7,7 +7,7 @@ interface LoadingProps {
}
export function Loading({ text }: LoadingProps) {
return (
- <Body border={0}>
+ <Body border="0">
<Center height="100%">
<LoadingSpinner />
{Boolean(text) && <Text ml={4}>{text}</Text>}
|
Passwd: Fix minor spelling mistakes | @@ -19,13 +19,13 @@ If present, the not-posix compliant `fgetpwent` function will be used to read th
## Configuration
-If the config key `index` is set to `name` passwd entrys will be sorted by name, if not set or set to `uid` passwd entries will be sorted by uid
+If the config key `index` is set to `name` passwd entri... |
VERSION bump to version 2.1.61 | @@ -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 60)
+set(SYSREPO_MICRO_VERSION 61)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
Add support for Comet Lake H and S | @@ -1409,6 +1409,7 @@ int get_cpuname(void){
}
case 10: //family 6 exmodel 10
switch (model) {
+ case 5: // Comet Lake H and S
case 6: // Comet Lake U
if(support_avx2())
return CPUTYPE_HASWELL;
@@ -1967,8 +1968,8 @@ int get_coretype(void){
break;
case 10:
switch (model) {
- case 6:
- // Comet Lake U
+ case 5: // Comet ... |
Correct board info alignment.
Made board_info_t non-packed. Using canonical alignment for the fields
will reduce code size.
Remove aligned(4) on default weak g_board_info. | @@ -54,7 +54,7 @@ enum _board_info_flags {
* The board initialization function pointers allow the board to override the routines defined
* by the device family.
*/
-typedef struct __attribute__((__packed__)) board_info {
+typedef struct board_info {
uint16_t info_version; /*!< Version number of the board info */
uint16... |
tools/biolatpcts: Add accumulative reporting on SIGUSR2
SIGUSR1's behavior is the same - print and start a new interval. SIGUSR2
triggers output without starting a new interval and can be used to monitor
progress without affecting the accumulation of data points. | @@ -28,10 +28,14 @@ Monitor IO latency distribution of a block device
epilog = """
When interval is infinite, biolatpcts will print out result once the
-initialization is complete to indicate readiness. Once initialized,
-biolatpcts will output whenever it receives SIGUSR1 and before exiting on
-SIGINT, SIGTERM or SIGH... |
filter: do not leak on failure case (CID 156545) | @@ -115,6 +115,9 @@ int flb_filter_set_property(struct flb_filter_instance *filter, char *k, char *v
len = strlen(k);
tmp = flb_env_var_translate(filter->config->env, v);
+ if (!tmp) {
+ return -1;
+ }
/* Check if the key is a known/shared property */
if (prop_key_check("match", k, len) == 0) {
@@ -124,6 +127,7 @@ int ... |
delete a useless %s. | @@ -67,7 +67,7 @@ rt_size_t rt_i2c_transfer(struct rt_i2c_bus_device *bus,
#ifdef RT_I2C_DEBUG
for (ret = 0; ret < num; ret++)
{
- i2c_dbg("msgs[%d] %c, addr=0x%02x, len=%d%s\n", ret,
+ i2c_dbg("msgs[%d] %c, addr=0x%02x, len=%d\n", ret,
(msgs[ret].flags & RT_I2C_RD) ? 'R' : 'W',
msgs[ret].addr, msgs[ret].len);
}
|
BugID:18744724:enable wifi lowpoer after enable sniffer | #include "rda5981_sys_data.h"
#include "trng_api.h"
+#ifdef AOS_COMP_PWRMGMT
+#include "aos/pwrmgmt.h"
+#endif
+
#define WIFISTACK_DEBUG
#ifdef WIFISTACK_DEBUG
#define WIFISTACK_PRINT(fmt, ...) do {\
@@ -504,6 +508,9 @@ static r_void rda59xx_daemon(r_void *arg)
res = rda59xx_sniffer_enable_internal((sniffer_handler_t)(... |
[NFSC] implement motion blur disabler (readme) | @@ -852,6 +852,8 @@ The usage is as simple as inserting the files into game's root directory. Uninst
 Added an option to improve gamepad support (gamepad icons, fixed bindings etc)
+
}
*/
- int *ells=malloc(NL*sizeof(int));
- double *cells_ll_limber=malloc(NL*sizeof(double));
- double *cells_gl_limber=malloc(NL*sizeof(double));
- double *cells_gg_limber=malloc(NL*sizeof(double));
+ //int *ells=malloc(NL*sizeof(int));
+ //double *cells_ll_limber=m... |
doc: Fix ECX FIPS documentation
Both Ed448 and were omitted from the signature list.
X448 and X25519 were flagged as not FIPS valid which wasn't correct.
Fixes | @@ -116,12 +116,8 @@ The OpenSSL FIPS provider supports these operations and algorithms:
=item X25519, see L<EVP_KEYEXCH-X25519(7)>
-This has the property "provider=fips,fips=no"
-
=item X448, see L<EVP_KEYEXCH-X448(7)>
-This has the property "provider=fips,fips=no"
-
=back
=head2 Asymmetric Signature
@@ -132,6 +128,10... |
Jenkinsfile: fix daily job hanging | @@ -124,7 +124,7 @@ def cleanupDockerRegistry(targetNode) {
def frontendFolder = "${env.HOME}/compose/frontend"
dir(frontendFolder){
// Run garbage collect on the registry
- sh 'docker-compose run --rm registry bin/registry garbage-collect /etc/docker/registry/config.yml'
+ sh 'COMPOSE_INTERACTIVE_NO_CLI=1 docker-compo... |
Cellular fix to test code only: cellNetConnectDisconnectPlus().
In the test cellNetConnectDisconnectPlus() there is a check as to whether the module is connected. However, some modules might actually have disconnected again but the time this check is reached so instead the check is now whether the module _has been_ co... | @@ -95,9 +95,10 @@ static uCellNetStatus_t gLastNetStatus = U_CELL_NET_STATUS_UNKNOWN;
*/
static bool gConnectCallbackCalled = false;
-/** The last status value passed to gConnectCallbackCalled.
+/** Whether gConnectCallbackCalled has been called with isConnected
+ * true.
*/
-static bool gIsConnected = false;
+static ... |
nsim: use explicit api types
Type: fix | * @brief VPP control-plane API messages for the network delay simulator
*/
-option version = "2.1.0";
+option version = "2.1.1";
+import "vnet/interface_types.api";
/** \brief enable / disable the network delay simulation cross-connect
@param client_index - opaque cookie to identify the sender
@@ -21,11 +22,11 @@ autor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.