Skip to content

Failed to handle case of alleged String with length of Integer.MAX_VALUE #259

Closed
@cowtowncoder

Description

@cowtowncoder

(from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32173)

Looks like CBORParser does not handle case of alleged String value with length of about 2 billion (Integer.MAX_VALUE). It should fail, but gracefully; right now handling produces negative length for checks and thinks it has all the content, tries to allocate all memory.
Instead, it should recognize there isn't enough content and attempt chunked read which will then proceed to find that there isn't enough actual content to read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cborfuzzIssue found by OssFuzz

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions