Commit 7e29b15
Add regression test for #923: ValidateScript OOB read with large invalid scripts
The bug (fixed in cb6c751) was that ValidateScript used a fixed char[2048]
buffer for error messages, causing out-of-bounds reads when error output
exceeded the buffer. The current code uses std::string with
std::back_inserter. This adds a regression test using the original
reproducer to ensure the fix holds.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent b3dbe30 commit 7e29b15
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
427 | 450 | | |
428 | 451 | | |
429 | 452 | | |
| |||
0 commit comments