Age | Commit message (Collapse) | Author |
|
Even shifting 0 by more than the value size is UB.
|
|
|
|
Prior to this, we calculated whether the shift was too large for the
result, and then did the shift regardless.
Found by OSS-Fuzz: https://oss-fuzz.com/testcase-detail/6046441716973568
|
|
Previously, we would go crazy and shift things way out of bounds.
Add tests to verify that the decoding algorithm is safe around the
limits of the result type.
|
|
And not just ssize_t/size_t.
This is useful in cases where the output size is supposed to be larger
than size_t.
|
|
|