Commit 96bc71e
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 223b3ed commit 96bc71e
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
463 | 486 | | |
464 | 487 | | |
465 | 488 | | |
| |||
0 commit comments