mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-29 06:15:23 -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
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
libzint - the open source barcode library
|
||||
Copyright (C) 2020-2022 Robin Stuart <rstuart114@gmail.com>
|
||||
Copyright (C) 2020-2025 Robin Stuart <rstuart114@gmail.com>
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
|
@ -263,7 +263,7 @@ static void test_uint_encoding(const testCtx *const p_ctx) {
|
|||
|
||||
for (i = 0; i < data_size; i++) {
|
||||
int j;
|
||||
rs_uint_t rs_uint;
|
||||
rs_uint_t rs_uint = {0}; /* Suppress clang -fsanitize=memory false positive */
|
||||
unsigned int res[1024];
|
||||
|
||||
if (testContinue(p_ctx, i)) continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue