You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Top-level integer decode traps on empty token #326
This no longer reproduces on current main (30d03ac). I reran the exact minimal case:
tryTOMLDecoder().decode(Int.self, from:"-=0\n")
It now throws DecodingError instead of trapping. This was fixed by #331, which rejects top-level single-value decoding when the parsed TOML document is a table.
Fuzzing found a crash with this input:
Minimal repro:
Expected: decoding throws.
Actual: integer unpacking can trap because the top-level keyed document leaves the decoder with
Token.empty.