ChihweiLHBird opened PR #14532 from ChihweiLHBird:wasi-nn-onnx-input-errors to bytecodealliance:main:
The ONNX backend panics the host for an input tensor whose type is not
f32, and for anf32tensor whose byte length is not a multiple of four. This change returns aBackendErrorin both cases and adds tests for the byte length check on the WIT and WITX paths.
ChihweiLHBird updated PR #14532.
ChihweiLHBird has marked PR #14532 as ready for review.
ChihweiLHBird requested rvolosatovs for a review on PR #14532.
ChihweiLHBird requested wasmtime-wasi-reviewers for a review on PR #14532.
ChihweiLHBird requested alexcrichton for a review on PR #14532.
ChihweiLHBird requested wasmtime-core-reviewers for a review on PR #14532.
alexcrichton commented on PR #14532:
@rahulchaphalkar would you be ok if I flagged you for review for this?
rahulchaphalkar commented on PR #14532:
@rahulchaphalkar would you be ok if I flagged you for review for this?
Sure!
alexcrichton unassigned rvolosatovs from PR #14532 wasi-nn: return errors for invalid ONNX input tensors.
Last updated: Oct 11 2026 at 04:10 UTC