mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-23 12:57:07 +00:00
gs1: #194 Fix 253 & 255 min 14 -> 13
This commit is contained in:
@@ -494,7 +494,7 @@ INTERNAL int gs1_verify(struct zint_symbol *symbol, const unsigned char source[]
|
||||
}
|
||||
|
||||
if (ai_value[i] == 253) { // GDTI
|
||||
if ((data_length[i] < 14) || (data_length[i] > 30)) {
|
||||
if ((data_length[i] < 13) || (data_length[i] > 30)) {
|
||||
error_latch = 1;
|
||||
} else {
|
||||
error_latch = 0;
|
||||
@@ -502,7 +502,7 @@ INTERNAL int gs1_verify(struct zint_symbol *symbol, const unsigned char source[]
|
||||
}
|
||||
|
||||
if (ai_value[i] == 255) { // GCN
|
||||
if ((data_length[i] < 14) || (data_length[i] > 25)) {
|
||||
if ((data_length[i] < 13) || (data_length[i] > 25)) {
|
||||
error_latch = 1;
|
||||
} else {
|
||||
error_latch = 0;
|
||||
|
||||
Reference in New Issue
Block a user