zlib-ng-2.1.7-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def2]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx2.c: scope_hint: In function ‘adler32_fold_copy_impl’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx2.c:55:19: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx2.c:16: included_from: Included from here.
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx2_p.h: scope_hint: In function ‘partial_hsum256’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx2_p.h:20:24: note: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
#   53|       __m256i vs1, vs2;
#   54|   
#   55|->     const __m256i dot2v = _mm256_setr_epi8(32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15,
#   56|                                              14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1);
#   57|       const __m256i dot3v = _mm256_set1_epi16(1);

Error: CPPCHECK_WARNING: [#def3]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx512.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def4]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx512.c: scope_hint: In function ‘adler32_fold_copy_impl’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx512.c:32:21: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx512.c:17: included_from: Included from here.
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx512_p.h: scope_hint: In function ‘partial_hsum’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx512_p.h:24:24: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6
#   30|           if (COPY) {
#   31|               __mmask64 storemask = (0xFFFFFFFFFFFFFFFFUL >> (64 - len));
#   32|->             __m512i copy_vec = _mm512_maskz_loadu_epi8(storemask, src);
#   33|               _mm512_mask_storeu_epi8(dst, storemask, copy_vec);
#   34|           }

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

Error: COMPILER_WARNING: [#def6]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx512_vnni.c: scope_hint: In function ‘adler32_avx512_vnni’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx512_vnni.c:46:19: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx512_vnni.c:18: included_from: Included from here.
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx512_p.h: scope_hint: In function ‘partial_hsum’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_avx512_p.h:24:24: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6
#   44|   #endif
#   45|   
#   46|->     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,
#   47|                                             20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
#   48|                                             38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,

Error: CPPCHECK_WARNING: [#def7]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/adler32_ssse3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/chunkset_avx2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def9]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/chunkset_avx2.c: scope_hint: In function ‘GET_CHUNK_MAG’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/chunkset_avx2.c:79:1: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   77|   }
#   78|   
#   79|-> static inline chunk_t GET_CHUNK_MAG(uint8_t *buf, uint32_t *chunk_rem, uint32_t dist) {
#   80|       lut_rem_pair lut_rem = perm_idx_lut[dist - 3];
#   81|       __m256i ret_vec;

Error: CPPCHECK_WARNING: [#def10]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/chunkset_sse2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/chunkset_ssse3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/compare256_avx2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def13]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/compare256_avx2.c: scope_hint: In function ‘compare256_avx2_static’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/compare256_avx2.c:22:18: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   20|       do {
#   21|           __m256i ymm_src0, ymm_src1, ymm_cmp;
#   22|->         ymm_src0 = _mm256_loadu_si256((__m256i*)src0);
#   23|           ymm_src1 = _mm256_loadu_si256((__m256i*)src1);
#   24|           ymm_cmp = _mm256_cmpeq_epi8(ymm_src0, ymm_src1); /* non-identical bytes = 00, identical bytes = FF */

Error: CPPCHECK_WARNING: [#def14]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/compare256_sse2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def15]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/crc32_pclmulqdq_tpl.h:262: included_from: Included from here.
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/crc32_vpclmulqdq.c:15: included_from: Included from here.
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/crc32_fold_vpclmulqdq_tpl.h: scope_hint: In function ‘fold_16_vpclmulqdq’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/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: CPPCHECK_WARNING: [#def16]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/crc32_pclmulqdq.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/crc32_vpclmulqdq.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def18]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/slide_hash_avx2.c: scope_hint: In function ‘slide_hash_avx2’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/slide_hash_avx2.c:35:19: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/slide_hash_avx2.c: scope_hint: In function ‘slide_hash_chain’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/arch/x86/slide_hash_avx2.c:17:20: note: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
#   33|   Z_INTERNAL void slide_hash_avx2(deflate_state *s) {
#   34|       uint16_t wsize = (uint16_t)s->w_size;
#   35|->     const __m256i ymm_wsize = _mm256_set1_epi16((short)wsize);
#   36|   
#   37|       slide_hash_chain(s->head, HASH_SIZE, ymm_wsize);

Error: CPPCHECK_WARNING: [#def19]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/chunkset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def20]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/chunkset_tpl.h:90: warning[uninitvar]: Uninitialized variable: chunk_load
#   88|           }
#   89|   
#   90|->         return chunk_load;
#   91|   }
#   92|   #endif

Error: CPPCHECK_WARNING: [#def21]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/compare256.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/deflate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def23]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/deflate.c:932: error[legacyUninitvar]: Uninitialized variable: bstate
#  930|           block_state bstate;
#  931|   
#  932|->         bstate = DEFLATE_HOOK(strm, flush, &bstate) ? bstate :  /* hook for IBM Z DFLTCC */
#  933|                    s->level == 0 ? deflate_stored(s, flush) :
#  934|                    s->strategy == Z_HUFFMAN_ONLY ? deflate_huff(s, flush) :

Error: CPPCHECK_WARNING: [#def24]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/deflate_fast.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/deflate_medium.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/deflate_quick.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/deflate_rle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def28]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/deflate_slow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/deflate_stored.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def30]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/functable.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def31]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/gzlib.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def32]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/gzwrite.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def33]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/infback.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def34]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/infback.c:378:21: warning[core.BitwiseShift]: Left shift by '37' overflows the capacity of 'unsigned int'
#  376|                       if ((unsigned)last.bits + (unsigned)here.bits <= bits)
#  377|                           break;
#  378|->                     PULLBYTE();
#  379|                   }
#  380|                   DROPBITS(last.bits);

Error: CPPCHECK_WARNING: [#def35]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/inflate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def36]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/inflate.c:792:25: warning[core.BitwiseShift]: Left shift overflows the capacity of 'unsigned int'
#  790|                   } else {
#  791|                       if (here.val == 16) {
#  792|->                         NEEDBITS(here.bits + 2);
#  793|                           DROPBITS(here.bits);
#  794|                           if (state->have == 0) {

Error: CLANG_WARNING: [#def37]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/inflate.c:802:25: warning[core.BitwiseShift]: Left shift overflows the capacity of 'unsigned int'
#  800|                           DROPBITS(2);
#  801|                       } else if (here.val == 17) {
#  802|->                         NEEDBITS(here.bits + 3);
#  803|                           DROPBITS(here.bits);
#  804|                           len = 0;

Error: CLANG_WARNING: [#def38]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/inflate.c:808:25: warning[core.BitwiseShift]: Left shift overflows the capacity of 'unsigned int'
#  806|                           DROPBITS(3);
#  807|                       } else {
#  808|->                         NEEDBITS(here.bits + 7);
#  809|                           DROPBITS(here.bits);
#  810|                           len = 0;

Error: CLANG_WARNING: [#def39]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/inflate.c:889:21: warning[core.BitwiseShift]: Left shift overflows the capacity of 'unsigned int'
#  887|                       if ((unsigned)last.bits + (unsigned)here.bits <= bits)
#  888|                           break;
#  889|->                     PULLBYTE();
#  890|                   }
#  891|                   DROPBITS(last.bits);

Error: CLANG_WARNING: [#def40]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/inflate.c:953:21: warning[core.BitwiseShift]: Left shift overflows the capacity of 'unsigned int'
#  951|                       if ((unsigned)last.bits + (unsigned)here.bits <= bits)
#  952|                           break;
#  953|->                     PULLBYTE();
#  954|                   }
#  955|                   DROPBITS(last.bits);

Error: CPPCHECK_WARNING (CWE-457): [#def41]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/inflate.c:1281: warning[uninitvar]: Uninitialized variable: buf
# 1279|           }
# 1280|           state->have = 0;
# 1281|->         syncsearch(&(state->have), buf, len);
# 1282|       }
# 1283|   

Error: CPPCHECK_WARNING: [#def42]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/inftrees.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def43]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-88iHtL/src.c: scope_hint: In function ‘f’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-88iHtL/src.c:3:13: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-88iHtL/src.c:3:21: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6

Error: COMPILER_WARNING: [#def44]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-9LXlDN/src.c: scope_hint: In function ‘f’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-9LXlDN/src.c:2:9: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-9LXlDN/src.c:2:17: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6

Error: COMPILER_WARNING: [#def45]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-dQg96g/src.c: scope_hint: In function ‘f’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-dQg96g/src.c:2:9: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-dQg96g/src.c:2:17: note: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6

Error: COMPILER_WARNING: [#def46]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-tmubta/src.c: scope_hint: In function ‘f’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-tmubta/src.c:2:9: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-tmubta/src.c:2:17: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6

Error: CPPCHECK_WARNING: [#def47]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/gzread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-835): [#def48]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/gzread.c: scope_hint: In function ‘gz_fetch’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/gzread.c:215:22: warning[-Wanalyzer-infinite-loop]: infinite loop
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build-compat/gzread.c:6: included_from: Included from here.
zlib-ng-2.1.7-build/zlib-ng-2.1.7/zbuild.h:80:21: note: in definition of macro ‘PREFIX’
#  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: [#def49]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-GATDKK/src.c: scope_hint: In function ‘f’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-GATDKK/src.c:2:9: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-GATDKK/src.c:2:17: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6

Error: COMPILER_WARNING: [#def50]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-RSi5Ct/src.c: scope_hint: In function ‘f’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-RSi5Ct/src.c:3:13: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-RSi5Ct/src.c:3:21: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6

Error: COMPILER_WARNING: [#def51]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-w7mgTC/src.c: scope_hint: In function ‘f’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-w7mgTC/src.c:2:9: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-w7mgTC/src.c:2:17: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6

Error: COMPILER_WARNING: [#def52]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-zKDNnD/src.c: scope_hint: In function ‘f’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-zKDNnD/src.c:2:9: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-zKDNnD/src.c:2:17: note: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6

Error: CPPCHECK_WARNING: [#def53]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/gzread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-835): [#def54]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/gzread.c: scope_hint: In function ‘gz_fetch’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/gzread.c:215:22: warning[-Wanalyzer-infinite-loop]: infinite loop
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/gzread.c:6: included_from: Included from here.
zlib-ng-2.1.7-build/zlib-ng-2.1.7/redhat-linux-build/gzread.c:500:17: note: in expansion of macro ‘PREFIX’
#  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: CPPCHECK_WARNING: [#def55]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/example.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def56]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/infcover.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def57]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/minideflate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/minideflate.c: scope_hint: In function ‘main’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/minideflate.c:303:48: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb+")’
#  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): [#def59]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/minideflate.c:303:48: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb+")’
#  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: CPPCHECK_WARNING: [#def60]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/minigzip.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/minigzip.c: scope_hint: In function ‘file_compress’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/minigzip.c:202:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/minigzip.c:15: included_from: Included from here.
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/minigzip.c:201:11: note: in expansion of macro ‘PREFIX’
#  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): [#def62]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/minigzip.c:202:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/minigzip.c:201:11: note: in expansion of macro ‘PREFIX’
#  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: CPPCHECK_WARNING: [#def63]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/test_compare256.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def64]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/test_compare256_rle.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def65]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/test_deflate_bound.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def66]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/test/test_small_buffers.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def67]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/tools/makecrct.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

Error: CPPCHECK_WARNING (CWE-758): [#def70]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/tools/makecrct.c:101: error[shiftTooManyBits]: Shifting 32-bit value by 40 bits is undefined behaviour
#   99|           for (i = 1; i < 256; i++) {
#  100|               ltl[k][i] = q = multmodp(i << 24, p);
#  101|->             big[w - 1 - k][i] = ZSWAP64(q);
#  102|           }
#  103|       }

Error: CPPCHECK_WARNING (CWE-758): [#def71]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/tools/makecrct.c:101: error[shiftTooManyBits]: Shifting 32-bit value by 56 bits is undefined behaviour
#   99|           for (i = 1; i < 256; i++) {
#  100|               ltl[k][i] = q = multmodp(i << 24, p);
#  101|->             big[w - 1 - k][i] = ZSWAP64(q);
#  102|           }
#  103|       }

Error: CPPCHECK_WARNING: [#def72]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/tools/makefixed.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def73]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/tools/maketrees.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def74]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/trees.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def75]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/trees.c:570:5: warning[core.BitwiseShift]: Left shift overflows the capacity of 'uint64_t'
#  568|   
#  569|       Tracev((stderr, "\nbl counts: "));
#  570|->     send_bits(s, lcodes-257, 5, bi_buf, bi_valid); /* not +255 as stated in appnote.txt */
#  571|       send_bits(s, dcodes-1,   5, bi_buf, bi_valid);
#  572|       send_bits(s, blcodes-4,  4, bi_buf, bi_valid); /* not -3 as stated in appnote.txt */

Error: CPPCHECK_WARNING: [#def76]
zlib-ng-2.1.7-build/zlib-ng-2.1.7/uncompr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-95.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namezlib-ng-2.1.7-1.fc41
store-results-to/tmp/tmptjy6m2s5/zlib-ng-2.1.7-1.fc41.tar.xz
time-created2024-07-03 19:45:47
time-finished2024-07-03 19:48:17
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmptjy6m2s5/zlib-ng-2.1.7-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmptjy6m2s5/zlib-ng-2.1.7-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9