Error: COMPILER_WARNING: [#def1] zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx2.c: scope_hint: In function ‘adler32_fold_copy_impl’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx2.c:46:19: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx2.c:15: included_from: Included from here. zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx2_p.h: scope_hint: In function ‘partial_hsum256’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx2_p.h:20:24: note: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6 # 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: [#def2] zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx512.c: scope_hint: In function ‘adler32_fold_copy_impl’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx512.c:31:21: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx512.c:16: included_from: Included from here. zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx512_p.h: scope_hint: In function ‘partial_hsum’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx512_p.h:35:24: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6 # 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: [#def3] zlib-ng-2.2.2-build/zlib-ng-2.2.2/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: [#def4] zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx512_vnni.c: scope_hint: In function ‘adler32_avx512_vnni’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx512_vnni.c:35:19: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx512_vnni.c:17: included_from: Included from here. zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx512_p.h: scope_hint: In function ‘partial_hsum’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/adler32_avx512_p.h:35:24: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6 # 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: [#def5] zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/chunkset_avx2.c: scope_hint: In function ‘GET_CHUNK_MAG’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/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: COMPILER_WARNING: [#def6] zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/compare256_avx2.c: scope_hint: In function ‘compare256_avx2_static’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/compare256_avx2.c:23:18: 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: [#def7] zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/crc32_pclmulqdq_tpl.h:263: included_from: Included from here. zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/crc32_vpclmulqdq.c:15: included_from: Included from here. zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/crc32_fold_vpclmulqdq_tpl.h: scope_hint: In function ‘fold_16_vpclmulqdq’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/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: [#def8] zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/slide_hash_avx2.c: scope_hint: In function ‘slide_hash_avx2’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/slide_hash_avx2.c:36:19: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/slide_hash_avx2.c: scope_hint: In function ‘slide_hash_chain’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/arch/x86/slide_hash_avx2.c:17:20: note: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6 # 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: CPPCHECK_WARNING (CWE-457): [#def9] zlib-ng-2.2.2-build/zlib-ng-2.2.2/chunkset_tpl.h:90: warning[uninitvar]: Uninitialized variable: chunk_load # 88| } # 89| # 90|-> return chunk_load; # 91| } # 92| #endif Error: CPPCHECK_WARNING (CWE-457): [#def10] zlib-ng-2.2.2-build/zlib-ng-2.2.2/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): [#def11] zlib-ng-2.2.2-build/zlib-ng-2.2.2/inflate.c:1325: warning[uninitvar]: Uninitialized variable: buf # 1323| } # 1324| state->have = 0; # 1325|-> syncsearch(&(state->have), buf, len); # 1326| } # 1327| Error: COMPILER_WARNING: [#def12] zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-A0KIIa/src.c: scope_hint: In function ‘f’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-A0KIIa/src.c:2:9: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-A0KIIa/src.c:2:17: note: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6 Error: COMPILER_WARNING: [#def13] zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-Z6rR5a/src.c: scope_hint: In function ‘f’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-Z6rR5a/src.c:2:9: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-Z6rR5a/src.c:2:17: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6 Error: COMPILER_WARNING: [#def14] zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-dSIGSN/src.c: scope_hint: In function ‘f’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-dSIGSN/src.c:3:13: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-dSIGSN/src.c:3:21: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6 Error: COMPILER_WARNING: [#def15] zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-oeO6BY/src.c: scope_hint: In function ‘f’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-oeO6BY/src.c:2:9: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/CMakeFiles/CMakeScratch/TryCompile-oeO6BY/src.c:2:17: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6 Error: GCC_ANALYZER_WARNING (CWE-835): [#def16] zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/gzread.c: scope_hint: In function ‘gz_fetch’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/gzread.c:215:22: warning[-Wanalyzer-infinite-loop]: infinite loop zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build-compat/gzread.c:6: included_from: Included from here. zlib-ng-2.2.2-build/zlib-ng-2.2.2/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: [#def17] zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-4iQKnp/src.c: scope_hint: In function ‘f’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-4iQKnp/src.c:2:9: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-4iQKnp/src.c:2:17: note: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6 Error: COMPILER_WARNING: [#def18] zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-Fnh2Rp/src.c: scope_hint: In function ‘f’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-Fnh2Rp/src.c:3:13: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-Fnh2Rp/src.c:3:21: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6 Error: COMPILER_WARNING: [#def19] zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-N9ViTd/src.c: scope_hint: In function ‘f’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-N9ViTd/src.c:2:9: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-N9ViTd/src.c:2:17: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6 Error: COMPILER_WARNING: [#def20] zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-hOFPJS/src.c: scope_hint: In function ‘f’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-hOFPJS/src.c:2:9: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-hOFPJS/src.c:2:17: note: the ABI for passing parameters with 64-byte alignment has changed in GCC 4.6 Error: GCC_ANALYZER_WARNING (CWE-835): [#def21] zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/gzread.c: scope_hint: In function ‘gz_fetch’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/gzread.c:215:22: warning[-Wanalyzer-infinite-loop]: infinite loop zlib-ng-2.2.2-build/zlib-ng-2.2.2/redhat-linux-build/gzread.c:6: included_from: Included from here. zlib-ng-2.2.2-build/zlib-ng-2.2.2/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: GCC_ANALYZER_WARNING (CWE-775): [#def22] zlib-ng-2.2.2-build/zlib-ng-2.2.2/test/minideflate.c: scope_hint: In function ‘main’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/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): [#def23] zlib-ng-2.2.2-build/zlib-ng-2.2.2/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: GCC_ANALYZER_WARNING (CWE-775): [#def24] zlib-ng-2.2.2-build/zlib-ng-2.2.2/test/minigzip.c: scope_hint: In function ‘file_compress’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/test/minigzip.c:202:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/test/minigzip.c:15: included_from: Included from here. zlib-ng-2.2.2-build/zlib-ng-2.2.2/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): [#def25] zlib-ng-2.2.2-build/zlib-ng-2.2.2/test/minigzip.c:202:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’ zlib-ng-2.2.2-build/zlib-ng-2.2.2/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 (CWE-758): [#def26] zlib-ng-2.2.2-build/zlib-ng-2.2.2/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): [#def27] zlib-ng-2.2.2-build/zlib-ng-2.2.2/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): [#def28] zlib-ng-2.2.2-build/zlib-ng-2.2.2/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): [#def29] zlib-ng-2.2.2-build/zlib-ng-2.2.2/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| }
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-230.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | zlib-ng-2.2.2-1.fc42 |
store-results-to | /tmp/tmpmf4oe78d/zlib-ng-2.2.2-1.fc42.tar.xz |
time-created | 2024-11-13 03:47:33 |
time-finished | 2024-11-13 03:49:51 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpmf4oe78d/zlib-ng-2.2.2-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpmf4oe78d/zlib-ng-2.2.2-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |