Commit 6591826
src: handle wasm out of bound in osx will raise SIGBUS correctly
fix: #46559
OSX will raise both SIGBUS and SIGSEGV when out of bound memory visit,
This commit set sigaction in OSX for two signals to handle this.
PR-URL: #46561
Fixes: #46559
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>1 parent 40ae6eb commit 6591826Copy full SHA for 6591826
File tree
Expand file treeCollapse file tree
4 files changed
+51
-1
lines changedOpen diff view settings
Filter options
- src
- test
- fixtures
- parallel
Expand file treeCollapse file tree
4 files changed
+51
-1
lines changedOpen diff view settings
Collapse file
+23-1Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
362 | 362 | |
363 | 363 | |
364 | 364 | |
| 365 | + |
| 366 | + |
| 367 | + |
| 368 | + |
365 | 369 | |
366 | 370 | |
367 | 371 | |
| 372 | + |
| 373 | + |
| 374 | + |
| 375 | + |
368 | 376 | |
| 377 | + |
369 | 378 | |
370 | 379 | |
371 | 380 | |
| ||
395 | 404 | |
396 | 405 | |
397 | 406 | |
| 407 | + |
| 408 | + |
| 409 | + |
| 410 | + |
| 411 | + |
| 412 | + |
| 413 | + |
| 414 | + |
| 415 | + |
398 | 416 | |
399 | 417 | |
400 | 418 | |
| ||
551 | 569 | |
552 | 570 | |
553 | 571 | |
554 | | - |
| 572 | + |
555 | 573 | |
556 | 574 | |
557 | 575 | |
558 | 576 | |
559 | 577 | |
560 | 578 | |
561 | 579 | |
| 580 | + |
| 581 | + |
| 582 | + |
| 583 | + |
562 | 584 | |
563 | 585 | |
564 | 586 | |
|
Binary file not shown.
Collapse file
test/fixtures/out-of-bound.wat
Copy file name to clipboard+16Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
Collapse file
test/parallel/test-wasm-memory-out-of-bound.js
Copy file name to clipboard+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
0 commit comments