mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-18 10:27:09 +00:00
general: cmake: add ZINT_SANITIZEM (clang -fsanitize=memory) option
and suppress errors in lib and backend tests (pretty sure they're nearly all false positives apart from maybe 2 non-initializations in "gif.c" (`pOut` buffer) and "raster.c" (`rotated_pixbuf`) github: install de_DE.UTF-8 locale in ubuntu-debug also
This commit is contained in:
@@ -342,7 +342,7 @@ static void test_not_sane_lookup(const testCtx *const p_ctx) {
|
||||
const int data_size = ARRAY_SIZE(data);
|
||||
int i, length, ret;
|
||||
int test_length;
|
||||
int posns[32];
|
||||
int posns[32] = {0}; /* Suppress clang -fsanitize=memory false positive */
|
||||
|
||||
testStart("test_not_sane_lookup");
|
||||
|
||||
@@ -666,7 +666,7 @@ static void test_utf8_to_unicode(const testCtx *const p_ctx) {
|
||||
const int data_size = ARRAY_SIZE(data);
|
||||
int i, length, ret;
|
||||
|
||||
unsigned int vals[20];
|
||||
unsigned int vals[20] = {0}; /* Suppress clang -fsanitize=memory false positive */
|
||||
struct zint_symbol s_symbol;
|
||||
struct zint_symbol *symbol = &s_symbol;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user