Commit Graph

8 Commits

Author SHA1 Message Date
Nicholas Wilson
5447a395dc Automatic update of doc files #noupdate 2025-02-04 13:03:43 +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
303e3bc480 make sure to use either size_t or PCRE2_SIZE correctly (#195)
It doesn't change much in practice, but helps clarify the interfaces
of some functions that were either documented with the wrong type or
had mismatching types between declaration and implementation.
2023-01-23 12:36:53 +00:00
Carlo Marcelo Arenas Belón
eb42305f07 jit: avoid integer wraparound in stack size definition (#42)
pcre2_jit_stack_create() allows the user to indicate how big of a
stack size JIT should be able to allocate and use, using a size_t
variable which should be able to hold bigger values than reasonable.

Internally, the value is rounded to the next 8K, but if the value
is unreasonable large, would overflow and could result in a smaller
than expected stack or a maximun size that is smaller than the
minimum..

Avoid the overflow by checking the value and failing early, and
while at it make the check clearer while documenting the failure
mode.

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
2021-11-19 09:23:46 +01:00
Philip.Hazel
e75410a5d8 More typos and changes to "Kibibytes" for "Kilobytes". 2018-06-18 14:03:33 +00:00
Philip.Hazel
3aeb812180 Documentation update. 2017-03-24 16:53:38 +00:00
Philip.Hazel
161cd17ba0 Move context argument to last in pcre2_jit_stack_create(). 2014-11-28 12:46:16 +00:00
Philip.Hazel
08e3107cbe Changed jit_stack_alloc to jit_stack_create. 2014-11-03 17:13:00 +00:00