1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-09-14 00:08:53 +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:
Git Lost
2026-09-07 01:43:34 +00:00
+5 -3
View File
@@ -1214,9 +1214,11 @@ INTERNAL int zint_dotcode(struct zint_symbol *symbol, struct zint_seg segs[], co
char *dot_array;
unsigned char *masked_codeword_array;
if (symbol->eci > 811799) {
return z_errtxtf(ZINT_ERROR_INVALID_OPTION, symbol, 525, "ECI code '%d' out of range (0 to 811799)",
symbol->eci);
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)",
segs[i].eci);
}
}
if (symbol->option_2 > 0) {