|
Revision tags: dev, v36.0.9, v44.0.1, v43.0.2, v36.0.8, v24.0.8, v44.0.0, v43.0.1, v42.0.2, v36.0.7, v24.0.7, v43.0.0, v42.0.1, v41.0.4, v42.0.0, v40.0.4, v36.0.6, v24.0.6, v41.0.3, v41.0.2, v41.0.1, v36.0.5, v40.0.3, v41.0.0 |
|
| #
dde8960d |
| 15-Jan-2026 |
Zijie Zhao <[email protected]> |
Fix off-by-one error in enum discriminant validation (#12356)
The discriminant check used `i32.gt_u` when it should use `i32.ge_u`. For an enum with N cases (valid discriminants 0 to N-1), a discrim
Fix off-by-one error in enum discriminant validation (#12356)
The discriminant check used `i32.gt_u` when it should use `i32.ge_u`. For an enum with N cases (valid discriminants 0 to N-1), a discriminant of exactly N was incorrectly accepted.
Closes #12354
show more ...
|