diff options
| author | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2026-03-08 23:30:45 +0100 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2026-03-09 23:50:29 +0100 |
| commit | 9944c1fcf195450f86fd83d974246ec75e466802 (patch) | |
| tree | 41ef3ec0f259af0e876f93c93f30d749074d4ebf | |
| parent | 265cf95e5dc629d17a9707744421529b6713e5fb (diff) | |
| download | Project-Tick-9944c1fcf195450f86fd83d974246ec75e466802.tar.gz Project-Tick-9944c1fcf195450f86fd83d974246ec75e466802.zip | |
Tests: Initialize buffer in test_crc32.cc
| -rw-r--r-- | test/test_crc32.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_crc32.cc b/test/test_crc32.cc index 73752fe762..a44433193e 100644 --- a/test/test_crc32.cc +++ b/test/test_crc32.cc @@ -30,6 +30,7 @@ class crc32_align : public ::testing::TestWithParam<int> { public: void hash(int param, crc32_func crc32) { uint8_t *buf = (uint8_t*)zng_alloc(sizeof(uint8_t) * (128 + param)); + memset(buf + param, 0, 128); (void)crc32(0, buf + param, 128); zng_free(buf); } |
