From: Amaury Denoyelle Date: Fri, 7 Aug 2026 14:29:19 +0000 (+0200) Subject: MINOR: quic: stress CRYPTO Rx buffer wrapping X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a4f4b4b32172a6bdd900a4c25d6110be8b69570;p=thirdparty%2Fhaproxy.git MINOR: quic: stress CRYPTO Rx buffer wrapping Force CRYPTO Rx buffer to be unaligned when running under stress. Most of the time, this will cause a connection error with CRYPTO_BUFFER_EXCEEDED as CRYPTO wrapping is not yet implemented. --- diff --git a/include/haproxy/quic_conn.h b/include/haproxy/quic_conn.h index 3424389a2..183dfdba9 100644 --- a/include/haproxy/quic_conn.h +++ b/include/haproxy/quic_conn.h @@ -50,6 +50,7 @@ #include #include #include +#include #include @@ -156,7 +157,8 @@ static inline struct ncbmbuf *quic_get_ncbuf(struct ncbmbuf *ncbuf) return NULL; *ncbuf = ncbmb_make(buf.area, buf.size, 0); - ncbmb_init(ncbuf, 0); + STRESS_RUN5(ncbmb_init(ncbuf, ncbmb_size(ncbuf) - 256), + ncbmb_init(ncbuf, 0)); return ncbuf; }