DanBloomberg / leptonica

Leptonica is an open source library containing software that is broadly useful for image processing and image analysis applications. The official github repository for Leptonica is: danbloomberg/leptonica. See leptonica.org for more documentation.
Other
1.76k stars 387 forks source link

Fix oss-fuzz build failure #635

Closed DavidKorczynski closed 2 years ago

DavidKorczynski commented 2 years ago

Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49777 Fixes: https://github.com/google/oss-fuzz/issues/8152

DavidKorczynski commented 2 years ago

CC @AdamKorcz

DavidKorczynski commented 2 years ago

The CIFuzz failure should be due to a limitation in CIFuzz rather than this fix. When I substitute https://github.com/google/oss-fuzz/blob/c1bcbc2c54d0d28de5c0556ad1a0b817ea0ae291/projects/leptonica/Dockerfile#L20 for RUN git clone https://github.com/DavidKorczynski/leptonica && cd leptonica && git checkout leptonica-ossfix and run the OSS-Fuzz check_build then I get Check build passed. and the build succeeds.

I assume once this PR is merged CIFuzz will start passing

DanBloomberg commented 2 years ago

Thank you David for maintaining the leptonica fuzz scripts and fixing this. I'll merge and we'll see if CIFuzz is fixed.