Skip to content

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Oct 3, 2024

libpcre2 can return the special value -1 for a non-match. In this case we get pointer overflow, although it doesn't matter in practice because the pointer will be in bounds and the copy length will be 0. Still, we should fix the UBSAN warning.

libpcre2 can return the special value -1 for a non-match.
In this case we get pointer overflow, although it doesn't matter in
practice because the pointer will be in bounds and the copy length will
be 0. Still, we should fix the UBSAN warning.
@nielsdos nielsdos linked an issue Oct 3, 2024 that may be closed by this pull request
@nielsdos nielsdos closed this in c4bb075 Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UBSan address overflowed in ext/pcre/php_pcre.c

2 participants