Ocheretovich requested pchickey for a review on PR #12604.
Ocheretovich requested wasmtime-core-reviewers for a review on PR #12604.
Ocheretovich opened PR #12604 from Ocheretovich:main to bytecodealliance:main:
Avoid potential panic when parsing --dir argument by returning a proper error instead of unwrapping
pchickey submitted PR review:
Did you find an input that can create this panic? From the docs of split
https://doc.rust-lang.org/std/primitive.str.html#method.split
Returns an iterator over substrings of this string slice, separated by characters matched by a pattern.
...
If there are no matches the full string slice is returned as the only item in the iterator.by my reading, the iterator given by
splitwill always contain at least one value, therefore the first call tonextwill always giveSome.
pchickey closed without merge PR #12604.
Last updated: Feb 24 2026 at 04:36 UTC