mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-26 13:25:58 +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:
@@ -188,7 +188,7 @@ static void test_gb2312_utf8(const testCtx *const p_ctx) {
|
||||
int i, length, ret;
|
||||
|
||||
struct zint_symbol symbol = {0};
|
||||
unsigned int gbdata[20];
|
||||
unsigned int gbdata[20] = {0}; /* Suppress clang -fsanitize=memory false positive */
|
||||
|
||||
testStart("test_gb2312_utf8");
|
||||
|
||||
@@ -290,7 +290,7 @@ static void test_gb2312_utf8_to_eci(const testCtx *const p_ctx) {
|
||||
int data_size = ARRAY_SIZE(data);
|
||||
int i, length, ret;
|
||||
|
||||
unsigned int gbdata[20];
|
||||
unsigned int gbdata[20] = {0}; /* Suppress clang -fsanitize=memory false positive */
|
||||
|
||||
testStart("test_gb2312_utf8_to_eci");
|
||||
|
||||
@@ -346,7 +346,7 @@ static void test_gb2312_cpy(const testCtx *const p_ctx) {
|
||||
int data_size = ARRAY_SIZE(data);
|
||||
int i, length;
|
||||
|
||||
unsigned int gbdata[20];
|
||||
unsigned int gbdata[20] = {0}; /* Suppress clang -fsanitize=memory false positive */
|
||||
|
||||
testStart("test_gb2312_cpy");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user