mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-27 13:34:19 -04: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:
parent
33135fc146
commit
c7cf006e71
38 changed files with 177 additions and 129 deletions
|
@ -210,7 +210,7 @@ static void test_sjis_utf8(const testCtx *const p_ctx) {
|
|||
int i, length, ret;
|
||||
|
||||
struct zint_symbol symbol = {0};
|
||||
unsigned int jisdata[20];
|
||||
unsigned int jisdata[20] = {0}; /* Suppress clang -fsanitize=memory false positive */
|
||||
|
||||
testStart("test_sjis_utf8");
|
||||
|
||||
|
@ -302,7 +302,7 @@ static void test_sjis_utf8_to_eci(const testCtx *const p_ctx) {
|
|||
int data_size = ARRAY_SIZE(data);
|
||||
int i, length, ret;
|
||||
|
||||
unsigned int jisdata[20];
|
||||
unsigned int jisdata[20] = {0}; /* Suppress clang -fsanitize=memory false positive */
|
||||
|
||||
testStart("test_sjis_utf8_to_eci");
|
||||
|
||||
|
@ -354,7 +354,7 @@ static void test_sjis_cpy(const testCtx *const p_ctx) {
|
|||
int data_size = ARRAY_SIZE(data);
|
||||
int i, length;
|
||||
|
||||
unsigned int jisdata[20];
|
||||
unsigned int jisdata[20] = {0}; /* Suppress clang -fsanitize=memory false positive */
|
||||
|
||||
testStart("test_sjis_cpy");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue