mirror of
https://github.com/zxing/zxing.git
synced 2025-01-12 03:37:34 -08:00
Possible fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37858
This commit is contained in:
parent
b3941e251b
commit
73a3c3a704
|
@ -472,7 +472,7 @@ public final class Detector {
|
|||
|
||||
boolean colorModel = image.get(p1.getX(), p1.getY());
|
||||
|
||||
int iMax = (int) Math.ceil(d);
|
||||
int iMax = (int) Math.floor(d);
|
||||
for (int i = 0; i < iMax; i++) {
|
||||
px += dx;
|
||||
py += dy;
|
||||
|
|
Loading…
Reference in a new issue