test_raster/vector: add height test in prep for float height MR; AZTEC: suppress clang-tidy warning

This commit is contained in:
gitlost 2021-06-18 01:03:33 +01:00
parent 21a4e2c1f6
commit 22a6c583af
3 changed files with 962 additions and 0 deletions

View file

@ -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");