Repository navigation
Commit 83ffb3c
Validate multirange element count against source length before allocating
A crafted binary multirange with a large element count could trigger
an excessive allocation in SetLen before the per-element parsing
would detect the short source. Validate that the count is plausible
given the available data.
Co-Authored-By: Claude Opus 4.6 <[email protected]>1 parent 828f214 commit 83ffb3c
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
213 | 218 | | |
214 | 219 | | |
215 | 220 | | |
| |||
0 commit comments