SECURITY UPDATE: Out-of-bounds write in pcre2_dfa_match() when a
recursive match reused a cached workspace block smaller than required,
which a pattern can force with a low (*LIMIT_HEAP)
debian/patches/CVE-2026-86145.patch: refuse to reuse an undersized
workspace block in src/pcre2_dfa_match.c
CVE-2026-86145
SECURITY UPDATE: Out-of-bounds write in pcre2_pattern_convert() on 32-bit
systems, because the automatic output allocation size overflowed for very
large patterns
debian/patches/CVE-2026-89157.patch: size the allocations with
CU2BYTES() and reject overflowing lengths in src/pcre2_convert.c and
src/pcre2_substring.c
CVE-2026-89157
SECURITY UPDATE: Out-of-bounds write in pcre2_compile_32() on 32-bit
systems, because the byte size of a very large compiled pattern overflowed
debian/patches/CVE-2026-89158.patch: limit compiled-pattern lengths and
use checked arithmetic in src/pcre2_compile.c
CVE-2026-89158
SECURITY UPDATE: Out-of-bounds write in JIT matching with a growable JIT
stack, because the stack-resize stub grew the stack by a fixed 8192 bytes
even when a single frame allocation was larger than that
debian/patches/CVE-2026-103111.patch: grow the JIT stack far enough to
cover large single allocations in src/pcre2_jit_compile.c
CVE-2026-103111
SECURITY UPDATE: Infinite loop in the pcre2test utility when a subject
line used a negative repeat count in a [...]{n} escape, because the
repeat count was rejected only when it was exactly zero
debian/patches/CVE-2022-41409.patch: reject zero or negative repeat
counts in src/pcre2test.c, with a regression test in testdata/testinput2
and testdata/testoutput2
CVE-2022-41409
Enable large-file support on 32-bit architectures
debian/rules: append -D_FILE_OFFSET_BITS=64 to DEB_CFLAGS_MAINT_APPEND,
so readdir() does not fail with EOVERFLOW when a filesystem uses inode
numbers wider than 32 bits. Without it pcre2grep -r treats the first
such entry as end-of-directory and silently reports no files, and the
recursion cases of RunGrepTest fail on armel.
equivalent to upstream commit b5135041 ("Enable LFS on 32-bit
platforms", first released in pcre2 10.41), which adds AC_SYS_LARGEFILE
to configure.ac; debian/rules does not run autoreconf, so the macro is
set through CFLAGS instead.