1
0
Fork 0
mirror of https://git.code.sf.net/p/zint/code synced 2025-05-30 06:45:28 -04:00

test_common: rt_cpy etc.: zeroize symbol

This commit is contained in:
gitlost 2025-03-28 11:19:40 +00:00
parent 59becc6e0a
commit 2370fbfbb7
2 changed files with 4 additions and 4 deletions
.github/workflows
backend/tests

View file

@ -157,7 +157,7 @@ jobs:
- name: Test - name: Test
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
shell: bash shell: bash
run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$(pwd)/backend" PATH=$PATH:"$(pwd)/frontend" ctest -VV -C $BUILD_TYPE run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$(pwd)/backend" PATH=$PATH:"$(pwd)/frontend" ctest -V -C $BUILD_TYPE
build-macOS-sanitize: build-macOS-sanitize:
runs-on: macOS-latest runs-on: macOS-latest

View file

@ -1063,7 +1063,7 @@ static void test_rt_cpy_seg(const testCtx *const p_ctx) {
const int data_size = ARRAY_SIZE(data); const int data_size = ARRAY_SIZE(data);
int i, ret; int i, ret;
struct zint_symbol s_symbol; struct zint_symbol s_symbol = {0};
struct zint_symbol *symbol = &s_symbol; struct zint_symbol *symbol = &s_symbol;
int expected_length; int expected_length;
@ -1149,7 +1149,7 @@ static void test_rt_cpy(const testCtx *const p_ctx) {
const int data_size = ARRAY_SIZE(data); const int data_size = ARRAY_SIZE(data);
int i, length, ret; int i, length, ret;
struct zint_symbol s_symbol; struct zint_symbol s_symbol = {0};
struct zint_symbol *symbol = &s_symbol; struct zint_symbol *symbol = &s_symbol;
int expected_length; int expected_length;
@ -1221,7 +1221,7 @@ static void test_rt_printf_256(const testCtx *const p_ctx) {
const int data_size = ARRAY_SIZE(data); const int data_size = ARRAY_SIZE(data);
int i, ret; int i, ret;
struct zint_symbol s_symbol; struct zint_symbol s_symbol = {0};
struct zint_symbol *symbol = &s_symbol; struct zint_symbol *symbol = &s_symbol;
int expected_length; int expected_length;