-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"truncated input" API change seems like a mess #101
Comments
Can you elaborate on (1) where is this one place and (2) why this is a problem? If the answer to (1) is in
Yeah,
Go isn't Wuffs, but in the Go standard library, we returned a common error ( |
https://github.com/google/wuffs/blob/main/std/png/decode_png.wuffs#L1237 Inconsistency. I haven't retested what actually happens, I've just reread the code.
This particular argument doesn't convince me. The thread is about people trying to receive as much of an image as they can, and dealing with the possibility of receiving an error (warning) at the same time. |
OK that (line 1237) rolls into line 1248 that I referenced above. I suppose we could make line 1248 return
If you're not convinced then we'll agree to disagree. I'm just telling you why it's the way it is.
There's two concerns in that thread. One is about trying to receive as much of an image as they can, as you said. Two is about what error you get when it's truncated (a generic |
DecodeImage0
doesn't reflect this change (noDecodeImage_UnexpectedEndOfFile
as far as I can tell).The text was updated successfully, but these errors were encountered: