mirror of
https://github.com/woo-j/zint.git
synced 2025-01-26 22:03:47 +03: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 ((data_length[i] < 14) || (data_length[i] > 31)) {
|
||||
if ((data_length[i] < 14) || (data_length[i] > 30)) {
|
||||
error_latch = 1;
|
||||
} else {
|
||||
error_latch = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user