mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
test_raster/vector: add height test in prep for float height MR; AZTEC: suppress clang-tidy warning
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user