aboutsummaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorFabian Meumertzheim <meumertzheim@code-intelligence.com>2021-09-22 15:05:35 +0200
committerGitHub <noreply@github.com>2021-09-22 14:05:35 +0100
commit388f848910bbc76d3f89fb03738ee113ddf11e9b (patch)
tree05eae27e88164bad8603dcc54326279f935761f6 /projects
parentf0441f995c0712e717b66788e8253bbf0db35bc0 (diff)
downloadoss-fuzz-388f848910bbc76d3f89fb03738ee113ddf11e9b.tar.gz
[zxing] Skip very large images (#6504)
Diffstat (limited to 'projects')
-rw-r--r--projects/zxing/MultiFormatDecodeFuzzer.java2
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));