Skip to content
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

Make Decoder.Decode() return io.UnexpectedEOF instead of io.EOF if CBOR data item is truncated #379

Merged
merged 1 commit into from
Dec 31, 2022

Commits on Dec 31, 2022

  1. Fix Decoder.Decode() error type

    Previously, if CBOR data item was truncated and
    the underlying reader reached EOF, Decoder.Decode()
    returned io.EOF.
    
    This bug fix makes it return io.UnexpectedEOF because
    the CBOR data item was truncated when EOF was encountered.
    fxamacker committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    60589f0 View commit details
    Browse the repository at this point in the history