message
stringlengths
6
474
diff
stringlengths
8
5.22k
apps/examples/nxp_example: kernel booting log add kernel booting log
#include <stdio.h> +extern void imxrt_log_print_kernelbuffer(); + #ifdef CONFIG_BUILD_KERNEL int main(int argc, FAR char *argv[]) #else @@ -28,5 +30,7 @@ int nxp_demo_sample_main(int argc, char *argv[]) { printf("[New] nxp_demo_sample!!\n"); + imxrt_log_print_kernelbuffer(); + return 0; }
JNI: Do not include plugin in full & static build
@@ -10,15 +10,7 @@ if (DEPENDENCY_PHASE) find_package (JNI) - # ~~~ - # Disable plugin if full and shared build are enabled, since otherwise `kdb test` will fail printing the following error message: - # - # kdb-full: error while loading shared libraries: libjvm.so: cannot open shared object file: No such file or direc...
grib_ls -j: print not_found if accessor returns GRIB_NOT_FOUND
@@ -943,10 +943,14 @@ static void get_value_for_key(grib_handle* h, const char* key_name, int key_type } if (ret != GRIB_SUCCESS) { + if (ret == GRIB_NOT_FOUND) { + sprintf(value_str, "not_found"); + } else { fprintf(dump_file, "Failed to get value for key %s\n", key_name); exit(1); } } +} /* See ECC-707 */ static int ...
Allow hexcode for render pass clear;
@@ -433,6 +433,19 @@ static Canvas luax_checkcanvas(lua_State* L, int index) { lua_pop(L, 1); } } + } else if (lua_isnumber(L, -1)) { + float color[4]; + uint32_t x = lua_tointeger(L, -1); + color[0] = ((x >> 16) & 0xff) / 255.f; + color[1] = ((x >> 8) & 0xff) / 255.f; + color[2] = ((x >> 0) & 0xff) / 255.f; + color[3]...
linux-raspberrypi: bump to 5.4.50 since upstream was force-pushed
-LINUX_VERSION ?= "5.4.47" +LINUX_VERSION ?= "5.4.50" LINUX_RPI_BRANCH ?= "rpi-5.4.y" -SRCREV = "dec0ddc506ab5d93a7de4b8a7c8dc98e0a96f85c" +SRCREV = "856e83151cf3f802c495585ac176bb135a08030f" require linux-raspberrypi_5.4.inc
remove momuno add vaavva
@@ -30,11 +30,11 @@ sdk/src/azure/core/ @ahsonkhan @antkmsft @rickwinter @vhvb1989 @gearam sdk/tests/core/ @ahsonkhan @antkmsft @rickwinter @vhvb1989 @gearama # IoT -sdk/docs/iot/ @CIPop @danewalton @ericwol-msft @ewertons @jspaith @momuno @preethi826 -sdk/inc/azure/iot/ @CIPop @danewalton @ericwol-msft @ewertons @jspa...
honggfuzz: android's bionic seems to return errno=0 with failing pthread_kill
@@ -217,7 +217,7 @@ static void printSummary(honggfuzz_t* hfuzz) { static void pingThreads(honggfuzz_t* hfuzz) { for (size_t i = 0; i < hfuzz->threads.threadsMax; i++) { - if (pthread_kill(hfuzz->threads.threads[i], SIGCHLD) != 0 && errno != EINTR) { + if (pthread_kill(hfuzz->threads.threads[i], SIGCHLD) != 0 && errno ...
Disable brew auto-update.
@@ -34,6 +34,6 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$BUILD_TOOL" == "scons" ]]; then python -m pip install scons elif [[ "$BUILD_TOOL" == "autotools" ]]; then - brew install sdl2 + HOMEBREW_NO_AUTO_UPDATE=1 brew install sdl2 fi fi
Custom Scripts: Detect variables in math expression events
@@ -2104,9 +2104,14 @@ const refreshCustomEventArgs: CaseReducer< } } }); + if (args.text || args.expression) { + let text; if (args.text) { - const text = Array.isArray(args.text) ? args.text.join() : args.text; - if (typeof text === "string") { + text = Array.isArray(args.text) ? args.text.join() : args.text; + } els...
remove ENET0::PERIPHERAL::FREQMHZ from red_pitaya.xml
<set param="PCW::SPI0::PERIPHERAL::ENABLE" value="1" /> <set param="PCW::SPI1::PERIPHERAL::ENABLE" value="1" /> <set param="PCW::SPI1::SPI1::IO" value="MIO 10 .. 15" /> - <set param="PCW::ENET0::PERIPHERAL::FREQMHZ" value="1000 Mbps" /> <set param="PCW::PRESET::FPGA::PARTNUMBER" value="xc7z010clg400-1" /> <set param="P...
Update Changelog for 1.6.1 release [ci skip]
This changelog follows the format defined here: https://keepachangelog.com/en/1.0.0/ +## [1.6.1] - 2022-03-01 + +Minor fixes to FireSim. + +### Fixed +* Bump to FireSim 1.13.2 (#1133) + ## [1.6.0] - 2022-02-15 A more detailed account of everything included is included in the dev to master PR for this release: https://g...
DB: Enable full deletion of sensors and lights from database
@@ -4922,11 +4922,10 @@ void DeRestPluginPrivate::saveDb() i->setNeedSaveDatabase(false); - /* if (i->state() == LightNode::StateDeleted) { // delete LightNode from db (if exist) - QString sql = QString("DELETE FROM nodes WHERE id='%1'").arg(i->id()); + const QString sql = QString("DELETE FROM nodes WHERE mac='%1'").ar...
libppd: Fixed test suite ppd/testppd.c
@@ -453,9 +453,9 @@ main(int argc, /* I - Number of command-line arguments */ * Do tests with test.ppd... */ - fputs("ppdOpenFile(test.ppd): ", stdout); + fputs("ppdOpenFile(\"ppd/test.ppd\"): ", stdout); - if ((ppd = ppdOpenFileWithLocalization("test.ppd", PPD_LOCALIZATION_ALL)) != NULL) + if ((ppd = ppdOpenFileWithLo...
Fix blufi crash caused by the break change
@@ -109,7 +109,13 @@ void bleprph_host_task(void *param) esp_err_t esp_blufi_host_init(void) { - nimble_port_init(); + esp_err_t err; + err = esp_nimble_init(); + if (err) { + BLUFI_ERROR("%s failed: %s\n", __func__, esp_err_to_name(err)); + return ESP_FAIL; + } + /* Initialize the NimBLE host configuration. */ ble_hs_...
Use fetchGit instead of fetchTarball to get nixpkgs.
let - # In order to get the hash of another tarball, run: `nix-prefetch-url --unpack <url>` pkgs = - builtins.fetchTarball { - name = "nixpkgs-2018-10-07"; - url = https://github.com/nixos/nixpkgs/archive/865cbd380d2568806c6e46c9a4bc746af7ec13c9.tar.gz; - sha256 = "0r3gj1rci2ag6k8g5wcz1m4l6brvzgbfz92kpl74mrh7kjdy1m3p";...
xive: fix missing unlock in error path Found with sparse and some added lock annotations. CC: stable # 5.10+ Fixes:
@@ -4402,6 +4402,7 @@ static int64_t opal_xive_set_vp_info(uint64_t vp_id, xive_dbg(x, "Attempt at enabling single escalate" " on xive rev %d failed\n", x->rev); + unlock(&x->lock); return OPAL_PARAMETER; } rc = xive_setup_silent_gather(vp_id, true);
ames: fix 4-to-5 state migration
[%adult state=_ames-state.adult-gate] == == == ?- old - [%4 %adult *] (load:adult-core %4 state.old) + [%4 %adult *] + $(old [%5 %adult (state-4-to-5:load:adult-core state.old)]) :: [%4 %larva *] - ~> %slog.1^leaf/"ames: larva: load" - =. queued-events events.old - =. adult-gate (load:adult-core %4 state.old) - larval-...
Remove "Locations" button on a subfolder
@@ -421,6 +421,10 @@ protocol DocumentBrowserViewControllerDelegate { override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) + if navigationController?.viewControllers.first != self { + navigationItem.leftBarButtonItems?.remove(at: 0) + } + navigationController?.view.backgroundColor = .white na...
BugID:25282684: not involve top dir for header files scanning
@@ -9,6 +9,7 @@ from lib.code import get_include_file, get_configin_file INCLUDE_FOLDER = "include" COMPONENT_FOLDER = ["application", "test", "core", "platform", "components"] +COMPONENT_2_FOLDER = ["bus", "dm", "fs", "network", "peripherals", "service", "utility", "wireless", "generals"] def get_comp_include_info(com...
driver/temp_sensor/f75303.c: Format with clang-format BRANCH=none TEST=none
@@ -20,8 +20,7 @@ static int8_t fake_temp[F75303_IDX_COUNT] = {-1, -1, -1}; */ static int raw_read8(const int offset, int *data) { - return i2c_read8(I2C_PORT_THERMAL, F75303_I2C_ADDR_FLAGS, - offset, data); + return i2c_read8(I2C_PORT_THERMAL, F75303_I2C_ADDR_FLAGS, offset, data); } static int get_temp(const int offse...
Improvement on the buildserver docu.
@@ -213,6 +213,8 @@ As for labels `gitmirror` should be if you want to cache repositories on this node. If Docker is available the `docker` label should be set. +All files and folders in the Node under `/home/jenkins` should be owned by user `jenkins`. + ## Understanding Jenkins Output Our Jenkins build uses parallel s...
dwarf: Fix cache size calculation The and mask trick only works for power-of-two sized things, but must be computed using the full size. This incorrectly resulted in a very small cache size. Found using bisect and 'make perf' in tests directory. blame rev:
@@ -679,7 +679,7 @@ rs_new (struct dwarf_rs_cache *cache, struct dwarf_cursor * c) unsigned short head; head = cache->rr_head; - cache->rr_head = (head + 1) & (cache->log_size - 1); + cache->rr_head = (head + 1) & (DWARF_UNW_CACHE_SIZE(cache->log_size) - 1); /* remove the old rs from the hash table (if it's there): */ ...
Assert return value of mutex functions Mutex functions may only fail due to a programming error. Use assertions in debug builds, and ignore the value in release builds.
static inline void mutex_lock(SDL_mutex *mutex) { - if (SDL_LockMutex(mutex)) { - LOGC("Could not lock mutex"); + int r = SDL_LockMutex(mutex); +#ifndef NDEBUG + if (r) { + LOGC("Could not lock mutex: %s", SDL_GetError()); abort(); } +#else + (void) r; +#endif } static inline void mutex_unlock(SDL_mutex *mutex) { - if ...
fix(examples) add missing lv.PART.INDICATOR
@@ -44,7 +44,7 @@ dropdown.set_text("Menu") # Use a custom image as down icon and flip it when the list is opened # LV_IMG_DECLARE(img_caret_down) dropdown.set_symbol(img_caret_down_argb) -dropdown.set_style_transform_angle(1800, lv.STATE.CHECKED) +dropdown.set_style_transform_angle(1800, lv.PART.INDICATOR | lv.STATE.C...
minors changes resource description
@@ -50,7 +50,7 @@ BITMAP name img_file [compression] img_file path of the input image file (should be 8bpp .bmp or .png) compression compression type (use unpackBitmap(..) to unpack), accepted values: -1 / BEST / AUTO = use best compression - 0 / NONE = no compression + 0 / NONE = no compression (default) 1 / APLIB = a...
examples/charger: Update enum type usage per kernel change
@@ -129,8 +129,8 @@ static int show_charge_setting(int fd) static int show_bat_status(int fd) { - enum battery_charger_status_e status; - enum battery_charger_health_e health; + enum battery_status_e status; + enum battery_health_e health; const char *statestr[] = { "UNKNOWN",
fix printf format srting
@@ -76,7 +76,7 @@ static void stlink_probe(void) { printf("Found %u stlink programmers\n", (unsigned int)size); for (size_t n = 0; n < size; n++) { - if (size>1) printf("%lu.\n", n+1); + if (size > 1) printf("%u.\n", (unsigned int)n+1); stlink_print_info(stdevs[n]); }
[io] remove skip_last_update_output for old option management
@@ -2502,7 +2502,7 @@ class MechanicsHdf5Runner(siconos.io.mechanics_hdf5.MechanicsHdf5): run_options['start_run_iteration_hook']=start_run_iteration_hook run_options['end_run_iteration_hook']=end_run_iteration_hook run_options['skip_last_update_output']=skip_last_update_output - run_options['skip_last_update_input']=s...
Added support for ZCash stratum method mining.suggest_target
@@ -261,7 +261,7 @@ namespace MiningCore.Blockchain.Monero share.UserAgent = worker.Context.UserAgent; share.NetworkDifficulty = job.BlockTemplate.Difficulty; share.Created = clock.UtcNow; - +GC.Collect(2, GCCollectionMode.Forced, true); return share; }
stm32/can: Improve can.recv() so it checks for events, eg ctrl-C. This patch provides a custom (and simple) function to receive data on the CAN bus, instead of the HAL function. This custom version calls mp_handle_pending() while waiting for messages, which, among other things, allows to interrupt the recv() method vi...
* * The MIT License (MIT) * - * Copyright (c) 2014 Damien P. George + * Copyright (c) 2014-2018 Damien P. George * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -172,6 +172,43 @@ STATIC void can_clearfilt...
ci bump test timeout to 30 seconds [skip ci] The ARM runners are a lot slower.
@@ -123,7 +123,7 @@ def run_tests(options_name): os.chdir(get_build_dir(options_name)) subprocess.check_call( - ['ctest', '--timeout', '15', '--parallel', str(os.cpu_count()), '--output-on-failure']) + ['ctest', '--timeout', '30', '--parallel', str(os.cpu_count()), '--output-on-failure']) def generate_code_coverage_rep...
fix qpack fuzz test leak
@@ -874,7 +874,11 @@ int h3zero_qpack_fuzz_test() while (parsed != NULL && parsed < bytes_max) { /* Attempt to parse the next header. * the test succeeds if that does not cause a crash */ + memset(&parts, 0, sizeof(parts)); parsed = h3zero_parse_qpack_header_frame(parsed, bytes_max, &parts); + if (parts.path != NULL) {...
Check Formatting: Also check Markdown formatting
@@ -18,6 +18,7 @@ fi scripts/reformat-source || echo 'Warning: clang-format not available, skipping reformat-source' & scripts/reformat-cmake || echo 'Warning: Unable to reformat CMake code.' & +scripts/reformat-markdown || echo 'Warning: Unable to reformat Markdown code.' & scripts/reformat-shfmt || echo 'Warning: Una...
Install pip and wheel in docker image.
@@ -28,12 +28,15 @@ RUN apt-get update && \ octave liboctave-dev \ php-dev \ pkg-config \ - python python-dev python3-dev \ + python python-dev python-pip \ + python3-dev python3-pip \ r-base r-cran-rcpp \ ruby ruby-dev \ texinfo \ wget \ zip && \ + python2 -m pip install setuptools wheel && \ + python3 -m pip install ...
style: ignore pylint too-many-instance-attributes error
@@ -152,6 +152,7 @@ disable=print-statement, too-many-statements, ungrouped-imports, # since we have isort in pre-commit no-name-in-module, # since we have flake8 to check this + too-many-instance-attributes, # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifi...
Fix mesh mapping;
@@ -281,7 +281,7 @@ void* lovrMeshMap(Mesh* mesh, int start, int count) { mesh->isMapped = 1; mesh->mapStart = start; mesh->mapCount = count; - GLbitfield access = GL_MAP_WRITE_BIT | GL_MAP_INVALIDATE_RANGE_BIT; + GLbitfield access = GL_MAP_READ_BIT | GL_MAP_WRITE_BIT; glBindBuffer(GL_ARRAY_BUFFER, mesh->vbo); return g...
rust/Cargo.toml: explain debug = true
@@ -25,7 +25,10 @@ members = [ ] [profile.release] +# This only affects the .elf output. Debug info is stripped from the final .bin. +# Paths to source code can still appear in the final bin, as they are part of the panic!() output. debug = true + opt-level = 'z' codegen-units = 1 panic = 'abort'
Check if ImGui::BeginTable actually begun
@@ -571,13 +571,14 @@ void render_imgui(swapchain_stats& data, struct overlay_params& params, ImVec2& if (!params.no_display && !steam_focused){ ImGui::Begin("Main", &gui_open, ImGuiWindowFlags_NoDecoration); - ImGui::BeginTable("hud", params.table_columns, ImGuiTableFlags_NoClip); + if (ImGui::BeginTable("hud", params...
* Upgraded to iowow_1.3.15 with critical fixes
+ejdb2 (2.0.11) UNRELEASED; urgency=medium + + * Upgraded to iowow_1.3.15 with critical fixes + + -- Anton Adamansky <adamansky@gmail.com> Wed, 01 May 2019 23:31:45 +0700 + ejdb2 (2.0.10) testing; urgency=medium * CRITICAL: Fixed unexpected database file truncation and data loss on close.
cmake: clap-tests should always be available
@@ -12,9 +12,12 @@ target_include_directories(clap-core INTERFACE include) install(DIRECTORY include DESTINATION "." OPTIONAL EXCLUDE_FROM_ALL) +# clap-tests should always be available, to avoid build failing here and there +# because the target doesn't exists +add_custom_target(clap-tests) + if (${CLAP_BUILD_TESTS}) m...
zuse: allow non-trailing null bytes in to-wain:format
~% %lore ..is ~ |= lub/@ =| tez/(list @t) + =+ len=(met 3 lub) |- ^+ tez =+ ^= wor =+ [meg=0 i=0] |- ^- {meg/@ i/@ end/@f} =+ gam=(cut 3 [i 1] lub) - ?: =(0 gam) + ?: =(len i) [meg i %.y] ?: =(10 gam) [meg i %.n]
usrsock: combine response and events when socket setup case
@@ -79,6 +79,10 @@ static uint16_t socket_event(FAR struct net_driver_s *dev, conn->state = USRSOCK_CONN_STATE_READY; conn->usockid = pstate->result; + if (flags & USRSOCK_EVENT_SENDTO_READY) + { + conn->flags |= USRSOCK_EVENT_SENDTO_READY; + } } /* Stop further callbacks */
minor update draw
import time +import cv2 from PIL import Image from ..Utils.skip import skip @@ -61,7 +62,7 @@ class Drawer: self.updater.info_index = self.frame_info.info_index - self.img = Image.new("RGB", (1, 1)) + self.img = Image.new("RGB", (1, 0)) self.np_img, self.pbuffer = get_buffer(self.shared, self.settings) def render_draw(...
bn/bn_lcl.h: use __int128 whenever possible, not only on MIPS.
@@ -370,7 +370,13 @@ struct bn_gencb_st { * * <appro@fy.chalmers.se> */ -# if defined(__alpha) && (defined(SIXTY_FOUR_BIT_LONG) || defined(SIXTY_FOUR_BIT)) +# if defined(__SIZEOF_INT128__) && __SIZEOF_INT128__==16 && \ + (defined(SIXRY_FOUR_BIT) || defined(SIXTY_FOUR_BIT_LONG)) +# define BN_UMULT_HIGH(a,b) (((__uint128...
Update VSCode-Linux-Setup.md
@@ -8,7 +8,7 @@ Replace <board-name> in the following appropriately. ```shell apt install openocd dfu-util gcc-arm-none-eabi gdb-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib ``` -3. Open Folder <guano-repo>/QUICKSILVER with VSCode +3. Open Folder `<guano-repo>/QUICKSILVER` with VSCode 4. Install...
Fix the I2C peripheral acquire/release logic (HDC1000)
@@ -170,18 +170,24 @@ i2c_read(void *rbuf, size_t rcount) return i2c_write_read(NULL, 0, rbuf, rcount); } /*---------------------------------------------------------------------------*/ -/** - * \brief Initialize the HDC-1000 sensor driver. - * \return true if I2C operation successful; else, return false. - */ +/* Rele...
fix(sha256): When using the "CRYPTO_DEFAULT" algorithm library, "sha256" should use sha2-256
#include "boattypes.h" #include "boatutility.h" -#include "sha3.h" +#include "sha2.h" /* net releated include */ #include <sys/types.h> @@ -54,7 +54,7 @@ BOAT_RESULT BoatHash( const BoatHashAlgType type, const BUINT8* input, BUINT32 } else if( type == BOAT_HASH_SHA256 ) { - sha3_256( input, inputLen, hashed ); + sha256...
Reorder autokill constant exposure.
@@ -115,9 +115,9 @@ int mapstrings_transconst(ScriptVariant **varlist, int paramCount) ICMPCONST(FLAG_BACKWARD) // Autokill state. - ICMPCONST(AUTOKILL_NONE) ICMPCONST(AUTOKILL_ANIMATION_COMPLETE) ICMPCONST(AUTOKILL_ATTACK_HIT) + ICMPCONST(AUTOKILL_NONE) // Boss no slow flags. ICMPCONST(BOSS_SLOW_OFF)
fix: update boatwalletCreate to fix one-time wallet failed
@@ -120,12 +120,11 @@ BSINT32 BoatWalletCreate( BoatProtocolType protocol_type, const BCHAR *wallet_na BoatLog(BOAT_LOG_NORMAL, "Too many wallets was loaded."); return BOAT_ERROR; } - if( wallet_name_str != NULL ) - { + + if( wallet_config_ptr != NULL ) { - /* create a persiststore wallet */ - + /* private key context ...
Return PhCreateThread2 ntstatus
@@ -267,11 +267,12 @@ HANDLE PhCreateThread( } } -VOID PhCreateThread2( +NTSTATUS PhCreateThread2( _In_ PUSER_THREAD_START_ROUTINE StartAddress, _In_opt_ PVOID Parameter ) { + NTSTATUS status; HANDLE threadHandle; PPHP_BASE_THREAD_CONTEXT context; @@ -279,7 +280,7 @@ VOID PhCreateThread2( context->StartAddress = StartA...
Check for too short packets when using the receive threads. Thanks to Ivan Fratric for reporting the issue.
@@ -371,10 +371,17 @@ recv_function_raw(void *arg) } while (ncounter > 0); } + offset = sizeof(struct ip) + sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr); + if (SCTP_BUF_LEN(recvmbuf[0]) < offset) { + if ((recvmbuf[0] = m_pullup(recvmbuf[0], offset)) == NULL) { + SCTP_STAT_INCR(sctps_hdrops); + continue; + } + ...
BugID:19119935:[coap] remove the current limit
@@ -462,44 +462,20 @@ static int CoAPRequestMessage_handle(CoAPContext *context, NetworkAddr *remote, COAP_DEBUG("Request path is %s", path); /* CoAP request receive flowControl */ - uint64_t time_curr = 0; - int64_t time_delta = 0; - int isOverThre = 0; - static uint64_t time_prev = 0; - static int count = 0; - - time...
added a set_time method to format the logitem->time field
@@ -964,6 +964,23 @@ set_date (char **fdate, struct tm tm) return 0; } +/* Format the broken-down time tm to a numeric time format. + * + * On error, or unable to format the given tm, 1 is returned. + * On success, a malloc'd format is returned. */ +static int +set_time (char **ftime, struct tm tm) +{ + char buf[TIME_L...
Fix quoting of commands passed to for_window E.g. `for_window [class="mpv"] move container to output "Dell Inc. ..."` does not work because the executed move command only uses `Dell` as output name.
@@ -387,6 +387,7 @@ struct cmd_results *config_command(char *exec, char **new_block) { && handler->handle != cmd_bindsym && handler->handle != cmd_bindcode && handler->handle != cmd_set + && handler->handle != cmd_for_window && (*argv[i] == '\"' || *argv[i] == '\'')) { strip_quotes(argv[i]); }
Uefi: Import UnblockFsConnect quirk
@@ -530,6 +530,10 @@ OcLoadUefiSupport ( ); } + if (Config->Uefi.Quirks.UnblockFsConnect) { + OcUnblockUnmountedPartitions (); + } + OcMiscUefiQuirksLoaded (Config); OcLoadDrivers (Storage, Config);
schema compile BUGFIX no recursive cyclic when check Fixes
@@ -778,7 +778,7 @@ lys_compile_unres_when_cyclic(struct lyxp_set *set, const struct lysc_node *node } while (node && (node->nodetype & (LYS_CASE | LYS_CHOICE))); /* this node when was checked (xp_scnode could have been reallocd) */ - set->val.scnodes[i].in_ctx = LYXP_SET_SCNODE_START_USED; + set->val.scnodes[i].in_ctx...
Stringify error code
@@ -149,6 +149,42 @@ std::string strframetype(uint8_t type) { } } // namespace +namespace { +std::string strerrorcode(uint32_t error_code) { + switch (error_code) { + case NGTCP2_NO_ERROR: + return "NO_ERROR"; + case NGTCP2_INTERNAL_ERROR: + return "INTERNAL_ERROR"; + case NGTCP2_CANCELLED: + return "CANCELLED"; + case...
meowth: Enable MKBP support for events. Button and switch events will be reported using MKBP. BRANCH=None TEST=make -j buildall Commit-Ready: Aseda Aboagye Tested-by: Aseda Aboagye
#define CONFIG_SWITCH #endif /* defined(BOARD_ZOOMBINI) */ +/* TODO(aaboagye): Eventually, enable MKBP for zoombini as well. */ +#ifdef BOARD_MEOWTH +#define CONFIG_MKBP_EVENT +#define CONFIG_MKBP_USE_HOST_EVENT +#define CONFIG_KEYBOARD_PROTOCOL_MKBP +#endif /* defined(BOARD_MEOWTH) */ + #define CONFIG_USB_POWER_DELIVE...
Add extensions to debug list
@@ -665,6 +665,11 @@ static STRINT_PAIR tlsext_types[] = { #ifdef TLSEXT_TYPE_extended_master_secret {"extended master secret", TLSEXT_TYPE_extended_master_secret}, #endif + {"key share", TLSEXT_TYPE_key_share}, + {"supported versions", TLSEXT_TYPE_supported_versions}, + {"psk", TLSEXT_TYPE_psk}, + {"psk kex modes", TL...
allow implicit zero constraints for tail features
@@ -192,10 +192,11 @@ static void UpdateAndValidateMonotoneConstraints( monotoneConstraints->clear(); } else { TVector<int> floatFeatureMonotonicConstraints(featuresLayout.GetFloatFeatureCount(), 0); - for (ui32 floatFeatureId : xrange<ui32>(featuresLayout.GetFloatFeatureCount())) { - floatFeatureMonotonicConstraints[f...
BugID:21600073: Add para_chgi() callback to support zero config issue in hiden ssid case. Applicable platforms for now: moc108, esp8266, rda5981, rtl8710. Note: this is a cherry-pick of on 1.3.4_618 branch.
@@ -337,7 +337,33 @@ static void netmgr_scan_adv_completed_event(hal_wifi_module_t * m, static void netmgr_para_chg_event(hal_wifi_module_t * m, hal_wifi_ap_info_adv_t *ap_info, char *key, int key_len, void *arg) -{} +{ + int ret; + + if (!ap_info) { + LOGE("netmgr", "%s invalid ap_info pointer.", __func__); + return; ...
v3_sxnet: add a check for the return of i2s_ASN1_INTEGER()
@@ -78,6 +78,8 @@ static int sxnet_i2r(X509V3_EXT_METHOD *method, SXNET *sx, BIO *out, for (i = 0; i < sk_SXNETID_num(sx->ids); i++) { id = sk_SXNETID_value(sx->ids, i); tmp = i2s_ASN1_INTEGER(NULL, id->zone); + if (tmp == NULL) + return 0; BIO_printf(out, "\n%*sZone: %s, User: ", indent, "", tmp); OPENSSL_free(tmp); A...
Add missing abort call to the end of tests All tests should have an abort call in case of test failure to make sure everything is cleaned up. Also removed unused define.
@@ -3343,6 +3343,7 @@ void aead_multipart_encrypt( int key_type_arg, data_t *key_data, exit: psa_destroy_key( key ); + psa_aead_abort( &operation ); mbedtls_free( output_data ); mbedtls_free( part_data ); mbedtls_free( final_data ); @@ -3715,6 +3716,7 @@ void aead_multipart_encrypt_decrypt( int key_type_arg, data_t *ke...
Fix use of -no-proxy option of CMP app
@@ -2097,6 +2097,8 @@ static int setup_client_ctx(OSSL_CMP_CTX *ctx, ENGINE *e) goto oom; if (opt_proxy != NULL && !OSSL_CMP_CTX_set1_proxy(ctx, opt_proxy)) goto oom; + if (opt_no_proxy != NULL && !OSSL_CMP_CTX_set1_no_proxy(ctx, opt_no_proxy)) + goto oom; (void)BIO_snprintf(server_buf, sizeof(server_buf), "http%s://%s...
Fixes a recently broken unique asset functional test.
@@ -26,7 +26,7 @@ def gen_root_asset_name(): return name def gen_unique_asset_name(root): - tag_ab = "-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@$%&*()[]{}<>_.;?\\:" + tag_ab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@$%&*()[]{}_.?\\:" name = root + "#" tag_size = random.rand...
fcrypt: add docu for enums See
#include <kdbmacros.h> #include <kdbtypes.h> -enum FcryptGetState { PREGETSTORAGE = 0, POSTGETSTORAGE = 1 }; +/** + * @brief Defines the plugin state during the <code>kdb get</code> phase. + */ +enum FcryptGetState { + + /** Perform a decryption run before <code>kdb get</code> reads from the storage. */ + PREGETSTORAGE...
Check the return value of ASN1_STRING_length ASN1_STRING_length gets the field 'length' of msg, which can be manipulated through a crafted input. Add a check to avoid error execution of OPENSSL_malloc(). CLA: trivial
@@ -126,6 +126,8 @@ TS_VERIFY_CTX *TS_REQ_to_TS_VERIFY_CTX(TS_REQ *req, TS_VERIFY_CTX *ctx) goto err; msg = imprint->hashed_msg; ret->imprint_len = ASN1_STRING_length(msg); + if (ret->imprint_len <= 0) + goto err; if ((ret->imprint = OPENSSL_malloc(ret->imprint_len)) == NULL) goto err; memcpy(ret->imprint, ASN1_STRING_...
fix n3000 max10 rsu
@@ -953,13 +953,8 @@ class fpgaotsu_n3000(fpgaotsu): if o.pci_node.device_id == N3000_DEV_ID: LOG.info('RSU BMC Start') - do_rsu('bmcimg',o.pci_node.pci_address,'factory'); + do_rsu('bmcimg',o.pci_node.pci_address,'user'); LOG.info('RSU BMC END') - - LOG.info('RSU FPGA Start') - do_rsu('fpga',o.pci_node.pci_address,'fa...
coreboot: fail when trying to reboot/stop a core on non-x86 architecture
@@ -266,6 +266,10 @@ static int update_cpu(int argc, char** argv) USER_PANIC_ERR(err, "get_apic_id failed."); } + if (cpu_type == CPU_ARM7 || cpu_type == CPU_ARM8) { + USER_PANIC("don't know how to update core on this architecture!"); + } + struct capref kcb; err = create_or_get_kcb_cap(target_id, &kcb); if (err_is_fai...
dev-tools/numpy: CI catching unresolved symbol with intel/mkl and 1.18 version; downgrade to latest 1.17 version
@@ -22,7 +22,7 @@ Requires: openblas-%{compiler_family}%{PROJ_DELIM} %define pname numpy Name: %{python_prefix}-%{pname}-%{compiler_family}%{PROJ_DELIM} -Version: 1.18.2 +Version: 1.17.4 Release: 1%{?dist} Url: https://github.com/numpy/numpy Summary: NumPy array processing for numbers, strings, records and objects @@ -...
BugID:20175528: Update m02h sal driver
@@ -783,7 +783,7 @@ static int m02h_lte_get_apn_ip(char *apn, int apn_len, char *ipaddr, int ip_len) return 0; } -int HAL_SAL_Init(void) +static int HAL_SAL_Init(void) { int ret = 0; uint32_t linknum = 0; @@ -869,7 +869,7 @@ err: return -1; } -int HAL_SAL_Deinit() +static int HAL_SAL_Deinit() { if (!inited) { return 0;...
add recv error code for clarifying timeout
@@ -63,6 +63,10 @@ int redisNetRead(redisContext *c, char *buf, size_t bufcap) { if ((errno == EWOULDBLOCK && !(c->flags & REDIS_BLOCK)) || (errno == EINTR)) { /* Try again later */ return 0; + } else if(errno == ETIMEDOUT && (c->flags & REDIS_BLOCK)) { + /* especially in windows */ + __redisSetError(c, REDIS_ERR_TIMEO...
nshlib/nsh_fscmds:use strchr instead of strstr
@@ -1241,7 +1241,7 @@ int cmd_mkdir(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) for (; ; ) { - slash = strstr(slash, "/"); + slash = strchr(slash, '/'); if (slash != NULL) { *slash = '\0';
openssl spkac: Fix reading SPKAC data from stdin Fixes
@@ -404,14 +404,18 @@ CONF *app_load_config_verbose(const char *filename, int verbose) CONF *app_load_config_internal(const char *filename, int quiet) { - BIO *in = NULL; /* leads to empty config in case filename == "" */ + BIO *in; CONF *conf; - if (*filename != '\0' - && (in = bio_open_default_(filename, 'r', FORMAT_...
fix: sensor: add sensor type of cap Increase the type of cap sensor, including raw data and detection status.
@@ -64,6 +64,7 @@ static void print_valb(FAR const char *buffer, FAR const char *name); static void print_vali2(FAR const char *buffer, FAR const char *name); static void print_ppgd(FAR const char *buffer, FAR const char *name); static void print_ppgq(FAR const char *buffer, FAR const char *name); +static void print_ca...
multimap: Fixed checking edge-case when new map contains whole old map
@@ -1082,10 +1082,10 @@ int vm_createSharedMap(ptr_t start, ptr_t stop, unsigned int attr, int no) if (map_common.maps[i] == NULL) continue; - if ((start >= (ptr_t)map_common.maps[i]->start) && (start < (ptr_t)map_common.maps[i]->stop)) - return -EINVAL; - - if ((stop > (ptr_t)map_common.maps[i]->start) && (stop <= (pt...
snap: bump to v2.0.8
name: fluent-bit base: core18 -version: '2.0.7' +version: '2.0.8' summary: High performance logs and stream processor description: | Fluent Bit is a high performance log processor and stream processor for Linux.
Docs: Added notes about LogoutHook upgrade by Rodion
@@ -19,6 +19,7 @@ OpenCore Changelog - Added `GlobalConnect` for APFS loading to workaround older firmware issues - Added 11.0 support for `AvoidRuntimeDefrag` Booter quirk - Fixed 11.0 lapic kernel quirk as of DP1 +- Improved boot selection scripts for macOS without NVRAM #### v0.5.9 - Added full HiDPI support in Open...
hdat: Add missing newline to print
@@ -474,7 +474,7 @@ static void io_parse_fru(const void *sp_iohubs) " Not installed\n", i); continue; case CECHUB_HUB_FLAG_STATE_UNUSABLE: - prlog(PR_DEBUG, "CEC: IO Hub Chip #%d Unusable", i); + prlog(PR_DEBUG, "CEC: IO Hub Chip #%d Unusable\n", i); continue; }
Error instead of crashing when skin has too many joints; ModelData is still allowed to load skins with more joints, since the limitation is in the graphics side of things (Model). Eventually we will use a buffer for joints to alleviate this.
@@ -184,6 +184,12 @@ Model* lovrModelCreate(ModelData* data) { } } + // Ensure skin bone count doesn't exceed the maximum supported limit + for (uint32_t i = 0; i < data->skinCount; i++) { + uint32_t jointCount = data->skins[i].jointCount; + lovrAssert(jointCount < MAX_BONES, "ModelData skin '%d' has too many joints (%...
Fix for compile error
@@ -23,7 +23,7 @@ public class UnownedDeviceHandler implements OCObtDiscoveryHandler { String deviceId = OCUuidUtil.uuidToString(uuid); Log.d(TAG, "discovered unowned device: " + deviceId + " at:"); while (endpoints != null) { - String[] endpointStr = OCEndpointUtil.toString(endpoints); + String endpointStr = OCEndpoin...
io-libs/hdf5: remove patch needed for previous version; src in hdf5 v1.10.2 is refactored
@@ -42,7 +42,6 @@ URL: http://www.hdfgroup.org/HDF5 DocDir: %{OHPC_PUB}/doc/contrib Source0: https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/%{pname}-%{version}/src/%{pname}-%{version}.tar.bz2 Source1: OHPC_macros -Patch0: psxe18.fortran.patch BuildRequires: zlib-devel Requires: zlib-devel @@ -65,7 +64,6 @@ gr...
add unlock when item_cachedump malloc failed
@@ -592,6 +592,7 @@ char *item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, u buffer = malloc((size_t)memlimit); if (buffer == 0) { + pthread_mutex_unlock(&lru_locks[id]); return NULL; } bufcurr = 0;
Update EVP_EncodeInit.pod Fix EVP_EncodeBlock description using incorrect parameter name for encoding length CLA: trivial
@@ -83,8 +83,8 @@ EVP_ENCODE_CTX_num() will return the number of as yet unprocessed bytes still to be encoded or decoded that are pending in the B<ctx> object. EVP_EncodeBlock() encodes a full block of input data in B<f> and of length -B<dlen> and stores it in B<t>. For every 3 bytes of input provided 4 bytes of -outpu...
Correct the keywordDict size The stale keywords XDEF and GLOBAL were removed, so there can be fewer keyword nodes.
@@ -496,7 +496,7 @@ struct KeywordDictNode { uint16_t children[0x60 - ' ']; struct KeywordMapping const *keyword; /* Since the keyword structure is invariant, the min number of nodes is known at compile time */ -} keywordDict[359] = {0}; /* Make sure to keep this correct when adding keywords! */ +} keywordDict[350] = {...
docs: bump beegfs to v7.2 and re-enable discussion for centos/WW
\newcommand{\upgrade}{yum -y upgrade} \newcommand{\chrootupgrade}{yum -y --installroot=\$CHROOT upgrade} \newcommand{\tftppkg}{syslinux-tftpboot} -\newcommand{\beegfsrepo}{https://www.beegfs.io/release/beegfs\_7\_1/dists/beegfs-rhel7.repo} +\newcommand{\beegfsrepo}{https://www.beegfs.io/release/beegfs\_7\_2/dists/beegf...
hv : encapsulate page align in e820_alloc_memory e820_alloc_memory requires 4k alignment, so conversion to size is encapsulated in the function. And then the pre-condition of `size_arg` is removed. Acked-by: Eddie Dong
@@ -27,17 +27,20 @@ static struct e820_entry hv_e820[E820_MAX_ENTRIES]; /* * @brief reserve some RAM, hide it from Service VM, return its start address + * + * e820_alloc_memory requires 4k alignment, so size_arg will be converted + * in the function. + * * @param size_arg Amount of memory to be found and marked reserv...
apps/utils/date: add messages to show limitation of year, month and week The date command allows year within [1970,2106] and month, the day of week allows 3 abbreviation characters. It it difficult to know these limitations without messages.
@@ -325,30 +325,29 @@ int kdbg_date(int argc, char **args) #endif ret = date_settime(argc, args); } else { -#if !(defined(CONFIG_LIBC_LOCALTIME) || defined(CONFIG_TIME_EXTENDED)) + printf("\nUsage: date\n"); printf(" or: date [-s FORMAT]\n"); printf("Display, or Set system time and date information\n"); printf("\nOptio...
Reset terminal on xterm exit.
@@ -146,6 +146,7 @@ static void xterm_cleanup(void) { "\x1b[2J" // Clear the screen. "\x1b[?1049l" // Disable alternative screen buffer. "\x1b[?25h" // Show cursor. + "\x1b" "c" // Reset to initial state. ); #ifdef _WIN32 SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), g_old_mode_stdin);
Docs: Add xref to mapreduce spec
<title>Prerequisites</title> <p>The following are required prior to running this program:</p> <ul id="ul_v5h_bxq_dp"> - <li id="kx142094">You must have your MapReduce job defined in a YAML file. For information - about the Greenplum MapReduce specification, see the <i>Greenplum Database Reference - Guide</i>.</li> + <l...
session client BUGFIX uninitialized variable
@@ -939,7 +939,7 @@ nc_ctx_check_and_fill(struct nc_session *session) void *old_data = NULL; const struct lys_module *mod = NULL; char *revision; - struct schema_info *server_modules = NULL, *sm; + struct schema_info *server_modules = NULL, *sm = NULL; assert(session->opts.client.cpblts && session->ctx);
increase the maximum number of supported pc guards to 16M
#define _HF_PERF_BITMAP_SIZE_16M (1024U * 1024U * 16U) #define _HF_PERF_BITMAP_BITSZ_MASK 0x7ffffff /* Maximum number of PC guards (=trace-pc-guard) we support */ -#define _HF_PC_GUARD_MAX (1024U * 1024U) +#define _HF_PC_GUARD_MAX (1024U * 1024U * 16U) /* FD used to pass feedback bitmap a process */ #define _HF_BITMAP_...
more info about PKCS#12 structure MAC report additional information about the MAC used over the PKCS#12 structure: size of mac and salt as well as the hash algorithm used for creating it
@@ -523,12 +523,20 @@ int pkcs12_main(int argc, char **argv) const ASN1_INTEGER *tmaciter; const X509_ALGOR *macalgid; const ASN1_OBJECT *macobj; - PKCS12_get0_mac(NULL, &macalgid, NULL, &tmaciter, p12); + const ASN1_OCTET_STRING *tmac; + const ASN1_OCTET_STRING *tsalt; + + PKCS12_get0_mac(&tmac, &macalgid, &tsalt, &tm...
clock: revert removal of initial media query check This commit restores a small check for a match of the query, so that when you load in dark mode, the clock loads in dark(ly). Without this commit, it would only shift modes as part of a media query change.
@@ -18,6 +18,11 @@ let text = "#000000", background = "#ffffff"; let dark = window.matchMedia('(prefers-color-scheme: dark)'); +if (dark.matches) { + text = "#7f7f7f"; + background = "#333"; +} + function darkColors(dark) { if (dark.matches) { text = "#7f7f7f"; @@ -28,7 +33,7 @@ function darkColors(dark) { } } -dark.ad...
spec: fix signedness error
@@ -795,7 +795,7 @@ ssize_t ksSearchInternal (const KeySet * ks, const Key * toAppend) cmpresult = keyCompareByNameOwner (&toAppend, &ks->array[right]); if (cmpresult > 0) { - return -ks->size - 1; + return -((ssize_t) ks->size) - 1; } cmpresult = 1;
do not dump cgo_ldflags to intermediate cgo *.go generated files
@@ -3659,7 +3659,7 @@ macro GO_COMPILE_SYMABIS(ASM_FILES...) { } macro GO_COMPILE_CGO1(NAME, FLAGS[], FILES...) { - .CMD=${hide:GO_FAKEID} ${GO_TOOLS_ROOT}/pkg/tool/${GO_HOST_OS}_${GO_HOST_ARCH}/cgo -objdir $BINDIR -importpath $NAME $FLAGS -- $C_FLAGS_PLATFORM ${pre=-I:INCLUDE} ${CGO_CFLAGS_VALUE} ${input:FILES} ${outp...
fix(memory leak): free "discoveryResponse" in BoatHlfabricDiscoverySubmit().
@@ -877,7 +877,7 @@ BOAT_RESULT BoatHlfabricDiscoverySubmit(BoatHlfabricTx *tx_ptr, const BoatHlfabr } tx_ptr->endorserResponse.responseCount = 0; DiscoveryResFree(discoverResult); - + discovery__response__free_unpacked(discoveryResponse,NULL); return result; }
use temporal variable to avoid mutex on poll.
@@ -829,9 +829,11 @@ void *pool_main_thread(void *arg) } } - int res = poll(g_fds, g_connections_count, 1000); + int connections_count = g_connections_count; pthread_mutex_unlock(&g_descriptors_mutex); + int res = poll(g_fds, connections_count, 1000); + if(!res) continue; // int index = 0;
libbpf-tools: update cachestat for libbpf 1.0 Switch to libbpf 1.0 mode and adapt libbpf API usage accordingly.
@@ -140,14 +140,9 @@ int main(int argc, char **argv) if (err) return err; + libbpf_set_strict_mode(LIBBPF_STRICT_ALL); libbpf_set_print(libbpf_print_fn); - err = bump_memlock_rlimit(); - if (err) { - fprintf(stderr, "failed to increase rlimit: %d\n", err); - return 1; - } - obj = cachestat_bpf__open_and_load(); if (!ob...
sysdeps/managarm: Implemented F_SETFD in sys_fcntl()
@@ -384,9 +384,42 @@ int sys_fcntl(int fd, int request, va_list args, int *result) { *result = resp.flags(); return 0; }else if(request == F_SETFD) { - mlibc::infoLogger() << "\e[31mmlibc: fcntl(F_SETFD) is not implemented correctly" - << "\e[39m" << frg::endlog; - *result = 0; + HelAction actions[3]; + globalQueue.tri...