PCRE2Project / pcre2

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

pcre2test: avoid overreading subject buffer with leading spaces #430

Closed carenas closed 5 months ago

carenas commented 5 months ago

Could trick pcre2test into trying to decode a trailing utf character from the subject using data outside of what was read into its buffer.

Note that under normal circumstances the buffer is zero terminated and so any over read will be limited and likely to keep within the buffer even without the fix.