Commit 852ee35
authored
Protect wasm-smith against arbitrary
* Protect wasm-smith against arbitrary `Config` differently
Currently `Arbitrary for Config` will perform some internal validation
of options, such as if reference-types are disabled then gc is also
disabled. This validation doesn't happen for other sources of `Config`
though, such as CLI options or from manual configuration. This commit
moves these checks from `Arbitrary for Config` to unconditionally
happening during module creation. This fixes a panic where if reference
types are disabled but tables are allowed then an internal assertion was
tripped because GC types were used when they shouldn't be.
* Add documentationConfig differently (bytecodealliance#1825)1 parent f063a7c commit 852ee35
3 files changed
+40
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
| 665 | + | |
670 | 666 | | |
671 | 667 | | |
672 | 668 | | |
| |||
678 | 674 | | |
679 | 675 | | |
680 | 676 | | |
681 | | - | |
| 677 | + | |
682 | 678 | | |
683 | 679 | | |
684 | 680 | | |
685 | 681 | | |
686 | | - | |
| 682 | + | |
687 | 683 | | |
688 | 684 | | |
689 | 685 | | |
690 | 686 | | |
691 | 687 | | |
692 | 688 | | |
693 | | - | |
| 689 | + | |
694 | 690 | | |
695 | 691 | | |
696 | 692 | | |
697 | | - | |
| 693 | + | |
698 | 694 | | |
699 | 695 | | |
700 | 696 | | |
| |||
742 | 738 | | |
743 | 739 | | |
744 | 740 | | |
745 | | - | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
746 | 773 | | |
747 | 774 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
| 206 | + | |
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments