mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Enforce maximum length of document type identifier
Fixes #113 reported by Daniel Gredler
This commit is contained in:
parent
951209331a
commit
c83bea4ae0
@ -449,7 +449,7 @@ int gs1_verify(struct zint_symbol *symbol, const unsigned char source[], const s
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ai_value[i] == 253) { // GDTI
|
if (ai_value[i] == 253) { // GDTI
|
||||||
if ((data_length[i] < 14) || (data_length[i] > 31)) {
|
if ((data_length[i] < 14) || (data_length[i] > 30)) {
|
||||||
error_latch = 1;
|
error_latch = 1;
|
||||||
} else {
|
} else {
|
||||||
error_latch = 0;
|
error_latch = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user