mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-31 15:18:29 -04:00
test_raster/vector: add height test in prep for float height MR; AZTEC: suppress clang-tidy warning
This commit is contained in:
parent
21a4e2c1f6
commit
22a6c583af
3 changed files with 962 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
|||
*/
|
||||
/* vim: set ts=4 sw=4 et : */
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#ifdef _MSC_VER
|
||||
#include <malloc.h>
|
||||
|
@ -865,6 +866,7 @@ INTERNAL int aztec(struct zint_symbol *symbol, unsigned char source[], int lengt
|
|||
}
|
||||
|
||||
error_number = aztec_text_process(source, length, binary_string, gs1, symbol->eci, &data_length, debug);
|
||||
assert(data_length > 0); /* Suppress clang-tidy warning: clang-analyzer-core.UndefinedBinaryOperatorResult */
|
||||
|
||||
if (error_number != 0) {
|
||||
strcpy(symbol->errtxt, "502: Input too long or too many extended ASCII characters");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue