Commit fd5cfe4
committed
Follow-up to PR bytecodealliance#4300: prevent potential overflow
PR bytecodealliance#4300 introduced the rationale for validating heap_type.
This patch moves the validation before the computation of
type1 to prevent potential overflow.1 parent 0343aaf commit fd5cfe4
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
843 | 843 | | |
844 | 844 | | |
845 | 845 | | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
846 | 863 | | |
847 | 864 | | |
848 | 865 | | |
849 | 866 | | |
850 | 867 | | |
851 | | - | |
852 | 868 | | |
853 | 869 | | |
854 | 870 | | |
| |||
0 commit comments