mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-18 02:17:06 +00:00
Enforce maximum length of document type identifier
Fixes #113 reported by Daniel Gredler
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user