Commit 9e5a085
authored
Disallow non-type/instance aliases in component/instance types (#2462)
This fixes a bug in the validation of components where previously
invalid `alias` items were allowed to be present in `instance` and
`component` type definitions. The specification indicates that these
should be disallowed and `wasmparser` erroneously allowed them. The
impact of this change is expected to be nonexistent or negligible as
this only applies to handwritten components. Components produced by
`wit-component` do not use this feature so no previously produced
component should be rejected. Additionally the impact of allowing these
invalid `alias` annotations is also negligible as you couldn't actually
do anything with the item anyway so it was just sort of dead bloat in a
binary.
cc WebAssembly/component-model#6211 parent 70d6683 commit 9e5a085
File tree
3 files changed
+43
-14
lines changed- crates/wasmparser/src/validator
- tests
- cli/component-model
- snapshots/cli/component-model
3 files changed
+43
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2446 | 2446 | | |
2447 | 2447 | | |
2448 | 2448 | | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
2449 | 2474 | | |
2450 | 2475 | | |
2451 | 2476 | | |
2452 | 2477 | | |
2453 | 2478 | | |
2454 | | - | |
2455 | | - | |
2456 | | - | |
2457 | | - | |
2458 | | - | |
2459 | | - | |
2460 | | - | |
| 2479 | + | |
2461 | 2480 | | |
2462 | 2481 | | |
2463 | 2482 | | |
2464 | 2483 | | |
2465 | | - | |
2466 | | - | |
2467 | | - | |
2468 | | - | |
2469 | | - | |
2470 | | - | |
2471 | | - | |
| 2484 | + | |
2472 | 2485 | | |
2473 | 2486 | | |
2474 | 2487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
0 commit comments