5 Commits

Author SHA1 Message Date
Nicholas Wilson
cbfe089624 Automatic update of doc files #noupdate 2025-08-28 10:39:03 +00:00
Nicholas Wilson
e02e52804c Update release number to 10.46-DEV #noupdate (#667) 2025-01-12 15:28:37 +00:00
Nicholas Wilson
f15bdd334d Update all man page dates #noupdate (#634) 2024-12-18 14:12:58 +00:00
Carlo Marcelo Arenas Belón
57906628d7 pcre2test: memory reports only compiled memory usage for code/data (#418)
Since 05aafb2 (Implement pcre2_set_max_pattern_compiled_length() and set
this limit in the fuzzer, 2024-04-24), the memory modifier has reported
the full size of the allocated "code" returned by `pcre2_compile`.

Problem is that the size of the structure used to hold that in memory also
depends on the platform ABI and even alignment by the compiler, and has
been therefore fragile to compare.

Revert to reporting only the additional memory that `pcre2_compile()` will
use for the compiled pattern (including any data tables) and make sure
that the limit provided with `pcre2_set_max_pattern_compiled_length()`
also avoid the internal struct overhead.

Fixes: #415
2024-06-09 16:22:15 +01:00
Philip Hazel
05aafb2e30 Implement pcre2_set_max_pattern_compiled_length() and set this limit in the fuzzer 2024-04-24 09:32:25 +01:00