mirror of
https://git.code.sf.net/p/zint/code
synced 2026-09-14 08:19:00 +00:00
Merge /u/connorjaydunn/zint/ branch fix-dotcode-eci-validation into master
https://sourceforge.net/p/zint/code/merge-requests/160/
This commit is contained in:
+4
-2
@@ -1214,9 +1214,11 @@ INTERNAL int zint_dotcode(struct zint_symbol *symbol, struct zint_seg segs[], co
|
|||||||
char *dot_array;
|
char *dot_array;
|
||||||
unsigned char *masked_codeword_array;
|
unsigned char *masked_codeword_array;
|
||||||
|
|
||||||
if (symbol->eci > 811799) {
|
for (i = 0; i < seg_count; i++) {
|
||||||
|
if (segs[i].eci > 811799) {
|
||||||
return z_errtxtf(ZINT_ERROR_INVALID_OPTION, symbol, 525, "ECI code '%d' out of range (0 to 811799)",
|
return z_errtxtf(ZINT_ERROR_INVALID_OPTION, symbol, 525, "ECI code '%d' out of range (0 to 811799)",
|
||||||
symbol->eci);
|
segs[i].eci);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (symbol->option_2 > 0) {
|
if (symbol->option_2 > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user