message
stringlengths
6
474
diff
stringlengths
8
5.22k
Document ngtcp2_sockaddr_in and ngtcp2_sockaddr_in6
@@ -1361,6 +1361,13 @@ typedef struct sockaddr ngtcp2_sockaddr; * defined in ngtcp2.h. */ typedef struct sockaddr_storage ngtcp2_sockaddr_storage; +/** + * @typedef + * + * :type:`ngtcp2_sockaddr_in` is typedefed to struct sockaddr_in. If + * :macro:`NGTCP2_USE_GENERIC_SOCKADDR` is defined, it is typedefed to + * the g...
Display errors if a test TLS connection fails If a connection fails it is useful during debugging to have any errors that are on the OpenSSL error stack at the time of the failure.
@@ -938,6 +938,8 @@ int create_bare_ssl_connection(SSL *serverssl, SSL *clientssl, int want, if (!clienterr && retc <= 0 && err != SSL_ERROR_WANT_READ) { TEST_info("SSL_connect() failed %d, %d", retc, err); + if (want != SSL_ERROR_SSL) + TEST_openssl_errors(); clienterr = 1; } if (want != SSL_ERROR_NONE && err == want)...
viosock: fix queue cleanup
@@ -101,10 +101,38 @@ VIOSockInterruptInit( return status; } +static +VOID +VIOSockQueuesCleanup( + IN WDFDEVICE hDevice +) +{ + PDEVICE_CONTEXT pContext = GetDeviceContext(hDevice); + NTSTATUS status = STATUS_SUCCESS; + + ULONG uBufferSize; + + TraceEvents(TRACE_LEVEL_INFORMATION, DBG_HW_ACCESS, "--> %s\n", __FUNCTION...
Check in todo.md
@@ -159,3 +159,15 @@ amc delivery space is initiall small (1MB) and grows as large messages are sent reduces overall memory footprint stress-test hash map, it seems broken with linked list + delete + +check mem usage of an amc task with framebuf that spawns another (copied page tables?) (check) + +free elf loader memor...
Adding full build with publishing.
@@ -160,13 +160,13 @@ def main() { parallel generateArtifactStages() } - // stage("Deploy Website") { - // deployWebsite() - // } + stage("Deploy Website") { + deployWebsite() + } - // maybeStage("Deploy Web UI", isMaster()) { - // deployWebUI() - // } + maybeStage("Deploy Web UI", isMaster()) { + deployWebUI() + } } t...
Quoting the command
@@ -64,8 +64,8 @@ SUT_PATH=(`find $BUILD_HOME -name "bin" -type d`) # hack to determine latest tag from GitHub LATEST_URL="https://github.com/OpenWaterAnalytics/epanet-example-networks/releases/latest" -temp_url=$(curl -sI ${LATEST_URL} | grep -iE "^Location:") -LATEST_TAG=$(echo ${temp_url##*/}) +temp_url="$(curl -sI ...
Adding one more free in error condition
@@ -524,6 +524,7 @@ ACVP_RESULT acvp_kdf108_kat_handler(ACVP_CTX *ctx, JSON_Object *obj) { rv = acvp_kdf108_output_tc(ctx, &stc, r_tobj); if (rv != ACVP_SUCCESS) { ACVP_LOG_ERR("JSON output failure in kdf135 tpm module"); + json_value_free(r_tval); acvp_kdf108_release_tc(&stc); goto err; }
use pthread_sigmask instead of sigprocmask in mult-threaded contexts
@@ -178,7 +178,7 @@ static void setupSignalsMainThread(void) { sigaddset(&ss, SIGINT); sigaddset(&ss, SIGQUIT); sigaddset(&ss, SIGALRM); - if (sigprocmask(SIG_UNBLOCK, &ss, NULL) != 0) { + if (pthread_sigmask(SIG_UNBLOCK, &ss, NULL) != 0) { PLOG_F("pthread_sigmask(SIG_UNBLOCK)"); } }
Ensure cipher_generic_initkey gets passed the actual provider ctx We were not correctly passing the provider ctx down the chain during initialisation of a new cipher ctx. Instead the provider ctx got set to NULL.
@@ -175,7 +175,8 @@ static void * alg##_##kbits##_##lcmode##_newctx(void *provctx) \ if (ctx != NULL) { \ cipher_generic_initkey(ctx, kbits, blkbits, ivbits, \ EVP_CIPH_##UCMODE##_MODE, flags, \ - PROV_CIPHER_HW_##alg##_##lcmode(kbits), NULL); \ + PROV_CIPHER_HW_##alg##_##lcmode(kbits), \ + provctx); \ } \ return ctx; ...
Fix sensors set state and config (todo, test if clip sensors work again)
@@ -678,9 +678,10 @@ int DeRestPluginPrivate::changeSensorConfig(const ApiRequest &req, ApiResponse & for (; pi != pend; ++pi) { ResourceItemDescriptor rid; + ResourceItem *item = 0; if (getResourceItemDescriptor(QString("config/%1").arg(pi.key()), rid)) { - ResourceItem *item = sensor->item(rid.suffix); + item = senso...
test: add platone test case test_001CreateWallet_0010CreateSixWallet fix the issue aitos-io#1176 teambition task id:
@@ -270,6 +270,43 @@ START_TEST(test_001CreateWallet_0009CreateWalletWithInternalGeneration) } END_TEST +START_TEST(test_001CreateWallet_0010CreateSixWallet) +{ + BSINT32 rtnVal; + BoatIotSdkInit(); + BoatPlatoneWalletConfig wallet = get_platone_wallet_settings(); + extern BoatIotSdkContext g_boat_iot_sdk_context; + wa...
OcDevicePathLib: Fix AppendFileNameDevicePath DP size
@@ -44,14 +44,14 @@ AppendFileNameDevicePath ( if (DevicePath != NULL && FileName != NULL) { FileNameSize = StrSize (FileName); - FileDevicePathNodeSize = (FileNameSize + sizeof (*FilePathNode) + sizeof (*DevicePath)); + FileDevicePathNodeSize = (FileNameSize + SIZE_OF_FILEPATH_DEVICE_PATH + END_DEVICE_PATH_LENGTH); Fi...
apps/verify.c: Change an old comment to clarify what the callback does
@@ -286,16 +286,19 @@ static int cb(int ok, X509_STORE_CTX *ctx) cert_error, X509_STORE_CTX_get_error_depth(ctx), X509_verify_cert_error_string(cert_error)); + + /* + * Pretend that some errors are ok, so they don't stop further + * processing of the certificate chain. Setting ok = 1 does this. + * After X509_verify_ce...
acrn-config: add comments to the generated misc_cfg.h code Comments will be added for the HV_SUPPORTED_MAX_CLOS/MAX_MBA_CLOS_NUM_ENTRIES/MAX_CACHE_CLOS_NUM_ENTRIES macros in generated code
@@ -353,6 +353,26 @@ def generate_file(config): max_mba_clos_entries = common_clos_max max_cache_clos_entries = common_clos_max + comments_max_clos = ''' +/* + * The maximum CLOS that is allowed by ACRN hypervisor, + * its value is set to be least common Max CLOS (CPUID.(EAX=0x10,ECX=ResID):EDX[15:0]) + * among all sup...
Tonemapping, I guess;
@@ -15,6 +15,7 @@ layout(constant_id = 1012) const bool flag_metalnessTexture = true; layout(constant_id = 1013) const bool flag_roughnessTexture = true; layout(constant_id = 1014) const bool flag_occlusionTexture = false; layout(constant_id = 1015) const bool flag_clearcoatTexture = false; +layout(constant_id = 1016) ...
extra-build-config: Add documentation for the ISOLATED_CPUS configuration variable
@@ -278,6 +278,18 @@ the header extension should set the following in local.conf: ENABLE_DWC2_HOST = "1" +## Set CPUs to be isolated from the standard Linux scheduler + +By default Linux will use all available CPUs for scheduling tasks. For real time +purposes there can be an advantage to isolating one or more CPUs fro...
VERSION bump to version 1.4.58
@@ -37,7 +37,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 4) -set(SYSREPO_MICRO_VERSION 57) +set(SYSREPO_MICRO_VERSION 58) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
vabits - subtract from the 'end' address instead of from 'bits'. This is a fixup for the commits on calc base address on AArch64 based on autodetected VA space size As reported by: Brian Brooks
@@ -76,14 +76,15 @@ svm_get_global_region_base_va () unformat_init_clib_file (&input, fd); while (unformat_check_input (&input) != UNFORMAT_END_OF_INPUT) { - unformat (&input, "%llx-%llx", &start, &end); + if (unformat (&input, "%llx-%llx", &start, &end)) + end--; unformat_skip_line (&input); } unformat_free (&input); ...
Correct noise waveform for
@@ -67,7 +67,7 @@ namespace blit { if(channel.waveform_offset & 0b10000) { // if the waveform offset overflows then generate a new // random noise sample - channel.noise = (rand() & 0x0fff) - 0x07ff; + channel.noise = (blit::random() & 0xffff) - 0x7fff; } channel.waveform_offset &= 0xffff; @@ -78,7 +78,6 @@ namespace b...
Update the CODEOWNERS information.
# Default/global reviewers (if not overridden later) * @anthonyzxu @dongyaozu -Makefile @terryzouhao +Makefile @terryzouhao @NanlinXie /hypervisor/ @anthonyzxu @dongyaozu /devicemodel/ @anthonyzxu @ywan170 /doc/ @dbkinder @deb-intel @NanlinXie @@ -21,7 +21,10 @@ Makefile @terryzouhao /misc/debug_tools/acrn_trace/ @ywan...
Poison freed memory objects When compiled w/ -DCLIB_DEBUG=1, paint 0x13 across freed memory blocks. Should result in a characteristic SIGSEGV if someone dereferences a pointer in a freed vector element, etc.
@@ -4271,6 +4271,14 @@ void mspace_put (mspace msp, void *p_arg) mheap_put_trace ((u64)p_arg, psize); } +#if CLIB_DEBUG > 0 + /* Poison the object */ + { + size_t psize = mspace_usable_size (object_header); + memset (object_header, 0x13, psize); + } +#endif + /* And free it... */ mspace_free (msp, object_header); }
coll: fixing banging order/multiple bangs in threaded
@@ -174,8 +174,8 @@ static void coll_enqueue_threaded_msgs(t_coll *x, t_msg *m) } if (m->m_flag & 4) { //fprintf(stderr,"0x04\n"); - sprintf(s, "coll: finished reading %d lines from text file '%s'", m->m_line, x->x_s->s_name); - coll_q_enqueue(x, s); + //sprintf(s, "coll: finished reading %d lines from text file '%s'",...
Change interface of fileutil.bywalk to fix recursing
@@ -4,15 +4,19 @@ pkg fileutil = type walkiter = struct dirstk : std.dir#[:] curdir : byte[:][:] - iterdir : bool ;; impl iterable walkiter -> byte[:] - const bywalk : (dir : std.dir# -> walkiter) + const bywalk : (dir : byte[:] -> walkiter) ;; -const bywalk = {d - -> [.dirstk = std.sldup([d][:]), .curdir = std.sldup([...
nullmac: now a MAC that does nothing
static void send_packet(mac_callback_t sent, void *ptr) { - packetbuf_set_attr(PACKETBUF_ATTR_FRAME_TYPE, FRAME802154_DATAFRAME); - NETSTACK_RDC.send(sent, ptr); } /*---------------------------------------------------------------------------*/ static void packet_input(void) { - NETSTACK_NETWORK.input(); } /*-----------...
libcupsfilters: In ghostscript() add monochrome PCLm printing If a job for PCLm output is requested to be monochrome/grayscale (like with "print-color-mode=monochrome"), use the sgray.icc color profile instead of srgb.icc to get grayscale output.
@@ -1498,8 +1498,16 @@ ghostscript(int inputfd, /* I - File descriptor input stream */ cupsArrayAdd(gs_args, strdup("-sOutputICCProfile=srgb.icc")); else if (h.cupsColorSpace == CUPS_CSPACE_ADOBERGB) cupsArrayAdd(gs_args, strdup("-sOutputICCProfile=a98.icc")); + } else if (!cm_disabled && + outformat == OUTPUT_FORMAT_P...
BugID:17660006: Fix stm32l4xx flash hal read bug
@@ -320,7 +320,7 @@ int32_t hal_flash_read(hal_partition_t pno, uint32_t *poff, void *buf, uint32_t start_addr = FLASH_flat_addr(start_addr); #endif - len = (((buf_size % 8) == 0) ? (buf_size / 8) : (buf_size / 8 + 1)); + len = (((buf_size % 8) == 0) ? buf_size : (ROUND_DOWN(buf_size, 8) + 8)); pdata = (uint64_t *)krhi...
init: do not call pm_initialize() in os_start pm_initialize() should be called in MCU-specific routine not a general init routine. So pm_initialize() in os_start() should be removed. In case of arm/s5j, it is called twice, at first in up_pminitialize() and then os_start(). This should be fixed.
#include <tinyara/mm/shm.h> #include <tinyara/kmalloc.h> #include <tinyara/init.h> -#ifdef CONFIG_PM -#include <tinyara/pm/pm.h> -#endif #include "sched/sched.h" #include "signal/signal.h" @@ -538,12 +535,6 @@ void os_start(void) g_idletcb.cmn.group->tg_flags = GROUP_FLAG_NOCLDWAIT; #endif -#ifdef CONFIG_PM - /* Initia...
compiler-families/arm-compilers-devel: use $modpath variable in post script
@@ -101,7 +101,7 @@ fi # cache path to generic compiler modulename -generic=`find /opt/arm/modulefiles/Generic-AArch64/ -name arm-hpc-compiler | awk -F '/opt/arm/modulefiles/' '{print $2}'` +generic=`find $modpath/Generic-AArch64/ -name arm-hpc-compiler | awk -F "$modpath" '{print $2}'` if [ ! -n "${generic}" ];then ec...
Update CMakeLists.txt Add ODWReachability to Mac build
@@ -117,17 +117,11 @@ if(PAL_IMPLEMENTATION STREQUAL "CPP11") ) endif() - if(BUILD_IOS) list(APPEND SRCS pal/posix/NetworkInformationImpl.mm # TODO: this unit below needs to be deprecated and removed ../third_party/Reachability/ODWReachability.m ) - else() - list(APPEND SRCS - pal/posix/NetworkInformationImpl.mm - ) - ...
esp32/modutime: Add time.time() function.
#include <stdio.h> #include <string.h> +#include <sys/time.h> #include "extmod/utime_mphal.h" +STATIC mp_obj_t time_time(void) { + struct timeval tv; + gettimeofday(&tv, NULL); + return mp_obj_new_int(tv.tv_sec); +} +MP_DEFINE_CONST_FUN_OBJ_0(time_time_obj, time_time); + STATIC const mp_rom_map_elem_t time_module_globa...
Mute strerror/strcpy warnings is MSVC build.
/* Command line interface for Brotli library. */ +/* Mute strerror/strcpy warnings. */ +#if !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + #include <errno.h> #include <fcntl.h> #include <stdio.h>
esp_eth: Recover the w5500 driver from missed io interrupt If the GPIO interrupt is re-asserted too quickly it could be missed. If this happens the driver goes silent and never receives any data. Recover by periodic checks of the IO signal level
@@ -314,8 +314,12 @@ static void emac_w5500_task(void *arg) uint8_t *buffer = NULL; uint32_t length = 0; while (1) { - // block indefinitely until some task notifies me - ulTaskNotifyTake(pdTRUE, portMAX_DELAY); + // check if the task receives any notification + if (ulTaskNotifyTake(pdTRUE, pdMS_TO_TICKS(1000)) == 0 &&...
apps/examples/nxp_example: Fix NXP example app for Protected build Remove direct call to kernel API from NXP example app in case of protected build.
@@ -30,7 +30,8 @@ int nxp_demo_sample_main(int argc, char *argv[]) { printf("[New] nxp_demo_sample!!\n"); +#ifndef CONFIG_BUILD_PROTECTED imxrt_log_print_kernelbuffer(); - +#endif return 0; }
Added tests in singly-linked list
@@ -156,6 +156,19 @@ UNIT_TEST(test_list) UNIT_TEST_ASSERT(tail->next == NULL); UNIT_TEST_ASSERT(list_length(lst) == 4); + /* + * Check that list contains elements 0, 1, 2, 3 + * and not others + * 0 --> 1 --> 2 --> 3 --> NULL + */ + UNIT_TEST_ASSERT(list_contains(lst, &elements[0])); + UNIT_TEST_ASSERT(list_contains(l...
Spell out if the gpcheckcat tests have PASSED or FAILED and follow the convention of explicitly using these keywords. Any failed tests, including not reported, will add the 'FAILED' keyword in the summary.
@@ -4146,7 +4146,7 @@ def checkcatReport(): buildGraph() reportedCheck = ['duplicate','missing_extraneous','inconsistent','foreign_key','acl', 'orphaned_toast_tables'] myprint('') - myprint('SUMMARY REPORT') + myprint('SUMMARY REPORT: %s' % ('FAILED' if len(GV.failedChecks) else 'PASSED')) myprint('====================...
stm32/powerctrl: Disable HSI if not needed to save a bit of power.
extern uint32_t _estack[]; #define BL_STATE ((uint32_t*)&_estack) +static inline void powerctrl_disable_hsi_if_unused(void) { + #if !MICROPY_HW_CLK_USE_HSI && (defined(STM32F4) || defined(STM32F7) || defined(STM32H7)) + // Disable HSI if it's not used to save a little bit of power + __HAL_RCC_HSI_DISABLE(); + #endif +}...
nimble/host: Fix LE meta event length in debug code * fix length comparison bug * Revert "fix length comparison bug" This reverts commit * reflect length change as result of moving pointer forward
@@ -675,7 +675,7 @@ ble_hs_dbg_event_disp(uint8_t *evbuf) ble_hs_dbg_num_comp_pkts_disp(evdata, len); break; case BLE_HCI_EVCODE_LE_META: - ble_hs_dbg_le_event_disp(evdata[0], len, evdata + 1); + ble_hs_dbg_le_event_disp(evdata[0], len-1, evdata + 1); break; case BLE_HCI_EVCODE_AUTH_PYLD_TMO: ble_hs_dbg_auth_pyld_tmo_d...
behn: emit %doze on any rescheduling of the next timer
:: if :next-wake not soon enough, reset it :: ?^ next-wake - ?: (gte date.u.first u.next-wake) + ?: =(date.u.first u.next-wake) event-core (emit-doze `date.u.first) :: there was no unix wakeup timer; set one
p8dtu: Configure BMC graphics We can no-longer read the values from the BMC in the way we have in the past. Values were provided by Eric Chen of SMC.
@@ -233,9 +233,17 @@ static const struct bmc_sw_config bmc_sw_smc = { .ipmi_oem_hiomap_cmd = IPMI_CODE(0x3a, 0x5a), }; +/* Provided by Eric Chen (SMC) */ +const struct bmc_hw_config p8dtu_bmc_hw = { + .scu_revision_id = 0x02010303, + .mcr_configuration = 0x00000577, + .mcr_scu_mpll = 0x000050c0, + .mcr_scu_strap = 0x00...
Modernize cups-libtool.m4.
@@ -1583,7 +1583,7 @@ Optional Features: --disable-dbus build without DBUS support --disable-shared do not create shared libraries --enable-libtool-unsupported=/path/to/libtool - build with libtool (UNSUPPORTED!) + build with libtool (UNSUPPORTED) --enable-debug build with debugging symbols --enable-debug-guards build ...
Fix ESP32 build check.
@@ -81,8 +81,8 @@ CK_RV prvProvisionPrivateECKey( CK_SESSION_HANDLE xSession, CK_KEY_TYPE xPrivateKeyType = CKK_EC; CK_OBJECT_CLASS xPrivateKeyClass = CKO_PRIVATE_KEY; - ( void * ) pucPrivateKey; - ( void * ) xPrivateKeyLength; + ( void ) pucPrivateKey; + ( void ) xPrivateKeyLength; xResult = C_GetFunctionList( &pxFunc...
[Audio] Fix mistake in audio HowTo documentation PCM decoder has been removed from kernel audio framework. Modify the audio HowTo documentation accordingly to reflect this change.
@@ -11,7 +11,7 @@ Tizen RT's audio framework has 4 components namely; ## Audio Subsystem Audio Subsystem binds the upper half of audio devices exposed to the application to the lower half through POSIX like system APIs. -[os/Audio](../os/audio) has the audio & pcm interfaces to support POSIX standard APIs on audio and ...
VERSION bump to version 1.4.111
@@ -46,7 +46,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 4) -set(SYSREPO_MICRO_VERSION 110) +set(SYSREPO_MICRO_VERSION 111) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_...
install new R name
@@ -4,10 +4,12 @@ autotools collection, the Valgrind memory debugger, EasyBuild, Spack, and R. The % begin_ohpc_run % ohpc_comment_header Install Development Tools \ref{sec:install_dev_tools} \begin{lstlisting}[language=bash,keywords={},literate={-}{-}1] +# Install autotool meta-package [sms](*\#*) (*\install*) ohpc-au...
clang-format: avoid namespaces to be added would be only be done in clang > 6 but not in clang 5 thanks to see
@@ -33,7 +33,8 @@ ContinuationIndentWidth: 8 Cpp11BracedListStyle: false DerivePointerAlignment: false DisableFormat: false -FixNamespaceComments: true +#TODO: Set `FixNamespaceComments` to `true` after we switched to `clang-format-6` or newer. +#FixNamespaceComments: true IndentCaseLabels: false IndentWidth: 8 IndentW...
spiffs: Fix for case when CONFIG_SPIFFS_USE_MTIME is not defined Closes:
@@ -76,7 +76,9 @@ static int vfs_spiffs_mkdir(void* ctx, const char* name, mode_t mode); static int vfs_spiffs_rmdir(void* ctx, const char* name); static void vfs_spiffs_update_mtime(spiffs *fs, spiffs_file f); static time_t vfs_spiffs_get_mtime(const spiffs_stat* s); +#ifdef CONFIG_SPIFFS_USE_MTIME static int vfs_spif...
Fix memory leak when test request fails.
@@ -638,6 +638,7 @@ test_image_files( if (cupsLastError() >= IPP_STATUS_ERROR_BAD_REQUEST) { printf("FAIL (Unable to print %s: %s)\n", job_name, cupsLastErrorString()); + ippDelete(response); httpClose(http); return (false); } @@ -665,6 +666,7 @@ test_image_files( { printf("FAIL (Unable to get job state for '%s': %s)\n...
Always release output buffer If rotation changed, the dequeued output buffer was never released. Move it to a finally block to avoid the leak.
@@ -86,6 +86,7 @@ public class ScreenEncoder implements Device.RotationListener { MediaCodec.BufferInfo bufferInfo = new MediaCodec.BufferInfo(); while (!checkRotationChanged() && !eof) { int outputBufferId = codec.dequeueOutputBuffer(bufferInfo, -1); + try { if (checkRotationChanged()) { // must restart encoding with ...
Fix bootloader version.
#define APP_RX_DATA_SIZE (2048) #define APP_TX_DATA_SIZE (2048) -#define BOOTLOADER_VERSION (0xABCD0002) USBD_CDC_LineCodingTypeDef LineCoding = { @@ -30,6 +29,7 @@ static volatile uint8_t vcp_connected = 0; static volatile uint32_t flash_buf_idx=0; static volatile uint8_t flash_buf[FLASH_BUF_SIZE]; static const uint32...
used the CheckCXXCompilerFlag module of Cmake to check the compiler whether or not supporting c++11.
@@ -10,6 +10,7 @@ enable_testing() include(cmake/GetGitRevisionDescription.cmake) include(cmake/version.cmake) include(GNUInstallDirs) +include(CheckCXXCompilerFlag) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) @@ -64,7 +65,14 @@ if (USINGISYSTEM AND GCC_VERSION VERSION_LESS 6.0) endfor...
blockwise: Declare strict prototype Observed when building for Tizen:RT Tested-by: IoTivity Jenkins
@@ -105,7 +105,7 @@ bool oc_blockwise_handle_block(oc_blockwise_state_t *buffer, const uint8_t *incoming_block, uint32_t incoming_block_size); -void oc_blockwise_scrub_buffers(); +void oc_blockwise_scrub_buffers(void); void oc_blockwise_scrub_buffers_for_client_cb(void *cb);
esp32s2: reset systimer clk on startup
#include "driver/periph_ctrl.h" #include "bootloader_clock.h" #include "soc/syscon_reg.h" +#include "hal/clk_gate_ll.h" static const char *TAG = "clk"; @@ -313,6 +314,8 @@ __attribute__((weak)) void esp_perip_clk_init(void) DPORT_CLEAR_PERI_REG_MASK(DPORT_BT_LPCK_DIV_FRAC_REG, DPORT_LPCLK_SEL_8M); DPORT_SET_PERI_REG_MA...
OcDeviceMiscLib: Fix compilation on MSVC
@@ -243,7 +243,7 @@ OcReloadOptionRoms ( if (BindingHandleCount == 0) { HandleIndex = ConvertHandleToHandleIndex (HandleArray[Index]); UnicodeSPrint (RomFileName, sizeof (RomFileName), L"Handle%X", HandleIndex); - Status = ReloadPciRom (PciIo->RomImage, PciIo->RomSize, RomFileName); + Status = ReloadPciRom (PciIo->RomI...
pg_dump: Address FIXME in dumpAttrDef Authored-by: Brent Doil
@@ -17549,12 +17549,11 @@ dumpAttrDef(Archive *fout, const AttrDefInfo *adinfo) qualrelname = pg_strdup(fmtQualifiedDumpable(tbinfo)); /* - * GPDB_12_MERGE_FIXME: upstream always uses ONLY here, why gpdb need - * condition? Fix corresponding tests in t/002_pg_dump.pl if you change - * this. - * - * If the table is the ...
Update sprite_eng.h minor fix to description
* \date 10/2013 * * Sprite engine providing advanced sprites manipulation and operations.<br> - * This unit use both the tile cache engine (see tilecache.h file for more info)<br> + * This unit use both the vram memory manager (see vram.h file for more info)<br> * and the Sega Genesis VDP sprite capabilities (see vdp_s...
Add missing context size to pipeline properties
@@ -528,6 +528,7 @@ out: } struct ocf_pipeline_properties ocf_mngt_cache_add_core_pipeline_properties = { + .priv_size = sizeof(struct ocf_cache_add_core_context), .finish = ocf_mngt_cache_add_core_finish, .steps = { OCF_PL_STEP(ocf_mngt_cache_add_core_prepare),
fixed Time Gap in test
@@ -116,18 +116,39 @@ class BasicFuncTests : public ::testing::Test, unsigned receivedEvnetsLocal = 0; if (waitForRequests(timeout)) { - for (auto request : receivedRequests) + size_t size = receivedRequests.size(); + for (size_t index = 0; index < size; index++) { + auto request = receivedRequests.at(index); auto payl...
[ZARCH] fix data prefetch type in sdot
@@ -37,7 +37,7 @@ static FLOAT sdot_kernel_32(BLASLONG n, FLOAT *x, FLOAT *y) "xgr %%r1,%%r1 \n\t" "0: \n\t" "pfd 1,1024(%%r1,%2) \n\t" - "pfd 2,1024(%%r1,%3) \n\t" + "pfd 1,1024(%%r1,%3) \n\t" "vl %%v16,0(%%r1,%2) \n\t" "vl %%v17,16(%%r1,%2) \n\t"
Escape quotes for android yml
@@ -23,7 +23,7 @@ jobs: choco install --no-progress -y android-sdk choco install --no-progress -y ninja new-item "C:\Users\runneradmin\.android\repositories.cfg" -ItemType "file" - echo yes | C:\Android\android-sdk\tools\bin\sdkmanager.bat "cmake;3.10.2.4988404 ndk;21.1.6352462" + echo yes | C:\Android\android-sdk\tool...
Allocate and zero out the memory of MyTmGxactLocal
@@ -379,7 +379,7 @@ InitProcess(void) } MyPgXact = &ProcGlobal->allPgXact[MyProc->pgprocno]; MyTmGxact = &ProcGlobal->allTmGxact[MyProc->pgprocno]; - MyTmGxactLocal = (TMGXACTLOCAL*)MemoryContextAlloc(TopMemoryContext, sizeof(TMGXACTLOCAL)); + MyTmGxactLocal = (TMGXACTLOCAL*)MemoryContextAllocZero(TopMemoryContext, siz...
Change error type of rule name exceeding maximum length
@@ -441,7 +441,7 @@ int DeRestPluginPrivate::createRule(const ApiRequest &req, ApiResponse &rsp) { if (name.size() > MAX_RULE_NAME_LENGTH) { - rsp.list.append(errorToMap(ERR_MISSING_PARAMETER, QString("/rules/name"), QString("invalid/missing parameters in body"))); + rsp.list.append(errorToMap(ERR_INVALID_VALUE, QStrin...
model unalias for class=rr
@@ -39,10 +39,11 @@ alias mars.param = paramId; alias mars.origin = centre; if (section2Used == 1) { - constant marsLamModel = 'lam'; - alias mars.model = marsLamModel; # model redefined. It is not 'glob' +# constant marsLamModel = 'lam'; +# alias mars.model = marsLamModel; # model redefined. It is not 'glob' alias mar...
CBLK: More renaming
#include <string.h> #include <errno.h> #include <err.h> +#include <pthread.h> +#include <semaphore.h> + #include <sys/stat.h> #include <sys/mman.h> -#include <pthread.h> #include "snap_internal.h" #include "libsnap.h" pthread_mutex_t globalLock = PTHREAD_MUTEX_INITIALIZER; -typedef struct snap_cblk_dev { +struct cblk_r...
kazuho comment and disable packet threshold for handshake packets
@@ -2612,10 +2612,18 @@ static int do_detect_loss(quicly_loss_t *ld, uint64_t largest_acked, uint32_t de init_acks_iter(conn, &iter); /* Mark packets as lost if they are smaller than the largest_acked and - * outside either time-threshold or packet-threshold windows. + * outside either time-threshold or packet-threshol...
Fix fix path stitching error
@@ -52,7 +52,7 @@ rule("wdk.mof") -- get wmimofck local wmimofck = nil if arch == "x64" then - wmimofck = path.join(wdk.bindir, wdk.sdkver, "x86", "x64", "wmimofck.exe") + wmimofck = path.join(wdk.bindir, wdk.sdkver, "x64", "wmimofck.exe") else wmimofck = path.join(wdk.bindir, wdk.sdkver, "x86", "wmimofck.exe") end
Update yolint.
@@ -3,14 +3,14 @@ RESOURCES_LIBRARY() IF (HOST_OS_LINUX) - DECLARE_EXTERNAL_RESOURCE(YOLINT sbr:1147019219) - DECLARE_EXTERNAL_RESOURCE(YOLINT_NEXT sbr:1147019219) + DECLARE_EXTERNAL_RESOURCE(YOLINT sbr:1155249540) + DECLARE_EXTERNAL_RESOURCE(YOLINT_NEXT sbr:1155249540) ELSEIF (HOST_OS_DARWIN) - DECLARE_EXTERNAL_RESOUR...
Update windows ev code.
@@ -741,7 +741,7 @@ static void janet_unlisten(JanetListenerState *state) { janet_unlisten_impl(state); } -void janet_loop1_impl(int has_timeout, JanetTimeout timeout) { +void janet_loop1_impl(int has_timeout, JanetTimestamp to) { ULONG_PTR completionKey = 0; DWORD num_bytes_transfered = 0; LPOVERLAPPED overlapped;
edit diff BUGFIX wrong cid attr module
@@ -230,10 +230,10 @@ sr_edit_find_cid(struct lyd_node *edit, sr_cid_t *cid, int *meta_own) if (strcmp(attr->name.name, "cid")) { continue; } - if ((attr->format == LY_VALUE_XML) && strcmp(attr->name.module_ns, "urn:ietf:params:xml:ns:yang:1")) { + if ((attr->format == LY_VALUE_XML) && strcmp(attr->name.module_ns, "htt...
rust: Turn readme links into absolute links
@@ -45,7 +45,7 @@ With this in place, the bindings should be built when you run `cargo build`. ### Local Build -To build the bindings explicitly as part of the elektra build process, we add the option `rust` to `-DBINDINGS`. Now [build libelektra](../../../doc/COMPILE.md) and the bindings will be built as part of this ...
Fix - find out if training has diverged when eval-metric is provided
@@ -256,7 +256,13 @@ static void Train( ctx->SaveProgress(); - if (IsNan(ctx->LearnProgress.LearnErrorsHistory.back()[0])) { + const auto& errors = ctx->LearnProgress.LearnErrorsHistory.back(); + int objectiveIndex = 0; + if (ctx->Params.MetricOptions.Get().EvalMetric.IsSet() && + ctx->Params.MetricOptions.Get().EvalMe...
Temporary fix for ESP8266 target on Travis JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik
@@ -27,7 +27,7 @@ install-apt-get-deps: # Fetch and build crosstool-NG with support for Xtensa. install-xtensa-kx106-gcc: - wget https://dl.espressif.com/dl/xtensa-lx106-elf-linux64-1.22.0-88-gde0bdc1-4.8.5.tar.gz -O ../xtensa-lx106-elf-linux64-1.22.0-88-gde0bdc1-4.8.5.tar.gz + wget https://dl.espressif.com/dl/xtensa-l...
add difftime()
* 2021-02-08 Meco Man add settimeofday() stime() * 2021-02-10 Meco Man add ctime_r() and re-implement ctime() * 2021-02-11 Meco Man fix bug #3183 - align days[] and months[] to 4 bytes + * add difftime() */ #include <sys/time.h> @@ -163,6 +164,11 @@ char* ctime(const time_t *tim_p) return asctime (localtime (tim_p)); }...
github: Fix changelog config file.
@@ -134,7 +134,7 @@ jobs: uses: mikepenz/release-changelog-builder-action@v2 with: toTag: ${{ github.sha }} - configuration: '.github/workflows/cl_config.json' + configuration: '.github/workflows/changelog.json' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOC:Update standard reference of SW design guidelines For open source, just need to refer FuSa standard instead of listing concrete fulfillment matrix. Add related FuSa standard reference and remove related fulfillment matrix. V1-->V2: Make reference more clear according to David'comments
@@ -77,27 +77,11 @@ below: Architecture Level ================== -Fulfillment to FuSa Standards ------------------------------ - -The fulfillment matrix of error detection and error handling on architecture -level to FuSa Standards [IEC_61508-7]_ in ACRN hypervisor is shown in -:numref:`fulfillment_matrix_arch_level` b...
Add pyccl tests for non limber
@@ -567,6 +567,34 @@ def check_cls(cosmo): assert_( all_finite(ccl.angular_cl(cosmo, nc1, lens1, ell_arr)) ) assert_( all_finite(ccl.angular_cl(cosmo, nc1, lens2, ell_arr)) ) +def check_cls_nonlimber(cosmo): + """ + Check that cls functions can be run with non_limber functionalities. + """ + # Number density input + z ...
update sctimer project.
typedef struct { sctimer_cbt sctimer_cb; PORT_TIMER_WIDTH last_compare_value; + uint8_t noNeedClearFlag; } sctimer_vars_t; sctimer_vars_t sctimer_vars; @@ -58,14 +59,15 @@ void sctimer_setCompare(PORT_TIMER_WIDTH val){ // the timer is already late, schedule the ISR right now manually // not sure how to do this in scum,...
hw/mcu/nordic: Fix configuring GPIO for P1 PIN_CNF should be indexed by pin index within port range (0-31).
@@ -58,6 +58,7 @@ hal_gpio_init_in(int pin, hal_gpio_pull_t pull) { uint32_t conf; NRF_GPIO_Type *port; + int pin_index = HAL_GPIO_INDEX(pin); switch (pull) { case HAL_GPIO_PULL_UP: @@ -73,7 +74,7 @@ hal_gpio_init_in(int pin, hal_gpio_pull_t pull) } port = HAL_GPIO_PORT(pin); - port->PIN_CNF[pin] = conf; + port->PIN_CN...
Fix Cypress Psoc64 AFQP_WIFI_NetworkGetNonExistingNetwork Test.
#include "bt_hal_manager_types.h" #endif +/* For kvstore_init() */ +#include "kvstore.h" + /* Logging Task Defines. */ #define mainLOGGING_MESSAGE_QUEUE_LENGTH ( 90 ) #define mainLOGGING_TASK_STACK_SIZE ( configMINIMAL_STACK_SIZE * 8 ) @@ -287,6 +290,9 @@ void vApplicationDaemonTaskStartupHook( void ) printf( "Retarget...
Perform GP7 `without_asserts` pipeline runs on `gpdb_src` trigger. Change GP7 `gpdb_main_without_asserts` pipeline compilation job (`compile_gpdb_rhel8`) to use `gpdb_src` (every commit) resource trigger instead of the once per day `reduced-frequency-trigger` trigger. The pipeline impacted is: When this change is commi...
@@ -4,7 +4,7 @@ rc-build-type: prod rc-build-type-gcs: "" reduced-frequency-trigger-start: 1:00 AM reduced-frequency-trigger-stop: 2:00 AM -reduced-frequency-trigger-flag: true -gpdb_src-trigger-flag: false +reduced-frequency-trigger-flag: false +gpdb_src-trigger-flag: true configure_flags: "--enable-tap-tests" configu...
BugID:16966632: add some print info when fetch public message
#define DEVICE_SECRET "aWp2N4ObAk8SZfJ81SSpfArZz16jVG45" #define MQTT_SUB_TOPIC "/a1kecMbd2yb/mqtttest/get" #define MQTT_PUB_TOPIC "/a1kecMbd2yb/mqtttest/update" -#define MQTT_PUB_MSG "{\"\"id\"\":\"\"a1D3oxFDwQJ_333333_mid\"\",\"\"params\"\":{\"\"_sys_device_mid\"\":\"\"example.demo.module-id\"\",\"\"_sys_device_pid\"...
Version: Use fences for code block
@@ -8,10 +8,12 @@ information. The same information can be retrieved at run-time using +``` system/elektra/version/constants/KDB_VERSION system/elektra/version/constants/KDB_VERSION_MAJOR system/elektra/version/constants/KDB_VERSION_MICRO system/elektra/version/constants/KDB_VERSION_MINOR +``` This is the API to progra...
more CPU like leaf-estimation-iterations
@@ -75,7 +75,7 @@ namespace NCatboostCuda { TDescentPoint nextPointInfo = TOracle::Create(dim); bool updated = false; - for (ui32 iteration = 1; iteration < Iterations;) { + for (ui32 iteration = 0; iteration < Iterations;) { const auto& currentPointInfo = estimator.GetCurrentPoint(); const auto& moveDirection = estima...
Add README section explaining --turn-screen-off
@@ -256,6 +256,20 @@ scrcpy --no-control scrcpy -n ``` +### Turn screen off + +It is possible to turn the device screen off while mirroring on start with a +command-line option: + +```bash +scrcpy --turn-screen-off +scrcpy -S +``` + +Or by pressing `Ctrl`+`o` at any time. + +To turn it back on, press `POWER` (or `Ctrl`...
Travis: Always use latest version of GCC on Linux
@@ -28,11 +28,11 @@ matrix: sources: - ubuntu-toolchain-r-test packages: - - g++-7 + - g++-8 env: - ASAN=ON - - CC_COMPILER=gcc-7 - - CXX_COMPILER=g++-7 + - CC_COMPILER=gcc-8 + - CXX_COMPILER=g++-8 - os: linux compiler: clang @@ -87,10 +87,10 @@ matrix: sources: - ubuntu-toolchain-r-test packages: - - g++-7 + - g++-8 e...
Fix typos in coder_test_operators These were causing the tests to pass even if they shouldn't (Luckily our tests were actually passing...)
@@ -22,15 +22,15 @@ end local function check(f_lua, f_titan, ...) local ok_lua, r_lua = pcall(f_lua, ...) - local ok_titan, b_titan = pcall(f_titan, ...) + local ok_titan, r_titan = pcall(f_titan, ...) if ok_lua ~= ok_titan then return false, string.format("lua %s but titan %s", - (ok1 and "didn't crash" or "crashed"),...
Do not call "nvcc --version" when no CUDA available
@@ -2372,7 +2372,7 @@ class Cuda(object): self.peerdirs = ['build/cuda'] - self.cuda_version_list = map(int, self.cuda_version.value.split('.')) + self.cuda_version_list = map(int, self.cuda_version.value.split('.')) if self.cuda_version.value else None self.nvcc_flags = ['-std=c++14' if self.cuda_version_list >= [9, 0...
Do not pop closure from stack
@@ -1126,7 +1126,6 @@ static InterpretResult run(VM *vm) { if (function == NULL) return INTERPRET_COMPILE_ERROR; push(vm, OBJ_VAL(function)); ObjClosure *closure = newClosure(vm, function); - pop(vm); frame->ip = ip; call(vm, closure, 0);
tests: internal: slist: add tests for the new split_tokens api
@@ -101,6 +101,60 @@ void test_slist_split_string() } +void token_check(struct mk_list *list, int id, char *str) +{ + int i = 0; + int len; + int ret; + struct mk_list *head; + struct flb_slist_entry *e = NULL; + + mk_list_foreach(head, list) { + if (i == id) { + e = mk_list_entry(head, struct flb_slist_entry, _head); ...
in_serial: match return value for new collector API
@@ -322,7 +322,12 @@ int in_serial_init(struct flb_input_instance *in, IN_SERIAL_COLLECT_NSEC, config); #endif - return ret; + + if (ret == -1) { + return -1; + } + + return 0; } /* Plugin reference */
Subaru safety: ES_LKAS message should not be forwarded
@@ -123,6 +123,10 @@ static int subaru_fwd_hook(int bus_num, CAN_FIFOMailBox_TypeDef *to_fwd) { if (addr == 545) { return -1; } + // ES LKAS + if (addr == 802) { + return -1; + } return 0; // Main CAN }
Use the correct maximum indent Found by OSS-Fuzz GH:
@@ -37,8 +37,8 @@ int BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u), if (indent < 0) indent = 0; - else if (indent > 128) - indent = 128; + else if (indent > 64) + indent = 64; dump_width = DUMP_WIDTH_LESS_INDENT(indent); rows = len / dump_width;
tests/pup/hub/status_light: Use finite animation. Otherwise, this test never completes.
@@ -11,7 +11,9 @@ hub = ThisHub() # Note: In real programs, use every 2 or 3 degrees to save memory. rainbow = [Color.BLUE >> d for d in range(360)] -hub.light.animate(rainbow, 100) +# Start the animation. +INTERVAL = 50 +hub.light.animate(rainbow, INTERVAL) -while True: - wait(10) +# Wait for two whole cycles. +wait(2...
FortunaStake QT Update
@@ -60,10 +60,16 @@ FortunastakeManager::FortunastakeManager(QWidget *parent) : //if(!GetBoolArg("-reindexaddr", false)) // timer->start(30000); + /* Old Timer QTimer::singleShot(1000, this, SLOT(updateNodeList())); QTimer::singleShot(5000, this, SLOT(updateNodeList())); QTimer::singleShot(10000, this, SLOT(updateNodeL...
gadgets/collector/socket: Add missing Close() on iterators of links
@@ -109,6 +109,12 @@ func RunCollector(pid uint32, podname, namespace, node string, proto socketcolle var it *link.Iter iters := []*link.Iter{} + defer func() { + for _, it := range iters { + it.Close() + } + }() + if proto == socketcollectortypes.TCP || proto == socketcollectortypes.ALL { it, err = getTCPIter() if err...
Console compatibility broken fixing the following issues: Non-printable characters except for the newtmgr control characters being input to the console were ignored. console_read() was replacing single characters by '\0'
@@ -117,11 +117,17 @@ console_read(char *str, int cnt, int *newline) } cmd = ev->ev_arg; len = strlen(cmd->line); + if ((cnt - 1) < len) { len = cnt - 1; - } + if (len > 0) { memcpy(str, cmd->line, len); str[len] = '\0'; + } else { + str[len] = cmd->line[0]; + } + } + os_eventq_put(avail_queue, ev); *newline = 1; retur...
Fix append_ia5 function to not assume NUL terminated strings ASN.1 strings may not be NUL terminated. Don't assume they are. CVE-2021-3712
@@ -529,17 +529,25 @@ static int append_ia5(STACK_OF(OPENSSL_STRING) **sk, /* First some sanity checks */ if (email->type != V_ASN1_IA5STRING) return 1; - if (!email->data || !email->length) + if (email->data == NULL || email->length == 0) + return 1; + if (memchr(email->data, 0, email->length) != NULL) return 1; if (*...
added to the error message
@@ -183,15 +183,15 @@ GetQuadGhostZones(int nnodes, int ndims, if (first[i] < 0 || first[i] >= dims[i]) { - debug1 << "bad Index on first[" << i << "] dims is: " - << dims[i] << endl; + debug1 << "bad Index on first[" << i << "]=" << first[i] + << " dims is: " << dims[i] << endl; badIndex = true; } if (last[i] < 0 || l...
OcBootManagementLib: Leave RAM disk fixme for device ScanPolicy
@@ -56,6 +56,12 @@ OcGetDevicePolicyType ( return 0; } + // + // FIXME: This code does not take care of RamDisk exception as specified per + // https://github.com/acidanthera/bugtracker/issues/335. + // Currently we do not need it, but in future we may. + // + while (!IsDevicePathEnd (DevicePath)) { if (DevicePathType ...
[chainmaker][#677]add add BoatChainmakerWalletSetOrgId function declaration
@@ -31,6 +31,8 @@ api_chainmaker.c defines the Ethereum wallet API for BoAT IoT SDK. #define BOAT_RETRY_CNT 10 #define BOAT_TXID_LEN 64 +static BOAT_RESULT BoatChainmakerWalletSetOrgId(BoatHlchainmakerWallet *wallet_ptr, const BCHAR *org_id_ptr); + BUINT8 get_fibon_data(BUINT8 n) { if ((n == 1) || (n == 2) || (n == 0))...
fixed format for prop_sctp_multihomed.json
{ - "transport": [ - { - "value": "SCTP", + "transport":{ + "value": ["SCTP","TCP"], "precedence": 1 }, - { - "value": "TCP", - "precedence": 1 - } - ], "multihoming": { "value": true, "precedence": 1 }, - "local_ips": [ - { - "value": "10.0.2.15", - "precedence": 1 - }, - { - "value": "192.168.56.2", + "local_ips":{ +...