Closed
Description
(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.