mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -08:00
Possible fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37868
This commit is contained in:
parent
73a3c3a704
commit
dc6c8ea422
|
@ -166,6 +166,9 @@ public final class ErrorCorrection {
|
|||
ModulusPoly errorLocator,
|
||||
int[] errorLocations) {
|
||||
int errorLocatorDegree = errorLocator.getDegree();
|
||||
if (errorLocatorDegree < 1) {
|
||||
return new int[0];
|
||||
}
|
||||
int[] formalDerivativeCoefficients = new int[errorLocatorDegree];
|
||||
for (int i = 1; i <= errorLocatorDegree; i++) {
|
||||
formalDerivativeCoefficients[errorLocatorDegree - i] =
|
||||
|
|
Loading…
Reference in a new issue