Task #78470 - zlib-ng-2.2.5-2.fc44/scan-results.err

back to task #78470
download
Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/adler32_avx2.c:46:19: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   44|       __m256i vs1, vs2;
#   45|   
#   46|->     const __m256i dot2v = _mm256_setr_epi8(32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15,
#   47|                                              14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1);
#   48|       const __m256i dot3v = _mm256_set1_epi16(1);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/adler32_avx2_p.h:20:24: note[note]: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
#   18|   }
#   19|   
#   20|-> static inline uint32_t partial_hsum256(__m256i x) {
#   21|       /* We need a permutation vector to extract every other integer. The
#   22|        * rest are going to be zeros */

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/adler32_avx2_p.h:23:30: note[note]: called from here
#   21|       /* We need a permutation vector to extract every other integer. The
#   22|        * rest are going to be zeros */
#   23|->     const __m256i perm_vec = _mm256_setr_epi32(0, 2, 4, 6, 1, 1, 1, 1);
#   24|       __m256i non_zero = _mm256_permutevar8x32_epi32(x, perm_vec);
#   25|       __m128i non_zero_sse = _mm256_castsi256_si128(non_zero);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/adler32_avx2_p.h:24:24: note[note]: called from here
#   22|        * rest are going to be zeros */
#   23|       const __m256i perm_vec = _mm256_setr_epi32(0, 2, 4, 6, 1, 1, 1, 1);
#   24|->     __m256i non_zero = _mm256_permutevar8x32_epi32(x, perm_vec);
#   25|       __m128i non_zero_sse = _mm256_castsi256_si128(non_zero);
#   26|       __m128i sum2  = _mm_add_epi32(non_zero_sse,_mm_unpackhi_epi64(non_zero_sse, non_zero_sse));

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/adler32_avx2_p.h:25:28: note[note]: called from here
#   23|       const __m256i perm_vec = _mm256_setr_epi32(0, 2, 4, 6, 1, 1, 1, 1);
#   24|       __m256i non_zero = _mm256_permutevar8x32_epi32(x, perm_vec);
#   25|->     __m128i non_zero_sse = _mm256_castsi256_si128(non_zero);
#   26|       __m128i sum2  = _mm_add_epi32(non_zero_sse,_mm_unpackhi_epi64(non_zero_sse, non_zero_sse));
#   27|       __m128i sum3  = _mm_add_epi32(sum2, _mm_shuffle_epi32(sum2, 1));

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/adler32_avx512.c:31:21: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
#   29|           if (COPY) {
#   30|               __mmask64 storemask = (0xFFFFFFFFFFFFFFFFUL >> (64 - len));
#   31|->             __m512i copy_vec = _mm512_maskz_loadu_epi8(storemask, src);
#   32|               _mm512_mask_storeu_epi8(dst, storemask, copy_vec);
#   33|           }

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/adler32_avx512_p.h:35:24: note[note]: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6
#   33|   }
#   34|   
#   35|-> static inline uint32_t partial_hsum(__m512i x) {
#   36|       /* We need a permutation vector to extract every other integer. The
#   37|        * rest are going to be zeros. Marking this const so the compiler stands

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/adler32_avx512_p.h:40:30: note[note]: called from here
#   38|        * a better chance of keeping this resident in a register through entire
#   39|        * loop execution. We certainly have enough zmm registers (32) */
#   40|->     const __m512i perm_vec = _mm512_setr_epi32(0, 2, 4, 6, 8, 10, 12, 14,
#   41|                                                  1, 1, 1, 1, 1,  1,  1,  1);
#   42|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/adler32_avx512_p.h:43:24: note[note]: called from here
#   41|                                                  1, 1, 1, 1, 1,  1,  1,  1);
#   42|   
#   43|->     __m512i non_zero = _mm512_permutexvar_epi32(perm_vec, x);
#   44|   
#   45|       /* From here, it's a simple 256 bit wide reduction sum */

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/adler32_avx512_p.h:46:13: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   44|   
#   45|       /* From here, it's a simple 256 bit wide reduction sum */
#   46|->     __m256i non_zero_avx = _mm512_castsi512_si256(non_zero);
#   47|   
#   48|       /* See Agner Fog's vectorclass for a decent reference. Essentially, phadd is

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/adler32_avx512_p.h:46:28: note[note]: called from here
#   44|   
#   45|       /* From here, it's a simple 256 bit wide reduction sum */
#   46|->     __m256i non_zero_avx = _mm512_castsi512_si256(non_zero);
#   47|   
#   48|       /* See Agner Fog's vectorclass for a decent reference. Essentially, phadd is

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/adler32_avx512_p.h:50:21: note[note]: called from here
#   48|       /* See Agner Fog's vectorclass for a decent reference. Essentially, phadd is
#   49|        * pretty slow, much slower than the longer instruction sequence below */
#   50|->     __m128i sum1  = _mm_add_epi32(_mm256_extracti128_si256(non_zero_avx, 1),
#   51|                                     _mm256_castsi256_si128(non_zero_avx));
#   52|       __m128i sum2  = _mm_add_epi32(sum1,_mm_unpackhi_epi64(sum1, sum1));

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/adler32_avx512_vnni.c:35:19: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
#   33|           return adler32_avx2(adler, src, len);
#   34|   
#   35|->     const __m512i dot2v = _mm512_set_epi8(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
#   36|                                             20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
#   37|                                             38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/chunkset_avx2.c:23:14: note[note]: called from here
#   21|   
#   22|   static inline void chunkmemset_2(uint8_t *from, chunk_t *chunk) {
#   23|->     *chunk = _mm256_set1_epi16(zng_memread_2(from));
#   24|   }
#   25|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/chunkset_avx2.c:52:1: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   50|   }
#   51|   
#   52|-> static inline chunk_t GET_CHUNK_MAG(uint8_t *buf, uint32_t *chunk_rem, uint32_t dist) {
#   53|       lut_rem_pair lut_rem = perm_idx_lut[dist - 3];
#   54|       __m256i ret_vec;

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/chunkset_avx512.c:37:14: note[note]: called from here
#   35|   
#   36|   static inline void chunkmemset_2(uint8_t *from, chunk_t *chunk) {
#   37|->     *chunk = _mm256_set1_epi16(zng_memread_2(from));
#   38|   }
#   39|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/chunkset_avx512.c:105:1: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#  103|   #  pragma optimize("", off)
#  104|   #endif
#  105|-> static inline chunk_t GET_CHUNK_MAG(uint8_t *buf, uint32_t *chunk_rem, uint32_t dist) {
#  106|       lut_rem_pair lut_rem = perm_idx_lut[dist - 3];
#  107|       __m256i ret_vec;

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/compare256_avx2.c:23:9: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   21|       do {
#   22|           __m256i ymm_src0, ymm_src1, ymm_cmp;
#   23|->         ymm_src0 = _mm256_loadu_si256((__m256i*)src0);
#   24|           ymm_src1 = _mm256_loadu_si256((__m256i*)src1);
#   25|           ymm_cmp = _mm256_cmpeq_epi8(ymm_src0, ymm_src1); /* non-identical bytes = 00, identical bytes = FF */

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/compare256_avx2.c:23:20: note[note]: called from here
#   21|       do {
#   22|           __m256i ymm_src0, ymm_src1, ymm_cmp;
#   23|->         ymm_src0 = _mm256_loadu_si256((__m256i*)src0);
#   24|           ymm_src1 = _mm256_loadu_si256((__m256i*)src1);
#   25|           ymm_cmp = _mm256_cmpeq_epi8(ymm_src0, ymm_src1); /* non-identical bytes = 00, identical bytes = FF */

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/compare256_avx2.c:24:20: note[note]: called from here
#   22|           __m256i ymm_src0, ymm_src1, ymm_cmp;
#   23|           ymm_src0 = _mm256_loadu_si256((__m256i*)src0);
#   24|->         ymm_src1 = _mm256_loadu_si256((__m256i*)src1);
#   25|           ymm_cmp = _mm256_cmpeq_epi8(ymm_src0, ymm_src1); /* non-identical bytes = 00, identical bytes = FF */
#   26|           unsigned mask = (unsigned)_mm256_movemask_epi8(ymm_cmp);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/compare256_avx2.c:25:19: note[note]: called from here
#   23|           ymm_src0 = _mm256_loadu_si256((__m256i*)src0);
#   24|           ymm_src1 = _mm256_loadu_si256((__m256i*)src1);
#   25|->         ymm_cmp = _mm256_cmpeq_epi8(ymm_src0, ymm_src1); /* non-identical bytes = 00, identical bytes = FF */
#   26|           unsigned mask = (unsigned)_mm256_movemask_epi8(ymm_cmp);
#   27|           if (mask != 0xFFFFFFFF) {

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/compare256_avx2.c:26:35: note[note]: called from here
#   24|           ymm_src1 = _mm256_loadu_si256((__m256i*)src1);
#   25|           ymm_cmp = _mm256_cmpeq_epi8(ymm_src0, ymm_src1); /* non-identical bytes = 00, identical bytes = FF */
#   26|->         unsigned mask = (unsigned)_mm256_movemask_epi8(ymm_cmp);
#   27|           if (mask != 0xFFFFFFFF) {
#   28|               uint32_t match_byte = (uint32_t)__builtin_ctz(~mask); /* Invert bits so identical = 0 */

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/compare256_avx2.c:34:20: note[note]: called from here
#   32|           src0 += 32, src1 += 32, len += 32;
#   33|   
#   34|->         ymm_src0 = _mm256_loadu_si256((__m256i*)src0);
#   35|           ymm_src1 = _mm256_loadu_si256((__m256i*)src1);
#   36|           ymm_cmp = _mm256_cmpeq_epi8(ymm_src0, ymm_src1);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/compare256_avx2.c:35:20: note[note]: called from here
#   33|   
#   34|           ymm_src0 = _mm256_loadu_si256((__m256i*)src0);
#   35|->         ymm_src1 = _mm256_loadu_si256((__m256i*)src1);
#   36|           ymm_cmp = _mm256_cmpeq_epi8(ymm_src0, ymm_src1);
#   37|           mask = (unsigned)_mm256_movemask_epi8(ymm_cmp);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/compare256_avx2.c:36:19: note[note]: called from here
#   34|           ymm_src0 = _mm256_loadu_si256((__m256i*)src0);
#   35|           ymm_src1 = _mm256_loadu_si256((__m256i*)src1);
#   36|->         ymm_cmp = _mm256_cmpeq_epi8(ymm_src0, ymm_src1);
#   37|           mask = (unsigned)_mm256_movemask_epi8(ymm_cmp);
#   38|           if (mask != 0xFFFFFFFF) {

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/compare256_avx2.c:37:26: note[note]: called from here
#   35|           ymm_src1 = _mm256_loadu_si256((__m256i*)src1);
#   36|           ymm_cmp = _mm256_cmpeq_epi8(ymm_src0, ymm_src1);
#   37|->         mask = (unsigned)_mm256_movemask_epi8(ymm_cmp);
#   38|           if (mask != 0xFFFFFFFF) {
#   39|               uint32_t match_byte = (uint32_t)__builtin_ctz(~mask);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:13:13: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
#   11|       __m128i *xmm_crc2, __m128i *xmm_crc3, const uint8_t *src, size_t len,
#   12|       __m128i init_crc, int32_t first) {
#   13|->     __m512i zmm_initial = _mm512_zextsi128_si512(init_crc);
#   14|   #endif
#   15|       __m512i zmm_t0, zmm_t1, zmm_t2, zmm_t3;

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:13:27: note[note]: called from here
#   11|       __m128i *xmm_crc2, __m128i *xmm_crc3, const uint8_t *src, size_t len,
#   12|       __m128i init_crc, int32_t first) {
#   13|->     __m512i zmm_initial = _mm512_zextsi128_si512(init_crc);
#   14|   #endif
#   15|       __m512i zmm_t0, zmm_t1, zmm_t2, zmm_t3;

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:19:31: note[note]: called from here
#   17|       __m512i z0, z1, z2, z3;
#   18|       size_t len_tmp = len;
#   19|->     const __m512i zmm_fold4 = _mm512_set4_epi32(
#   20|           0x00000001, 0x54442bd4, 0x00000001, 0xc6e41596);
#   21|       const __m512i zmm_fold16 = _mm512_set4_epi32(

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:21:32: note[note]: called from here
#   19|       const __m512i zmm_fold4 = _mm512_set4_epi32(
#   20|           0x00000001, 0x54442bd4, 0x00000001, 0xc6e41596);
#   21|->     const __m512i zmm_fold16 = _mm512_set4_epi32(
#   22|           0x00000001, 0x1542778a, 0x00000001, 0x322d1430);
#   23|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:25:16: note[note]: called from here
#   23|   
#   24|       // zmm register init
#   25|->     zmm_crc0 = _mm512_setzero_si512();
#   26|       zmm_t0 = _mm512_loadu_si512((__m512i *)src);
#   27|   #ifndef COPY

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:26:14: note[note]: called from here
#   24|       // zmm register init
#   25|       zmm_crc0 = _mm512_setzero_si512();
#   26|->     zmm_t0 = _mm512_loadu_si512((__m512i *)src);
#   27|   #ifndef COPY
#   28|       XOR_INITIAL512(zmm_t0);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:28:5: note[note]: called from here
#   26|       zmm_t0 = _mm512_loadu_si512((__m512i *)src);
#   27|   #ifndef COPY
#   28|->     XOR_INITIAL512(zmm_t0);
#   29|   #endif
#   30|       zmm_crc1 = _mm512_loadu_si512((__m512i *)src + 1);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:30:16: note[note]: called from here
#   28|       XOR_INITIAL512(zmm_t0);
#   29|   #endif
#   30|->     zmm_crc1 = _mm512_loadu_si512((__m512i *)src + 1);
#   31|       zmm_crc2 = _mm512_loadu_si512((__m512i *)src + 2);
#   32|       zmm_crc3 = _mm512_loadu_si512((__m512i *)src + 3);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:31:16: note[note]: called from here
#   29|   #endif
#   30|       zmm_crc1 = _mm512_loadu_si512((__m512i *)src + 1);
#   31|->     zmm_crc2 = _mm512_loadu_si512((__m512i *)src + 2);
#   32|       zmm_crc3 = _mm512_loadu_si512((__m512i *)src + 3);
#   33|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:32:16: note[note]: called from here
#   30|       zmm_crc1 = _mm512_loadu_si512((__m512i *)src + 1);
#   31|       zmm_crc2 = _mm512_loadu_si512((__m512i *)src + 2);
#   32|->     zmm_crc3 = _mm512_loadu_si512((__m512i *)src + 3);
#   33|   
#   34|       /* already have intermediate CRC in xmm registers

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:37:16: note[note]: called from here
#   35|           * fold4 with 4 xmm_crc to get zmm_crc0
#   36|       */
#   37|->     zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc0, 0);
#   38|       zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc1, 1);
#   39|       zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc2, 2);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:38:16: note[note]: called from here
#   36|       */
#   37|       zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc0, 0);
#   38|->     zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc1, 1);
#   39|       zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc2, 2);
#   40|       zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc3, 3);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:39:16: note[note]: called from here
#   37|       zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc0, 0);
#   38|       zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc1, 1);
#   39|->     zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc2, 2);
#   40|       zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc3, 3);
#   41|       z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:40:16: note[note]: called from here
#   38|       zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc1, 1);
#   39|       zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc2, 2);
#   40|->     zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc3, 3);
#   41|       z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);
#   42|       zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x10);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:41:10: note[note]: called from here
#   39|       zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc2, 2);
#   40|       zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc3, 3);
#   41|->     z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);
#   42|       zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x10);
#   43|       zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_t0, 0x96);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:42:16: note[note]: called from here
#   40|       zmm_crc0 = _mm512_inserti32x4(zmm_crc0, *xmm_crc3, 3);
#   41|       z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);
#   42|->     zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x10);
#   43|       zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_t0, 0x96);
#   44|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:43:16: note[note]: called from here
#   41|       z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);
#   42|       zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x10);
#   43|->     zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_t0, 0x96);
#   44|   
#   45|   #ifdef COPY

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:57:18: note[note]: called from here
#   55|       // fold-16 loops
#   56|       while (len >= 256) {
#   57|->         zmm_t0 = _mm512_loadu_si512((__m512i *)src);
#   58|           zmm_t1 = _mm512_loadu_si512((__m512i *)src + 1);
#   59|           zmm_t2 = _mm512_loadu_si512((__m512i *)src + 2);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:58:18: note[note]: called from here
#   56|       while (len >= 256) {
#   57|           zmm_t0 = _mm512_loadu_si512((__m512i *)src);
#   58|->         zmm_t1 = _mm512_loadu_si512((__m512i *)src + 1);
#   59|           zmm_t2 = _mm512_loadu_si512((__m512i *)src + 2);
#   60|           zmm_t3 = _mm512_loadu_si512((__m512i *)src + 3);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:59:18: note[note]: called from here
#   57|           zmm_t0 = _mm512_loadu_si512((__m512i *)src);
#   58|           zmm_t1 = _mm512_loadu_si512((__m512i *)src + 1);
#   59|->         zmm_t2 = _mm512_loadu_si512((__m512i *)src + 2);
#   60|           zmm_t3 = _mm512_loadu_si512((__m512i *)src + 3);
#   61|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:60:18: note[note]: called from here
#   58|           zmm_t1 = _mm512_loadu_si512((__m512i *)src + 1);
#   59|           zmm_t2 = _mm512_loadu_si512((__m512i *)src + 2);
#   60|->         zmm_t3 = _mm512_loadu_si512((__m512i *)src + 3);
#   61|   
#   62|           z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold16, 0x01);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:62:14: note[note]: called from here
#   60|           zmm_t3 = _mm512_loadu_si512((__m512i *)src + 3);
#   61|   
#   62|->         z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold16, 0x01);
#   63|           z1 = _mm512_clmulepi64_epi128(zmm_crc1, zmm_fold16, 0x01);
#   64|           z2 = _mm512_clmulepi64_epi128(zmm_crc2, zmm_fold16, 0x01);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:63:14: note[note]: called from here
#   61|   
#   62|           z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold16, 0x01);
#   63|->         z1 = _mm512_clmulepi64_epi128(zmm_crc1, zmm_fold16, 0x01);
#   64|           z2 = _mm512_clmulepi64_epi128(zmm_crc2, zmm_fold16, 0x01);
#   65|           z3 = _mm512_clmulepi64_epi128(zmm_crc3, zmm_fold16, 0x01);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:64:14: note[note]: called from here
#   62|           z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold16, 0x01);
#   63|           z1 = _mm512_clmulepi64_epi128(zmm_crc1, zmm_fold16, 0x01);
#   64|->         z2 = _mm512_clmulepi64_epi128(zmm_crc2, zmm_fold16, 0x01);
#   65|           z3 = _mm512_clmulepi64_epi128(zmm_crc3, zmm_fold16, 0x01);
#   66|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:65:14: note[note]: called from here
#   63|           z1 = _mm512_clmulepi64_epi128(zmm_crc1, zmm_fold16, 0x01);
#   64|           z2 = _mm512_clmulepi64_epi128(zmm_crc2, zmm_fold16, 0x01);
#   65|->         z3 = _mm512_clmulepi64_epi128(zmm_crc3, zmm_fold16, 0x01);
#   66|   
#   67|           zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold16, 0x10);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:67:20: note[note]: called from here
#   65|           z3 = _mm512_clmulepi64_epi128(zmm_crc3, zmm_fold16, 0x01);
#   66|   
#   67|->         zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold16, 0x10);
#   68|           zmm_crc1 = _mm512_clmulepi64_epi128(zmm_crc1, zmm_fold16, 0x10);
#   69|           zmm_crc2 = _mm512_clmulepi64_epi128(zmm_crc2, zmm_fold16, 0x10);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:68:20: note[note]: called from here
#   66|   
#   67|           zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold16, 0x10);
#   68|->         zmm_crc1 = _mm512_clmulepi64_epi128(zmm_crc1, zmm_fold16, 0x10);
#   69|           zmm_crc2 = _mm512_clmulepi64_epi128(zmm_crc2, zmm_fold16, 0x10);
#   70|           zmm_crc3 = _mm512_clmulepi64_epi128(zmm_crc3, zmm_fold16, 0x10);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:69:20: note[note]: called from here
#   67|           zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold16, 0x10);
#   68|           zmm_crc1 = _mm512_clmulepi64_epi128(zmm_crc1, zmm_fold16, 0x10);
#   69|->         zmm_crc2 = _mm512_clmulepi64_epi128(zmm_crc2, zmm_fold16, 0x10);
#   70|           zmm_crc3 = _mm512_clmulepi64_epi128(zmm_crc3, zmm_fold16, 0x10);
#   71|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:70:20: note[note]: called from here
#   68|           zmm_crc1 = _mm512_clmulepi64_epi128(zmm_crc1, zmm_fold16, 0x10);
#   69|           zmm_crc2 = _mm512_clmulepi64_epi128(zmm_crc2, zmm_fold16, 0x10);
#   70|->         zmm_crc3 = _mm512_clmulepi64_epi128(zmm_crc3, zmm_fold16, 0x10);
#   71|   
#   72|           zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_t0, 0x96);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:72:20: note[note]: called from here
#   70|           zmm_crc3 = _mm512_clmulepi64_epi128(zmm_crc3, zmm_fold16, 0x10);
#   71|   
#   72|->         zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_t0, 0x96);
#   73|           zmm_crc1 = _mm512_ternarylogic_epi32(zmm_crc1, z1, zmm_t1, 0x96);
#   74|           zmm_crc2 = _mm512_ternarylogic_epi32(zmm_crc2, z2, zmm_t2, 0x96);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:73:20: note[note]: called from here
#   71|   
#   72|           zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_t0, 0x96);
#   73|->         zmm_crc1 = _mm512_ternarylogic_epi32(zmm_crc1, z1, zmm_t1, 0x96);
#   74|           zmm_crc2 = _mm512_ternarylogic_epi32(zmm_crc2, z2, zmm_t2, 0x96);
#   75|           zmm_crc3 = _mm512_ternarylogic_epi32(zmm_crc3, z3, zmm_t3, 0x96);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:74:20: note[note]: called from here
#   72|           zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_t0, 0x96);
#   73|           zmm_crc1 = _mm512_ternarylogic_epi32(zmm_crc1, z1, zmm_t1, 0x96);
#   74|->         zmm_crc2 = _mm512_ternarylogic_epi32(zmm_crc2, z2, zmm_t2, 0x96);
#   75|           zmm_crc3 = _mm512_ternarylogic_epi32(zmm_crc3, z3, zmm_t3, 0x96);
#   76|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:75:20: note[note]: called from here
#   73|           zmm_crc1 = _mm512_ternarylogic_epi32(zmm_crc1, z1, zmm_t1, 0x96);
#   74|           zmm_crc2 = _mm512_ternarylogic_epi32(zmm_crc2, z2, zmm_t2, 0x96);
#   75|->         zmm_crc3 = _mm512_ternarylogic_epi32(zmm_crc3, z3, zmm_t3, 0x96);
#   76|   
#   77|   #ifdef COPY

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:88:10: note[note]: called from here
#   86|       }
#   87|       // zmm_crc[0,1,2,3] -> zmm_crc0
#   88|->     z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);
#   89|       zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x10);
#   90|       zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_crc1, 0x96);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:89:16: note[note]: called from here
#   87|       // zmm_crc[0,1,2,3] -> zmm_crc0
#   88|       z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);
#   89|->     zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x10);
#   90|       zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_crc1, 0x96);
#   91|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:90:16: note[note]: called from here
#   88|       z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);
#   89|       zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x10);
#   90|->     zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_crc1, 0x96);
#   91|   
#   92|       z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:92:10: note[note]: called from here
#   90|       zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_crc1, 0x96);
#   91|   
#   92|->     z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);
#   93|       zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x10);
#   94|       zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_crc2, 0x96);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:93:16: note[note]: called from here
#   91|   
#   92|       z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);
#   93|->     zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x10);
#   94|       zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_crc2, 0x96);
#   95|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:94:16: note[note]: called from here
#   92|       z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);
#   93|       zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x10);
#   94|->     zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_crc2, 0x96);
#   95|   
#   96|       z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:96:10: note[note]: called from here
#   94|       zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_crc2, 0x96);
#   95|   
#   96|->     z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);
#   97|       zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x10);
#   98|       zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_crc3, 0x96);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:97:16: note[note]: called from here
#   95|   
#   96|       z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);
#   97|->     zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x10);
#   98|       zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_crc3, 0x96);
#   99|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:98:16: note[note]: called from here
#   96|       z0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x01);
#   97|       zmm_crc0 = _mm512_clmulepi64_epi128(zmm_crc0, zmm_fold4, 0x10);
#   98|->     zmm_crc0 = _mm512_ternarylogic_epi32(zmm_crc0, z0, zmm_crc3, 0x96);
#   99|   
#  100|       // zmm_crc0 -> xmm_crc[0, 1, 2, 3]

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:101:17: note[note]: called from here
#   99|   
#  100|       // zmm_crc0 -> xmm_crc[0, 1, 2, 3]
#  101|->     *xmm_crc0 = _mm512_extracti32x4_epi32(zmm_crc0, 0);
#  102|       *xmm_crc1 = _mm512_extracti32x4_epi32(zmm_crc0, 1);
#  103|       *xmm_crc2 = _mm512_extracti32x4_epi32(zmm_crc0, 2);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:102:17: note[note]: called from here
#  100|       // zmm_crc0 -> xmm_crc[0, 1, 2, 3]
#  101|       *xmm_crc0 = _mm512_extracti32x4_epi32(zmm_crc0, 0);
#  102|->     *xmm_crc1 = _mm512_extracti32x4_epi32(zmm_crc0, 1);
#  103|       *xmm_crc2 = _mm512_extracti32x4_epi32(zmm_crc0, 2);
#  104|       *xmm_crc3 = _mm512_extracti32x4_epi32(zmm_crc0, 3);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:103:17: note[note]: called from here
#  101|       *xmm_crc0 = _mm512_extracti32x4_epi32(zmm_crc0, 0);
#  102|       *xmm_crc1 = _mm512_extracti32x4_epi32(zmm_crc0, 1);
#  103|->     *xmm_crc2 = _mm512_extracti32x4_epi32(zmm_crc0, 2);
#  104|       *xmm_crc3 = _mm512_extracti32x4_epi32(zmm_crc0, 3);
#  105|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_fold_vpclmulqdq_tpl.h:104:17: note[note]: called from here
#  102|       *xmm_crc1 = _mm512_extracti32x4_epi32(zmm_crc0, 1);
#  103|       *xmm_crc2 = _mm512_extracti32x4_epi32(zmm_crc0, 2);
#  104|->     *xmm_crc3 = _mm512_extracti32x4_epi32(zmm_crc0, 3);
#  105|   
#  106|       return (len_tmp - len);  // return n bytes processed

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_pclmulqdq_tpl.h:141:17: note[note]: called from here
#  139|       x_tmp3 = *xmm_crc3;
#  140|   
#  141|->     *xmm_crc0 = _mm_clmulepi64_si128(*xmm_crc0, xmm_fold4, 0x01);
#  142|       x_tmp0 = _mm_clmulepi64_si128(x_tmp0, xmm_fold4, 0x10);
#  143|       ps_crc0 = _mm_castsi128_ps(*xmm_crc0);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_pclmulqdq_tpl.h:142:14: note[note]: called from here
#  140|   
#  141|       *xmm_crc0 = _mm_clmulepi64_si128(*xmm_crc0, xmm_fold4, 0x01);
#  142|->     x_tmp0 = _mm_clmulepi64_si128(x_tmp0, xmm_fold4, 0x10);
#  143|       ps_crc0 = _mm_castsi128_ps(*xmm_crc0);
#  144|       ps_t0 = _mm_castsi128_ps(x_tmp0);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_pclmulqdq_tpl.h:147:17: note[note]: called from here
#  145|       ps_res0 = _mm_xor_ps(ps_crc0, ps_t0);
#  146|   
#  147|->     *xmm_crc1 = _mm_clmulepi64_si128(*xmm_crc1, xmm_fold4, 0x01);
#  148|       x_tmp1 = _mm_clmulepi64_si128(x_tmp1, xmm_fold4, 0x10);
#  149|       ps_crc1 = _mm_castsi128_ps(*xmm_crc1);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_pclmulqdq_tpl.h:148:14: note[note]: called from here
#  146|   
#  147|       *xmm_crc1 = _mm_clmulepi64_si128(*xmm_crc1, xmm_fold4, 0x01);
#  148|->     x_tmp1 = _mm_clmulepi64_si128(x_tmp1, xmm_fold4, 0x10);
#  149|       ps_crc1 = _mm_castsi128_ps(*xmm_crc1);
#  150|       ps_t1 = _mm_castsi128_ps(x_tmp1);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_pclmulqdq_tpl.h:153:17: note[note]: called from here
#  151|       ps_res1 = _mm_xor_ps(ps_crc1, ps_t1);
#  152|   
#  153|->     *xmm_crc2 = _mm_clmulepi64_si128(*xmm_crc2, xmm_fold4, 0x01);
#  154|       x_tmp2 = _mm_clmulepi64_si128(x_tmp2, xmm_fold4, 0x10);
#  155|       ps_crc2 = _mm_castsi128_ps(*xmm_crc2);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_pclmulqdq_tpl.h:154:14: note[note]: called from here
#  152|   
#  153|       *xmm_crc2 = _mm_clmulepi64_si128(*xmm_crc2, xmm_fold4, 0x01);
#  154|->     x_tmp2 = _mm_clmulepi64_si128(x_tmp2, xmm_fold4, 0x10);
#  155|       ps_crc2 = _mm_castsi128_ps(*xmm_crc2);
#  156|       ps_t2 = _mm_castsi128_ps(x_tmp2);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_pclmulqdq_tpl.h:159:17: note[note]: called from here
#  157|       ps_res2 = _mm_xor_ps(ps_crc2, ps_t2);
#  158|   
#  159|->     *xmm_crc3 = _mm_clmulepi64_si128(*xmm_crc3, xmm_fold4, 0x01);
#  160|       x_tmp3 = _mm_clmulepi64_si128(x_tmp3, xmm_fold4, 0x10);
#  161|       ps_crc3 = _mm_castsi128_ps(*xmm_crc3);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/crc32_pclmulqdq_tpl.h:160:14: note[note]: called from here
#  158|   
#  159|       *xmm_crc3 = _mm_clmulepi64_si128(*xmm_crc3, xmm_fold4, 0x01);
#  160|->     x_tmp3 = _mm_clmulepi64_si128(x_tmp3, xmm_fold4, 0x10);
#  161|       ps_crc3 = _mm_castsi128_ps(*xmm_crc3);
#  162|       ps_t3 = _mm_castsi128_ps(x_tmp3);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/slide_hash_avx2.c:17:20: note[note]: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
#   15|   #include <immintrin.h>
#   16|   
#   17|-> static inline void slide_hash_chain(Pos *table, uint32_t entries, const __m256i wsize) {
#   18|       table += entries;
#   19|       table -= 16;

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/slide_hash_avx2.c:24:17: note[note]: called from here
#   22|           __m256i value, result;
#   23|   
#   24|->         value = _mm256_loadu_si256((__m256i *)table);
#   25|           result = _mm256_subs_epu16(value, wsize);
#   26|           _mm256_storeu_si256((__m256i *)table, result);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/slide_hash_avx2.c:25:18: note[note]: called from here
#   23|   
#   24|           value = _mm256_loadu_si256((__m256i *)table);
#   25|->         result = _mm256_subs_epu16(value, wsize);
#   26|           _mm256_storeu_si256((__m256i *)table, result);
#   27|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/slide_hash_avx2.c:26:9: note[note]: called from here
#   24|           value = _mm256_loadu_si256((__m256i *)table);
#   25|           result = _mm256_subs_epu16(value, wsize);
#   26|->         _mm256_storeu_si256((__m256i *)table, result);
#   27|   
#   28|           table -= 16;

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/slide_hash_avx2.c:36:19: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   34|       Assert(s->w_size <= UINT16_MAX, "w_size should fit in uint16_t");
#   35|       uint16_t wsize = (uint16_t)s->w_size;
#   36|->     const __m256i ymm_wsize = _mm256_set1_epi16((short)wsize);
#   37|   
#   38|       slide_hash_chain(s->head, HASH_SIZE, ymm_wsize);

Error: COMPILER_WARNING:
zlib-ng-2.2.5/arch/x86/x86_features.c:61:12: note[note]: called from here
#   59|   static inline uint64_t xgetbv(unsigned int xcr) {
#   60|   #if defined(_MSC_VER) || defined(X86_HAVE_XSAVE_INTRIN)
#   61|->     return _xgetbv(xcr);
#   62|   #else
#   63|       uint32_t eax, edx;

Error: CPPCHECK_WARNING (CWE-457):
zlib-ng-2.2.5/chunkset_tpl.h:86: warning[uninitvar]: Uninitialized variable: chunk_load
#   84|           }
#   85|   
#   86|->         return chunk_load;
#   87|   }
#   88|   #endif

Error: CPPCHECK_WARNING (CWE-457):
zlib-ng-2.2.5/deflate.c:1039: error[legacyUninitvar]: Uninitialized variable: bstate
# 1037|           block_state bstate;
# 1038|   
# 1039|->         bstate = DEFLATE_HOOK(strm, flush, &bstate) ? bstate :  /* hook for IBM Z DFLTCC */
# 1040|                    s->level == 0 ? deflate_stored(s, flush) :
# 1041|                    s->strategy == Z_HUFFMAN_ONLY ? deflate_huff(s, flush) :

Error: CPPCHECK_WARNING (CWE-457):
zlib-ng-2.2.5/inflate.c:1334: warning[uninitvar]: Uninitialized variable: buf
# 1332|           }
# 1333|           state->have = 0;
# 1334|->         syncsearch(&(state->have), buf, len);
# 1335|       }
# 1336|   

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-0lApTY/src.c:8:55: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-GvOzEj/src.c:2:9: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-GvOzEj/src.c:2:17: note[note]: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-GvOzEj/src.c:3:31: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-GvOzEj/src.c:4:20: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-OYAsyH/src.c:3:27: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-OYAsyH/src.c:3:34: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-OYAsyH/src.c:4:27: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-OYAsyH/src.c:4:34: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-OYAsyH/src.c:5:37: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-PonOZp/src.c:2:9: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-PonOZp/src.c:2:17: note[note]: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-PonOZp/src.c:3:23: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-PonOZp/src.c:4:18: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-V5cnas/src.c:3:54: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-llXiV3/src.c:3:13: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-llXiV3/src.c:3:21: note[note]: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-llXiV3/src.c:4:29: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-llXiV3/src.c:5:24: note[note]: called from here

Error: GCC_ANALYZER_WARNING (CWE-835):
zlib-ng-2.2.5/redhat-linux-build-compat/gzread.c:215:17: warning[-Wanalyzer-infinite-loop]: infinite loop
zlib-ng-2.2.5/redhat-linux-build-compat/gzread.c:500:17: enter_function: entry to ‘gzgets’
#  213|   
#  214|       do {
#  215|->         switch (state->how) {
#  216|           case LOOK:      /* -> LOOK, COPY (only if never GZIP), or GZIP */
#  217|               if (gz_look(state) == -1)

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-57UZNf/src.c:3:27: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-57UZNf/src.c:3:34: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-57UZNf/src.c:4:27: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-57UZNf/src.c:4:34: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-57UZNf/src.c:5:37: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-LE1xaj/src.c:3:13: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-LE1xaj/src.c:3:21: note[note]: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-LE1xaj/src.c:4:29: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-LE1xaj/src.c:5:24: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-M7Eglu/src.c:8:55: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-Nzzko9/src.c:3:54: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-juk55J/src.c:2:9: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-juk55J/src.c:2:17: note[note]: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-juk55J/src.c:3:31: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-juk55J/src.c:4:20: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-uccmd9/src.c:2:9: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-uccmd9/src.c:2:17: note[note]: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-uccmd9/src.c:3:23: note[note]: called from here

Error: COMPILER_WARNING:
zlib-ng-2.2.5/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-uccmd9/src.c:4:18: note[note]: called from here

Error: GCC_ANALYZER_WARNING (CWE-835):
zlib-ng-2.2.5/redhat-linux-build/gzread.c:215:17: warning[-Wanalyzer-infinite-loop]: infinite loop
zlib-ng-2.2.5/redhat-linux-build/gzread.c:500:17: enter_function: entry to ‘zng_gzgets’
#  213|   
#  214|       do {
#  215|->         switch (state->how) {
#  216|           case LOOK:      /* -> LOOK, COPY (only if never GZIP), or GZIP */
#  217|               if (gz_look(state) == -1)

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:56:11: warning[-Wanalyzer-malloc-leak]: leak of ‘compr’
zlib-ng-2.2.5/test/example.c:940:5: enter_function: entry to ‘main’
zlib-ng-2.2.5/test/example.c:946:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:950:16: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:957:32: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:962:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:965:5: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:965:5: call_function: calling ‘test_compress’ from ‘main’
#   54|       unsigned int len = (unsigned int)strlen(hello)+1;
#   55|   
#   56|->     err = PREFIX(compress)(compr, &comprLen, (const unsigned char*)hello, len);
#   57|       CHECK_ERR(err, "compress");
#   58|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:56:11: warning[-Wanalyzer-malloc-leak]: leak of ‘uncompr’
zlib-ng-2.2.5/test/example.c:940:5: enter_function: entry to ‘main’
zlib-ng-2.2.5/test/example.c:946:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:950:16: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:958:32: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:962:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:965:5: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:965:5: call_function: calling ‘test_compress’ from ‘main’
#   54|       unsigned int len = (unsigned int)strlen(hello)+1;
#   55|   
#   56|->     err = PREFIX(compress)(compr, &comprLen, (const unsigned char*)hello, len);
#   57|       CHECK_ERR(err, "compress");
#   58|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:61:11: warning[-Wanalyzer-malloc-leak]: leak of ‘uncompr’
zlib-ng-2.2.5/test/example.c:940:5: enter_function: entry to ‘main’
zlib-ng-2.2.5/test/example.c:946:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:950:16: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:958:32: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:962:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:965:5: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:965:5: call_function: calling ‘test_compress’ from ‘main’
#   59|       strcpy((char*)uncompr, "garbage");
#   60|   
#   61|->     err = PREFIX(uncompress)(uncompr, &uncomprLen, compr, comprLen);
#   62|       CHECK_ERR(err, "uncompress");
#   63|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:587:15: warning[-Wanalyzer-malloc-leak]: leak of ‘outBuf’
zlib-ng-2.2.5/test/example.c:575:5: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:578:19: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:579:14: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:581:8: branch_true: following ‘true’ branch (when ‘outBuf’ is non-NULL)...
zlib-ng-2.2.5/test/example.c:583:9: branch_true: ...to here
zlib-ng-2.2.5/test/example.c:587:15: danger: ‘outBuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  585|   
#  586|           /* do the compression */
#  587|->         err = PREFIX(deflate)(&c_stream, Z_FINISH);
#  588|           if (err == Z_STREAM_END) {
#  589|               printf("deflateBound(): OK\n");

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:678:11: warning[-Wanalyzer-malloc-leak]: leak of ‘dictLen’
zlib-ng-2.2.5/test/example.c:663:5: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:665:5: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:673:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:676:15: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:677:31: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:678:11: danger: ‘dictLen’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  676|       dictNew = calloc(256, 1);
#  677|       dictLen = (unsigned int *)calloc(4, 1);
#  678|->     err = PREFIX(deflateGetDictionary)(&c_stream, dictNew, dictLen);
#  679|   
#  680|       CHECK_ERR(err, "deflateGetDictionary");

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:678:11: warning[-Wanalyzer-malloc-leak]: leak of ‘dictNew’
zlib-ng-2.2.5/test/example.c:663:5: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:665:5: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:673:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:676:15: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:676:15: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:678:11: danger: ‘dictNew’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#  676|       dictNew = calloc(256, 1);
#  677|       dictLen = (unsigned int *)calloc(4, 1);
#  678|->     err = PREFIX(deflateGetDictionary)(&c_stream, dictNew, dictLen);
#  679|   
#  680|       CHECK_ERR(err, "deflateGetDictionary");

Error: CPPCHECK_WARNING (CWE-476):
zlib-ng-2.2.5/test/example.c:682: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dictNew
#  680|       CHECK_ERR(err, "deflateGetDictionary");
#  681|       if (err == Z_OK) {
#  682|->         printf("deflateGetDictionary(): %s\n", dictNew);
#  683|       }
#  684|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:707:11: warning[-Wanalyzer-malloc-leak]: leak of ‘bits’
zlib-ng-2.2.5/test/example.c:698:17: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:707:11: danger: ‘bits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  705|       c_stream.opaque = (voidpf)0;
#  706|   
#  707|->     err = PREFIX(deflateInit)(&c_stream, Z_DEFAULT_COMPRESSION);
#  708|       CHECK_ERR(err, "deflateInit");
#  709|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:707:11: warning[-Wanalyzer-malloc-leak]: leak of ‘bits’
zlib-ng-2.2.5/test/example.c:698:17: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:707:11: danger: ‘bits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  705|       c_stream.opaque = (voidpf)0;
#  706|   
#  707|->     err = PREFIX(deflateInit)(&c_stream, Z_DEFAULT_COMPRESSION);
#  708|       CHECK_ERR(err, "deflateInit");
#  709|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:707:11: warning[-Wanalyzer-malloc-leak]: leak of ‘ped’
zlib-ng-2.2.5/test/example.c:699:21: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:707:11: danger: ‘ped’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  705|       c_stream.opaque = (voidpf)0;
#  706|   
#  707|->     err = PREFIX(deflateInit)(&c_stream, Z_DEFAULT_COMPRESSION);
#  708|       CHECK_ERR(err, "deflateInit");
#  709|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:707:11: warning[-Wanalyzer-malloc-leak]: leak of ‘ped’
zlib-ng-2.2.5/test/example.c:699:21: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:707:11: danger: ‘ped’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  705|       c_stream.opaque = (voidpf)0;
#  706|   
#  707|->     err = PREFIX(deflateInit)(&c_stream, Z_DEFAULT_COMPRESSION);
#  708|       CHECK_ERR(err, "deflateInit");
#  709|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:715:15: warning[-Wanalyzer-malloc-leak]: leak of ‘bits’
zlib-ng-2.2.5/test/example.c:698:17: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:708:5: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:710:5: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:713:12: branch_true: following ‘true’ branch...
zlib-ng-2.2.5/test/example.c:715:15: danger: ‘bits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  713|       while (c_stream.total_in != len && c_stream.total_out < comprLen) {
#  714|           c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */
#  715|->         err = PREFIX(deflate)(&c_stream, Z_NO_FLUSH);
#  716|           CHECK_ERR(err, "deflate");
#  717|       }

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:715:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ped’
zlib-ng-2.2.5/test/example.c:699:21: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:708:5: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:710:5: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:713:12: branch_true: following ‘true’ branch...
zlib-ng-2.2.5/test/example.c:715:15: danger: ‘ped’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  713|       while (c_stream.total_in != len && c_stream.total_out < comprLen) {
#  714|           c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */
#  715|->         err = PREFIX(deflate)(&c_stream, Z_NO_FLUSH);
#  716|           CHECK_ERR(err, "deflate");
#  717|       }

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:719:11: warning[-Wanalyzer-malloc-leak]: leak of ‘bits’
zlib-ng-2.2.5/test/example.c:698:17: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:708:5: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:710:5: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:719:11: danger: ‘bits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  717|       }
#  718|   
#  719|->     err = PREFIX(deflatePending)(&c_stream, ped, bits);
#  720|       CHECK_ERR(err, "deflatePending");
#  721|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:719:11: warning[-Wanalyzer-malloc-leak]: leak of ‘ped’
zlib-ng-2.2.5/test/example.c:699:21: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:708:5: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:710:5: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:719:11: danger: ‘ped’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  717|       }
#  718|   
#  719|->     err = PREFIX(deflatePending)(&c_stream, ped, bits);
#  720|       CHECK_ERR(err, "deflatePending");
#  721|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:850:11: warning[-Wanalyzer-malloc-leak]: leak of ‘head’
zlib-ng-2.2.5/test/example.c:836:31: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:842:8: branch_false: following ‘false’ branch (when ‘head’ is non-NULL)...
zlib-ng-2.2.5/test/example.c:845:5: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:850:11: danger: ‘head’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  848|   
#  849|       /* gzip */
#  850|->     err = PREFIX(deflateInit2)(&c_stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, MAX_WBITS + 16, 8, Z_DEFAULT_STRATEGY);
#  851|       CHECK_ERR(err, "deflateInit2");
#  852|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:850:11: warning[-Wanalyzer-malloc-leak]: leak of ‘head’
zlib-ng-2.2.5/test/example.c:836:31: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:842:8: branch_false: following ‘false’ branch (when ‘head’ is non-NULL)...
zlib-ng-2.2.5/test/example.c:845:5: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:850:11: danger: ‘head’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  848|   
#  849|       /* gzip */
#  850|->     err = PREFIX(deflateInit2)(&c_stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, MAX_WBITS + 16, 8, Z_DEFAULT_STRATEGY);
#  851|       CHECK_ERR(err, "deflateInit2");
#  852|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/example.c:860:11: warning[-Wanalyzer-malloc-leak]: leak of ‘head’
zlib-ng-2.2.5/test/example.c:836:31: acquire_memory: allocated here
zlib-ng-2.2.5/test/example.c:842:8: branch_false: following ‘false’ branch (when ‘head’ is non-NULL)...
zlib-ng-2.2.5/test/example.c:845:5: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:851:5: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/example.c:853:5: branch_false: ...to here
zlib-ng-2.2.5/test/example.c:860:11: danger: ‘head’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  858|       head->extra_len = (uint32_t)strlen((const char *)head->extra);
#  859|   
#  860|->     err = PREFIX(deflateSetHeader)(&c_stream, head);
#  861|       CHECK_ERR(err, "deflateSetHeader");
#  862|       if (err == Z_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/infcover.c:290:11: warning[-Wanalyzer-malloc-leak]: leak of ‘strm.opaque’
zlib-ng-2.2.5/test/infcover.c:665:13: enter_function: entry to ‘cover_cve_2022_37434’
zlib-ng-2.2.5/test/infcover.c:666:5: call_function: calling ‘inf’ from ‘cover_cve_2022_37434’
#  288|       strm.avail_in = 0;
#  289|       strm.next_in = NULL;
#  290|->     ret = PREFIX(inflateInit2)(&strm, win);
#  291|       if (ret != Z_OK) {
#  292|           mem_done(&strm, what);

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/infcover.c:290:11: warning[-Wanalyzer-malloc-leak]: leak of ‘strm.opaque’
zlib-ng-2.2.5/test/infcover.c:665:13: enter_function: entry to ‘cover_cve_2022_37434’
zlib-ng-2.2.5/test/infcover.c:666:5: call_function: calling ‘inf’ from ‘cover_cve_2022_37434’
#  288|       strm.avail_in = 0;
#  289|       strm.next_in = NULL;
#  290|->     ret = PREFIX(inflateInit2)(&strm, win);
#  291|       if (ret != Z_OK) {
#  292|           mem_done(&strm, what);

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/infcover.c:303:15: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
zlib-ng-2.2.5/test/infcover.c:665:13: enter_function: entry to ‘cover_cve_2022_37434’
zlib-ng-2.2.5/test/infcover.c:666:5: call_function: calling ‘inf’ from ‘cover_cve_2022_37434’
#  301|           head.comment = out;
#  302|           head.comm_max = len;
#  303|->         ret = PREFIX(inflateGetHeader)(&strm, &head);
#  304|                                                   assert(ret == Z_OK);
#  305|       }

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/infcover.c:315:15: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
zlib-ng-2.2.5/test/infcover.c:646:13: enter_function: entry to ‘cover_fast’
zlib-ng-2.2.5/test/infcover.c:647:5: call_function: calling ‘inf’ from ‘cover_fast’
#  313|           strm.avail_out = len;
#  314|           strm.next_out = out;
#  315|->         ret = PREFIX(inflate)(&strm, Z_NO_FLUSH);
#  316|                                                   assert(err == 9 || ret == err);
#  317|           if (ret != Z_OK && ret != Z_BUF_ERROR && ret != Z_NEED_DICT)

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/infcover.c:315:15: warning[-Wanalyzer-malloc-leak]: leak of ‘strm.next_in’
zlib-ng-2.2.5/test/infcover.c:665:13: enter_function: entry to ‘cover_cve_2022_37434’
zlib-ng-2.2.5/test/infcover.c:666:5: call_function: calling ‘inf’ from ‘cover_cve_2022_37434’
#  313|           strm.avail_out = len;
#  314|           strm.next_out = out;
#  315|->         ret = PREFIX(inflate)(&strm, Z_NO_FLUSH);
#  316|                                                   assert(err == 9 || ret == err);
#  317|           if (ret != Z_OK && ret != Z_BUF_ERROR && ret != Z_NEED_DICT)

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/infcover.c:353:11: warning[-Wanalyzer-malloc-leak]: leak of ‘strm.opaque’
zlib-ng-2.2.5/test/infcover.c:669:5: enter_function: entry to ‘main’
zlib-ng-2.2.5/test/infcover.c:671:5: call_function: calling ‘cover_support’ from ‘main’
#  351|       strm.avail_in = 0;
#  352|       strm.next_in = NULL;
#  353|->     ret = PREFIX(inflateInit)(&strm);           assert(ret == Z_OK);
#  354|       mem_used(&strm, "inflate init");
#  355|       ret = PREFIX(inflatePrime)(&strm, 5, 31);   assert(ret == Z_OK);

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/infcover.c:353:11: warning[-Wanalyzer-malloc-leak]: leak of ‘strm.opaque’
zlib-ng-2.2.5/test/infcover.c:669:5: enter_function: entry to ‘main’
zlib-ng-2.2.5/test/infcover.c:671:5: call_function: calling ‘cover_support’ from ‘main’
#  351|       strm.avail_in = 0;
#  352|       strm.next_in = NULL;
#  353|->     ret = PREFIX(inflateInit)(&strm);           assert(ret == Z_OK);
#  354|       mem_used(&strm, "inflate init");
#  355|       ret = PREFIX(inflatePrime)(&strm, 5, 31);   assert(ret == Z_OK);

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minideflate.c:69:11: warning[-Wanalyzer-malloc-leak]: leak of ‘read_buf’
zlib-ng-2.2.5/test/minideflate.c:235:5: enter_function: entry to ‘main’
zlib-ng-2.2.5/test/minideflate.c:251:8: branch_false: following ‘false’ branch (when ‘argc != 1’)...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:256:17: branch_true: following ‘true’ branch (when ‘i < argc’)...
zlib-ng-2.2.5/test/minideflate.c:257:25: branch_true: ...to here
zlib-ng-2.2.5/test/minideflate.c:259:17: branch_true: following ‘true’ branch...
zlib-ng-2.2.5/test/minideflate.c:296:8: branch_false: following ‘false’ branch (when ‘i == argc’)...
zlib-ng-2.2.5/test/minideflate.c:336:8: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:336:8: branch_false: following ‘false’ branch (when ‘window_bits != 2147483647’)...
zlib-ng-2.2.5/test/minideflate.c:350:8: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:350:8: branch_false: following ‘false’ branch (when ‘uncompr == 0’)...
zlib-ng-2.2.5/test/minideflate.c:353:9: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:353:9: call_function: calling ‘deflate_params’ from ‘main’
#   67|       c_stream.avail_out = write_buf_size;
#   68|   
#   69|->     err = PREFIX(deflateInit2)(&c_stream, level, Z_DEFLATED, window_bits, mem_level, strategy);
#   70|       CHECK_ERR(err, "deflateInit2");
#   71|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minideflate.c:69:11: warning[-Wanalyzer-malloc-leak]: leak of ‘read_buf’
zlib-ng-2.2.5/test/minideflate.c:235:5: enter_function: entry to ‘main’
zlib-ng-2.2.5/test/minideflate.c:251:8: branch_false: following ‘false’ branch (when ‘argc != 1’)...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:256:17: branch_true: following ‘true’ branch (when ‘i < argc’)...
zlib-ng-2.2.5/test/minideflate.c:257:25: branch_true: ...to here
zlib-ng-2.2.5/test/minideflate.c:259:17: branch_true: following ‘true’ branch...
zlib-ng-2.2.5/test/minideflate.c:296:8: branch_false: following ‘false’ branch (when ‘i == argc’)...
zlib-ng-2.2.5/test/minideflate.c:336:8: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:336:8: branch_false: following ‘false’ branch (when ‘window_bits != 2147483647’)...
zlib-ng-2.2.5/test/minideflate.c:350:8: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:350:8: branch_false: following ‘false’ branch (when ‘uncompr == 0’)...
zlib-ng-2.2.5/test/minideflate.c:353:9: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:353:9: call_function: calling ‘deflate_params’ from ‘main’
#   67|       c_stream.avail_out = write_buf_size;
#   68|   
#   69|->     err = PREFIX(deflateInit2)(&c_stream, level, Z_DEFLATED, window_bits, mem_level, strategy);
#   70|       CHECK_ERR(err, "deflateInit2");
#   71|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minideflate.c:69:11: warning[-Wanalyzer-malloc-leak]: leak of ‘write_buf’
zlib-ng-2.2.5/test/minideflate.c:235:5: enter_function: entry to ‘main’
zlib-ng-2.2.5/test/minideflate.c:251:8: branch_false: following ‘false’ branch (when ‘argc != 1’)...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:256:17: branch_true: following ‘true’ branch (when ‘i < argc’)...
zlib-ng-2.2.5/test/minideflate.c:257:25: branch_true: ...to here
zlib-ng-2.2.5/test/minideflate.c:259:17: branch_true: following ‘true’ branch...
zlib-ng-2.2.5/test/minideflate.c:296:8: branch_false: following ‘false’ branch (when ‘i == argc’)...
zlib-ng-2.2.5/test/minideflate.c:336:8: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:336:8: branch_false: following ‘false’ branch (when ‘window_bits != 2147483647’)...
zlib-ng-2.2.5/test/minideflate.c:350:8: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:350:8: branch_false: following ‘false’ branch (when ‘uncompr == 0’)...
zlib-ng-2.2.5/test/minideflate.c:353:9: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:353:9: call_function: calling ‘deflate_params’ from ‘main’
#   67|       c_stream.avail_out = write_buf_size;
#   68|   
#   69|->     err = PREFIX(deflateInit2)(&c_stream, level, Z_DEFLATED, window_bits, mem_level, strategy);
#   70|       CHECK_ERR(err, "deflateInit2");
#   71|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minideflate.c:69:11: warning[-Wanalyzer-malloc-leak]: leak of ‘write_buf’
zlib-ng-2.2.5/test/minideflate.c:235:5: enter_function: entry to ‘main’
zlib-ng-2.2.5/test/minideflate.c:251:8: branch_false: following ‘false’ branch (when ‘argc != 1’)...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:256:17: branch_true: following ‘true’ branch (when ‘i < argc’)...
zlib-ng-2.2.5/test/minideflate.c:257:25: branch_true: ...to here
zlib-ng-2.2.5/test/minideflate.c:259:17: branch_true: following ‘true’ branch...
zlib-ng-2.2.5/test/minideflate.c:296:8: branch_false: following ‘false’ branch (when ‘i == argc’)...
zlib-ng-2.2.5/test/minideflate.c:336:8: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:336:8: branch_false: following ‘false’ branch (when ‘window_bits != 2147483647’)...
zlib-ng-2.2.5/test/minideflate.c:350:8: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:350:8: branch_false: following ‘false’ branch (when ‘uncompr == 0’)...
zlib-ng-2.2.5/test/minideflate.c:353:9: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:353:9: call_function: calling ‘deflate_params’ from ‘main’
#   67|       c_stream.avail_out = write_buf_size;
#   68|   
#   69|->     err = PREFIX(deflateInit2)(&c_stream, level, Z_DEFLATED, window_bits, mem_level, strategy);
#   70|       CHECK_ERR(err, "deflateInit2");
#   71|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minideflate.c:83:19: warning[-Wanalyzer-malloc-leak]: leak of ‘read_buf’
zlib-ng-2.2.5/test/minideflate.c:235:5: enter_function: entry to ‘main’
zlib-ng-2.2.5/test/minideflate.c:251:8: branch_false: following ‘false’ branch (when ‘argc != 1’)...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:256:17: branch_true: following ‘true’ branch (when ‘i < argc’)...
zlib-ng-2.2.5/test/minideflate.c:257:25: branch_true: ...to here
zlib-ng-2.2.5/test/minideflate.c:259:17: branch_true: following ‘true’ branch...
zlib-ng-2.2.5/test/minideflate.c:296:8: branch_false: following ‘false’ branch (when ‘i == argc’)...
zlib-ng-2.2.5/test/minideflate.c:336:8: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:336:8: branch_false: following ‘false’ branch (when ‘window_bits != 2147483647’)...
zlib-ng-2.2.5/test/minideflate.c:350:8: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:350:8: branch_false: following ‘false’ branch (when ‘uncompr == 0’)...
zlib-ng-2.2.5/test/minideflate.c:353:9: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:353:9: call_function: calling ‘deflate_params’ from ‘main’
#   81|   
#   82|           do {
#   83|->             err = PREFIX(deflate)(&c_stream, flush);
#   84|               if (err == Z_STREAM_END) break;
#   85|               CHECK_ERR(err, "deflate");

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minideflate.c:105:19: warning[-Wanalyzer-malloc-leak]: leak of ‘read_buf’
zlib-ng-2.2.5/test/minideflate.c:235:5: enter_function: entry to ‘main’
zlib-ng-2.2.5/test/minideflate.c:251:8: branch_false: following ‘false’ branch (when ‘argc != 1’)...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:256:17: branch_true: following ‘true’ branch (when ‘i < argc’)...
zlib-ng-2.2.5/test/minideflate.c:257:25: branch_true: ...to here
zlib-ng-2.2.5/test/minideflate.c:259:17: branch_true: following ‘true’ branch...
zlib-ng-2.2.5/test/minideflate.c:296:8: branch_false: following ‘false’ branch (when ‘i == argc’)...
zlib-ng-2.2.5/test/minideflate.c:336:8: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:336:8: branch_false: following ‘false’ branch (when ‘window_bits != 2147483647’)...
zlib-ng-2.2.5/test/minideflate.c:350:8: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:350:8: branch_false: following ‘false’ branch (when ‘uncompr == 0’)...
zlib-ng-2.2.5/test/minideflate.c:353:9: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:353:9: call_function: calling ‘deflate_params’ from ‘main’
#  103|               }
#  104|   
#  105|->             err = PREFIX(deflate)(&c_stream, Z_FINISH);
#  106|               if (err == Z_STREAM_END) break;
#  107|               CHECK_ERR(err, "deflate");

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minideflate.c:116:11: warning[-Wanalyzer-malloc-leak]: leak of ‘read_buf’
zlib-ng-2.2.5/test/minideflate.c:235:5: enter_function: entry to ‘main’
zlib-ng-2.2.5/test/minideflate.c:251:8: branch_false: following ‘false’ branch (when ‘argc != 1’)...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:256:17: branch_true: following ‘true’ branch (when ‘i < argc’)...
zlib-ng-2.2.5/test/minideflate.c:257:25: branch_true: ...to here
zlib-ng-2.2.5/test/minideflate.c:259:17: branch_true: following ‘true’ branch...
zlib-ng-2.2.5/test/minideflate.c:296:8: branch_false: following ‘false’ branch (when ‘i == argc’)...
zlib-ng-2.2.5/test/minideflate.c:336:8: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:336:8: branch_false: following ‘false’ branch (when ‘window_bits != 2147483647’)...
zlib-ng-2.2.5/test/minideflate.c:350:8: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:350:8: branch_false: following ‘false’ branch (when ‘uncompr == 0’)...
zlib-ng-2.2.5/test/minideflate.c:353:9: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:353:9: call_function: calling ‘deflate_params’ from ‘main’
#  114|       }
#  115|   
#  116|->     err = PREFIX(deflateEnd)(&c_stream);
#  117|       CHECK_ERR(err, "deflateEnd");
#  118|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minideflate.c:155:11: warning[-Wanalyzer-malloc-leak]: leak of ‘read_buf’
zlib-ng-2.2.5/test/minideflate.c:135:27: acquire_memory: allocated here
zlib-ng-2.2.5/test/minideflate.c:136:8: branch_false: following ‘false’ branch (when ‘read_buf’ is non-NULL)...
zlib-ng-2.2.5/test/minideflate.c:140:28: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:141:8: branch_false: following ‘false’ branch (when ‘write_buf’ is non-NULL)...
zlib-ng-2.2.5/test/minideflate.c:147:5: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:155:11: danger: ‘read_buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  153|       d_stream.avail_out = write_buf_size;
#  154|   
#  155|->     err = PREFIX(inflateInit2)(&d_stream, window_bits);
#  156|       CHECK_ERR(err, "inflateInit2");
#  157|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minideflate.c:155:11: warning[-Wanalyzer-malloc-leak]: leak of ‘read_buf’
zlib-ng-2.2.5/test/minideflate.c:135:27: acquire_memory: allocated here
zlib-ng-2.2.5/test/minideflate.c:136:8: branch_false: following ‘false’ branch (when ‘read_buf’ is non-NULL)...
zlib-ng-2.2.5/test/minideflate.c:140:28: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:141:8: branch_false: following ‘false’ branch (when ‘write_buf’ is non-NULL)...
zlib-ng-2.2.5/test/minideflate.c:147:5: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:155:11: danger: ‘read_buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  153|       d_stream.avail_out = write_buf_size;
#  154|   
#  155|->     err = PREFIX(inflateInit2)(&d_stream, window_bits);
#  156|       CHECK_ERR(err, "inflateInit2");
#  157|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minideflate.c:155:11: warning[-Wanalyzer-malloc-leak]: leak of ‘write_buf’
zlib-ng-2.2.5/test/minideflate.c:136:8: branch_false: following ‘false’ branch (when ‘read_buf’ is non-NULL)...
zlib-ng-2.2.5/test/minideflate.c:140:28: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:140:28: acquire_memory: allocated here
zlib-ng-2.2.5/test/minideflate.c:141:8: branch_false: following ‘false’ branch (when ‘write_buf’ is non-NULL)...
zlib-ng-2.2.5/test/minideflate.c:147:5: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:155:11: danger: ‘write_buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  153|       d_stream.avail_out = write_buf_size;
#  154|   
#  155|->     err = PREFIX(inflateInit2)(&d_stream, window_bits);
#  156|       CHECK_ERR(err, "inflateInit2");
#  157|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minideflate.c:155:11: warning[-Wanalyzer-malloc-leak]: leak of ‘write_buf’
zlib-ng-2.2.5/test/minideflate.c:136:8: branch_false: following ‘false’ branch (when ‘read_buf’ is non-NULL)...
zlib-ng-2.2.5/test/minideflate.c:140:28: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:140:28: acquire_memory: allocated here
zlib-ng-2.2.5/test/minideflate.c:141:8: branch_false: following ‘false’ branch (when ‘write_buf’ is non-NULL)...
zlib-ng-2.2.5/test/minideflate.c:147:5: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:155:11: danger: ‘write_buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  153|       d_stream.avail_out = write_buf_size;
#  154|   
#  155|->     err = PREFIX(inflateInit2)(&d_stream, window_bits);
#  156|       CHECK_ERR(err, "inflateInit2");
#  157|   

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minideflate.c:169:19: warning[-Wanalyzer-malloc-leak]: leak of ‘read_buf’
zlib-ng-2.2.5/test/minideflate.c:135:27: acquire_memory: allocated here
zlib-ng-2.2.5/test/minideflate.c:136:8: branch_false: following ‘false’ branch (when ‘read_buf’ is non-NULL)...
zlib-ng-2.2.5/test/minideflate.c:140:28: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:141:8: branch_false: following ‘false’ branch (when ‘write_buf’ is non-NULL)...
zlib-ng-2.2.5/test/minideflate.c:147:5: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:156:5: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:162:12: branch_false: following ‘false’ branch (when ‘read > 0’)...
zlib-ng-2.2.5/test/minideflate.c:165:9: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:169:19: danger: ‘read_buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  167|   
#  168|           do {
#  169|->             err = PREFIX(inflate)(&d_stream, flush);
#  170|   
#  171|               /* Ignore Z_BUF_ERROR if we are finishing and read buffer size is

Error: GCC_ANALYZER_WARNING (CWE-775):
zlib-ng-2.2.5/test/minideflate.c:303:48: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb+")’
zlib-ng-2.2.5/test/minideflate.c:251:8: branch_false: following ‘false’ branch (when ‘argc != 1’)...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:296:8: branch_true: following ‘true’ branch (when ‘i != argc’)...
zlib-ng-2.2.5/test/minideflate.c:297:25: branch_true: ...to here
zlib-ng-2.2.5/test/minideflate.c:297:15: acquire_resource: opened here
zlib-ng-2.2.5/test/minideflate.c:298:12: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minideflate.c:302:12: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:302:12: branch_true: following ‘true’ branch (when ‘copyout == 0’)...
zlib-ng-2.2.5/test/minideflate.c:303:48: branch_true: ...to here
zlib-ng-2.2.5/test/minideflate.c:303:48: danger: ‘fopen(*<unknown>, "rb+")’ leaks here; was opened at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  301|           }
#  302|           if (!copyout) {
#  303|->             char *out_file = (char *)calloc(1, strlen(argv[i]) + 6);
#  304|               if (out_file == NULL) {
#  305|                   fprintf(stderr, "Not enough memory\n");

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minideflate.c:303:48: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb+")’
zlib-ng-2.2.5/test/minideflate.c:251:8: branch_false: following ‘false’ branch (when ‘argc != 1’)...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:296:8: branch_true: following ‘true’ branch (when ‘i != argc’)...
zlib-ng-2.2.5/test/minideflate.c:297:25: branch_true: ...to here
zlib-ng-2.2.5/test/minideflate.c:297:15: acquire_memory: allocated here
zlib-ng-2.2.5/test/minideflate.c:298:12: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minideflate.c:302:12: branch_false: ...to here
zlib-ng-2.2.5/test/minideflate.c:302:12: branch_true: following ‘true’ branch (when ‘copyout == 0’)...
zlib-ng-2.2.5/test/minideflate.c:303:48: branch_true: ...to here
zlib-ng-2.2.5/test/minideflate.c:303:48: danger: ‘fopen(*<unknown>, "rb+")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  301|           }
#  302|           if (!copyout) {
#  303|->             char *out_file = (char *)calloc(1, strlen(argv[i]) + 6);
#  304|               if (out_file == NULL) {
#  305|                   fprintf(stderr, "Not enough memory\n");

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minigzip.c:77:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
zlib-ng-2.2.5/test/minigzip.c:119:13: enter_function: entry to ‘gz_compress’
zlib-ng-2.2.5/test/minigzip.c:129:19: acquire_memory: allocated here
zlib-ng-2.2.5/test/minigzip.c:130:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:137:12: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:142:12: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:142:12: branch_false: following ‘false’ branch (when ‘len != 0’)...
zlib-ng-2.2.5/test/minigzip.c:144:13: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:144:62: call_function: calling ‘gz_fatal’ from ‘gz_compress’
#   75|   static void gz_fatal(gzFile file) {
#   76|       int err;
#   77|->     fprintf(stderr, "%s: %s\n", prog, PREFIX(gzerror)(file, &err));
#   78|       PREFIX(gzclose)(file);
#   79|       exit(1);

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minigzip.c:78:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
zlib-ng-2.2.5/test/minigzip.c:119:13: enter_function: entry to ‘gz_compress’
zlib-ng-2.2.5/test/minigzip.c:129:19: acquire_memory: allocated here
zlib-ng-2.2.5/test/minigzip.c:130:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:137:12: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:142:12: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:142:12: branch_false: following ‘false’ branch (when ‘len != 0’)...
zlib-ng-2.2.5/test/minigzip.c:144:13: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:144:62: call_function: calling ‘gz_fatal’ from ‘gz_compress’
#   76|       int err;
#   77|       fprintf(stderr, "%s: %s\n", prog, PREFIX(gzerror)(file, &err));
#   78|->     PREFIX(gzclose)(file);
#   79|       exit(1);
#   80|   }

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minigzip.c:144:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
zlib-ng-2.2.5/test/minigzip.c:129:19: acquire_memory: allocated here
zlib-ng-2.2.5/test/minigzip.c:130:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:137:12: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:142:12: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:142:12: branch_false: following ‘false’ branch (when ‘len != 0’)...
zlib-ng-2.2.5/test/minigzip.c:144:13: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:144:13: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  142|           if (len == 0) break;
#  143|   
#  144|->         if (PREFIX(gzwrite)(out, buf, (unsigned)len) != len) gz_fatal(out);
#  145|       }
#  146|       free(buf);

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minigzip.c:161:15: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
zlib-ng-2.2.5/test/minigzip.c:155:25: acquire_memory: allocated here
zlib-ng-2.2.5/test/minigzip.c:158:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:161:15: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  159|   
#  160|       for (;;) {
#  161|->         len = PREFIX(gzread)(in, buf, BUFLENW);
#  162|           if (len < 0) {
#  163|               free(buf);

Error: GCC_ANALYZER_WARNING (CWE-775):
zlib-ng-2.2.5/test/minigzip.c:201:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’
zlib-ng-2.2.5/test/minigzip.c:189:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:194:5: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:196:10: acquire_resource: opened here
zlib-ng-2.2.5/test/minigzip.c:197:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:201:11: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:201:11: danger: ‘fopen(file, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  199|           exit(1);
#  200|       }
#  201|->     out = PREFIX(gzopen)(outfile, mode);
#  202|       if (out == NULL) {
#  203|           fprintf(stderr, "%s: can't gzopen %s\n", prog, outfile);

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minigzip.c:201:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’
zlib-ng-2.2.5/test/minigzip.c:189:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:194:5: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:196:10: acquire_memory: allocated here
zlib-ng-2.2.5/test/minigzip.c:197:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:201:11: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:201:11: danger: ‘fopen(file, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  199|           exit(1);
#  200|       }
#  201|->     out = PREFIX(gzopen)(outfile, mode);
#  202|       if (out == NULL) {
#  203|           fprintf(stderr, "%s: can't gzopen %s\n", prog, outfile);

Error: GCC_ANALYZER_WARNING (CWE-775):
zlib-ng-2.2.5/test/minigzip.c:202:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’
zlib-ng-2.2.5/test/minigzip.c:189:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:194:5: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:196:10: acquire_resource: opened here
zlib-ng-2.2.5/test/minigzip.c:197:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:201:11: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:202:8: danger: ‘fopen(file, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  200|       }
#  201|       out = PREFIX(gzopen)(outfile, mode);
#  202|->     if (out == NULL) {
#  203|           fprintf(stderr, "%s: can't gzopen %s\n", prog, outfile);
#  204|           exit(1);

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minigzip.c:202:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’
zlib-ng-2.2.5/test/minigzip.c:189:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:194:5: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:196:10: acquire_memory: allocated here
zlib-ng-2.2.5/test/minigzip.c:197:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:201:11: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:202:8: danger: ‘fopen(file, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  200|       }
#  201|       out = PREFIX(gzopen)(outfile, mode);
#  202|->     if (out == NULL) {
#  203|           fprintf(stderr, "%s: can't gzopen %s\n", prog, outfile);
#  204|           exit(1);

Error: GCC_ANALYZER_WARNING (CWE-775):
zlib-ng-2.2.5/test/minigzip.c:208:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’
zlib-ng-2.2.5/test/minigzip.c:184:13: enter_function: entry to ‘file_compress’
zlib-ng-2.2.5/test/minigzip.c:189:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:194:5: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:196:10: acquire_resource: opened here
zlib-ng-2.2.5/test/minigzip.c:197:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:201:11: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:202:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:206:5: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:206:5: call_function: calling ‘gz_compress’ from ‘file_compress’
#  206|       gz_compress(in, out);
#  207|   
#  208|->     if (!keep)
#  209|           unlink(file);
#  210|   }

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minigzip.c:208:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’
zlib-ng-2.2.5/test/minigzip.c:184:13: enter_function: entry to ‘file_compress’
zlib-ng-2.2.5/test/minigzip.c:189:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:194:5: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:196:10: acquire_memory: allocated here
zlib-ng-2.2.5/test/minigzip.c:197:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:201:11: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:202:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:206:5: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:206:5: call_function: calling ‘gz_compress’ from ‘file_compress’
#  206|       gz_compress(in, out);
#  207|   
#  208|->     if (!keep)
#  209|           unlink(file);
#  210|   }

Error: GCC_ANALYZER_WARNING (CWE-775):
zlib-ng-2.2.5/test/minigzip.c:252:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outfile, "wb")’
zlib-ng-2.2.5/test/minigzip.c:216:13: enter_function: entry to ‘file_uncompress’
zlib-ng-2.2.5/test/minigzip.c:223:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:228:5: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:240:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:244:11: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:244:11: acquire_resource: opened here
zlib-ng-2.2.5/test/minigzip.c:245:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:250:5: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:250:5: call_function: calling ‘gz_uncompress’ from ‘file_uncompress’
#  250|       gz_uncompress(in, out);
#  251|   
#  252|->     if (!keep)
#  253|           unlink(infile);
#  254|   }

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/minigzip.c:252:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outfile, "wb")’
zlib-ng-2.2.5/test/minigzip.c:216:13: enter_function: entry to ‘file_uncompress’
zlib-ng-2.2.5/test/minigzip.c:223:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:228:5: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:240:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:244:11: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:244:11: acquire_memory: allocated here
zlib-ng-2.2.5/test/minigzip.c:245:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/minigzip.c:250:5: branch_false: ...to here
zlib-ng-2.2.5/test/minigzip.c:250:5: call_function: calling ‘gz_uncompress’ from ‘file_uncompress’
#  250|       gz_uncompress(in, out);
#  251|   
#  252|->     if (!keep)
#  253|           unlink(infile);
#  254|   }

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/switchlevels.c:27:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
zlib-ng-2.2.5/test/switchlevels.c:52:12: enter_function: entry to ‘compress_chunk’
zlib-ng-2.2.5/test/switchlevels.c:58:8: branch_false: following ‘false’ branch (when ‘size > 0’)...
zlib-ng-2.2.5/test/switchlevels.c:62:9: branch_false: ...to here
zlib-ng-2.2.5/test/switchlevels.c:62:8: branch_false: following ‘false’ branch...
zlib-ng-2.2.5/test/switchlevels.c:67:16: branch_false: ...to here
zlib-ng-2.2.5/test/switchlevels.c:68:11: acquire_memory: allocated here
zlib-ng-2.2.5/test/switchlevels.c:69:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
zlib-ng-2.2.5/test/switchlevels.c:73:9: branch_false: ...to here
zlib-ng-2.2.5/test/switchlevels.c:73:9: call_function: calling ‘read_all’ from ‘compress_chunk’
#   25|           size_t n_read = fread(buf + total_read, 1, size - total_read, stdin);
#   26|           if (ferror(stdin)) {
#   27|->             perror("fread\n");
#   28|               return 1;
#   29|           }

Error: GCC_ANALYZER_WARNING (CWE-401):
zlib-ng-2.2.5/test/switchlevels.c:83:11: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
zlib-ng-2.2.5/test/switchlevels.c:118:5: enter_function: entry to ‘main’
zlib-ng-2.2.5/test/switchlevels.c:128:8: branch_false: following ‘false’ branch (when ‘argc != 1’)...
zlib-ng-2.2.5/test/switchlevels.c:128:9: branch_false: ...to here
zlib-ng-2.2.5/test/switchlevels.c:149:8: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
zlib-ng-2.2.5/test/switchlevels.c:154:29: branch_true: following ‘true’ branch...
zlib-ng-2.2.5/test/switchlevels.c:155:26: branch_true: ...to here
zlib-ng-2.2.5/test/switchlevels.c:157:13: call_function: calling ‘compress_chunk’ from ‘main’
#   81|       strm->next_out = buf + size;
#   82|       strm->avail_out = compsize;
#   83|->     err = PREFIX(deflateParams)(strm, level, Z_DEFAULT_STRATEGY);
#   84|       if (err != Z_OK) {
#   85|           fprintf(stderr, "deflateParams() failed with code %d\n", err);

Error: CPPCHECK_WARNING (CWE-476):
zlib-ng-2.2.5/test/test_compress_bound.cc:34: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: uncompressed
#   32|           /* buffer with values for worst case compression */
#   33|           for (int32_t j = 0; j < MAX_LENGTH; j++) {
#   34|->             uncompressed[j] = (uint8_t)j;
#   35|           }
#   36|   

Error: CPPCHECK_WARNING (CWE-476):
zlib-ng-2.2.5/test/test_deflate_bound.cc:47: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: uncompressed
#   45|           uncompressed = (uint8_t *)malloc(MAX_LENGTH);
#   46|           ASSERT_TRUE(uncompressed != NULL);
#   47|->         memset(uncompressed, 'a', MAX_LENGTH);
#   48|   
#   49|           for (int32_t i = 0; i < MAX_LENGTH; i++) {

Error: CPPCHECK_WARNING (CWE-476):
zlib-ng-2.2.5/test/test_deflate_header.cc:35: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: head
#   33|       EXPECT_EQ(err, Z_OK);
#   34|   
#   35|->     head->text = 1;
#   36|       head->comment = (uint8_t *)"comment";
#   37|       head->name = (uint8_t *)"name";

Error: CPPCHECK_WARNING (CWE-476):
zlib-ng-2.2.5/test/test_deflate_header.cc:36: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: head
#   34|   
#   35|       head->text = 1;
#   36|->     head->comment = (uint8_t *)"comment";
#   37|       head->name = (uint8_t *)"name";
#   38|       head->hcrc = 1;

Error: CPPCHECK_WARNING (CWE-476):
zlib-ng-2.2.5/test/test_deflate_header.cc:37: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: head
#   35|       head->text = 1;
#   36|       head->comment = (uint8_t *)"comment";
#   37|->     head->name = (uint8_t *)"name";
#   38|       head->hcrc = 1;
#   39|       head->extra = (uint8_t *)"extra";

Error: CPPCHECK_WARNING (CWE-476):
zlib-ng-2.2.5/test/test_deflate_header.cc:38: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: head
#   36|       head->comment = (uint8_t *)"comment";
#   37|       head->name = (uint8_t *)"name";
#   38|->     head->hcrc = 1;
#   39|       head->extra = (uint8_t *)"extra";
#   40|       head->extra_len = (uint32_t)strlen((const char *)head->extra);

Error: CPPCHECK_WARNING (CWE-476):
zlib-ng-2.2.5/test/test_deflate_header.cc:39: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: head
#   37|       head->name = (uint8_t *)"name";
#   38|       head->hcrc = 1;
#   39|->     head->extra = (uint8_t *)"extra";
#   40|       head->extra_len = (uint32_t)strlen((const char *)head->extra);
#   41|   

Error: CPPCHECK_WARNING (CWE-476):
zlib-ng-2.2.5/test/test_deflate_header.cc:40: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: head
#   38|       head->hcrc = 1;
#   39|       head->extra = (uint8_t *)"extra";
#   40|->     head->extra_len = (uint32_t)strlen((const char *)head->extra);
#   41|   
#   42|       err = PREFIX(deflateSetHeader)(&c_stream, head);

Error: CPPCHECK_WARNING (CWE-476):
zlib-ng-2.2.5/test/test_deflate_params.cc:62: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: uncompr
#   60|       srand((unsigned)time(&now));
#   61|       for (i = 0; i < UNCOMPR_RAND_SIZE; i++)
#   62|->         uncompr[i] = (uint8_t)(rand() % 256);
#   63|   
#   64|       err = PREFIX(deflateInit)(&c_stream, Z_BEST_SPEED);

Error: CPPCHECK_WARNING (CWE-476):
zlib-ng-2.2.5/test/test_deflate_pending.cc:50: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bits
#   48|       EXPECT_EQ(err, Z_OK);
#   49|   
#   50|->     EXPECT_GE(*bits, 0);
#   51|       EXPECT_LE(*bits, 7);
#   52|   

Error: CPPCHECK_WARNING (CWE-476):
zlib-ng-2.2.5/test/test_deflate_pending.cc:51: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bits
#   49|   
#   50|       EXPECT_GE(*bits, 0);
#   51|->     EXPECT_LE(*bits, 7);
#   52|   
#   53|       /* Finish the stream, still forcing small buffers: */

Error: CPPCHECK_WARNING (CWE-476):
zlib-ng-2.2.5/test/test_large_buffers.cc:45: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: uncompr
#   43|       srand((unsigned)time(&now));
#   44|       for (i = 0; i < UNCOMPR_RAND_SIZE; i++)
#   45|->         uncompr[i] = (uint8_t)(rand() % 256);
#   46|   
#   47|       err = PREFIX(deflateInit)(&c_stream, Z_DEFAULT_COMPRESSION);

Error: CPPCHECK_WARNING (CWE-758):
zlib-ng-2.2.5/tools/makecrct.c:72: error[shiftTooManyBits]: Shifting 32-bit value by 40 bits is undefined behaviour
#   70|               p = p & 1 ? (p >> 1) ^ POLY : p >> 1;
#   71|           crc_table[i] = p;
#   72|->         crc_big_table[i] = ZSWAP64(p);
#   73|       }
#   74|   

Error: CPPCHECK_WARNING (CWE-758):
zlib-ng-2.2.5/tools/makecrct.c:72: error[shiftTooManyBits]: Shifting 32-bit value by 56 bits is undefined behaviour
#   70|               p = p & 1 ? (p >> 1) ^ POLY : p >> 1;
#   71|           crc_table[i] = p;
#   72|->         crc_big_table[i] = ZSWAP64(p);
#   73|       }
#   74|   

Error: CPPCHECK_WARNING (CWE-758):
zlib-ng-2.2.5/tools/makecrct.c:95: error[shiftTooManyBits]: Shifting 32-bit value by 40 bits is undefined behaviour
#   93|           for (i = 1; i < 256; i++) {
#   94|               ltl[k][i] = q = multmodp(i << 24, p);
#   95|->             big[w - 1 - k][i] = ZSWAP64(q);
#   96|           }
#   97|       }

Error: CPPCHECK_WARNING (CWE-758):
zlib-ng-2.2.5/tools/makecrct.c:95: error[shiftTooManyBits]: Shifting 32-bit value by 56 bits is undefined behaviour
#   93|           for (i = 1; i < 256; i++) {
#   94|               ltl[k][i] = q = multmodp(i << 24, p);
#   95|->             big[w - 1 - k][i] = ZSWAP64(q);
#   96|           }
#   97|       }