mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-19 01:35:10 -04:00
Check for too many codewords after remainder in 144x144 symbols
Bug report and patch by brunt, ticket #42
This commit is contained in:
parent
886e789090
commit
658cdd7a69
1 changed files with 5 additions and 0 deletions
|
@ -1194,6 +1194,11 @@ int data_matrix_200(struct zint_symbol *symbol, const unsigned char source[], co
|
|||
symbols_left = matrixbytes[symbolsize] - binlen;
|
||||
binlen = dm200encode_remainder(binary, binlen, source, inputlen, last_mode, process_buffer, process_p, symbols_left);
|
||||
|
||||
if (binlen > matrixbytes[symbolsize]) {
|
||||
strcpy(symbol->errtxt, "Data too long to fit in symbol (E12A)");
|
||||
return ZINT_ERROR_TOO_LONG;
|
||||
}
|
||||
|
||||
H = matrixH[symbolsize];
|
||||
W = matrixW[symbolsize];
|
||||
FH = matrixFH[symbolsize];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue