Commit 22f41ab
committed
release: nom-exif v3.4.2 (2026-05-20) — PNG streaming fix + MalformedKind plumbing
Patch release covering two fixes:
- #55: streaming-mode PNG parsing failed on every real PNG with the
confusing "malformed iso-bmff box: PNG: bad signature" error. The
chunk walker now requests the correct skip distance and threads
PngPastSignature state so the resumed call doesn't re-validate the
8-byte signature against a mid-stream slice.
- Error::Malformed.kind is now honest. Previously a hard-coded
fallback labelled every parse failure (regardless of which
structural unit actually failed) as IsoBmffBox or TiffHeader. The
MalformedKind now propagates through ParsingError / ParsedError /
LoopAction and surfaces unchanged at the public Error boundary.
Adds MalformedKind::PngChunk (the enum is #[non_exhaustive], so
additive).
No API breakage at the type level; behaviour change is "wrong error
label → correct error label" — strict callers matching specific
MalformedKind values may see different labels for non-PNG/non-TIFF
parse failures.1 parent 691c2ed commit 22f41ab
2 files changed
Lines changed: 42 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
3 | 44 | | |
4 | 45 | | |
5 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments