mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-01 15:48:25 -04:00
Enforce maximum length of document type identifier
Fixes #113 reported by Daniel Gredler
This commit is contained in:
parent
951209331a
commit
c83bea4ae0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue