Commit c3b9cde
authored
Reject invalid section IDs (#6675)
Rather than treating them as custom sections. Also fix UB where invalid
`Section` enum values could be used as keys in a map. Use the raw `uint8_t`
section IDs as keys instead. Re-enable a disabled spec test that was failing
because of this bug and UB.1 parent 0f9f2dc commit c3b9cde
3 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
411 | | - | |
412 | 411 | | |
413 | 412 | | |
414 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1453 | 1453 | | |
1454 | 1454 | | |
1455 | 1455 | | |
1456 | | - | |
| 1456 | + | |
1457 | 1457 | | |
1458 | 1458 | | |
1459 | 1459 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1784 | 1784 | | |
1785 | 1785 | | |
1786 | 1786 | | |
1787 | | - | |
1788 | | - | |
1789 | | - | |
1790 | | - | |
1791 | | - | |
| 1787 | + | |
| 1788 | + | |
1792 | 1789 | | |
1793 | 1790 | | |
1794 | 1791 | | |
| |||
1837 | 1834 | | |
1838 | 1835 | | |
1839 | 1836 | | |
1840 | | - | |
| 1837 | + | |
1841 | 1838 | | |
1842 | 1839 | | |
1843 | 1840 | | |
| |||
1846 | 1843 | | |
1847 | 1844 | | |
1848 | 1845 | | |
| 1846 | + | |
1849 | 1847 | | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
1850 | 1851 | | |
1851 | 1852 | | |
1852 | 1853 | | |
| |||
0 commit comments