mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-18 18:37:07 +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:
@@ -689,7 +689,7 @@ static void test_buffer_vector(const testCtx *const p_ctx) {
|
||||
struct zint_symbol *symbol = NULL;
|
||||
|
||||
const char *text;
|
||||
char errmsg[128];
|
||||
char errmsg[128] = {0}; /* Suppress clang -fsanitize=memory false positive */
|
||||
|
||||
testStartSymbol("test_buffer_vector", &symbol);
|
||||
|
||||
@@ -858,7 +858,7 @@ static void test_has_hrt(const testCtx *const p_ctx) {
|
||||
struct zint_symbol *symbol = NULL;
|
||||
|
||||
const char *text;
|
||||
char errmsg[128];
|
||||
char errmsg[128] = {0}; /* Suppress clang -fsanitize=memory false positive */
|
||||
|
||||
testStartSymbol("test_has_hrt", &symbol);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user