message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Netconn reorganize flush and add protection for concurrent access | @@ -67,26 +67,26 @@ static void
flush_mboxes(esp_netconn_t* nc) {
esp_pbuf_t* pbuf;
esp_netconn_t* new_nc;
+ ESP_CORE_PROTECT(); /* Protect ESP core */
if (esp_sys_sem_isvalid(&nc->mbox_receive)) {
- do {
- if (!esp_sys_mbox_getnow(&nc->mbox_receive, (void **)&pbuf)) {
- break;
- }
+ while (esp_sys_mbox_getnow(&nc->mbo... |
more useragents! | @@ -127,6 +127,9 @@ static const char *browsers[][2] = {
{"okhttp", "Others"},
{"node", "Others"},
{"PrivacyBrowser", "Others"},
+ {"Transmission", "Others"},
+ {"libmpv", "Others"},
+ {"aria2", "Others"},
/* Feed-reader-as-a-service */
{"AppleNewsBot", "Feeds"},
@@ -236,6 +239,9 @@ static const char *browsers[][2] = {... |
jenkins: escape path during archive | @@ -915,7 +915,7 @@ def archive(paths) {
def dest = "${prefix}${env.STAGE_NAME}/"
sh "mkdir -p ${dest}"
paths.each { path ->
- sh "cp -v ${path} ${dest} || true"
+ sh "cp -v \"${path}\" ${dest} || true"
}
archiveArtifacts artifacts: "${prefix}**", fingerprint: true, allowEmptyArchive: true
} else {
|
[quorum][#690]add quorum type | @@ -62,7 +62,8 @@ typedef enum
BOAT_PROTOCOL_FISCOBCOS, //!< FISCOBCOS Enterprise consortium chain
BOAT_PROTOCOL_HWBCS, // huawei chain
BOAT_PROTOCOL_CHAINMAKER, // chainmaker
- BOAT_PROTOCOL_VENACHAIN // Venachain Enterprise consortium chain
+ BOAT_PROTOCOL_VENACHAIN, // Venachain Enterprise consortium chain
+ BOAT_PR... |
set_config_by_name(): fix whitespace
...as suggested by our master version of pgindent. | @@ -7503,6 +7503,7 @@ set_config_by_name(PG_FUNCTION_ARGS)
if (Gp_role == GP_ROLE_DISPATCH && !IsBootstrapProcessingMode())
{
StringInfoData buffer;
+
initStringInfo(&buffer);
appendStringInfo(&buffer, "SET ");
if (is_local)
|
include/tinyara/mminfo.h : Add conditions for BIN_NAME_MAX
BIN_NAME_MAX is declared in binary_manager.h, but there is no header include when DEBUG_MM_HEAPINFO and APP_BINARY_SEPARATION are enabled. | * Included Files
****************************************************************************/
#include <tinyara/config.h>
-
+#if defined(CONFIG_DEBUG_MM_HEAPINFO) && defined(CONFIG_APP_BINARY_SEPARATION)
+#include <tinyara/binary_manager.h>
+#endif
/*********************************************************************... |
[NFSU] framelimit bugfix 2 | @@ -354,7 +354,7 @@ void Init()
static auto szCustomUserFilesDirectoryInGameDir = iniReader.ReadString("MISC", "CustomUserFilesDirectoryInGameDir", "0");
static int nImproveGamepadSupport = iniReader.ReadInteger("MISC", "ImproveGamepadSupport", 0);
static float fLeftStickDeadzone = iniReader.ReadFloat("MISC", "LeftStic... |
[chainmaker][#1140]modify the buf size of the response info | @@ -33,7 +33,7 @@ api_chainmaker.h is header file for BoAT IoT SDK chainmaker's interface.
#define BOAT_HLCHAINMAKER_HTTP2_SEND_BUF_MAX_LEN 8192 //!< The maximum length of HTTP2 send buffer
#define BOAT_HLCHAINMAKER_ARGS_MAX_NUM 10
#define BOAT_RESPONSE_CONTRACT_RESULT_MAX_LEN 100
-#define BOAT_RESPONSE_MESSAGE_MAX_LEN... |
Relaxes timing on diff time test | @@ -45,7 +45,7 @@ TEST_F(TimeUtilsTestSuite, DiffTimeTest) {
auto t2 = celix_gettime(CLOCK_MONOTONIC);
auto diff = celix_difftime(&t1, &t2);
EXPECT_GE(diff, 0.00001 /*10 us*/);
- EXPECT_LT(diff, 0.001 /*1 ms*/);
+ EXPECT_LT(diff, 0.01 /*1 ms*/);
}
TEST_F(TimeUtilsTestSuite, ElapsedTimeTest) {
|
api/btc/signtx: refactor host request mock in unit tests | @@ -565,12 +565,9 @@ mod tests {
locktime: self.locktime,
}
}
- }
- fn mock_host_responder(tx: alloc::rc::Rc<core::cell::RefCell<Transaction>>) {
- *crate::hww::MOCK_NEXT_REQUEST.0.borrow_mut() =
- Some(Box::new(move |response: Response| {
- let tx = tx.borrow();
+ /// Return the transaction part requested by the devic... |
Discard long packet if it has unexpected SCID | @@ -2970,6 +2970,14 @@ static ssize_t conn_recv_handshake_pkt(ngtcp2_conn *conn, const uint8_t *pkt,
return (ssize_t)pktlen;
}
+ /* Quoted from spec: Once a client has received an Initial packet
+ from the server, it MUST discard any packet it receives with a
+ different Source Connection ID. */
+ if (!conn->server && ... |
fixed JNI version dep | @@ -20,11 +20,11 @@ if (DEPENDENCY_PHASE)
set (DIRS ${JNI_INCLUDE_DIRS} ${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2} ${JAVA_AWT_INCLUDE_PATH})
set (LIBS ${JAVA_MAWT_LIBRARY} ${JNI_LIBRARIES} ${JAVA_AWT_LIBRARY} ${JAVA_JVM_LIBRARY}) # for check_symbol_exists
set (CMAKE_REQUIRED_INCLUDES ${DIRS})
- safe_check_symbol_exists... |
add SFPID frame to the logger | @@ -1228,6 +1228,11 @@ size_t picoquic_log_datagram_frame(FILE* F, uint64_t cnx_id64, uint8_t* bytes, s
return byte_index;
}
+size_t picoquic_log_sfpid_frame(FILE* F, uint64_t cnx_id64, uint8_t* bytes, size_t bytes_max) {
+ fprintf(F, " \tSFPID FRAME: ID %u\n", be32toh(*((uint32_t *) (bytes+1))));
+ return 5;
+}
+
void... |
boost version specified | @@ -17,6 +17,8 @@ matrix:
env: C_COMPILER=clang CXX_COMPILER=clang++
before_install:
- brew install ninja
+ - brew install boost@1.55
+ - brew link --overwrite --force boost@1.55
# OS X
- os: osx
@@ -24,6 +26,8 @@ matrix:
env: C_COMPILER=gcc CXX_COMPILER=g++
before_install:
- brew install ninja
+ - brew install boost@1... |
dhtest: Add testcase for EVP_PKEY_CTX_set_dh_nid
And a negative testcase for EVP_PKEY_CTX_set_dhx_rfc5114 | @@ -744,6 +744,33 @@ static int dh_rfc5114_fix_nid_test(void)
/* Tested function is called here */
if (!TEST_int_eq(EVP_PKEY_CTX_set_dhx_rfc5114(paramgen_ctx, 3), 1))
goto err;
+ /* Negative test */
+ if (!TEST_int_eq(EVP_PKEY_CTX_set_dhx_rfc5114(paramgen_ctx, 99), 0))
+ goto err;
+ /* If we're still running then the t... |
listbox.c: fix some comments.. | @@ -122,8 +122,10 @@ static void
listbox_add_columns (gftp_window_data *wdata)
{
/*
- * gftp implements its own logic to sort rows
+ * gftp implements its own logic to sort rows (lib/misc.c)
+ * that is called by listbox_sort_rows()
* set the "clickable" property to true and call listbox_sort_rows()
+ * and don't set t... |
filter: kubernetes: updated the code to use the new base stream type | @@ -1425,7 +1425,7 @@ static int flb_kube_network_init(struct flb_kube *ctx, struct flb_config *config
}
/* Remove async flag from upstream */
- ctx->upstream->flags &= ~(FLB_IO_ASYNC);
+ flb_stream_disable_async_mode(&ctx->upstream->base);
return 0;
}
|
fix(test cmake): capitalize Ruby_EXECUTABLE variable | @@ -380,7 +380,7 @@ foreach( test_case_fname ${TEST_CASE_FILES} )
# Run ruby to generate source in build directory
add_custom_command(
OUTPUT ${test_runner_fname}
- COMMAND ${Ruby_EXECUTABLE} ${generate_test_runner_rb}
+ COMMAND ${RUBY_EXECUTABLE} ${generate_test_runner_rb}
${test_case_fname} ${test_runner_fname}
${gen... |
add format attribute to set_dbparam
src/tcbtdb.c:124:49: error: format string is not a string literal
[-Werror,-Wformat-nonliteral]
n = vsnprintf (params + len, DB_PARAMS - len, fmt, args);
^~~
1 error generated. | @@ -114,6 +114,9 @@ tc_db_rmdir ()
* On error, a negative number is returned.
* On success, the number of characters that would have been written is
* returned. */
+#if defined(__GNUC__) || defined(__clang__)
+__attribute__((__format__(printf,3,4)))
+#endif
static int
set_dbparam (char *params, int len, const char *fmt... |
utils.h,WEBP_ALIGN: make bitmask unsigned
this fixes runtime warnings with clang -fsanitize=integer when using the
WEBP_ALIGN_CST constant in WEBP_ALIGN:
implicit conversion from type 'int' of value -32 (32-bit, signed) to
type 'unsigned int' changed the value to (32-bit, unsigned) | @@ -64,7 +64,8 @@ WEBP_EXTERN void WebPSafeFree(void* const ptr);
// Alignment
#define WEBP_ALIGN_CST 31
-#define WEBP_ALIGN(PTR) (((uintptr_t)(PTR) + WEBP_ALIGN_CST) & ~WEBP_ALIGN_CST)
+#define WEBP_ALIGN(PTR) (((uintptr_t)(PTR) + WEBP_ALIGN_CST) & \
+ ~(uintptr_t)WEBP_ALIGN_CST)
#include <string.h>
// memcpy() is the... |
include/wctype.h: remove duplicated prototype, iswctype
It has two prototypes of iswctype. | @@ -122,7 +122,6 @@ int towctrans(wint_t, wctrans_t);
wint_t towlower(wint_t);
wint_t towupper(wint_t);
wctrans_t wctrans(FAR const char *);
-int iswctype(wint_t, wctype_t);
wctype_t wctype(FAR const char *);
#endif /* INCLUDE_WTYPE_H */
|
imgtool: Add complete trailer to HEX images
When generating HEX output, instead of just adding the `magic`, also add
the whole trailer (with erased value). This allows for HEX writing tools
to erase the trailer region, avoiding possible issues when garbage
exists there. | @@ -179,9 +179,13 @@ class Image():
self.base_addr = hex_addr
h.frombytes(bytes=self.payload, offset=self.base_addr)
if self.pad:
- magic_addr = (self.base_addr + self.slot_size) - \
- len(boot_magic)
- h.puts(magic_addr, boot_magic)
+ trailer_size = self._trailer_size(self.align, self.max_sectors,
+ self.overwrite_onl... |
nimble/ll: Minor coding style issue | @@ -2396,7 +2396,7 @@ ble_ll_hci_send_ext_adv_report(uint8_t ptype, struct os_mbuf *om,
ble_ll_hci_event_send((uint8_t *)evt);
evt = next_evt;
- } while (offset < datalen && evt);
+ } while ((offset < datalen) && evt);
BLE_LL_ASSERT(offset <= datalen);
|
use another method to grep the port | @@ -17,7 +17,7 @@ hosts:
"/":
file.dir: @{[ DOC_ROOT ]}
EOT
- my $out = `ss -tlnp sport $server->{port} 2>&1 | sed '1d'`;
+ my $out = `ss -tlnp | grep -w 0.0.0.0:$server->{port} 2>&1`;
print($out);
if ($reuseport eq 'ON') {
my @lines = split(/\n/, $out);
|
docs - identify enum type support for GUCs | <topic id="topic_vsn_22l_z4">
<title>Parameter Types and Values</title>
<body>
- <p>All parameter names are case-insensitive. Every parameter takes a value of one of four
- types: <codeph>Boolean</codeph>, <codeph>integer</codeph>, <codeph>floating point</codeph>,
- or <codeph>string</codeph>. Boolean values may be wri... |
Previous caused issues with lib-debub install.
The debug install of openmp was not going into
the lib-debug directory, adjust where to add
the cmake options. | @@ -160,7 +160,7 @@ $AOMP_ORIGIN_RPATH \
-DLIBOMP_CPPFLAGS='-O0' \
-DLIBOMP_OMPD_SUPPORT=ON \
-DLIBOMP_OMPT_DEBUG=ON \
--DCMAKE_CXX_FLAGS="-g -I$AOMP_INSTALL_DIR/include" -DCMAKE_C_FLAGS=-g \
+-DCMAKE_C_FLAGS=-g \
-DOPENMP_SOURCE_DEBUG_MAP="\""-fdebug-prefix-map=$AOMP_REPOS/$AOMP_PROJECT_REPO_NAME/openmp=$AOMP_INSTALL_... |
Rese the default to "new reno" so as to not change test results. | @@ -669,7 +669,7 @@ extern picoquic_congestion_algorithm_t* picoquic_newreno_algorithm;
extern picoquic_congestion_algorithm_t* picoquic_cubic_algorithm;
extern picoquic_congestion_algorithm_t* picoquic_fastcc_algorithm;
-#define PICOQUIC_DEFAULT_CONGESTION_ALGORITHM picoquic_cubic_algorithm;
+#define PICOQUIC_DEFAULT_... |
fixed infinity loop caused by damaged pcapng file with total block length 0 and cpalen 0 | @@ -5459,28 +5459,26 @@ while(1)
pcapngbh->block_type = byte_swap_32(pcapngbh->block_type);
pcapngbh->total_length = byte_swap_32(pcapngbh->total_length);
}
- resseek = lseek(fd, aktseek, SEEK_SET);
- if(resseek < 0)
+ if(pcapngbh->total_length > (2 *MAXPACPSNAPLEN))
{
pcapreaderrors++;
- printf("failed to set file poi... |
retry pthread create if it failes with ENOKEY | @@ -651,7 +651,12 @@ CxPlatThreadCreate(
#else // CXPLAT_USE_CUSTOM_THREAD_CONTEXT
- if (pthread_create(Thread, &Attr, Config->Callback, Config->Context)) {
+ //
+ // If pthread_create fails with ENOKEY, then try again without the attribute
+ // because the CPU might be offline.
+ //
+ if (pthread_create(Thread, &Attr,... |
luci-app-zerotier: fix adapter luci-theme-openwrt-2020 | @@ -20,7 +20,7 @@ e.rmempty=false
e.description = translate("Allow zerotier clients access your LAN network")
e=t:option(DummyValue,"opennewwindow" ,
- translate("<input type=\"button\" class=\"cbi-button cbi-button-apply\" value=\"Zerotier.com\" onclick=\"window.open('https://my.zerotier.com/network')\" />"))
+ transl... |
Only do auditwheel on Linux | @@ -75,7 +75,7 @@ def build_wheel_native(conda_dir, deploy_dir, py_version):
subprocess.check_call([
"/usr/bin/python3", "-m",
- "pip", "install", "twine", "numpy", "auditwheel"
+ "pip", "install", "twine", "numpy"
])
print(">>> Installing setup deps in Python {} conda environment...".format(py_version))
@@ -193,6 +193... |
add wallet Underlying abstract interface | @@ -583,7 +583,22 @@ void BoatClose(BSINT32 sockfd, void* tlsContext, void* rsvd)
}
-BOAT_RESULT BoatPort_keyCreate( const BoatWalletPriKeyId_config config, BoatWalletPriKeyId* id )
+
+
+BOAT_RESULT BoatPort_keyCreate( const BoatWalletPriKeyId_config* config, BoatWalletPriKeyId* id )
{
+ //! @todo
+ retrun BOAT_SUCCESS... |
ftp.c: allow commenting out supported features for testing purposes.. | @@ -107,6 +107,7 @@ struct ftp_supported_feature ftp_supported_features[] =
{ FTP_FEAT_PRET, "PRET" },
{ FTP_FEAT_EPSV, "EPSV" }, /* rfc2428 */
{ FTP_FEAT_EPRT, "EPRT" }, /* rfc2428 */
+ { 1, NULL },
};
static void rfc2389_feat_supported_cmd (ftp_protocol_data * ftpdat, char * cmd)
@@ -115,7 +116,7 @@ static void rfc23... |
feat(fabric parameters check):
when creat fabric wallet, check the parameters "quantities" | @@ -139,6 +139,10 @@ static BOAT_RESULT BoatWalletCreatParaCheck(BoatProtocolType protocol_type,const
/* code */
for (int j = 0; j < fabric_config_ptr->nodesCfg.layoutCfg[i].endorserGroupNum; j++)
{
+ if(fabric_config_ptr->nodesCfg.layoutCfg[i].groupCfg[j].quantities == 0 ||
+ fabric_config_ptr->nodesCfg.layoutCfg[i].g... |
krane: remove als mutex
According to the comments in CL:1666260, we don't need it anymore.
TEST=make
BRANCH=master
Tested-by: Ting Shen | @@ -433,7 +433,6 @@ int board_get_version(void)
/* Mutexes */
#ifdef SECTION_IS_RW
static struct mutex g_lid_mutex;
-static struct mutex g_als_mutex;
static struct bmi160_drv_data_t g_bmi160_data;
@@ -556,7 +555,6 @@ struct motion_sensor_t motion_sensors[] = {
.location = MOTIONSENSE_LOC_LID,
.drv = &tcs3400_drv,
.drv_... |
Change macOS pipeline to SSE2; mini doesn't have avx2 | @@ -112,7 +112,7 @@ pipeline {
steps {
sh '''
cd ./Source/
- make VEC=avx2
+ make VEC=sse2
'''
}
}
@@ -127,7 +127,7 @@ pipeline {
steps {
sh '''
export PATH=$PATH:/usr/local/bin
- python3 ./Test/astc_run_image_tests.py --test-set Small
+ python3 ./Test/astc_run_image_tests.py --test-set Small --encoder=sse2
'''
//perfR... |
set XDG_CURRENT_DESKTOP | @@ -18,7 +18,7 @@ fi
echo $$ >"${RTD}"/instantosrunning
# just in case, some systems might not do this
-cd
+cd || echo "failed to access home directory"
# execute autostart even if instantautostart doesn't work
if ! command -v instantautostart &>/dev/null; then
@@ -52,6 +52,8 @@ while [ -e "${RTD}"/instantosrunning ]; ... |
Add spring oauth2 client libs to webapp | <artifactId>spring-security-oauth2</artifactId>
<version>${spring.oauth2.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.springframework.security</groupId>
+ <artifactId>spring-security-oauth2-client</artifactId>
+ <version>${spring.security.version}</version>
+ </dependency>
<dependency>
<groupId>com.fa... |
bug fix to get counts across all ranks | @@ -4343,9 +4343,12 @@ NetworkManager::CreateNamedSelection(int id, const SelectionProperties &props)
if(sel != 0)
{
- summary.SetCellCount(sel->GetSize());
+ // Sum the cells and send to all procs.
+ long cellCount = sel->GetSize();
- // Some way to get the total number of cells for the summary...
+ SumLongAcrossAllPr... |
mfu: support aarch64
aarch64 kernel is not found SYS_getdents.
If SYS_getdents is not defined, use sys_getdents64. | @@ -161,6 +161,9 @@ static void walk_getdents_process_dir(const char* dir, CIRCLE_handle* handle)
return;
}
+#if !defined(SYS_getdents) && defined(SYS_getdents64)
+#define SYS_getdents SYS_getdents64
+#endif
/* Read all directory entries */
while (1) {
/* execute system call to get block of directory entries */
|
Roll back r3385205 | @@ -4,8 +4,8 @@ import sys
import platform
import json
-URLS = ["https://storage.mds.yandex.net/get-devtools-opensource/479623/fa90a8e4d5af00d7d372f16a4323074b"]
-MD5 = "fa90a8e4d5af00d7d372f16a4323074b"
+URLS = ["https://storage.mds.yandex.net/get-devtools-opensource/233854/bef46b6b2f6ac13e76ddea51f4944cff"]
+MD5 = "b... |
Fix hcd_edpt_clear_stall | @@ -765,19 +765,17 @@ bool hcd_edpt_clear_stall(uint8_t dev_addr, uint8_t ep_addr)
{
uint16_t volatile *ctr = addr_to_pipectr(dev_addr, ep_addr);
TU_ASSERT(ctr);
+
+ const uint32_t pid = *ctr & 0x3;
+ if (pid & 2) {
+ *ctr = pid & 2;
+ *ctr = 0;
+ }
*ctr = USB_PIPECTR_SQCLR;
unsigned const epn = tu_edpt_number(ep_addr)... |
Update the CI/CD check for memory leak | @@ -20,7 +20,7 @@ jobs:
run: |
cmake -DCMAKE_BUILD_TYPE=Debug -DDISABLE_HTTP=1 -B ./build
cmake --build ./build
- ./dictu tests/runTests.du | tee /dev/stderr | grep -q 'Total memory usage: 0'
+ ./dictu tests/runTests.du | tee /dev/stderr | grep -q 'Total bytes lost: 0'
- name: Remove build directory
run: |
rm -rf build... |
Fix bug while polling/cleaning event timers | @@ -395,6 +395,8 @@ poll_event_callback_timers(oc_list_t list, struct oc_memb *cb_pool)
if (event_cb->callback(event_cb->data) == DONE) {
oc_list_remove(list, event_cb);
oc_memb_free(cb_pool, event_cb);
+ event_cb = oc_list_head(list);
+ continue;
} else {
OC_PROCESS_CONTEXT_BEGIN(&timed_callback_events);
oc_etimer_res... |
Use case-insensitive string comparison for ethereum wallets. Fixes | @@ -149,7 +149,7 @@ namespace Miningcore.Blockchain.Ethereum
messageBus.NotifyBlockConfirmationProgress(poolConfig.Id, block, coin);
// is it block mined by us?
- if(blockInfo.Miner == poolConfig.Address)
+ if(string.Equals(blockInfo.Miner, poolConfig.Address, StringComparison.OrdinalIgnoreCase))
{
// additional check
... |
Only enable fix_quasi_reduction when testing
Avoid compiler error due to the fix_quasi_reduction function
is static and has not been used. | @@ -118,15 +118,7 @@ void mbedtls_mpi_mod_raw_sub(mbedtls_mpi_uint *X,
(void) mbedtls_mpi_core_add_if(X, N->p, N->limbs, (unsigned) c);
}
-void mbedtls_mpi_mod_raw_mul(mbedtls_mpi_uint *X,
- const mbedtls_mpi_uint *A,
- const mbedtls_mpi_uint *B,
- const mbedtls_mpi_mod_modulus *N,
- mbedtls_mpi_uint *T)
-{
- mbedtls_m... |
vcl: fix vcl_session_write_ready when connecting
Applications like curl will poll the fd after a non-blocking
connect, so we need to avoid returning the wrong event.
Type: fix | @@ -317,6 +317,10 @@ vcl_session_write_ready (vcl_session_t * s)
else
return VPPCOM_EBADFD;
}
+ else if (s->session_state == VCL_STATE_UPDATED)
+ {
+ return 0;
+ }
else
{
return (s->session_state == VCL_STATE_DISCONNECT) ?
|
sysdeps/managarm: convert sys_readlink to helix_ng | @@ -1992,50 +1992,31 @@ int sys_stat(fsfd_target fsfdt, int fd, const char *path, int flags, struct stat
int sys_readlink(const char *path, void *data, size_t max_size, ssize_t *length) {
SignalGuard sguard;
- HelAction actions[4];
- globalQueue.trim();
managarm::posix::CntRequest<MemoryAllocator> req(getSysdepsAllocat... |
Document how to constrain the spod scheduling | @@ -234,6 +234,19 @@ into the allowed list. All profiles not complying with this rule, it will be rej
Also every time when the list of allowed syscalls is modified in the spod configuration, the operator will
automatically identify the already installed profiles which are not compliant and remove them.
+## Constrain sp... |
schema macros BUGFIX handle macro's params more safely
Allow safely use of ternary operator passing function to the macro. | @@ -532,12 +532,12 @@ uint8_t lysc_iff_getop(uint8_t *list, size_t pos);
* @brief Macro to free [sized array](@ref sizedarrays) of items using the provided free function. The ARRAY itself is also freed,
* but the memory is not sanitized.
*/
-#define FREE_ARRAY(CTX, ARRAY, FUNC) {LY_ARRAY_COUNT_TYPE c__; LY_ARRAY_FOR(AR... |
sys/log: Re-add LOG_MODULE_PERUSER
This constant was removed in a recent commit
(46a14478933942708562e33a4650f2fede37342e). We should keep this
constant around to maintain backwards compatibility. Applications may
define their own log modules with IDs based on this constant. | @@ -67,6 +67,7 @@ struct log;
#define LOG_MODULE_IOTIVITY 7
#define LOG_MODULE_TEST 8
+#define LOG_MODULE_PERUSER 64
#define LOG_MODULE_MAX (255)
#define LOG_ETYPE_STRING (0)
|
More dumb syntax updates to update_latest.yml workflow. | @@ -48,7 +48,7 @@ jobs:
name: Update CDN Latest
runs-on: ubuntu-latest
needs: info
- if: ${{ needs.info.outputs.tag != "" && needs.info.outputs.prerelease == "" }}
+ if: ${{ needs.info.outputs.tag != '' && needs.info.outputs.prerelease == '' }}
steps:
- name: Update dl/scope/latest
env:
@@ -73,7 +73,7 @@ jobs:
name: Up... |
Fix custom_angle with rewrite of traj tool
Fix custom_angle with new traj tool | @@ -72,7 +72,7 @@ int main_traj(int argc, char* argv[])
OPT_SET('3', &conf.d3d, "3D"),
OPT_SET('c', &conf.asym_traj, "asymmetric trajectory [DC sampled]"),
OPT_VEC2('z', &z_usamp, "Ref:Acel", "Undersampling in z-direction."),
- OPT_STRING('C', &custom_angle, "file", "custom_angle"),
+ OPT_STRING('C', &custom_angle, "fi... |
[mod_openssl] error if ssl.engine in wrong section (fixes
error if ssl.engine in wrong section of config.
ssl.engine is valid only in global scope or $SERVER["socket"] condition
x-ref:
"HTTPS requests timeout when cert not set for socket" | @@ -566,7 +566,8 @@ network_init_ssl (server *srv, void *p_d)
}
/* PEM file is require */
log_error_write(srv, __FILE__, __LINE__, "s",
- "ssl.pemfile has to be set");
+ "ssl.pemfile has to be set "
+ "when ssl.engine = \"enable\"");
return -1;
}
}
@@ -989,6 +990,12 @@ SETDEFAULTS_FUNC(mod_openssl_set_defaults)
}
}
}
+... |
Make FreeBSD manpath consistent for mbld | @@ -68,7 +68,7 @@ case $OS in
echo export INST_MAN=$prefix/man/man >> config.mk
echo 'const Sys = "FreeBSD"' >> mbld/config.myr
echo 'const Linkcmd = ["ld", "-o"]' >> mbld/config.myr
- echo "const Manpath = \"share/man/man\"" >> mbld/config.myr
+ echo "const Manpath = \"man/man\"" >> mbld/config.myr
;;
*OpenBSD*)
echo ... |
[win32] adding function for hiding MenuBar. Usage: rhoconfig.txt < "w32_hide_menu_bar = 1" | @@ -74,14 +74,10 @@ QMenuBar* QtMainWindow::createMenu() {
QMenuBar * menuBar = new QMenuBar(this);
-
QMenu *mMain = new QMenu("Main", this);
- //mMain->addAction("Exit", this, SLOT(on_actionExit_triggered()));
mMain->addAction("Exlt", this, SLOT(on_actionExit_triggered()));
menuBar->addMenu(mMain);
- //if (menuMain ==... |
Fix typo in glossary
Reported privately by Justin Pryzby | Contains the values of <glossterm linkend="glossary-tuple">row</glossterm>
attributes (i.e. the data) for a
<glossterm linkend="glossary-relation">relation</glossterm>.
- The heap is realized within one of more
+ The heap is realized within one or more
<glossterm linkend="glossary-file-segment">file segments</glossterm... |
firfilt/autotest: adding scale, ensuring value is ignored | @@ -38,6 +38,9 @@ void autotest_firfilt_cccf_coefficients_test()
// design filter from external coefficients
firfilt_cccf q = firfilt_cccf_create(h0, h_len);
+ // set scale: note that this is not used when computing coefficients
+ firfilt_cccf_set_scale(q, -0.4f + _Complex_I*0.7f);
+
// get coefficients from filter obj... |
CCode: Improve variable names in `readConfig` | @@ -84,23 +84,21 @@ void setDefaultConfig (CCodeData * const mapping)
*/
void readConfig (CCodeData * const mapping, KeySet * const config, Key const * const root)
{
- Key const * cur = 0;
- while ((cur = ksNext (config)) != 0)
+ Key const * key = 0;
+ while ((key = ksNext (config)) != 0)
{
/* Ignore keys that are not ... |
fix duplicated issuer url bug fix | @@ -187,7 +187,9 @@ list_t* getSuggestableIssuers() {
if (space) {
*space = '\0';
}
+ if (findInList(issuers, elem) == NULL) {
list_rpush(issuers, list_node_new(oidc_sprintf(elem)));
+ }
elem = strtok(NULL, "\n");
}
secFree(fileContent);
|
Pass disp->driver to rounder_cb in lv_inv_area
Pass pointer to disp->driver to rounder_cb in lv_inv_area instead of
pointer to disp_refr->driver as lv_inv_area is called when no refresh is
ongoing (lv_disp_drv_register). | @@ -115,7 +115,7 @@ void lv_inv_area(lv_disp_t * disp, const lv_area_t * area_p)
/*The area is truncated to the screen*/
if(suc != false) {
- if(disp->driver.rounder_cb) disp->driver.rounder_cb(&disp_refr->driver, &com_area);
+ if(disp->driver.rounder_cb) disp->driver.rounder_cb(&disp->driver, &com_area);
/*Save only i... |
Correct hic id for stm32f103xb | @@ -224,8 +224,8 @@ HIC_STRING_TO_ID = {
'kl26z': 0x97969901,
'lpc11u35': 0x97969902,
'sam3u2c': 0x97969903,
- 'stm32f103xb': 0x97969904,
'lpc4322': 0x97969905,
+ 'stm32f103xb': 0x97969908,
}
BOARD_ID_LOCKED_WHEN_ERASED = set([
|
Minor improvements in ssl_client.c | @@ -794,7 +794,8 @@ static int ssl_prepare_client_hello( mbedtls_ssl_context *ssl )
*/
int renegotiating = 0;
#if defined(MBEDTLS_SSL_RENEGOTIATION)
- renegotiating = ( ssl->renego_status != MBEDTLS_SSL_INITIAL_HANDSHAKE );
+ if( ssl->renego_status != MBEDTLS_SSL_INITIAL_HANDSHAKE )
+ renegotiating = 1;
#endif
if( !ren... |
[chainmaker][#436]add tests test_03Contract_0004InvokeFailureContractNoExist | @@ -141,10 +141,33 @@ START_TEST(test_03Contract_0003InvokeFailureContractNull)
ck_assert_int_eq(result, BOAT_SUCCESS);
result = BoatHlchainmakerContractInvoke(&tx_ptr, "save", NULL, true, &invoke_reponse); ;
- ck_assert(result == 0);
+ ck_assert(result == BOAT_SUCCESS);
+ if (result == BOAT_SUCCESS)
+ {
+ ck_assert(in... |
ADDING FEC - log decoded packet | +#include <picoquic_logger.h>
#include "picoquic_internal.h"
#include "block_framework.h"
#include "memory.h"
@@ -355,6 +356,7 @@ static __attribute__((always_inline)) int recover_block(picoquic_cnx_t *cnx, bpf
args[2] = (protoop_arg_t) ph.epoch;
args[3] = picoquic_current_time();
args[4] = (protoop_arg_t) cnx->path[0]... |
Use mbedtls_xor in ARIA | @@ -588,7 +588,6 @@ int mbedtls_aria_crypt_cbc( mbedtls_aria_context *ctx,
const unsigned char *input,
unsigned char *output )
{
- int i;
unsigned char temp[MBEDTLS_ARIA_BLOCKSIZE];
ARIA_VALIDATE_RET( ctx != NULL );
@@ -608,8 +607,7 @@ int mbedtls_aria_crypt_cbc( mbedtls_aria_context *ctx,
memcpy( temp, input, MBEDTLS_... |
added popdown and autofocus to command palette | @@ -26,12 +26,23 @@ function doSub() {
);
}
+var palette = false;
+
window.addEventListener("message", (event) => {
let popup = document.getElementById("popup");
let input = document.getElementById("input");
+ if (palette) {
+ palette = false;
+ popup.style = "display:hidden;";
+ input.style = "visibility:hidden !impor... |
Fix bug in dotnet module.
Found by Vitaly Kamluk (@vkamluk) | @@ -1145,7 +1145,7 @@ void dotnet_parse_tilde_2(
for (i = 0; i < num_rows; i++)
{
- if (!fits_in_pe(pe, table_offset, row_size))
+ if (!fits_in_pe(pe, row_ptr, row_size))
break;
assemblyref_table = (PASSEMBLYREF_TABLE) row_ptr;
|
removed unneeded code fragment | @@ -55,9 +55,6 @@ void seat_destroy(struct sway_seat *seat) {
free(seat);
}
-static struct sway_seat_node *seat_node_from_node(
- struct sway_seat *seat, struct sway_node *node);
-
static void seat_node_destroy(struct sway_seat_node *seat_node) {
wl_list_remove(&seat_node->destroy.link);
wl_list_remove(&seat_node->link... |
Remove some flags from viewconf.c | ##### "NBR_TABLE_MAX_NEIGHBORS": _______________ NBR_TABLE_CONF_MAX_NEIGHBORS
##### "NETSTACK_MAX_ROUTE_ENTRIES": ____________ NETSTACK_MAX_ROUTE_ENTRIES
##### "UIP_CONF_BUFFER_SIZE": __________________ UIP_CONF_BUFFER_SIZE
-##### "UIP_CONF_ROUTER": _______________________ UIP_CONF_ROUTER
-##### "NBR_TABLE_FIND_REMOVAB... |
libcupsfilters: Corrected log typo in imagetoraster() | @@ -291,7 +291,7 @@ imagetoraster(int inputfd, /* I - File descriptor input stream */
outformat = OUTPUT_FORMAT_CUPS_RASTER;
if (log) log(ld, FILTER_LOGLEVEL_DEBUG,
- "imagetorater: Final output format: %s",
+ "imagetoraster: Final output format: %s",
(outformat == OUTPUT_FORMAT_CUPS_RASTER ? "CUPS Raster" :
(outformat... |
dpdk_esp_encrypt: add to prefetch data
The memory areas storing vlib_buffer_t and ip4|6_and_esp_header_t
are not prefetched. The patch help dpdk_esp_encrypt to reduce 18
clocks/pkt from 149 to 131 on Haswell when running IPsec in tunnel
mode. | @@ -155,8 +155,8 @@ dpdk_esp_encrypt_inline (vlib_main_t * vm,
while (n_left_from > 0 && n_left_to_next > 0)
{
clib_error_t *error;
- u32 bi0;
- vlib_buffer_t *b0 = 0;
+ u32 bi0, bi1;
+ vlib_buffer_t *b0, *b1;
u32 sa_index0;
ip4_and_esp_header_t *ih0, *oh0 = 0;
ip6_and_esp_header_t *ih6_0, *oh6_0 = 0;
@@ -169,7 +169,7 ... |
Replace the margin with padding | border: 1px solid #eee;
background-image: url(test_image_reader.png);
background-size: contain;
- margin-bottom: 10px;
+ margin: 5px 0;
}
.container {
- margin-bottom: 10px;
+ padding: 5px 0;
}
.text-sp {
font-size: 18sp;
|
machinarium: use correct fiber in machine_write() cb | @@ -41,15 +41,15 @@ mm_write_cb(mm_fd_t *handle)
return 0;
if (errno == EINTR)
continue;
- io->connect_status = errno;
- mm_scheduler_wakeup(io->connect_fiber);
+ io->write_status = errno;
+ mm_scheduler_wakeup(io->write_fiber);
return 0;
}
io->write_pos += rc;
left = io->write_size - io->write_pos;
assert(left >= 0);
... |
chip/stm32/usart-stm32f0.c: Format with clang-format
BRANCH=none
TEST=none | @@ -54,8 +54,7 @@ static void usart_variant_disable(struct usart_config const *config)
* Only disable the shared interrupt for USART3/4 if both USARTs are
* now disabled.
*/
- if ((index == 0) ||
- (index == 1) ||
+ if ((index == 0) || (index == 1) ||
(index == 2 && configs[3] == NULL) ||
(index == 3 && configs[2] == N... |
implement new task construction; sets up stack for first call to context_switch | @@ -86,16 +86,18 @@ task_small_t* task_construct(uint32_t entry_point) {
memset(new_task, 0, sizeof(task_small_t));
new_task->id = next_pid++;
- registers_t initial_register_state = {0};
- initial_register_state.ds = GDT_BYTE_INDEX_KERNEL_DATA;
- initial_register_state.eip = entry_point;
-
- char* stack = kmalloc(0x100... |
Removes commented out code. | @@ -1216,65 +1216,3 @@ static void celix_waitForPendingRegisteredEvents(celix_service_registry_t *regis
}
celixThreadMutex_unlock(®istry->pendingRegisterEvents.mutex);
}
\ No newline at end of file
-
-//static void celix_serviceRegistry_triggerListenerHooks(celix_service_registry_t *registry, const char* serviceName... |
mcu/nrf5340_net: Add support for APPROTECT setup
This is required for enabling debugging support. | @@ -29,6 +29,7 @@ NOTICE: This file has been modified by Nordic Semiconductor ASA.
#include <nrf_erratas.h>
#include <system_nrf5340_network.h>
#include <mcu/cmsis_nvic.h>
+#include <system_nrf53_approtect.h>
/*lint ++flb "Enter library region" */
@@ -84,6 +85,9 @@ void SystemInit(void)
}
}
+ /* Handle fw-branch APPROT... |
board_inspector: Remove dead code in parser.py
A DualNamePath clause is a NamePath that only follows rootchar or
prefixpath. Thus, it is never necessary to check if a dot is necessary for
separating segments before a DualNamePath. This patch removes the code that
conduct that check. | @@ -106,8 +106,6 @@ class NameStringFactory(Factory):
# Object name
if ord(char) == grammar.AML_DUAL_NAME_PREFIX:
- if acc and acc[-1] not in ["\\", "^"]:
- acc += "."
acc += stream.get_fixed_length_string(4)
acc += "."
acc += stream.get_fixed_length_string(4)
|
VERSION bump to version 2.0.179 | @@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 178)
+set(LIBYANG_MICRO_VERSION 179)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}... |
[Doc] python apidoc: sort alphabetically | @@ -374,4 +374,5 @@ def source_read(app, docname, source):
def setup(app):
app.connect('source-read', source_read)
-autodoc_member_order = 'bysource'
+#default is alphabetical which is better.
+#autodoc_member_order = 'bysource'
|
Update compile API URL
Update the compile API URL. Additionally raise an exception if a target
could not be built. | @@ -41,7 +41,7 @@ import time
import requests
import logging
-MBED_API_SERVER = 'https://developer.mbed.org'
+MBED_API_SERVER = 'https://os.mbed.com/'
def build_repo(user, password, repo, platform, destdir,
@@ -130,6 +130,8 @@ def build_repo(user, password, repo, platform, destdir,
fd.write(chunk)
logging.info("Finishe... |
admin/nagios: add --with-initdir=%{_unitdir} to configure step to
avoid nagios installer putting systemd file in non-default location | @@ -193,6 +193,7 @@ install -p -m 0644 %{SOURCE10} %{SOURCE11} %{SOURCE12} html/images/logos/
--with-perlcache \
--with-template-objects \
--with-template-extinfo \
+ --with-initdir=%{_unitdir} \
%if 0%{?sles_version} || 0%{?suse_version}
--with-httpd-conf=/etc/apache2/conf.d \
%else
@@ -292,8 +293,6 @@ exit 0
%ifarch ... |
Fix ocsp app exit code
If we run the ocsp command line app and the responder returns a
non-successful status code then the app should exit with a failure code.
Based on an original patch by Tatsuhiro Tsujikawa.
Fixes | @@ -697,11 +697,9 @@ redo_accept:
if (i != OCSP_RESPONSE_STATUS_SUCCESSFUL) {
BIO_printf(out, "Responder Error: %s (%d)\n",
OCSP_response_status_str(i), i);
- if (!ignore_err) {
- ret = 0;
+ if (!ignore_err)
goto end;
}
- }
if (resp_text)
OCSP_RESPONSE_print(out, resp, 0);
|
signv4: renamed flb_digest to flb_hash | #include <fluent-bit/flb_sds.h>
#include <fluent-bit/flb_utils.h>
#include <fluent-bit/flb_hmac.h>
-#include <fluent-bit/flb_digest.h>
+#include <fluent-bit/flb_hash.h>
#include <fluent-bit/flb_http_client.h>
#include <fluent-bit/flb_signv4.h>
#include <fluent-bit/flb_aws_credentials.h>
@@ -68,7 +68,7 @@ static int hma... |
Clarify if-automatic listens on 0.0.0.0 and :: | @@ -126,9 +126,12 @@ interface and port number), if not specified the default port (from
Same as interface: (for ease of compatibility with nsd.conf).
.TP
.B interface\-automatic: \fI<yes or no>
-Detect source interface on UDP queries and copy them to replies. This
-feature is experimental, and needs support in your OS... |
docs: update the instruction | @@ -45,8 +45,9 @@ Close the Terminal that bot-echo is running or type "Ctrl-C" to kill it.
#### Debug Memory Errors
-* The recommanded method
- Using SaiphC to build your bot and all runtime memory errors will be reported. The [instruction](/docs/SAIPH.md).
+* The recommanded method:
+ Using SaiphC to build your bot, a... |
SOVERSION bump to version 5.4.7 | @@ -45,7 +45,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 4)
-set(SYSREPO_MICRO_SOVERSION 6)
+set(SYSREPO_MICRO_SO... |
Edit USERS-GUIDE.md
Make initial copy edits to file. | -# DAPLink Users Guide
-There are three interfaces that DAPLink provides. These are drag-n-drop programming, a serial port and debugging support. In addition DAPLink firmware can be updated using the drag-n-drop programming interface of the bootloader.
+# DAPLink users guide
+DAPLink provides three interface. These are... |
out_stackdriver: enable upstream configuration | @@ -856,6 +856,12 @@ static int cb_stackdriver_init(struct flb_output_instance *ins,
return -1;
}
+ /* Load config map */
+ ret = flb_output_config_map_set(ins, (void *) ctx);
+ if (ret == -1) {
+ return -1;
+ }
+
/* Set context */
flb_output_set_context(ins, ctx);
|
Update to >= to keep symmetry | @@ -691,14 +691,14 @@ int pocl_buffer_boundcheck_3d(const size_t buffer_size,
origin[1] * rp +
origin[0];
- size_t byte_offset_end = origin[0] + region[0] +
+ size_t byte_offset_end = origin[0] + region[0]-1 +
rp * (origin[1] + region[1]-1) +
sp * (origin[2] + region[2]-1);
POCL_RETURN_ERROR_ON((byte_offset_begin > buf... |
prevent overflow in RgbaFile cachePadding | @@ -171,16 +171,16 @@ cachePadding (ptrdiff_t size)
static int LOG2_CACHE_LINE_SIZE = 8;
- int i = LOG2_CACHE_LINE_SIZE + 2;
+ size_t i = LOG2_CACHE_LINE_SIZE + 2;
while ((size >> i) > 1)
++i;
- if (size > (1 << (i + 1)) - 64)
- return 64 + ((1 << (i + 1)) - size);
+ if (size > (1ll << (i + 1)) - 64ll)
+ return 64ll + ... |
Fix parser memory leaks. | @@ -320,6 +320,17 @@ get_interface_type(int c, int *type_r, gnc_t gnc, void *closure)
return c;
}
+static void
+free_filter(struct filter *f)
+{
+ free(f->ifname);
+ free(f->id);
+ free(f->prefix);
+ free(f->src_prefix);
+ free(f->neigh);
+ free(f->action.src_prefix);
+ free(f);
+}
static int
parse_filter(int c, gnc_t ... |
Improve cmake build behaviour with non-host cpu targets
1. Supply appropriate values for C/Z GEMM unroll when cross-compiling for CORE2 or ARMV7
2. Add the required xLOCAL_BUFFER_SIZE parameters for cross-compiling CORE2
3. Add -DFORCE_<target> option to getarch when building with -DTARGET=target
for | @@ -105,6 +105,7 @@ if (DEFINED CORE AND CMAKE_CROSSCOMPILING AND NOT (${HOST_OS} STREQUAL "WINDOWSS
# Perhaps this should be inside a different file as it grows larger
file(APPEND ${TARGET_CONF_TEMP}
"#define ${TCORE}\n"
+ "#define CORE_${TCORE}\n"
"#define CHAR_CORENAME \"${TCORE}\"\n")
if ("${TCORE}" STREQUAL "CORE2... |
Minor improvements to test code script | @@ -126,9 +126,11 @@ code that is generated or read from helpers and platform files.
This script replaces following fields in the template and generates
the test source file:
-__MBEDTLS_TEST_TEMPLATE__TEST_COMMON_HELPERS <-- All common code from helpers.function
+__MBEDTLS_TEST_TEMPLATE__TEST_COMMON_HELPERS
+ All commo... |
update ya tool arc
revert
show names for commit
option for run fuse in single thread mode | },
"arc": {
"formula": {
- "sandbox_id": [412001663],
+ "sandbox_id": [413571119],
"match": "arc"
},
"executable": {
|
pass key and name props to radio buttons | @@ -13,12 +13,14 @@ import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton'
const RadioButtons = ({ id, value, meta, options, onChange }) => (
<RadioButtonGroup
id={id}
+ name={id}
defaultSelected={value}
onChange={(evt, value) => onChange(value)}
style={{ display: 'inline-block', position: 'relative', ... |
Squashed 'opae-libs/' changes from 45aafb87..d0b18204
release: update version to 2.0.1
git-subtree-dir: opae-libs
git-subtree-split: | @@ -29,7 +29,7 @@ project(opae-libs)
set(OPAE_VERSION_MAJOR 2 CACHE STRING "OPAE major version" FORCE)
set(OPAE_VERSION_MINOR 0 CACHE STRING "OPAE minor version" FORCE)
-set(OPAE_VERSION_REVISION 0 CACHE STRING "OPAE revision version" FORCE)
+set(OPAE_VERSION_REVISION 1 CACHE STRING "OPAE revision version" FORCE)
set(O... |
Fix Clients for Windows pipeline
Use macro WIN32 to bypass some codes like poll. | #ifndef FRONTEND
#include "postgres.h"
#include "cdb/cdbvars.h"
+#endif
+#ifndef WIN32
#include <poll.h>
#endif
@@ -3277,7 +3279,7 @@ internal_cancel(SockAddr *raddr, int be_pid, int be_key,
CancelRequestPacket cp;
} crp;
-#ifndef FRONTEND
+#ifndef WIN32
struct pollfd pollFds[1];
int pollRet;
@@ -3334,7 +3336,7 @@ retr... |
normalize axis quaternion axis-angle constructor | @@ -90,49 +90,44 @@ glm_quat_init(versor q, float x, float y, float z, float w) {
}
/*!
- * @brief creates NEW quaternion with individual axis components
+ * @brief creates NEW quaternion with axis vector
*
* @param[out] q quaternion
* @param[in] angle angle (radians)
- * @param[in] x axis.x
- * @param[in] y axis.y
- *... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.