message
stringlengths
6
474
diff
stringlengths
8
5.22k
use make on CI
@@ -8,7 +8,7 @@ install: - cd .. - cp -r xmake xmake4build - cd xmake4build - - sudo ./install + - make build; sudo make install - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update --verbose; fi - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install dmd --verbose; fi - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew instal...
Also mention that the units are in seconds
@@ -34,7 +34,7 @@ The information returned by the <code>/json</code> handler can be filtered out u There are currently three modules defined: <ul> <li><code>requests</code>: displays the requests currently in-flight.</li> -<li><code>durations</code>: displays durations statistics for requests since server start time. (...
Wake from picoquic_frame_fair_reserve when more plugin frame might be scheduled
@@ -2396,6 +2396,7 @@ void picoquic_frame_fair_reserve(picoquic_cnx_t *cnx, picoquic_path_t *path_x, p } uint64_t max_plugin_cwin = path_x->cwin * (1000 - cnx->core_rate) / 1000; + uint64_t total_plugin_bytes_in_flight = 0; if (stream != NULL && plugin_use >= max_plugin_cwin) { /* Don't go over the guaranteed rate! */ ...
fix segfault in nufft_precond_create pdata->N was used uninitialized in this function, leading to unpleasantness
@@ -401,7 +401,7 @@ const struct operator_s* nufft_precond_create(const struct linop_s* nufft_op) assert(data->conf.toeplitz); unsigned int N = data->N; - unsigned int ND = pdata->N + 3; + unsigned int ND = N + 3; pdata->N = N; pdata->cim_dims = *TYPE_ALLOC(long[ND]);
better arrow pos
@@ -218,7 +218,7 @@ class Beatmap: my_dict["slider ticks"] = [] my_dict["ticks pos"] = [] - my_dict["arrow pos"], _ = baiser.at(my_dict["pixel length"], None) + my_dict["arrow pos"], _ = baiser.at(my_dict["pixel length"] * 0.98, None) speedmultiplier = self.timing_point[cur_offset]["Base"]/my_dict["BeatDuration"] scori...
unix/modtime: Fix time() precision on unix ports with non-double floats. With MICROPY_FLOAT_IMPL_FLOAT the results of utime.time(), gmtime() and localtime() change only every 129 seconds. As one consequence tests/extmod/vfs_lfs_mtime.py will fail on a unix port with LFS support. With this patch these functions only re...
@@ -67,7 +67,7 @@ static inline int msec_sleep_tv(struct timeval *tv) { #endif STATIC mp_obj_t mod_time_time(void) { - #if MICROPY_PY_BUILTINS_FLOAT + #if MICROPY_PY_BUILTINS_FLOAT && MICROPY_FLOAT_IMPL == MICROPY_FLOAT_IMPL_DOUBLE struct timeval tv; gettimeofday(&tv, NULL); mp_float_t val = tv.tv_sec + (mp_float_t)tv....
Add build version to the output of ssl_client2
#include "test/psa_crypto_helpers.h" #endif /* MBEDTLS_USE_PSA_CRYPTO || MBEDTLS_SSL_PROTO_TLS1_3 */ +#if defined(MBEDTLS_VERSION_C) +#include "mbedtls/build_info.h" +#endif /* MBEDTLS_VERSION_C */ + #if defined(MBEDTLS_SSL_TEST_IMPOSSIBLE) int main( void ) { @@ -360,6 +364,14 @@ int main( void ) #define USAGE_TLS1_3_K...
only collect retired at fresh page allocation
@@ -408,7 +408,7 @@ void _mi_page_retire(mi_page_t* page) { if (mi_likely(page->xblock_size <= MI_SMALL_SIZE_MAX && !mi_page_is_in_full(page))) { if (pq->last==page && pq->first==page) { // the only page in the queue? mi_stat_counter_increase(_mi_stats_main.page_no_retire,1); - page->retire_expire = 4; + page->retire_e...
Install header files
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +nobase_include_HEADERS = ngtcp2/ngtcp2.h ngtcp2/version.h
Fix comment content and formatting.
@@ -57,7 +57,7 @@ AWS authentication v4 constants #define AWS4_HMAC_SHA256 "AWS4-HMAC-SHA256" /*********************************************************************************************************************************** -Starting data for signing string so it will be regenerated on the first request +Starting da...
Update: irc_nar.py: fix typical tab-space issue
@@ -33,7 +33,7 @@ import itertools server = "irc.freenode.net" channel = "#nars" -botnick = "yan42" +botnick = "nars42" Narsese_Filter=["^","Answer:"] process_start = ["./../../NAR","shell"] @@ -59,11 +59,12 @@ thread.start_new_thread(receive_thread,(1,)) while True: try: text=irc.recv(2040) + print(text) if "PING" in ...
don't check signoff for PR merge build
@@ -39,7 +39,7 @@ before_install: - sudo ldconfig before_script: - - git show --summary HEAD | grep -q "Signed-off-by:" + - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git show --summary HEAD | grep -q "Signed-off-by:"; fi' script: - mkdir build && cd build
started adding neff function
@@ -554,6 +554,17 @@ static double ccl_dlninvsig_dlogm(ccl_cosmology *cosmo, double halomass, int*sta return val; } +/*----- ROUTINE: neff ------ + INPUT: + TASK: + */ +double neff(ccl_cosmology *cosmo, double halomass, int *status){ + + return 6.*ccl_dlninvsig_dlogm(cosmo, halomass, status)/log(10.)-3. + +} + + /*----...
Restore perl variables for ENGINESDIR and OPENSSLDIR For proper escaping, we need the direct perl variable values, not a make variable reference.
@@ -176,8 +176,8 @@ EX_LIBS={- join(' ', @{$config{ex_libs}}) -} LIB_CPPFLAGS={- join(" ", $target{shared_cppflag} || "", (map { quotify_l("-D".$_) } - 'OPENSSLDIR="$(OPENSSLDIR)"', - 'ENGINESDIR="$(ENGINESDIR)"')) -} + "OPENSSLDIR=\"$openssldir\"", + "ENGINESDIR=\"$enginesdir\"")) -} LIB_CFLAGS={- join(" ", $target{li...
Zero-terminate body when sending POST requests via curl
@@ -153,9 +153,22 @@ az_curl_send_post_request(CURL * const p_curl, az_http_request_builder const * c AZ_CONTRACT_ARG_NOT_NULL(p_hrb); // Method - AZ_RETURN_IF_CURL_FAILED(curl_easy_setopt(p_curl, CURLOPT_POSTFIELDS, p_hrb->body.begin)); + az_mut_span body = { 0, 0 }; + AZ_RETURN_IF_FAILED(az_span_malloc(p_hrb->body.si...
tool/perf: update to 5.6.4
}, "perf": { "formula": { - "sandbox_id": 592122048, + "sandbox_id": 657978986, "match": "infra/kernel/tools/perf/build/perf-static.tar.gz" }, "executable": {
Remove testlib's "#ifdef WUFFS_INCLUDE_GUARD"
@@ -398,9 +398,6 @@ test_main(int argc, char** argv, proc* tests, proc* benches) { return 0; } -// WUFFS_INCLUDE_GUARD is where wuffs_base__foo_bar are defined. -#ifdef WUFFS_INCLUDE_GUARD - wuffs_base__io_buffer // make_io_buffer_from_string(const char* ptr, size_t len) { return ((wuffs_base__io_buffer){ @@ -1084,5 +1...
Changing MAXFNAME from 260 back to 259
@@ -49,7 +49,7 @@ typedef int INT4; #define MAXID 31 /* Max. # characters in ID name */ #define MAXMSG 79 /* Max. # characters in message text */ #define MAXLINE 255 /* Max. # characters read from input line */ -#define MAXFNAME 260 /* Max. # characters in file name */ +#define MAXFNAME 259 /* Max. # characters in file...
all: fixes error stack trace in dark mode fixes
import React, { Component } from 'react'; import { Text, Box, Col } from '@tlon/indigo-react'; import { RouteComponentProps, withRouter } from 'react-router-dom'; +import styled from 'styled-components'; type ErrorProps = RouteComponentProps & { code?: number | string, @@ -8,6 +9,10 @@ type ErrorProps = RouteComponentP...
tool: elektrad - reformat readme
@@ -40,7 +40,6 @@ The output of `go build` is a binary, you can simply run it with: Compile Elektra as described in the [COMPILE document](/doc/COMPILE.md), make sure to include the `web` and `kdb` tool using the `-DTOOLS` flag, e.g. `-DTOOLS="kdb;web"`. - The binary is located at `build-dir/src/tools/web/elektrad` and...
Remove .gitignore from copy resources phase
C9BE01B42154738C00A8C825 /* site-packages in Resources */ = {isa = PBXBuildFile; fileRef = C9BE01B021530BAF00A8C825 /* site-packages */; }; C9DF70B821715D3D00981B4F /* FileCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9DF70B721715D3D00981B4F /* FileCollectionViewCell.swift */; }; C9DF70C02171...
Remove gfx90c from GFXLIST.
@@ -200,7 +200,7 @@ fi # Set list of default amdgcn subarchitectures to build # Developers may override GFXLIST to shorten build time. -GFXLIST=${GFXLIST:-"gfx700 gfx701 gfx801 gfx803 gfx900 gfx902 gfx906 gfx908 gfx90a gfx90c gfx940 gfx1030 gfx1031 gfx1032 gfx1033 gfx1034 gfx1035 gfx1036"} +GFXLIST=${GFXLIST:-"gfx700 g...
doc: Add missing COMPRESSION into CREATE TABLE synopsis. Commit introduced "INCLUDING COMPRESSION" option in CREATE TABLE command, but forgot to mention it in the CREATE TABLE syntax synopsis. Author: Fujii Masao Discussion:
@@ -87,7 +87,7 @@ class="parameter">referential_action</replaceable> ] [ ON UPDATE <replaceable cl <phrase>and <replaceable class="parameter">like_option</replaceable> is:</phrase> -{ INCLUDING | EXCLUDING } { COMMENTS | CONSTRAINTS | DEFAULTS | GENERATED | IDENTITY | INDEXES | STATISTICS | STORAGE | ALL } +{ INCLUDING...
86 setup -c
@@ -51,7 +51,7 @@ Scotch is a software package for graph and mesh/hypergraph partitioning and sparse matrix ordering. %prep -%setup -c -q -n %{pname}_%{version} +%setup -q -n %{pname}_%{version} pushd %{pname}_%{version} %patch0 -p1 sed s/@RPMFLAGS@/'%{optflags} -fPIC'/ < %{SOURCE1} > src/Makefile.inc
SOVERSION bump to version 2.18.8
@@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 18) -set(LIBYANG_MICRO_SOVERSION 7) +set(LIBYANG_MICRO_SOVERSION 8) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M...
Check return value of getcwd. Some systems warn.
@@ -350,7 +350,8 @@ genfunc(FILE *fd, Func *fn, Htab *globls, Htab *strtab) char cwd[1024]; resetregs(); - getcwd(cwd, sizeof cwd); + if (!getcwd(cwd, sizeof cwd)) + die("getcwd failed: %s\n", cwd); is.reglocs = mkht(varhash, vareq); is.name = fn->name; is.stkoff = fn->stkoff;
vppinfra: fix random buffer OOB crash with ASAN Don't truncate with vec_set_len bytes before they can be used. When built with ASAN, it these bytes are poisoned and trigger SIGSEGV when read. Type: fix
@@ -54,6 +54,9 @@ typedef struct /* Random buffer. */ uword *buffer; + /* An actual length to be applied before using the buffer. */ + uword next_read_len; + /* Cache up to 1 word worth of bytes for random data less than one word at a time. */ uword n_cached_bytes; @@ -84,6 +87,11 @@ clib_random_buffer_get_data (clib_r...
use PTLS_QUICINT_MAX
#include "h2o/hpack.h" #include "h2o/qpack.h" #include "h2o/http3_common.h" +#include "picotls.h" #define HEADER_ENTRY_SIZE_OFFSET 32 @@ -782,6 +783,9 @@ static int parse_decode_context(h2o_qpack_decoder_t *qpack, struct st_h2o_qpack_ if (ctx->req_insert_count == 0) return H2O_HTTP3_ERROR_QPACK_DECOMPRESSION_FAILED; } ...
vppinfra: update CPU list Type: improvement
#define foreach_x86_cpu_uarch \ _ (0x06, 0x9e, "Kaby Lake", "Kaby Lake DT/H/S/X") \ + _ (0x06, 0x9c, "Tremont", "Jasper Lake") \ + _ (0x06, 0x9a, "Alder Lake", "Alder Lake L") \ + _ (0x06, 0x97, "Alder Lake", "Alder Lake") \ + _ (0x06, 0x96, "Tremont", "Elkhart Lake") \ + _ (0x06, 0x8f, "Sapphire Rapids", "Sapphire Rap...
use gmtime_s instead of gmtime gmtime_s has security enhancements over gmtime, that is why windows generates a warning when trying to compile using gmtime, for more details: docs.microsoft.com/en-us/cpp/c-runtime-library/reference/gmtime-s-gmtime32-s-gmtime64-s
@@ -313,11 +313,15 @@ _bson_iso8601_date_format (int64_t msec_since_epoch, bson_string_t *str) gmtime_r (&t, &posix_date); strftime (buf, sizeof buf, "%Y-%m-%dT%H:%M:%S", &posix_date); } -#else +#elif defined(_MSC_VER) { - /* Windows gmtime is thread-safe */ - strftime (buf, sizeof buf, "%Y-%m-%dT%H:%M:%S", gmtime (&t)...
fix typo in pocl_binary
@@ -128,11 +128,13 @@ typedef struct pocl_binary_s /***********************************************************/ #define BUFFER_STORE(elem, type) \ - do { \ + do \ + { \ type b_s_tmp = (type) TO_LE ( (type) elem); \ memcpy (buffer, &b_s_tmp, sizeof (type)); \ buffer += sizeof (type); \ - } while(0) + } \ + while(0) #de...
Fix Tarball Builds
@@ -201,6 +201,7 @@ RAVEN_QT_H = \ qt/askpassphrasedialog.h \ qt/assetcontroldialog.h \ qt/assetcontroltreewidget.h \ + qt/assetrecord.h \ qt/assetsdialog.h \ qt/createassetdialog.h \ qt/bantablemodel.h \
removing draft watermark
\tcbuselibrary{skins} % for non-released DRAFT - comment out for GA release -\usepackage[firstpage]{draftwatermark} -\usepackage{draftwatermark} -%% \SetWatermarkText{Tech Preview} -\SetWatermarkScale{0.45} +%% \usepackage[firstpage]{draftwatermark} +%% \usepackage{draftwatermark} +%% %% \SetWatermarkText{Tech Preview}...
examples/jpeg: no need to check for jpeg_read_header output
@@ -62,10 +62,7 @@ int LLVMFuzzerTestOneInput(const uint8_t* buf, size_t len) { } jpeg_mem_src(&cinfo, buf, len); - - if (jpeg_read_header(&cinfo, TRUE) != JPEG_HEADER_OK) { - goto out; - } + jpeg_read_header(&cinfo, TRUE); /* Limit total number of pixels to decode to 50M */ uint64_t total_pix = (uint64_t)cinfo.output_...
update rpm build makefile rules
@@ -584,9 +584,12 @@ remove: cleanobj cleanapi cleanpackage cleantest distclean # Packaging +.PHONY: update_dch_version +update_dch_version: VERSION debian/changelog + @perl -0777 -pi -e 's/(\().*?(\))/`echo -n "("; echo -n $(VERSION); echo -n ")"`/e' debian/changelog + .PHONY: deb -deb: create_obj_dir_structure VERSIO...
updating trilinos to v12.10.1
@@ -68,7 +68,7 @@ Requires: mpich-%{compiler_family}%{PROJ_DELIM} %define ver_exp 12-6-4 Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} -Version: 12.6.4 +Version: 12.10.1 Release: 0 Summary: A collection of libraries of numerical algorithms License: LGPL-2.0 @@ -81,7 +81,6 @@ Source3: OHPC_setup_mpi Patch...
Add test to verify SNI match is higher priority than cipher This test verifies that s2n will select a certificate that matches the domain name in the SNI extension before it will select a certificate without a domain name match, irrespective of cipher preference.
@@ -188,5 +188,14 @@ SNI_CERT_TEST_CASES = [ # Make sure alligator is still served properly [("www.alligator.com", SNI_CERTS["alligator"], True, "ECDHE-RSA-AES128-SHA"), # many_animals was the first cert added - (None, SNI_CERTS["many_animals"], False, "ECDHE-RSA-AES128-SHA")]) + (None, SNI_CERTS["many_animals"], False...
Keep application worker until response for all requests received.
@@ -2644,6 +2644,7 @@ nxt_router_app_port_release(nxt_task_t *task, nxt_port_t *port, { int use_delta, ra_use_delta; nxt_app_t *app; + nxt_bool_t send_quit; nxt_queue_link_t *lnk; nxt_req_app_link_t *ra; @@ -2688,6 +2689,8 @@ nxt_router_app_port_release(nxt_task_t *task, nxt_port_t *port, ra_use_delta = 0; } + send_qui...
readme: mention honggfuzz-rs
@@ -88,11 +88,12 @@ Honggfuzz has been used to find a few interesting security problems in major sof * [__Frog And Fuzz__](https://github.com/warsang/FrogAndFuzz/tree/develop) * [dyjakan's __interpreters fuzzing__ project](https://github.com/dyjakan/interpreter-bugs) * [__riufuzz__: honggfuzz with AFL-like UI](https://...
require heartbeat as well as timespan for active node
@@ -147,7 +147,9 @@ public: } int IsActive(CBlockIndex* pindex) { - return (lastTimeSeen - now) > (max(FORTUNASTAKE_FAIR_PAYMENT_MINIMUM, (int)mnCount) * 30); // dsee broadcast is more than a round old & active from dseeps + return ((lastDseep > (GetAdjustedTime() - FORTUNASTAKE_MIN_DSEEP_SECONDS)) && + (lastTimeSeen -...
copy the key rather than set.
@@ -140,7 +140,7 @@ void IEEE802154_security_init(void) { //copy key2 memset(&ieee802154_security_vars.Key_2[0], 0, 16); - memset(&ieee802154_security_vars.Key_2[0], &key2[0], 16); + memcpy(&ieee802154_security_vars.Key_2[0], &key2[0], 16); //store the key 2 and related attributes //Creation of the KeyDescriptor - Key ...
Fix invalid read on error
@@ -612,13 +612,11 @@ again: break; } BSON_APPEND_DOCUMENT (&ar, key, bson); - data_offset += bson->len; + data_offset += len; i++; } bson_append_array_end (&cmd, &ar); - bson_reader_destroy (reader); - if (!i) { _mongoc_write_command_too_large_error ( @@ -626,7 +624,7 @@ again: result->failed = true; ret = false; if (...
Run tinc task as gpadmin in place of centos
@@ -10,6 +10,6 @@ run: set -ex ccp_src/aws/setup_ssh_to_cluster.sh if [ -n "$PRE_TEST_SCRIPT" ]; then - ssh -t "${PRE_TEST_SCRIPT_USER:-centos}"@mdw "$CUSTOM_ENV $PRE_TEST_SCRIPT" + ssh -t "${PRE_TEST_SCRIPT_USER:-gpadmin}"@mdw "$CUSTOM_ENV $PRE_TEST_SCRIPT" fi ssh -t mdw "$CUSTOM_ENV bash /home/gpadmin/gpdb_src/concou...
stm32/boards/PYBD_SF2: Put BTstack library in external QSPI XIP flash. In the same way the nimble stack is put there.
@@ -48,6 +48,7 @@ SECTIONS .text_ext : { . = ALIGN(4); + *lib/btstack/*(.text* .rodata*) *lib/mbedtls/*(.text* .rodata*) *lib/mynewt-nimble/*(.text* .rodata*) . = ALIGN(512);
apps/wm_test: remove duplicate functions remove duplicated feature when copy ap info
@@ -110,21 +110,7 @@ static int run_init(void *arg) /* Set AP Configuration */ struct wt_options *ap_info = (struct wt_options *)arg; wifi_manager_ap_config_s apconfig; - strncpy(apconfig.ssid, ap_info->ssid, WIFIMGR_SSID_LEN); - apconfig.ssid_length = strlen(ap_info->ssid); - apconfig.ssid[WIFIMGR_SSID_LEN] = '\0'; - ...
dojo: Store board version for use of something BRANCH=cherry TEST=make BOARD=dojo
#include "common.h" #include "console.h" +#include "cros_board_info.h" #include "driver/accel_kionix.h" #include "driver/accel_kx022.h" #include "driver/accelgyro_icm42607.h" #define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ## args) #define CPRINTF(format, args...) cprintf(CC_USBCHARGE, format, ## args) +...
build: expose the shared object test variant This sidesteps having to build static python and other life problems, rather than confronting our demons.
@@ -75,7 +75,8 @@ in localLib.dimension "system" systems (systemName: system: # The top-level set of attributes to build on ci. finalPackages = { # Expose select packages to increase signal-to-noise of the ci dashboard. - inherit (staticPackages) urbit urbit-tests; + inherit (staticPackages) urbit; + inherit (dynamicPa...
Re-add config file watch in case of IN_DELETE_SELF
@@ -21,14 +21,19 @@ static void fileChanged(void *params_void) { struct inotify_event *event = (struct inotify_event *) &buffer[i]; i += EVENT_SIZE + event->len; - if (event->mask & IN_MODIFY /*|| event->mask & IN_IGNORED*/) { + if (event->mask & IN_MODIFY || event->mask & IN_DELETE_SELF) { + // In the case of IN_DELET...
spider: prefix thread ids with thread name For thread ids generated by spider itself, includes the name of the thread, for convenient identification.
^- card [%pass /bind %arvo %e %connect [~ /spider] %spider] :: +++ new-thread-id + |= file=term + :((cury cat 3) file '--' (scot %uv (sham eny.bowl))) +:: ++ handle-http-request |= [eyre-id=@ta =inbound-request:eyre] ^- (quip card _state) =* input-mark i.t.site.url =* thread i.t.t.site.url =* output-mark i.t.t.t.site.u...
Fixes a issues that failed to run vcvarsall when vs_toolset and vs_sdkver are setted at same time.
@@ -253,8 +253,8 @@ function main(opt) if vcvarsall then -- load vcvarsall - local vcvarsall_x86 = _load_vcvarsall(vcvarsall, "x86", opt.vcvars_ver) - local vcvarsall_x64 = _load_vcvarsall(vcvarsall, "x64", opt.vcvars_ver) + local vcvarsall_x86 = _load_vcvarsall(vcvarsall, "x86", opt.vcvars_ver, opt.sdkver) + local vcv...
added 125Mhz clock to top_capi2.0
@@ -522,6 +522,12 @@ module top ( always begin ha_pclock = !ha_pclock; #(4.0ns / 2.0); // a line can not start with "#", because SNAP is unsing the C preprocessor end + // 125MHz AFU clock + reg pci_clock_125MHz; + initial pci_clock_125MHz <= 0; + always begin + pci_clock_125MHz = !pci_clock_125MHz; #(8.0ns / 2.0); // ...
Gather all unit tests logs in single directory
@@ -35,34 +35,40 @@ if os.system(script_path + os.sep + "prepare_sources_for_testing.py") != 0: build_dir = main_UT_dir + "build" + os.sep +logs_dir = main_UT_dir + "logs" + os.sep if not os.path.isdir(build_dir): try: os.makedirs(build_dir) except Exception: print "Cannot create build directory!" +if not os.path.isdir...
testing: add and improve checks in scripts/sed
@@ -168,6 +168,7 @@ _(Michael Tucek)_ - <<TODO>> - Cleanup tests/linkchecker.whitelist and fix off-by-1 bug of the counter in the scripts/link-checker script (increase counter before printf) _(Florian Lindner @flo91)_ - add tests the env binding _(Ivaylo Ivanov)_ +- add and improve checks in scripts/sed _(Florian Lindn...
stm32h7: Cleanup reset reg constants This brings no change in functionality. BRANCH=nocturne,hatch TEST=make buildall -j
/* Reset causes definitions */ #define STM32_RCC_RESET_CAUSE STM32_RCC_RSR -#define RESET_CAUSE_WDG 0x14000000 -#define RESET_CAUSE_SFT 0x01000000 -#define RESET_CAUSE_POR 0x00800000 -#define RESET_CAUSE_PIN 0x00400000 -#define RESET_CAUSE_OTHER 0xfffe0000 -#define RESET_CAUSE_RMVF 0x00010000 +#define RESET_CAUSE_WDG (...
Update option.h Declare od_cli_options as static to avoid compilation errors.
@@ -14,7 +14,7 @@ typedef struct { int log_stdout; } od_arguments_t; -enum { OD_OPT_CONSOLE = 10001, // >= than any utf symbol like -q -l etc +static enum { OD_OPT_CONSOLE = 10001, // >= than any utf symbol like -q -l etc OD_OPT_SILENT, OD_OPT_VERBOSE, OD_OPT_LOG_STDOUT,
Fix type issue;
@@ -116,7 +116,7 @@ static Color readMaterialColor(struct aiMaterial* assimpMaterial, const char* ke } } -static TextureData* readMaterialTexture(struct aiMaterial* assimpMaterial, enum aiTextureType type, ModelData* modelData, map_int_t* textureCache, const char* dirname) { +static int readMaterialTexture(struct aiMat...
board/vell/board.h: Format with clang-format BRANCH=none TEST=none
/* Sensors without hardware FIFO are in forced mode */ #define CONFIG_ACCEL_FORCE_MODE_MASK BIT(CLEAR_ALS) - /* USB Type C and USB PD defines */ #define CONFIG_USB_PD_REQUIRE_AP_MODE_ENTRY @@ -213,11 +212,7 @@ enum temp_sensor_id { TEMP_SENSOR_COUNT }; -enum sensor_id { - CLEAR_ALS = 0, - RGB_ALS, - SENSOR_COUNT -}; +e...
added future test for upvalues and symbolslots
"symbolslots survive disasm/asm") (setdyn *debug* false) +# need to fix upvalues +(comment + (setdyn *debug* true) + (setdyn :pretty-format "%.40M") + (def f (fn [x] (fn [y] (+ x y)))) + (assert (deep= (map last (in (disasm (f 10)) :symbolslots)) + @["x" "y"]) + "symbolslots upvalues") + (setdyn *debug* false) + ) + (s...
prints event replacement details
@@ -1350,8 +1350,12 @@ _pier_work_poke(void* vod_p, { // XX not the right place to print an error! // - // u3m_p("wire", u3h(u3t(r_jar))); - // u3_pier_punt(0, u3k(u3t(u3t(u3t(u3t(r_jar)))))); + u3m_p("wire", u3h(u3t(r_jar))); + u3m_p("oust", u3h(u3t(u3t(wit_u->job)))); + u3m_p("with", u3h(u3t(u3t(r_jar)))); + if ( c3_...
Fix build errors if no DCMI GPIOs are defined.
@@ -132,6 +132,7 @@ void HAL_MspInit(void) __HAL_RCC_JPGDECEN_CLK_ENABLE(); #endif + #if defined(DCMI_RESET_PIN) || defined(DCMI_PWDN_PIN) || defined(DCMI_FSYNC_PIN) /* Configure DCMI GPIO */ GPIO_InitTypeDef GPIO_InitStructure; GPIO_InitStructure.Pull = GPIO_PULLDOWN; @@ -152,6 +153,8 @@ void HAL_MspInit(void) GPIO_In...
Fix script runner unused variable warning
@@ -78,7 +78,7 @@ UBYTE ScriptStartBg(BankPtr* events_ptr, UBYTE owner) { void ScriptRunnerUpdate() { UBYTE* initial_script_ptr; - UBYTE i, script_cmd_index; + UBYTE script_cmd_index; UBYTE update_complete = FALSE; active_script_ctx.script_await_next_frame = FALSE;
Modify template comments
@@ -65,9 +65,7 @@ send_data(const void* data, size_t len) { */ espr_t esp_ll_init(esp_ll_t* ll) { - /* - * Step 1: Configure memory for dynamic allocations - */ + /* Step 1: Configure memory for dynamic allocations */ static uint8_t memory[0x10000]; /* Create memory for dynamic allocations with specific size */ /* @@ -...
Add GPIO Out_OD mode config Add GPIO Out_OD mode config In stm32f10x bsp
* Date Author Notes * 2015-03-24 Bright the first version * 2016-05-23 Margguo@gmail.com Add 48 pins IC define + * 2018-07-23 jiezhi320 Add GPIO Out_OD mode config */ #include <rthw.h> @@ -542,6 +543,11 @@ void stm32_pin_mode(rt_device_t dev, rt_base_t pin, rt_base_t mode) /* output setting */ GPIO_InitStructure.GPIO_M...
eqlms/autotest: define order for msequence
@@ -66,8 +66,8 @@ void autotest_eqlms_cccf_blind() unsigned int j; for (i=0; i<num_symbols; i++) { // generate input symbol - sym_in[i] = ( msequence_advance(ms) ? M_SQRT1_2 : -M_SQRT1_2 ) + - ( msequence_advance(ms) ? M_SQRT1_2 : -M_SQRT1_2 ) * _Complex_I; + sym_in[i] = ( msequence_advance(ms) ? M_SQRT1_2 : -M_SQRT1_2...
agent.c: formatting Improved formatting of RECV_SEND_ALL macro.
@@ -177,9 +177,7 @@ agent_connect_unix(LIBSSH2_AGENT *agent) #define RECV_SEND_ALL(func, socket, buffer, length, flags, abstract) \ int rc; \ - size_t finished; \ - \ - finished = 0; \ + size_t finished = 0; \ \ while(finished < length) { \ rc = func(socket, \
Add MAKEFOURCC
@@ -1915,6 +1915,12 @@ BOOLEAN PhLoadIconFromResourceDirectory( return TRUE; } +#ifndef MAKEFOURCC +#define MAKEFOURCC(ch0, ch1, ch2, ch3) \ + ((ULONG)(BYTE)(ch0) | ((ULONG)(BYTE)(ch1) << 8) | \ + ((ULONG)(BYTE)(ch2) << 16) | ((ULONG)(BYTE)(ch3) << 24 )) +#endif + // https://docs.microsoft.com/en-us/windows/win32/menur...
[chainmaker]add func define
@@ -25,6 +25,9 @@ boatchainamaker.h is header file for RAW transaction construction and performing #include "boatconfig.h" #include "boatinternal.h" +BOAT_RESULT hlchainmakerTransactionPacked(BoatHlchainmakerTx *tx_ptr, char* method,BoatTransactionPara *transaction_para, TxType tx_type); +void get_time_string(char* tim...
added info about GPS fix
@@ -4667,6 +4667,7 @@ printf("%s %s (C) %s ZeroBeat\n" "Do not edit, merge or convert this pcapng files , because it will remove optional comment fields!\n" "It is much better to run gzip to compress the files. Wireshark, tshark and hcxpcaptool will understand this.\n" "If hcxdumptool captured your password from WiFi t...
Make 'gpstop' parameters '-a' effect in use '-m'
@@ -100,7 +100,18 @@ class GpStop: self._prepare() if self.masteronly: + if self.interactive: + if not userinput.ask_yesno(None, "\nContinue with master-only shutdown", 'N'): + raise UserAbortedException() + try: + # Disable Ctrl-C + signal.signal(signal.SIGINT,signal.SIG_IGN) + self._stop_master() + finally: + # Reena...
Added 0.2s sleep after clean and before build Added 0.2s sleep to Makefile after clean and before build to resolve a race condition between rm -f and mkdir.
@@ -61,6 +61,7 @@ FORCE: $(TARGET): $(BUILD_DIR)/target $(BUILD_DIR)/$(BINARY).bin $(BUILD_DIR)/$(BINARY).hex $(BUILD_DIR)/$(BINARY).list $(BUILD_DIR)/target: FORCE + @sleep 0.2s @mkdir -p $(BUILD_DIR) @echo "Setting target to $(TARGET)" @echo "$(TARGET)" > $(BUILD_DIR)/target.tmp
Bitmask toexplode just in case we need to pack in more flags.
@@ -147,9 +147,9 @@ typedef enum // Flags for legacy bomb projectiles. typedef enum { - EXPLODE_NONE, - EXPLODE_PREPARE, - EXPLODE_DETONATE + EXPLODE_NONE = 0, + EXPLODE_PREPARED = (1 << 0), + EXPLODE_DETONATE = (1 << 1) } e_explode_status; // PLAY/REC INPUT vars
maint: additional boundary condition for posix.signal.signal
Constants and functions for propagating signals among processes. Note that `posix.signal.signal` is implemented with sigaction(2) for - consistent semantics across platforms. + consistent semantics across platforms. Also note that installed signal + handlers are not called immediatly upon occurrence of a signal. Instea...
components/screensaver: simplify slowdown
@@ -37,12 +37,10 @@ static void _render(component_t* component) static int8_t x_direction = 1; static int8_t y_direction = 1; // setting relative speed for both axes - const int8_t x_slowdown = 1; - const int8_t y_slowdown = 1; + const int8_t x_slowdown = 6; + const int8_t y_slowdown = 6; - const uint16_t master_slowdo...
woomax: Config lid and base rotation matrix. Config lid and base rotation matrix. BRANCH=master TEST=manual Enable ec console "accelinfo on" and check angle from 0 to 360 degree.
@@ -50,6 +50,19 @@ static struct mutex g_base_mutex; static struct kionix_accel_data g_kx022_data; static struct bmi_drv_data_t g_bmi160_data; +/* Rotation matrix for the lid accelerometer */ +static const mat33_fp_t lid_standard_ref = { + { FLOAT_TO_FP(-1), 0, 0 }, + { 0, FLOAT_TO_FP(-1), 0 }, + { 0, 0, FLOAT_TO_FP(1)...
Better xmake dephash (thanks )
@@ -108,20 +108,8 @@ option("installpath") task("dephash") on_run(function() - import("core.project.project") - import("private.action.require.impl.package") - - local requires, requires_extra = project.requires_str() - - local key = {} - for _, instance in irpairs(package.load_packages(requires, {requires_extra = requ...
Tests: skipping idle zero timeout. This is a temporary solution after the 'shared port' patch. The application process becomes idle immediately after creation. Even if it starts processing a request (without acknowledging it yet), it is stopped by the router because an 'out-of-idle-time' event occurs.
@@ -33,6 +33,7 @@ class TestPythonProcman(TestApplicationPython): self.assertIn('success', self.conf(conf, path), 'configure processes') + @unittest.skip('not yet') def test_python_processes_idle_timeout_zero(self): self.conf_proc({"spare": 0, "max": 2, "idle_timeout": 0})
Use std::log
@@ -97,7 +97,7 @@ inline void CalcLogSigmoid(const TConstArrayRef<double> approx, TArrayRef<double FastExpInplace(target.data(), target.size()); InvertSign(approx, target); for (auto& val : target) { - val = -log(1. + val); + val = -std::log(1. + val); } }
AllTypesParser refactoring AllTypesParser refactoring
@@ -36,8 +36,8 @@ template <class Base, class StreamBase = typename ::NPrivate::TStreamBase<Base>: class THoldingStream: private THolder<StreamBase>, public Base { public: template <class... Args> - inline THoldingStream(StreamBase* stream, Args&&... args) - : THolder<StreamBase>(stream) + inline THoldingStream(THolder...
workflow_stack.c: Allow starting workflows from init functions. Allow a workflow to start a sub-workflow from its _init() method. This allows nested workflow_stack_start_workflow() to happen.
@@ -57,8 +57,8 @@ static void _workflow_stack_push(workflow_t* workflow) void workflow_stack_start_workflow(workflow_t* workflow) { - workflow->init(workflow); _workflow_stack_push(workflow); + workflow->init(workflow); } void workflow_stack_stop_workflow(void)
nlop: properly work with GPU
@@ -396,7 +396,7 @@ static void flatten_der(const nlop_data_t* _data, complex float* dst, const comp auto iov = linop_codomain(nlop_get_derivative(data->op, o, 0)); - complex float* tmp = md_alloc(iov->N, iov->dims, iov->size); + complex float* tmp = md_alloc_sameplace(iov->N, iov->dims, iov->size, src); md_clear(iov->...
Test nested external parser handling
@@ -3661,6 +3661,53 @@ START_TEST(test_bad_ignore_section) } END_TEST +/* Test entity processing */ +static int XMLCALL +external_entity_valuer(XML_Parser parser, + const XML_Char *context, + const XML_Char *UNUSED_P(base), + const XML_Char *systemId, + const XML_Char *UNUSED_P(publicId)) +{ + const char *text1 = + "<!...
Added a how-to on the Nuclear option.
@@ -103,3 +103,33 @@ This may take some time to run in its entirety. If you changed the API, you may have to modify the tests to account for this. You should also add your own tests for any new functions or behaviors that were added. + +Occasionally, modifications made correctly as described above will still not functi...
add E2E tests for h2olog -A
@@ -155,7 +155,62 @@ subtest "h2olog -S=0.00", sub { grep { $_->{type} eq "h3s-destroy" } @logs - ], [], "no stream-on-destroy header in logs"; + ], [], "no h3s-destroy header in logs"; + }; +}; + +subtest "h2olog -A=127.0.0.2", sub { + my $tracer = H2ologTracer->new({ + pid => $server->{pid}, + args => ["-A", "127.0.0...
what a blunder... not reading the CI before a release...
@@ -119,8 +119,7 @@ Version and helper macros #if FIO_VERSION_BETA #define FIO_VERSION_STRING \ FIO_MACRO2STR(FIO_VERSION_MAJOR) \ - "." FIO_MACRO2STR(FIO_VERSION_MINOR) "." FIO_MACRO2STR(FIO_VERSION_PATCH) \ - FIO_VERSION_PRERELEASE + "." FIO_MACRO2STR(FIO_VERSION_MINOR) "." FIO_MACRO2STR(FIO_VERSION_PATCH) #else #def...
OpenXR: Lazily create hand trackers; Works around some behavior observed with Ultraleap API layer.
@@ -316,18 +316,6 @@ static bool openxr_init(float offset, uint32_t msaa) { XR_INIT(xrCreateSession(state.instance, &info, &state.session)); XR_INIT(xrAttachSessionActionSets(state.session, &attachInfo)); - - if (state.features.handTracking) { - XrHandTrackerCreateInfoEXT handTrackerInfo = { - .type = XR_TYPE_HAND_TRAC...
sysrepo CHANGE parse startup data as trusted Refs
@@ -1081,9 +1081,9 @@ sr_install_module_data(sr_conn_ctx_t *conn, const char *module_name, const char /* parse module data */ ly_errno = 0; if (data_path) { - mod_data = lyd_parse_path(tmp_ly_ctx, data_path, format, LYD_OPT_CONFIG | LYD_OPT_STRICT); + mod_data = lyd_parse_path(tmp_ly_ctx, data_path, format, LYD_OPT_CON...
Check log stream before writing
@@ -61,6 +61,7 @@ void writeFile(string filename){ std::cerr << "Writing log file [" << filename << "], " << logArray.size() << " entries\n"; #endif std::ofstream out(filename, ios::out | ios::app); + if (out){ out << "os," << "cpu," << "gpu," << "ram," << "kernel," << "driver" << endl; out << os << "," << cpu << "," <...
build/imxrt : Update partition for fs loading and enable fs CRC for making smartfs image 1. Update partition for fs loading 2. CRC should be enabled for smartfs image
@@ -28,7 +28,7 @@ CONFIG_KSRAM_SIZE=192 CONFIG_USRAM_SIZE=64 CONFIG_AUTOGEN_MEMORY_LDSCRIPT=y CONFIG_APP_BINARY_SEPARATION=y -CONFIG_NUM_APPS=2 +CONFIG_NUM_APPS=5 # CONFIG_APPS_RAM_REGION_SHAREABLE is not set CONFIG_SUPPORT_COMMON_BINARY=y CONFIG_COMMON_BINARY_PATH="/mnt/" @@ -379,7 +379,7 @@ CONFIG_BOARDCTL_RESET=y CO...
Release: version 4.7.0test1 Bump version number for first test release.
dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N) AC_PREREQ([2.60]) define(_CLIENT_VERSION_MAJOR, 4) -define(_CLIENT_VERSION_MINOR, 3) -define(_CLIENT_VERSION_REVISION, 2) -define(_CLIENT_VERSION_BUILD, 1) +define(_CLIENT_VERSION_MINOR, 7) +define(_CLIENT_VERSION_REVISION, 0) +define(_CLIENT_VERSION_BUILD, 0) +define(_CLIE...
arvo: temporary, removes initial kernel source from +brass
:: =/ bas=path (flop (tail (flop sys))) :+ boot-ova - :~ :~ //arvo - %what - [/sys/hoon hoon/compiler-source] - [/sys/arvo hoon/arvo-source] - == - (file-ovum2:pill bas) + :~ (file-ovum2:pill bas) == [(file-ovum:pill bas) ~]
frsky: trigger aux even higher
@@ -322,10 +322,10 @@ static void frsky_d_set_rc_data() { rx_apply_expo(); //Here we have the AUX channels Silverware supports - aux[AUX_CHANNEL_0] = (channels[4] > 1850) ? 1 : 0; - aux[AUX_CHANNEL_1] = (channels[5] > 1850) ? 1 : 0; - aux[AUX_CHANNEL_2] = (channels[6] > 1850) ? 1 : 0; - aux[AUX_CHANNEL_3] = (channels[7...
Go tls is not interposed if we use metadata symbols. This is a temp workaround.
@@ -462,8 +462,10 @@ initGoHook(elf_buf_t *ebuf) } // Get the interface type for a tls.Conn (set to 0 if not present) - go_tls_conn = (uint64_t)getGoSymbol(ebuf->buf, "go.itab.*crypto/tls.Conn,net.Conn"); - + go_tls_conn = (uint64_t)getSymbol(ebuf->buf, "go.itab.*crypto/tls.Conn,net.Conn"); + if (go_tls_conn == 0) { + ...
Fix gppkg unit test failures This test was asserting on a higher level mock which wasn't being used. This commit uses the correct mock and the tests are passing.
@@ -8,7 +8,6 @@ import sys class GpPkgProgramTestCase(GpTestCase): def setUp(self): self.mock_cmd = Mock() - self.mock_list_files_by_pattern = Mock() self.mock_gppkg = Mock() self.mock_uninstall_package = Mock() @@ -52,7 +51,7 @@ class GpPkgProgramTestCase(GpTestCase): self.subject = GpPkgProgram(options, args) self.su...
Fix downsize on error before first frame Retry with a lower definition if MediaCodec fails before the first frame, not the first packet. In practice, the first packet is a config packet without any frame, and MediaCodec might fail just after. Refs Refs <https://github.com/Genymobile/scrcpy/issues/2963>
@@ -159,8 +159,11 @@ public class ScreenEncoder implements Device.RotationListener { } IO.writeFully(fd, codecBuffer); + if ((bufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) == 0) { + // If this is not a config packet, then it contains a frame firstFrameSent = true; } + } } finally { if (outputBufferId >= 0) { ...
tup: Strip on non-debug Android builds;
@@ -112,6 +112,9 @@ ifeq ($(PLATFORM),android) FLAGS += --target=aarch64-linux-android@(ANDROID_VERSION) FLAGS_@(DEBUG) += -funwind-tables LDFLAGS += -shared -landroid -lEGL -lGLESv3 + ifneq (@(DEBUG),y) + LDFLAGS += -Wl,-s + endif ACTIVITY_@(OPENXR) = Activity_openxr ACTIVITY_@(VRAPI) = Activity_vrapi
Ensure that SSL_dup copies the min/max protocol version With thanks to Rebekah Johnson for reporting this issue.
@@ -4006,6 +4006,8 @@ SSL *SSL_dup(SSL *s) goto err; ret->version = s->version; ret->options = s->options; + ret->min_proto_version = s->min_proto_version; + ret->max_proto_version = s->max_proto_version; ret->mode = s->mode; SSL_set_max_cert_list(ret, SSL_get_max_cert_list(s)); SSL_set_read_ahead(ret, SSL_get_read_ahe...
Fix listener stop documentation in api.md
@@ -114,7 +114,7 @@ If the server accepts the connection, it now has ownership of the connection obj For an accepted connection to actually continue with its handshake, the server must call [ConnectionSetConfiguration](api/ConnectionSetConfiguration.md) to configure the necessary security (TLS) parameters. This may be ...
Address ri.c unit test issues
@@ -182,8 +182,12 @@ oc_ri_get_query_nth_key_value(const char *query, size_t query_len, char **key, size_t i = 0; char *start = (char *)query, *current, *current2, *end = (char *)query + query_len; - current = start; + if (start == NULL) { + return next_pos; + } + + current = start; while (i < (n - 1) && current != NUL...
remove spurious check and add further assertions (issue
@@ -574,13 +574,16 @@ static void mi_page_extend_free(mi_heap_t* heap, mi_page_t* page, mi_tld_t* tld) // calculate the extend count const size_t bsize = (page->xblock_size < MI_HUGE_BLOCK_SIZE ? page->xblock_size : page_size); size_t extend = page->reserved - page->capacity; + mi_assert_internal(extend > 0); + size_t ...
Fix system-lua test
@@ -73,14 +73,15 @@ script: cd .. # Compile and link using system-wide Lua - CABAL_CONFIG_ARGS="$CABAL_CONFIG_ARGS --constraint 'hslua +system-lua'" - CABAL_CONFIG_ARGS="$CABAL_CONFIG_ARGS --extra-include-dirs=${HOME}/usr/include" - CABAL_CONFIG_ARGS="$CABAL_CONFIG_ARGS --extra-lib-dirs=${HOME}/usr/lib" + printf "const...