Commit 3d5a10d
authored
Fuzzer: Avoid massive initial sizes for memories (#7305)
We generate random segments and then make the memory's initial
size big enough to accomodate them, but if the size is massive then
we will just OOM anyhow (or even not validate in wasm32 in some
cases). To avoid that, put a limit on the maximum initial memory
size as influenced by segments.1 parent 613ea88 commit 3d5a10d
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
756 | | - | |
757 | | - | |
758 | | - | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
759 | 768 | | |
760 | 769 | | |
761 | 770 | | |
| |||
0 commit comments