PCRE2Project / pcre2

PCRE2 development is now based here.
Other
921 stars 194 forks source link

Invalid size 0 may lead to undefined behavior / infinite loop #400

Closed jvanegue closed 4 months ago

jvanegue commented 8 months ago

Function pcre2_substring_nametable_scan is externally exposed contains ill-defined case where size = 0 leading to undefined behavior / infinite loop

PR submitted (2 lines changes) - See https://github.com/PCRE2Project/pcre2/pull/398 for details

Thank you, Julien Vanegue

PhilipHazel commented 8 months ago

See my comment on the PR.