Commit 05f9ca4
[regexp] Fix potential overflow on 32-bit builds
In RegExpMatchGlobalAtom_OneCharPattern, if subject is allocated at a
high address, it is possible that `block + stride * max_count`
overflows on 32-bit builds on a 64-bit platform.
Fix this by comparing `stride * max_count` against the remaining length.
Fixed: 449767585
Change-Id: I6a7be4064f53a2282b98c6a1f342e1b646d29b71
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7021933
Auto-Submit: Patrick Thier <[email protected]>
Reviewed-by: Jakob Linke <[email protected]>
Commit-Queue: Jakob Linke <[email protected]>
Cr-Commit-Position: refs/heads/main@{#103009}1 parent ac57598 commit 05f9ca4
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2200 | 2200 | | |
2201 | 2201 | | |
2202 | 2202 | | |
2203 | | - | |
| 2203 | + | |
2204 | 2204 | | |
2205 | 2205 | | |
2206 | 2206 | | |
| |||
2224 | 2224 | | |
2225 | 2225 | | |
2226 | 2226 | | |
2227 | | - | |
| 2227 | + | |
2228 | 2228 | | |
2229 | 2229 | | |
2230 | 2230 | | |
| |||
0 commit comments