message
stringlengths
6
474
diff
stringlengths
8
5.22k
CMake: Fix minor spelling mistake in comment
@@ -19,7 +19,7 @@ function (add_externaltest testname) set (INCLUDE_COMMON "${INCLUDE_COMMON_FILE}KDB=\"${KDB_COMMAND}\"") set (testscriptname "${CMAKE_CURRENT_BINARY_DIR}/${testname}") configure_file ("${filename}" "${testscriptname}" @ONLY) - # don't acutally add as test, only run via `kdb run_all` + # don't actually...
Fix rsa_keygen macros
@@ -311,7 +311,7 @@ ACVP_RESULT acvp_rsa_keygen_kat_handler (ACVP_CTX *ctx, JSON_Object *obj) { ACVP_LOG_ERR("Unable to parse 'mode' from JSON."); return ACVP_MALFORMED_JSON; } - if (strncmp(mode_str, ACVP_MODE_KEYGEN, strlen(ACVP_ALG_HMAC_SHA1))) { + if (strncmp(mode_str, ACVP_MODE_KEYGEN, strlen(ACVP_MODE_KEYGEN))) {...
Add a `site-packages-widget` folder
@@ -76,6 +76,22 @@ import CoreLocation print(error.localizedDescription) } + do { + guard let modsDir = FileManager.default.sharedDirectory?.appendingPathComponent("modules") else { + return + } + + if FileManager.default.fileExists(atPath: modsDir.path) { + try FileManager.default.removeItem(at: modsDir) + } + + let s...
Correctly decode bools.
?- typ %address `@ux`(rash wor hex) %uint `@ud`(rash wor hex) - %bool =(0 (rash wor hex)) + %bool =(1 (rash wor hex)) == :: %string
Fix API_Hardware.Stm32 text
@@ -30,7 +30,7 @@ option(API_Hardware.Esp32 "option for Hardware.Esp32") # Stm32 only -option(API_Hardware.Stm32 "option for Hardware.Esp32") +option(API_Hardware.Stm32 "option for Hardware.Stm32") #################################################################
[BSP][qemu-vexpress-a9] add SOC chip type definition
@@ -17,4 +17,10 @@ config $PKGS_DIR source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" + +config SOC_VEXPRESS_A9 + bool + select ARCH_ARM_CORTEX_A9 + default y + source "$BSP_DIR/drivers/Kconfig"
Update doc/note/io-input-output.md for io_bind
@@ -210,5 +210,28 @@ methods. Wuffs code does not reference an `io_buffer` directly. ## Binding -TODO: discuss `io_bind`, which temporarily adapts a slice of bytes into an -`io_buffer`. +An `io_bind` block temporarily adapts a slice of bytes as an `io_reader` or +`io_writer`. This is typically done to call other functi...
Add memory freeing
@@ -810,7 +810,8 @@ void mpi_core_cond_assign( data_t * input_X, ASSERT_COMPARE( X, len_Y_byte, Y, len_Y_byte ); exit: - ; + mbedtls_free( X ); + mbedtls_free( Y ); #undef MAX_LEN } @@ -873,7 +874,10 @@ void mpi_core_cond_swap( data_t * input_X, ASSERT_COMPARE( Y, len_X_byte, tmp_X, len_X_byte ); exit: - ; + mbedtls_fr...
Contract: Correct prefix of namespace
@@ -240,7 +240,7 @@ usedby = plugin spec description = Recommendations are similar to needs, but the backend also validates if they are not included. -[info/metadata] +[infos/metadata] type = null status = implemented usedby = spec
in_disk: use new input logging api
#include <fluent-bit/flb_info.h> #include <fluent-bit/flb_input.h> +#include <fluent-bit/flb_input_plugin.h> #include <fluent-bit/flb_config.h> #include <fluent-bit/flb_error.h> #include <fluent-bit/flb_str.h> @@ -78,7 +79,7 @@ static int update_disk_stats(struct flb_in_disk_config *ctx) fp = fopen("/proc/diskstats", "...
Add missing open options.
@@ -189,6 +189,14 @@ pkg sys = const Otrunc : fdopt = 0x400 const Odir : fdopt = 0x20000 + const Oshlock : fdopt = 0x0010 /* open with shared file lock */ + const Oexlock : fdopt = 0x0020 /* open with exclusive file lock */ + const Oasync : fdopt = 0x0040 /* signal pgrp when data ready */ + const Ofsync : fdopt = 0x008...
nrf/bluetooth: Set GAP_ADV_MAX_SIZE to 31 (s132/s140). For s132 and s140, GAP_ADV_MAX_SIZE was currently set to BLE_GATT_ATT_MTU_DEFAULT, which is 23. The correct value should have been 31, but there are no define for this in the s132/s140 header files as for s110. Updating define in ble_drv.c to the correct value of 3...
@@ -106,7 +106,7 @@ static mp_obj_t mp_gattc_char_data_observer; #if (BLUETOOTH_SD == 132) || (BLUETOOTH_SD == 140) #include "nrf_nvic.h" -#define BLE_GAP_ADV_MAX_SIZE BLE_GATT_ATT_MTU_DEFAULT +#define BLE_GAP_ADV_MAX_SIZE 31 #define BLE_DRV_CONN_CONFIG_TAG 1 static uint8_t m_adv_handle;
CI: add -fp-model precise for icx/icpx
@@ -370,8 +370,8 @@ jobs: env: CC: /home/runner/.local/bin/icx CXX: /home/runner/.local/bin/icpx - CFLAGS: -Wall -Werror -march=native -wno-tautological-constant-compare - CXXFLAGS: -Wall -Werror -march=native -wno-tautological-constant-compare + CFLAGS: -Wall -Werror -march=native -fp-model precise + CXXFLAGS: -Wall -...
Gateway scanner: fix clang c++11 warnings
@@ -73,11 +73,11 @@ GatewayScanner::GatewayScanner(QObject *parent) : GatewayScanner::~GatewayScanner() { - Q_ASSERT(d_ptr != 0); + Q_ASSERT(d_ptr != nullptr); if (d_ptr) { delete d_ptr; - d_ptr = 0; + d_ptr = nullptr; } } @@ -92,7 +92,7 @@ void GatewayScanner::queryGateway(const QString &url) { Q_D(GatewayScanner); - ...
add tests for connection stats
@@ -23,8 +23,31 @@ EOT my $port = $server->{port}; - # establish connections to the maximum (and write partial requests so that the server would accept(2) the connections) +subtest 'the stats of active and inactive connections in HTTP/1.1' => sub { my @conns; + + # establish connections to the half of the maximum + for...
Simplify manifest import verification. As long as it's native code and a manifest file, it's fine. Blocking manifest files from package imports is more trouble than it's worth, so don't bother doing it.
@@ -4451,16 +4451,6 @@ static void enter_module(lily_parse_state *parser, lily_module_entry *m) lily_next_token(parser->lex); } -static void verify_manifest_import(lily_parse_state *parser, - lily_module_entry *m) -{ - if (parser->ims->is_package_import || - (m->flags & MODULE_IS_PREDEFINED) || - ((m->flags & MODULE_NO...
Clarify that region string coordinate system is 1-based Expand the description of arithmetic-oriented rname/start/end notation versus human-oriented "rname:start-end" region string notation. For the original chr1/10000/20000 example, "10,000-base region" could be misunderstood as referring to the start position. Change...
@@ -17,15 +17,20 @@ Glossary region A genomic region, stated relative to a reference sequence. A - region consists of reference name ('chr1'), start (10000), and + region consists of reference name ('chr1'), start (15000), and end (20000). Start and end can be omitted for regions spanning - a whole chromosome. If end i...
IP, MAC and port typedefs added
@@ -99,6 +99,25 @@ typedef struct { uint8_t cal; /*!< Calibration value */ } esp_ap_t; +/** + * \brief IP structure + */ +typedef struct { + uint8_t ip[4]; /*!< IPv4 address */ +} esp_ip_t; + +/** + * \brief Port variable + */ +typedef uint16_t esp_port_t; + +/** + * \brief MAC address + */ +typedef struct { + uint8_t ...
chip/mt8192_scp: update memory map Updates memory maps. SCP view 0x1000_0000 maps to AP view 0x5000_0000. SCP view 0xf000_0000 maps to AP view 0x6000_0000. BRANCH=none TEST=make BOARD=asurada_scp
* SCP address AP address Note * * 0x0000_0000 SRAM - * 0x1000_0000 0x6000_0000 un-cached DRAM - * 0x2000_0000 0x7000_0000 un-cached DRAM + * 0x1000_0000 0x5000_0000 CPU DRAM + * 0x2000_0000 0x7000_0000 * 0x3000_0000 * * 0x4000_0000 * 0xc000_0000 0x8000_0000 * 0xd000_0000 0x2000_0000 * 0xe000_0000 0x3000_0000 - * 0xf000...
include/fpsensor_crypto.h: Format with clang-format BRANCH=none TEST=none
@@ -67,11 +67,9 @@ int derive_positive_match_secret(uint8_t *output, * @param tag_size the size of |tag|. * @return EC_SUCCESS on success and error code otherwise. */ -int aes_gcm_encrypt(const uint8_t *key, int key_size, - const uint8_t *plaintext, - uint8_t *ciphertext, int text_size, - const uint8_t *nonce, int nonc...
[cmake] fix install errors with python3 introduced by (2to3)
@@ -41,16 +41,15 @@ import sys def copy_tree(src, dst, preserve_mode=1, preserve_times=1, preserve_symlinks=0, update=0, verbose=1, dry_run=0): if not dry_run and not os.path.isdir(src): - raise DistutilsFileError, \ - "cannot copy tree '%s': not a directory" % src + raise DistutilsFileError("cannot copy tree '%s': not...
[kernel] Fix parallel mat_mul kernel
@@ -45,9 +45,16 @@ void mat_mul_parallel_finegrained(int32_t const *__restrict__ A, uint32_t N, uint32_t P, uint32_t id, uint32_t numThreads) { // Merge outer loops to balance the workload - uint32_t chunks = (M * P + numThreads - 1) / numThreads; - uint32_t start = id * chunks; - uint32_t end = (id == numThreads - 1) ...
the HDK flow works now for KU3 and FGT
@@ -88,17 +88,18 @@ if [ $DDR4_USED == "TRUE" ] && [ $BRAM_USED != "TRUE" ]; then \$dimmDir/snap_ddr4pins_flash_gt.xdc \\' $2 fi +if [ $FPGACARD == "KU3" ]; then sed -i '/top top/ a\ - \$rootDir/setup/donut_link.xdc \\\ \$rootDir/setup/donut_pblock.xdc \\' $2 +fi if [ $BRAM_USED == "TRUE" ]; then - if [ -d $DIMMTEST/ex...
Add CFLAGS to pkg-config.
@@ -8,6 +8,6 @@ Description: YARA library URL: https://virustotal.github.io/yara/ Version: @PACKAGE_VERSION@ Requires.private: @PC_REQUIRES_PRIVATE@ -Cflags: -I${includedir} +Cflags: -I${includedir} @CFLAGS@ Libs: -L${libdir} -lyara Libs.private: @PC_LIBS_PRIVATE@ @PTHREAD_LIBS@
give numeric index to lambda
@@ -1001,11 +1001,9 @@ void train_reconet( struct reconet_s* config, int index_lambda = nn_get_in_arg_index(nn_train, 0, "lambda"); int num_lambda = nn_generic_domain(nn_train, 0, "lambda")->dims[0]; - const char* lam = "l"; const char* lams[num_lambda]; - for (int i = 0; i < num_lambda; i++) - lams[i] = lam; + lams[i]...
tests: fix quat_look test
@@ -754,7 +754,7 @@ TEST_IMPL(GLM_PREFIX, quat_look) { glm_quat(q1, glm_rad(180.0f), 1.0f, 0.0f, 0.0f); GLM(quat_look)(v1, q1, m1); - glm_look(v1, (vec3){0.0f, 0.0f, 1.0f}, GLM_YUP, m2); + glm_look(v1, (vec3){0.0f, 0.0f, 1.0f}, (vec3){0.0f, -1.0f, 0.0f}, m2); ASSERTIFY(test_assert_mat4_eq(m1, m2));
Updated debug messages for netconn
@@ -67,7 +67,7 @@ esp_cb(esp_cb_t* cb) { esp_conn_set_arg(conn, nc); /* Set argument for connection */ if (esp_sys_mbox_isvalid(&listen_api->mbox_accept)) { if (!esp_sys_mbox_putnow(&listen_api->mbox_accept, nc)) { - ESP_DEBUGF(ESP_DBG_NETCONN, "API: cannot put server connection to accept mbox\r\n"); + ESP_DEBUGF(ESP_D...
OcMachoLib: Skip section-based relocs with ABS SymbolNumber.
@@ -86,6 +86,14 @@ InternalLookupRelocationByOffset ( for (Index = 0; Index < NumRelocs; ++Index) { Relocation = &Relocs[Index]; + // + // A section-based relocation entry can be skipped for absolute symbols. + // + if ((Relocation->Extern == 0) + && (Relocation->SymbolNumber == MACH_RELOC_ABSOLUTE)) { + continue; + } ...
CMake: Suppress giant OpenVR warnings;
@@ -446,6 +446,9 @@ if(LOVR_ENABLE_HEADSET) if(LOVR_USE_OPENVR) add_definitions(-DLOVR_USE_OPENVR) target_sources(lovr PRIVATE src/modules/headset/openvr.c) + if(UNIX) + target_compile_options(lovr PRIVATE -Wno-typedef-redefinition) + endif() endif() if(LOVR_USE_OPENXR) add_definitions(-DLOVR_USE_OPENXR)
AudioDxe: Fix NULL check
@@ -383,7 +383,7 @@ HdaControllerScanCodecs ( DEBUG ((DEBUG_VERBOSE, "HdaControllerScanCodecs(): start\n")); EFI_STATUS Status; - EFI_PCI_IO_PROTOCOL *PciIo = HdaControllerDev->PciIo; + EFI_PCI_IO_PROTOCOL *PciIo; UINT16 HdaStatests; EFI_HDA_IO_VERB_LIST HdaCodecVerbList; UINT32 VendorVerb; @@ -399,6 +399,8 @@ HdaContr...
Docs: Add warning about utilities that collect sensitive info from pg_statistic
columns in <codeph>pg_statistic</codeph>. Everything else is stored in slots, which are groups of associated columns whose content is identified by a code number in one of the slot's columns.</p> - <p><codeph>pg_statistic</codeph> should not be readable by the public, since even statistical - information about a table'...
os/arch/arm/src/imxrt: Move up_disable_watchdog() definition This patch moves the up_disable_watchdog() outside CONFIG_WATCHDOG_FOR_IRQ scope for visibility to other modules only having CONFIG_WATCHDOG enabled.
@@ -382,6 +382,7 @@ void up_wdog_keepalive(void) { imxrt_wdog_refresh(WDOG1); } +#endif /**************************************************************************** * Name: up_watchdog_disable @@ -397,4 +398,3 @@ void up_watchdog_disable(void) { imxrt_wdog_disable_all(); } -#endif
Handle gitlab 404 error
@@ -25,8 +25,15 @@ def retry(func: TR) -> TR: try: res = func(self, *args, **kwargs) except (IOError, EOFError, gitlab.exceptions.GitlabError) as e: - if isinstance(e, gitlab.exceptions.GitlabError) and e.response_code != 500: - # Only retry on error 500 + if isinstance(e, gitlab.exceptions.GitlabError): + if e.respons...
Disable gso for interop because sendmsg fails with EIO
@@ -13,7 +13,7 @@ RUN apt-get update && \ make -j$(nproc) && make install-strip && cd .. && rm -rf nghttp3 && \ git clone --depth 1 https://github.com/ngtcp2/ngtcp2 && \ cd ngtcp2 && autoreconf -i && \ - ./configure && \ + ./configure CXXFLAGS=-DNGTCP2_ENABLE_UDP_GSO=0 && \ make -j$(nproc) && make install-strip && cp e...
Add TODO in python for allowing different key types in dict type.
@@ -310,6 +310,7 @@ value py_loader_impl_return(PyObject * result, type_id id) keys = PyDict_Keys(result); keys_size = PyList_Size(keys); + /* TODO: Allow different key types in the future */ for (iterator = 0; iterator < keys_size; ++iterator) { PyObject * key = PyList_GetItem(keys, iterator);
Avoid overflowing FDSET when using select(2). There is a problem in the rand_unix.c code when the random seed fd is greater than or equal to FD_SETSIZE and the FDSET overruns its limit and walks the stack.
@@ -390,7 +390,7 @@ static int wait_random_seeded(void) } /* Open /dev/random and wait for it to be readable */ if ((fd = open(DEVRANDOM_WAIT, O_RDONLY)) != -1) { - if (DEVRANDM_WAIT_USE_SELECT) { + if (DEVRANDM_WAIT_USE_SELECT && fd < FD_SETSIZE) { FD_ZERO(&fds); FD_SET(fd, &fds); while ((r = select(fd + 1, &fds, NULL...
added tests for the -o flag
@@ -11,6 +11,10 @@ describe("pallenec", function() local test = require "__test__" print(test.f(0)) ]]) + util.set_file_contents("__test__script__flag__.lua", [[ + local test = require "__test__flag__" + print(test.f(0)) + ]]) end) after_each(function() @@ -18,7 +22,9 @@ describe("pallenec", function() os.remove("__tes...
dpdk: display EAL init args on startup
@@ -1210,6 +1210,7 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input) conf->eal_init_args_str = format (conf->eal_init_args_str, "%s ", conf->eal_init_args[i]); + clib_warning ("EAL init args: %s", conf->eal_init_args_str); ret = rte_eal_init (vec_len (conf->eal_init_args), (char **) conf->eal_init_args);
Fix ceph install deps librbd2 and librbd2-devel rpms do not exist in any repo I can find (RHEL, fedora, RHCS, https://download.ceph.com/). Change to librbd1 and librbd-devel.
@@ -19,7 +19,7 @@ if [ y`uname`y = yLinuxy ]; then # for glusterfs $SUDO yum install -y glusterfs-api glusterfs-api-devel # for ceph - $SUDO yum install -y librados2 librados2-devel librbd2 librbd2-devel + $SUDO yum install -y librados2 librados2-devel librbd1 librbd-devel ;; *) echo "TODO: only fedora/rhel/centos are ...
ghost: remove some unused symbols BRANCH=none TEST=make passes
#define GPIO_PG_EC_RSMRST_ODL GPIO_SEQ_EC_RSMRST_ODL #define GPIO_POWER_BUTTON_L GPIO_GSC_EC_PWR_BTN_ODL #define GPIO_SYS_RESET_L GPIO_SYS_RST_ODL -#define GPIO_VOLUME_DOWN_L GPIO_EC_VOLDN_BTN_ODL -#define GPIO_VOLUME_UP_L GPIO_EC_VOLUP_BTN_ODL #define GPIO_WP_L GPIO_EC_WP_ODL -#define GPIO_ID_1_EC_KB_BL_EN GPIO_EC_BAT...
framework/task_manager: Fix memory deallocation after task_manager_restart Before restarting the task, STOP_CB information and EXIT_CB information should be freed.
@@ -384,6 +384,32 @@ static int taskmgr_restart(int handle, int caller_pid) return TM_NO_PERMISSION; } + if (TM_STOP_CB_INFO(handle) != NULL) { + if (STOP_CBDATA(handle) != NULL) { + if (STOP_CBDATA_MSG(handle) != NULL) { + TM_FREE(STOP_CBDATA_MSG(handle)); + STOP_CBDATA_MSG(handle) = NULL; + } + TM_FREE(STOP_CBDATA(ha...
Initialize usermq only when first audio_open usermq should not be initialized after first audio_open, because previous thread may using that usermq
@@ -185,7 +185,13 @@ static int audio_open(FAR struct file *filep) /* Save the new open count on success */ upper->crefs = tmp; + + /* Initialize usermq only when it is the first open */ + + if (upper->crefs == 1) { upper->usermq = NULL; + } + ret = OK; errout_with_sem:
Add more GearsetFlags
@@ -28,7 +28,15 @@ namespace FFXIVClientStructs.FFXIV.Client.UI.Misc { [Flags] public enum GearsetFlag : byte { + None = 0x00, Exists = 0x01, + Unknown02 = 0x02, + Unknown04 = 0x04, + HeadgearVisible = 0x08, + WeaponsVisible = 0x10, + VisorEnabled = 0x20, + Unknown40 = 0x40, + Unknown80 = 0x80 } [StructLayout(LayoutKin...
Added --vanilla-execute-yt-token-path option support to the ya make issue:DEVTOOLS-6536
@@ -100,6 +100,7 @@ def execute( target_stderr_path=None, operation_log_path=None, operation_description=None, + yt_token_path=None, ): """ Executes a command on the YT. Listed below are options whose behavior is different from yatest.common.execute @@ -208,6 +209,8 @@ def execute( executor_stderr = sys.stderr else: ex...
CLEANUP: refactored the notify_io_complete() function.
@@ -485,37 +485,40 @@ void notify_io_complete(const void *cookie, ENGINE_ERROR_CODE status) return; } - int notify = 0; - int pended = 0; + bool notify_thread = false; + bool premature_notify = false; LOCK_THREAD(thr); - if (thr != conn->thread || conn->state == conn_closing || !conn->io_blocked) { - conn->premature_io...
ec_export: Other parameters are exportable with domain parameters
@@ -470,9 +470,6 @@ int ec_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0 && (selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) == 0) return 0; - if ((selection & OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS) != 0 - && (selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == ...
Disable headless OpenXR extension for Android
@@ -341,7 +341,9 @@ static bool openxr_init(HeadsetConfig* config) { { "XR_FB_hand_tracking_aim", &state.features.handTrackingAim, true }, { "XR_FB_hand_tracking_mesh", &state.features.handTrackingMesh, true }, { "XR_FB_keyboard_tracking", &state.features.keyboardTracking, true }, +#ifndef __ANDROID__ { "XR_MND_headles...
bump cube to v4.3.5
Name: %{pname}%{PROJ_DELIM} -Version: 4.3.3 +Version: 4.3.5 Release: 1%{?dist} Summary: Score-P and Scalasca performance report explorer License: BSD-style license
Config notifications now also smaller.
(sh-note (weld "new " (~(cr-show cr cir) ~))) ?: ?=($remove -.dif) (sh-note (weld "rip " (~(cr-show cr cir) ~))) - =. +> - (sh-note (weld " in " (~(cr-show cr cir) ~))) %- sh-note + %+ weld + (weld ~(cr-phat cr cir) ": ") ?- -.dif $source %+ weld ?:(add.dif "onn " "off ")
Add support for custom artifact name
@@ -18,6 +18,11 @@ on: default: "bin" required: false type: string + artifact_name: + description: 'Artifact output file name' + default: 'firmware' + required: false + type: string jobs: matrix: @@ -117,5 +122,5 @@ jobs: - name: Archive (${{ steps.variables.outputs.display-name }}) uses: actions/upload-artifact@v2 wit...
Fix constants name in comment
@@ -228,7 +228,7 @@ public final class Device { } /** - * @param mode one of the {@code SCREEN_POWER_MODE_*} constants + * @param mode one of the {@code POWER_MODE_*} constants */ public static boolean setScreenPowerMode(int mode) { IBinder d = SurfaceControl.getBuiltInDisplay();
DEV_InitDeviceFromDescription(): Simplify code
@@ -608,34 +608,29 @@ static bool DEV_InitDeviceFromDescription(Device *device, const DeviceDescriptio Q_ASSERT(sub.isValid()); const auto uniqueId = uniqueIdFromTemplate(sub.uniqueId, device->item(RAttrExtAddress)->toNumber()); + Resource *rsub = DEV_GetSubDevice(device, nullptr, uniqueId); - Resource *rsub = nullptr;...
CBLK: Add exit code checking
@@ -145,6 +145,10 @@ if [ "${TEST}" == "READ_BENCHMARK" ]; then snap_cblk -C0 ${options} -b${nblocks} \ -R${random_seed} -s0 -t${t} \ --read /dev/null ); + if [ $? -ne 0 ]; then + printf "${bold}ERROR:${normal} bad exit code!\n" >&2 + exit 1 + fi echo done done @@ -161,6 +165,11 @@ if [ "${TEST}" == "PERF" ]; then perf...
fix marshal to string
@@ -113,7 +113,7 @@ namespace SLua public static string lua_typenamestr(IntPtr luaState, LuaTypes type) { IntPtr p = lua_typename(luaState, (int)type); - return Marshal.PtrToStringAnsi(p); + return Marshal.PtrToStringAuto(p); } public static string luaL_typename(IntPtr luaState, int stackPos) { @@ -536,7 +536,7 @@ name...
damu: set charging current to 0 when enable charger OTG When enable charger OTG, we need to set charging current to 0 BRANCH=kukui TEST=make -j BOARD=damu TEST=make buildall
@@ -63,6 +63,8 @@ int pd_set_power_supply_ready(int port) gpio_set_level(GPIO_EN_USBC_CHARGE_L, 1); gpio_set_level(GPIO_EN_PP5000_USBC, 1); + if (IS_ENABLED(CONFIG_CHARGER_OTG) && IS_ENABLED(CONFIG_CHARGER_ISL9238C)) + charger_set_current(CHARGER_SOLO, 0); /* notify host of power info change */ pd_send_host_event(PD_EV...
Oops bug fix
#include <windows.h> #include <DbgHelp.h> #include <spdlog/spdlog.h> -#include <filesystem> - #include "Image.h" -#include "Options.h" - -#pragma comment( lib, "dbghelp.lib" ) -#pragma comment(linker, "/DLL") - -void PoolPatch(Image* apImage); -void VirtualInputFix(Image* apImage); -void PatchAmd(Image* apImage); -void...
add Coverity Scan to Travis CI
language: c -sudo: required + +env: + global: + # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created + # via the "travis encrypt" command using the project repo's public key + - secure: "nJd2Zlm34sbNfH+pz/pVMr6+N5IaChlGKs+qR+b2an3hZLxbMYRpeIl75VJWuGNxfrLbNXwnzyo6PcnDp+jlNl92XQSjv9KI2hDbUX6Akek/IrV+Fob7L...
[kernel] rename RT_TINY_SIZE to RT_USING_TINY_SIZE
@@ -135,7 +135,7 @@ RTM_EXPORT(_rt_errno); */ void *rt_memset(void *s, int c, rt_ubase_t count) { -#ifdef RT_TINY_SIZE +#ifdef RT_USING_TINY_SIZE char *xs = (char *)s; while (count--) @@ -218,7 +218,7 @@ RTM_EXPORT(rt_memset); */ void *rt_memcpy(void *dst, const void *src, rt_ubase_t count) { -#ifdef RT_TINY_SIZE +#ifd...
Resolve GPDB_91_MERGE_FIXME in ATPrepAlterColumnType().
@@ -9863,8 +9863,19 @@ ATPrepAlterColumnType(List **wqueue, * we waste effort, and because we need the expression to be parsed * against the original table rowtype. */ - /* GPDB: we always need the RTE */ - /* GPDB_91_MERGE_FIXME: Why do we always need the RTE? */ + /* + * GPDB: we always need the RTE. The main reason ...
graph-disable-group-feed: archive the graph if necessary
/- spider, - met=metadata-store + met=metadata-store, + graph=graph-store /+ strandio, resource, graph-view :: =* strand strand:spider group.action groups+group.action metadatum(feed.config [~ ~]) +?: ?=([~ ^] feed.config.metadatum) + ;< ~ bind:m + %+ poke-our %graph-store + :- %graph-update-1 + !> ^- update:graph + [n...
Mirror USB serial number change to macOS USB backend.
@@ -1670,11 +1670,34 @@ static CFStringRef copy_printer_interface_deviceid(printer_interface_t printer, CFStringAppendFormat(extras, NULL, CFSTR("MDL:%@;"), model); } - if (serial == NULL && desc.iSerialNumber != 0) + if (desc.iSerialNumber != 0) { - serial = copy_printer_interface_indexed_description(printer, desc.iSe...
Core(M): Removed invalid character at beginning of the file.
-^/**************************************************************************//** - * @file cmsis_armclang.h +/**************************************************************************//** + * @file cmsis_armclang_ltm.h * @brief CMSIS compiler armclang (Arm Compiler 6) header file - * @version V1.0.0 - * @date 13. Mar...
groups: fixing bad glob
:~ title+'Groups' info+'A suite of applications to communicate on Urbit' color+0xee.5432 - glob-http+['https://bootstrap.urbit.org/glob-0v2.mvimg.otm4r.bo1uf.ttq1v.ufa2l.glob' 0v2.mvimg.otm4r.bo1uf.ttq1v.ufa2l] + glob-http+['https://bootstrap.urbit.org/glob-0v2.2tc97.h3e0k.7b26d.a0ma8.em5ce.glob' 0v2.2tc97.h3e0k.7b26d....
BugID:17865306: Fix compile error at platform/mcu directory
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ + +#ifdef CONFIG_AOS_CLI + #include "aos/aos.h" #include "esp_ota_ops.h" #include "esp_log.h" @@ -105,3 +108,6 @@ int board_cli_init(void) { return aos_cli_register_command(&boot_from_cmd); } + +#endif +
lp_io: Enable esp32c6 lp_io unit tests
@@ -31,6 +31,7 @@ def test_legacy_sigma_delta(dut: IdfDut) -> None: @pytest.mark.esp32 @pytest.mark.esp32s2 @pytest.mark.esp32s3 +@pytest.mark.esp32c6 @pytest.mark.generic @pytest.mark.parametrize('config', CONFIGS, indirect=True) def test_rtc_io(dut: IdfDut) -> None:
Tweak a style issue
@@ -1799,7 +1799,7 @@ int SSL_write_ex(SSL *s, const void *buf, size_t num, size_t *written) int SSL_write_early_data(SSL *s, const void *buf, size_t num, size_t *written) { - int ret; + int ret, early_data_state; switch (s->early_data_state) { case SSL_EARLY_DATA_NONE: @@ -1830,14 +1830,13 @@ int SSL_write_early_data(...
ikev2: fix memory leak in child SA traffic selector vector isn't freed when freeing child SA Type: fix
@@ -246,10 +246,7 @@ ikev2_sa_free_proposal_vector (ikev2_sa_proposal_t ** v) }; static void -ikev2_sa_free_all_child_sa (ikev2_child_sa_t ** childs) -{ - ikev2_child_sa_t *c; - vec_foreach (c, *childs) +ikev2_sa_free_child_sa (ikev2_child_sa_t * c) { ikev2_sa_free_proposal_vector (&c->r_proposals); ikev2_sa_free_propo...
OpenCanopy: Do not delegate past pointer events
@@ -976,6 +976,7 @@ GuiDrawLoop ( UINT64 LoopStartTsc; UINT64 LastTsc; UINT64 NewLastTsc; + BOOLEAN ObjectHeld; CONST GUI_IMAGE *CursorImage; @@ -983,6 +984,7 @@ GuiDrawLoop ( mNumValidDrawReqs = 0; HoldObject = NULL; + ObjectHeld = FALSE; // // Clear previous inputs. @@ -1024,7 +1026,8 @@ GuiDrawLoop ( // GuiPointerGe...
1. Fixing page offset check in funcslower 2. Not using BPF_F_REUSE_STACKID in funcslower stack traces 3. Combining an ifdef check
@@ -109,13 +109,9 @@ struct data_t { BPF_HASH(entryinfo, u64, struct entry_t); BPF_PERF_OUTPUT(events); -#ifdef USER_STACKS -BPF_STACK_TRACE(stacks, 2048); -#else -#ifdef KERNEL_STACKS +#if defined(USER_STACKS) || defined(KERNEL_STACKS) BPF_STACK_TRACE(stacks, 2048); #endif -#endif static int trace_entry(struct pt_regs...
esp_http_client: free cached data in case connection gets closed for redirection In case of `esp_http_client_read` based workflow, we cache data that is received during fetch header stage. In case, there is URL redirection and we have to close the connection on URL, port change then we must discard earlier cached data....
@@ -770,6 +770,17 @@ error: return NULL; } +static void esp_http_client_cached_buf_cleanup(esp_http_buffer_t *res_buffer) +{ + /* Free cached data if any, that was received during fetch header stage */ + if (res_buffer && res_buffer->orig_raw_data) { + free(res_buffer->orig_raw_data); + res_buffer->orig_raw_data = NULL...
ci(docs): fix missing build doc for target esp32c3
@@ -28,7 +28,7 @@ check_docs_lang_sync: parallel: matrix: - DOCLANG: ["en", "zh_CN"] - DOCTGT: ["esp32", "esp32s2"] + DOCTGT: ["esp32", "esp32s2", "esp32c3"] check_docs_gh_links: extends:
host/mesh: Return ETIMEDOUT if k_sem_take call times out EAGAIN is used in some other places in the code, e.g. if node is not provisioned when a model tries to send a message. This change helps to differentiated if the acknowledged message timed out from other failers. This is port of
@@ -65,6 +65,10 @@ int bt_mesh_msg_ack_ctx_wait(struct bt_mesh_msg_ack_ctx *ack, int32_t timeout) err = k_sem_take(&ack->sem, timeout); bt_mesh_msg_ack_ctx_clear(ack); + if (err == -EAGAIN) { + return -ETIMEDOUT; + } + return err; }
src/st-flash/flash.c: improved error message
@@ -236,7 +236,7 @@ int main(int ac, char** av) { err = stlink_fread(sl, o.filename, o.format == FLASH_FORMAT_IHEX, o.addr, o.size); if (err == -1) { - printf("stlink_fread() == -1\n"); + printf("could not read main memory (%d)\n", err); goto on_error; } } else if (o.area == FLASH_OPTION_BYTES) {
Fix CBOR_EXPORT expansion for Sphinx
@@ -2029,7 +2029,7 @@ INCLUDE_FILE_PATTERNS = # recursively expanded use the := operator instead of the = operator. # This tag requires that the tag ENABLE_PREPROCESSING is set to YES. -PREDEFINED = CBOR_CUSTOM_ALLOC CBOR_RESTRICT_POINTER= +PREDEFINED = CBOR_CUSTOM_ALLOC CBOR_RESTRICT_POINTER= CBOR_EXPORT # If the MACR...
Notify that we are done with the framebuffers ASAP
@@ -138,6 +138,8 @@ void system_redraw(System *sys) { SDL_RenderCopy(renderer, __ltdc_texture_RGB565, NULL, &renderer_dest); } + sys->notify_redraw(); + SDL_RenderPresent(renderer); #ifndef NO_FFMPEG_CAPTURE @@ -145,8 +147,6 @@ void system_redraw(System *sys) { capture(); } #endif - - sys->notify_redraw(); }
chat: wrap chatWindow in position='relative' Fixes the banner overlapping the share banner.
@@ -3,6 +3,8 @@ import { RouteComponentProps } from "react-router-dom"; import _ from "lodash"; import bigInt, { BigInteger } from 'big-integer'; +import { Col } from '@tlon/indigo-react'; + import GlobalApi from "~/logic/api/global"; import { Patp, Path } from "~/types/noun"; import { Contacts } from "~/types/contact-...
Fix address allocation from source to target during kext injection
@@ -590,7 +590,7 @@ PrelinkedInjectKext ( Context, &ExecutableContext, InfoPlistRoot, - Context->PrelinkedLastAddress, + Context->PrelinkedLastLoadAddress, KmodAddress ); @@ -637,13 +637,15 @@ PrelinkedInjectKext ( return Status; } - if (XmlNodeAppend (Context->KextList, "dict", NULL, NewInfoPlist) == NULL) { + if (Xml...
Renamed Core-M and Core-A to CMSIS-Core(M) and CMSIS-Core(A)
@@ -14,8 +14,8 @@ var arr = []; // fill array arr.push( new tabElement( "GEN", "/General/html/", "General") ); - arr.push( new tabElement( "CORE_A", "/Core_A/html/", "Core-A") ); - arr.push( new tabElement( "CORE_M", "/Core/html/", "Core-M") ); + arr.push( new tabElement( "CORE_A", "/Core_A/html/", "CMSIS-Core(A)") ); ...
SNAT: fix out2in ICMP worker lookup
@@ -872,6 +872,13 @@ snat_out2in_worker_handoff_fn (vlib_main_t * vm, key0.port = udp0->dst_port; key0.fib_index = rx_fib_index0; + if (PREDICT_FALSE(ip0->protocol == IP_PROTOCOL_ICMP)) + { + icmp46_header_t * icmp0 = (icmp46_header_t *) udp0; + icmp_echo_header_t *echo0 = (icmp_echo_header_t *)(icmp0+1); + key0.port =...
Change default baud rate, make example more verbose Change the default baud rate to 115200 for Piksi Multi, previous hardware was Add some print statement so we have an idea of what the app is trying to do.
@@ -20,23 +20,28 @@ void setup_port() { int result; - result = sp_set_baudrate(piksi_port, 1000000); + printf("Attempting to configure the serial port...\n"); + + result = sp_set_baudrate(piksi_port, 115200); if (result != SP_OK) { fprintf(stderr, "Cannot set port baud rate!\n"); exit(EXIT_FAILURE); } + printf("Configu...
Minor poppler page enum fix
@@ -1661,11 +1661,11 @@ static void outPage(poppler::document *doc1, int pageNo, poppler::rectf mediaBox = current_page->page_rect(box); poppler::page::orientation_enum orient = current_page->orientation(); switch (orient) { - case poppler::page::orientation_enum::landscape: rotate=90; + case poppler::page::landscape: ...
client session BUGFIX check all errors when creating RPCs Fixes
@@ -2654,7 +2654,11 @@ nc_send_rpc(struct nc_session *session, struct nc_rpc *rpc, int timeout, uint64_ data = lyd_new(NULL, mod, "kill-session"); sprintf(str, "%u", rpc_k->sid); - lyd_new_leaf(data, mod, "session-id", str); + node = lyd_new_leaf(data, mod, "session-id", str); + if (!node) { + lyd_free(data); + return ...
OpenCoreKernel: Fix kernel matching
@@ -116,7 +116,7 @@ OcKernelReadDarwinVersion ( INT32 Offset; UINT32 Index; CHAR8 DarwinVersion[32]; - CHAR8 DarwinVersionInteger; + UINT32 DarwinVersionInteger; Offset = FindPattern ( @@ -142,7 +142,7 @@ OcKernelReadDarwinVersion ( DarwinVersion[Index] = (CHAR8) Kernel[Offset]; } DarwinVersion[Index] = '\0'; - DarwinV...
publish: add debug poke to reset the warp loop
?+ mar (on-poke:def mar vas) :: %noun - ?: =(q.vas %flush-limbo) - [~ this(limbo [~ ~])] + ?+ q.vas [~ this] + :: + %flush-limbo [~ this(limbo [~ ~])] + :: + %reset-warp + =/ rav [%sing %t [%da now.bol] /app/publish/notebooks] + :_ this + [%pass /read/paths %arvo %c %warp our.bol q.byk.bol `rav]~ + == :: %handle-http-r...
ci, test: temporary adjust IDF_PERFORMANCE_MIN_TCP_RX_THROUGHPUT limit
// throughput performance by iperf #ifndef IDF_PERFORMANCE_MIN_TCP_RX_THROUGHPUT -#define IDF_PERFORMANCE_MIN_TCP_RX_THROUGHPUT 45 +#define IDF_PERFORMANCE_MIN_TCP_RX_THROUGHPUT 40 // TODO: IDF-5221 #endif #ifndef IDF_PERFORMANCE_MIN_TCP_TX_THROUGHPUT #define IDF_PERFORMANCE_MIN_TCP_TX_THROUGHPUT 40
BugID:24882677:[umesh2]modify API umesh_start_browse_service
@@ -134,7 +134,7 @@ typedef struct session_s { * @param[out] service pointer to the service * @param[out] service found or lost service */ -typedef void (* umesh_service_found_cb)(service_t *service, peer_state_t state); +typedef void (* umesh_service_found_cb)(service_t *service, peer_state_t state, void *context); ty...
range: Change error handling of elektraRangeGet(): 1. Validate all keys, but always return ELETRA_PLUGIN_STATUS_SUCCESS regardless of validation problems. 2. Treat all errors as warnings.
@@ -420,7 +420,7 @@ static RangeType getType (const Key * key) return type; } -static int validateKey (Key * key, Key * parentKey) +static int validateKey (Key * key, Key * parentKey, bool errorsAsWarnings) { const Key * rangeMeta = keyGetMeta (key, "check/range"); const char * rangeString = keyString (rangeMeta); @@ -...
CMake: add option to enable compiler simd flags
@@ -80,6 +80,27 @@ if(CMAKE_COMPILER_IS_GNUCXX) #symbols are only exported from libraries/modules explicitly add_compile_options(-fvisibility=hidden) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility-inlines-hidden") + + SET(ENABLE_SIMD_FLAGS "native" CACHE STRING "Set compiler SIMD flags") + SET_PROPERTY(CACHE ENAB...
Switches CLASS download to git
include(ExternalProject) -set(CLASSVersion 2.6.3) -set(CLASSMD5 e6eb0fd721bb1098e642f5d1970501ce) +set(CLASSTag v2.6.3) # In case the compiler being used is clang, remove the omp flag if ("${CMAKE_C_COMPILER_ID}" MATCHES "^(Apple)?Clang$") @@ -15,8 +14,8 @@ endif() # Downloads and compiles CLASS ExternalProject_Add(CLA...
HW: Adding layout of MMIO space for actions
@@ -6,7 +6,8 @@ The Framework Control and Status registers (aka Master PSA registers) are 8B registers. All the other registers are 4B wide. ``` - ======================================== + Address +========= ======================================== 0x0000000 | | | Master Context | ... | Framework Control & Status | @@...
HTTPS brew link
@@ -95,7 +95,7 @@ corresponding to the version of Python you're using. Installing on Mac OS X with Homebrew ------------------------------------ -To install YARA using `Homebrew <http://brew.sh>`_ simply type +To install YARA using `Homebrew <https://brew.sh>`_, simply type ``brew install yara``.
github/workflows/ports_unix.yml: Add job for a reproducible build. With a check for reproducible build date. Invocation of the test suite is not needed because it's already run in another job.
@@ -26,6 +26,17 @@ jobs: if: failure() run: tests/run-tests --print-failures + reproducible: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build with reproducible date + run: source tools/ci.sh && ci_unix_minimal_build + env: + SOURCE_DATE_EPOCH: 1234567890 + - name: Check reproducible build...
Iconv: Add missing include guard
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ +#ifndef ELEKTRA_PLUGIN_ICONV_CONV_H +#define ELEKTRA_PLUGIN_ICONV_CONV_H + #include <kdberrors.h> #include <kdbplugin.h> @@ -29,3 +32,5 @@ int kdbbUTF8Engine (Plugin * handle, int direction, char ** string, size_t * inp int elektraIconvGet (Plu...
ADDING FEC - always put the data length in stream frames (should be pluginized)
@@ -1117,7 +1117,7 @@ protoop_arg_t prepare_stream_frame(picoquic_cnx_t* cnx) if (length >= space) { length = space; - } else { + } /* This is going to be a trial and error process */ size_t l_len = 0; @@ -1140,7 +1140,6 @@ protoop_arg_t prepare_stream_frame(picoquic_cnx_t* cnx) byte_index += l_len; } } - } if (ret == ...
devices: fix the received blocks counters Type: fix
@@ -268,11 +268,6 @@ af_packet_device_input_fn (vlib_main_t *vm, vlib_node_runtime_t *node, u32 n_required = 0; bd = (block_desc_t *) block_start; - total++; - - if (TP_STATUS_BLK_TMO & bd->hdr.bh1.block_status) - timedout_blk++; - if (PREDICT_FALSE (rx_queue->is_rx_pending)) { num_pkts = rx_queue->num_rx_pkts; @@ -283...
[include/rtthread.h] Add function declarations to avoid compilation warnings.
@@ -410,6 +410,7 @@ rt_err_t rt_mb_send(rt_mailbox_t mb, rt_ubase_t value); rt_err_t rt_mb_send_wait(rt_mailbox_t mb, rt_ubase_t value, rt_int32_t timeout); +rt_err_t rt_mb_urgent(rt_mailbox_t mb, rt_ubase_t value); rt_err_t rt_mb_recv(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout); rt_err_t rt_mb_control(rt_m...
dm: fix possible memory leak in 'load_elf32()' Dynamic memory stored in 'elf32_phdr' allocated through 'calloc' be lost. the patch port from apl_sdc_stable branch. Acked-by: Yin Fengwei
@@ -136,6 +136,7 @@ static int load_elf32(struct vmctx *ctx, FILE *fp, void *buf) ctx->lowmem) { fprintf(stderr, "No enough memory to load elf file\n"); + free(elf32_phdr_bk); return -1; }
[components][drivers] Add irq lock to rt_wqueue_wait.
@@ -65,6 +65,10 @@ int rt_wqueue_wait(rt_wqueue_t *queue, int condition, int msec) rt_thread_t tid = rt_current_thread; rt_timer_t tmr = &(tid->thread_timer); struct rt_wqueue_node __wait; + rt_base_t level; + + /* current context checking */ + RT_DEBUG_NOT_IN_INTERRUPT; tick = rt_tick_from_millisecond(msec); @@ -76,10...
fix(win): incorrect switch syntax
@@ -607,7 +607,8 @@ static lv_design_res_t lv_win_header_design(lv_obj_t * header, const lv_area_t * txt_area.y1 = header->coords.y1 + (lv_obj_get_height(header) - txt_size.y) / 2; txt_area.y2 = txt_area.y1 + txt_size.y; break; - case LV_TXT_FLAG_FIT || LV_TXT_FLAG_EXPAND: + case LV_TXT_FLAG_FIT: + case LV_TXT_FLAG_EXP...
Restore prefix/exec_prefix Makefile variables removed in
@@ -161,6 +161,8 @@ LIBS = @LIBS@ # Directory options #################################################################################################################################### VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ bindir = @bindir@ BUILDDIR=.build