Commit 356441a
committed
src: add length assertion in ABVC nullptr case
When ABVC receives a view on an array buffer with a null data pointer,
it sets its own data pointer to uninitialized stack memory. While V8
_should_ always have the view length set to zero in this case, it's
worth double-checking.
Refs: nodejs#623431 parent 7afc299 commit 356441a
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
597 | | - | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
598 | 602 | | |
599 | 603 | | |
600 | 604 | | |
| |||
0 commit comments