Fixed bug found by fuzzing.
Fixed bug found by fuzzing.

Thanks to OSS-Fuzz for the report:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16955

google/bloaty,frolv/bloaty,frolv/bloaty,google/bloaty,frolv/bloaty,google/bloaty