Error: CPPCHECK_WARNING (CWE-457): [#def1] zxing-cpp-2.2.1/core/src/Pattern.h:296: warning[uninitvar]: Uninitialized variable: e2e # 294| } # 295| # 296|-> return e2e; # 297| } # 298| Error: COMPILER_WARNING: [#def2] zxing-cpp-2.2.1/core/src/Utf.cpp:21:7: warning[-Wc++20-compat]: identifier ‘char8_t’ is a keyword in C++20 # 21 | using char8_t = uint8_t; # | ^~~~~~~ # 19| // TODO: c++20 has char8_t # 20| #if __cplusplus <= 201703L # 21|-> using char8_t = uint8_t; # 22| #endif # 23| using utf8_t = std::basic_string_view<char8_t>; Error: CPPCHECK_WARNING (CWE-457): [#def3] zxing-cpp-2.2.1/core/src/libzueci/zueci.c:77: warning[uninitvar]: Uninitialized variable: *p_u # 75| const zueci_u32 type = utf8d[byte]; # 76| # 77|-> *p_u = *p_state ? (byte & 0x3fu) | (*p_u << 6) : (0xff >> type) & byte; # 78| # 79| *p_state = utf8d[256 + *p_state + type]; Error: GCC_ANALYZER_WARNING (CWE-787): [#def4] zxing-cpp-2.2.1/core/src/libzueci/zueci.c:287:37: warning[-Wanalyzer-out-of-bounds]: buffer over-read zxing-cpp-2.2.1/core/src/libzueci/zueci_sb.h:842:12: enter_function: entry to ‘zueci_iso8859_16_u’ zxing-cpp-2.2.1/core/src/libzueci/zueci_sb.h:845:12: call_function: calling ‘zueci_iso8859_u’ from ‘zueci_iso8859_16_u’ # 285| return 1; # 286| } # 287|-> if (c2 < c2_max && (idx = (int) tab_sb_u[c2]) != -1) { # 288| *p_u = tab_u_u[idx]; # 289| return 1; Error: GCC_ANALYZER_WARNING (CWE-457): [#def5] zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1536:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&replacement’ zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1493:18: enter_function: entry to ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1506:8: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1509:9: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1509:8: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1514:8: branch_false: following ‘false’ branch (when ‘eci != 899’)... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1514:24: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1523:12: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1526:27: call_function: calling ‘zueci_encode_utf8’ from ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1526:27: return_function: returning to ‘zueci_eci_to_utf8’ from ‘zueci_encode_utf8’ zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1530:8: branch_true: following ‘true’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1530:8: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1531:16: branch_true: following ‘true’ branch (when ‘s < se’)... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1532:17: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1532:16: branch_true: following ‘true’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1533:20: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1533:20: branch_false: following ‘false’ branch (when ‘replacement_char != 0’)... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1536:17: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1536:17: danger: use of uninitialized value ‘&replacement’ here # 1534| return ZUECI_ERROR_INVALID_DATA; # 1535| } # 1536|-> memcpy(d, replacement, replacement_len); # 1537| d += replacement_len; # 1538| ret = ZUECI_WARN_INVALID_DATA; Error: GCC_ANALYZER_WARNING (CWE-457): [#def6] zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1563:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&replacement’ zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1493:18: enter_function: entry to ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1506:8: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1509:9: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1509:8: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1514:8: branch_false: following ‘false’ branch (when ‘eci != 899’)... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1514:24: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1523:12: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1526:27: call_function: calling ‘zueci_encode_utf8’ from ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1526:27: return_function: returning to ‘zueci_eci_to_utf8’ from ‘zueci_encode_utf8’ zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1530:8: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1548:8: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1548:8: branch_true: following ‘true’ branch (when ‘eci == 26’)... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1549:12: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1549:12: branch_true: following ‘true’ branch (when ‘replacement_char != 0’)... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1550:26: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1551:20: branch_true: following ‘true’ branch (when ‘s < se’)... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1551:20: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1553:21: call_function: calling ‘zueci_decode_utf8’ from ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1553:21: return_function: returning to ‘zueci_eci_to_utf8’ from ‘zueci_decode_utf8’ zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1554:26: branch_true: following ‘true’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1554:26: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1555:21: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1555:20: branch_true: following ‘true’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1556:25: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1556:24: branch_true: following ‘true’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1563:21: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1563:21: danger: use of uninitialized value ‘&replacement’ here # 1561| } # 1562| } # 1563|-> memcpy(d, replacement, replacement_len); # 1564| d += replacement_len; # 1565| ret = ZUECI_WARN_INVALID_DATA; Error: GCC_ANALYZER_WARNING (CWE-457): [#def7] zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1593:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&replacement’ zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1493:18: enter_function: entry to ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1506:8: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1509:9: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1509:8: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1514:8: branch_false: following ‘false’ branch (when ‘eci != 899’)... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1514:24: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1522:8: branch_true: following ‘true’ branch (when ‘replacement_char != 0’)... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1523:14: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1523:12: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1526:27: call_function: calling ‘zueci_encode_utf8’ from ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1526:27: return_function: returning to ‘zueci_eci_to_utf8’ from ‘zueci_encode_utf8’ zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1530:8: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1548:8: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1548:8: branch_false: following ‘false’ branch (when ‘eci != 26’)... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1582:8: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1588:12: branch_true: following ‘true’ branch (when ‘s < se’)... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1589:48: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1589:12: branch_true: following ‘true’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1590:16: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1590:16: branch_false: following ‘false’ branch (when ‘replacement_char != 0’)... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1593:13: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1593:13: danger: use of uninitialized value ‘&replacement’ here # 1591| return ZUECI_ERROR_INVALID_DATA; # 1592| } # 1593|-> memcpy(d, replacement, replacement_len); # 1594| s += zueci_replacement_incr(eci, s, (int) (se - s)); # 1595| d += replacement_len; Error: GCC_ANALYZER_WARNING (CWE-835): [#def8] zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1668:16: warning[-Wanalyzer-infinite-loop]: infinite loop zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1668:16: danger: infinite loop here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1668:16: branch_true: when ‘s < se’: always following ‘true’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1668:16: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1671:22: branch_true: when ‘se > s’: always following ‘true’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1671:32: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1671:22: branch_true: if it ever follows ‘true’ branch, it will always do so... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1671:22: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1671:22: branch_false: if it ever follows ‘false’ branch, it will always do so... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1672:17: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1672:16: branch_true: if it ever follows ‘true’ branch, it will always do so... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1673:20: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1673:20: branch_false: when ‘replacement_char != 0’: always following ‘false’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1676:21: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1676:20: branch_true: if it ever follows ‘true’ branch, it will always do so... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1683:17: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1668:16: branch_true: when ‘s < se’: always following ‘true’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1668:16: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1671:22: branch_true: when ‘se > s’: always following ‘true’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1671:32: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1671:22: branch_true: if it ever follows ‘true’ branch, it will always do so... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1671:22: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1671:22: branch_false: if it ever follows ‘false’ branch, it will always do so... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1672:17: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1672:16: branch_true: if it ever follows ‘true’ branch, it will always do so... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1673:20: branch_true: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1673:20: branch_false: when ‘replacement_char != 0’: always following ‘false’ branch... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1676:21: branch_false: ...to here zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1676:20: branch_true: if it ever follows ‘true’ branch, it will always do so... zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1683:17: branch_true: ...to here # 1666| if (eci == 26) { # 1667| unsigned int state = 0; # 1668|-> while (s < se) { # 1669| do { # 1670| zueci_decode_utf8(&state, &u, *s++); Error: GCC_ANALYZER_WARNING (CWE-787): [#def9] zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:287:37: warning[-Wanalyzer-out-of-bounds]: buffer over-read zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci_sb.h:842:12: enter_function: entry to ‘zueci_iso8859_16_u’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci_sb.h:845:12: call_function: calling ‘zueci_iso8859_u’ from ‘zueci_iso8859_16_u’ # 285| return 1; # 286| } # 287|-> if (c2 < c2_max && (idx = (int) tab_sb_u[c2]) != -1) { # 288| *p_u = tab_u_u[idx]; # 289| return 1; Error: GCC_ANALYZER_WARNING (CWE-457): [#def10] zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1536:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&replacement’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1493:18: enter_function: entry to ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1509:8: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1514:8: branch_false: following ‘false’ branch (when ‘eci != 899’)... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1514:24: branch_false: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1523:12: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1526:27: call_function: calling ‘zueci_encode_utf8’ from ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1526:27: return_function: returning to ‘zueci_eci_to_utf8’ from ‘zueci_encode_utf8’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1530:8: branch_true: following ‘true’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1530:8: branch_true: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1531:16: branch_true: following ‘true’ branch (when ‘s < se’)... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1532:17: branch_true: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1532:16: branch_true: following ‘true’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1533:20: branch_true: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1533:20: branch_false: following ‘false’ branch (when ‘replacement_char != 0’)... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1536:17: branch_false: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1536:17: danger: use of uninitialized value ‘&replacement’ here # 1534| return ZUECI_ERROR_INVALID_DATA; # 1535| } # 1536|-> memcpy(d, replacement, replacement_len); # 1537| d += replacement_len; # 1538| ret = ZUECI_WARN_INVALID_DATA; Error: GCC_ANALYZER_WARNING (CWE-457): [#def11] zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1563:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&replacement’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1493:18: enter_function: entry to ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1509:8: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1514:8: branch_false: following ‘false’ branch (when ‘eci != 899’)... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1514:24: branch_false: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1523:12: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1526:27: call_function: calling ‘zueci_encode_utf8’ from ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1526:27: return_function: returning to ‘zueci_eci_to_utf8’ from ‘zueci_encode_utf8’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1530:8: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1548:8: branch_false: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1548:8: branch_true: following ‘true’ branch (when ‘eci == 26’)... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1549:12: branch_true: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1549:12: branch_true: following ‘true’ branch (when ‘replacement_char != 0’)... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1549:12: branch_true: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1551:20: branch_true: following ‘true’ branch (when ‘s < se’)... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1551:20: branch_true: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1553:21: call_function: inlined call to ‘zueci_decode_utf8’ from ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1554:26: branch_true: following ‘true’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1554:26: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1555:20: branch_false: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1555:20: branch_true: following ‘true’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1556:25: branch_true: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1556:24: branch_true: following ‘true’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1563:21: branch_true: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1563:21: danger: use of uninitialized value ‘&replacement’ here # 1561| } # 1562| } # 1563|-> memcpy(d, replacement, replacement_len); # 1564| d += replacement_len; # 1565| ret = ZUECI_WARN_INVALID_DATA; Error: GCC_ANALYZER_WARNING (CWE-457): [#def12] zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1593:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&replacement’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1493:18: enter_function: entry to ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1509:8: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1514:8: branch_false: following ‘false’ branch (when ‘eci != 899’)... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1514:24: branch_false: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1523:12: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1526:27: call_function: calling ‘zueci_encode_utf8’ from ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1526:27: return_function: returning to ‘zueci_eci_to_utf8’ from ‘zueci_encode_utf8’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1530:8: branch_false: following ‘false’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1548:8: branch_false: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1548:8: branch_false: following ‘false’ branch (when ‘eci != 26’)... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1582:8: branch_false: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1588:12: branch_true: following ‘true’ branch (when ‘s < se’)... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1589:48: branch_true: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1589:12: branch_true: following ‘true’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1590:16: branch_true: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1590:16: branch_false: following ‘false’ branch (when ‘replacement_char != 0’)... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1593:13: branch_false: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1593:13: danger: use of uninitialized value ‘&replacement’ here # 1591| return ZUECI_ERROR_INVALID_DATA; # 1592| } # 1593|-> memcpy(d, replacement, replacement_len); # 1594| s += zueci_replacement_incr(eci, s, (int) (se - s)); # 1595| d += replacement_len; Error: GCC_ANALYZER_WARNING (CWE-835): [#def13] zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1668:16: warning[-Wanalyzer-infinite-loop]: infinite loop zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1668:16: danger: infinite loop here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1668:16: branch_true: when ‘s < se’: always following ‘true’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1668:16: branch_true: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1670:17: call_function: inlined call to ‘zueci_decode_utf8’ from ‘zueci_dest_len_utf8’ zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1671:22: branch_true: when ‘se > s’: always following ‘true’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1671:22: branch_true: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1671:22: branch_true: if it ever follows ‘true’ branch, it will always do so... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1671:22: branch_true: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1671:22: branch_false: if it ever follows ‘false’ branch, it will always do so... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1672:16: branch_false: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1672:16: branch_true: if it ever follows ‘true’ branch, it will always do so... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1673:20: branch_true: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1673:20: branch_false: when ‘replacement_char != 0’: always following ‘false’ branch... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1676:21: branch_false: ...to here zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1676:20: branch_true: if it ever follows ‘true’ branch, it will always do so... zxing-cpp-2.2.1/wrappers/python/core/src/libzueci/zueci.c:1683:17: branch_true: ...to here # 1666| if (eci == 26) { # 1667| unsigned int state = 0; # 1668|-> while (s < se) { # 1669| do { # 1670| zueci_decode_utf8(&state, &u, *s++);
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-195.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | zxing-cpp-2.2.1-9.fc45 |
| store-results-to | /tmp/tmp0s0ttbt0/zxing-cpp-2.2.1-9.fc45.tar.xz |
| time-created | 2026-08-03 22:04:41 |
| time-finished | 2026-08-03 22:07:24 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp0s0ttbt0/zxing-cpp-2.2.1-9.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp0s0ttbt0/zxing-cpp-2.2.1-9.fc45.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |