diff options
author | Fabian Meumertzheim <meumertzheim@code-intelligence.com> | 2021-09-22 15:05:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-22 14:05:35 +0100 |
commit | 388f848910bbc76d3f89fb03738ee113ddf11e9b (patch) | |
tree | 05eae27e88164bad8603dcc54326279f935761f6 /projects | |
parent | f0441f995c0712e717b66788e8253bbf0db35bc0 (diff) | |
download | oss-fuzz-388f848910bbc76d3f89fb03738ee113ddf11e9b.tar.gz |
[zxing] Skip very large images (#6504)
Diffstat (limited to 'projects')
-rw-r--r-- | projects/zxing/MultiFormatDecodeFuzzer.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/projects/zxing/MultiFormatDecodeFuzzer.java b/projects/zxing/MultiFormatDecodeFuzzer.java index 319ad9977..991428dfb 100644 --- a/projects/zxing/MultiFormatDecodeFuzzer.java +++ b/projects/zxing/MultiFormatDecodeFuzzer.java @@ -41,6 +41,8 @@ public final class MultiFormatDecodeFuzzer { } if (image == null) return; + if ((long) image.getHeight() * (long) image.getWidth() > 10000000) + return; BufferedImageLuminanceSource source = new BufferedImageLuminanceSource(image); BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source)); |