-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit c4bb075
Fix GH-16184: UBSan address overflowed in ext/pcre/php_pcre.c
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.
Closes GH-16205.1 parent f453d1a commit c4bb075
3 files changed
+21
-4
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 | - | ||
41 | + | ||
42 | + | ||
43 | + | ||
42 | 44 |
| |
43 | 45 |
| |
44 | 46 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1747 | 1747 |
| |
1748 | 1748 |
| |
1749 | 1749 |
| |
1750 | - | ||
1751 | - | ||
1752 | - | ||
1750 | + | ||
1751 | + | ||
1752 | + | ||
1753 | + | ||
1754 | + | ||
1753 | 1755 |
| |
1754 | 1756 |
| |
1755 | 1757 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + |
0 commit comments