# build - scan-build results

User: | root@runner-zxwgkjaph-project-7898047-concurrent-0
Working Directory: | /builds/wireshark/wireshark/build
Command Line: | ninja
Clang Version: | Ubuntu clang version 21.1.3 (++20251007014011+450f52eec88f-1~exp1~20251007134114.40)
Date: | Mon Oct 13 10:03:50 2025

## Bug Summary

Bug Type | Quantity | Display?
All Bugs | 128 |
API |
--- | ---
Argument with 'nonnull' attribute passed null | 4 |
Error handling |
Value of 'errno' could be undefined | 8 |
Value of 'errno' was not checked | 3 |
Logic error |
Assigned value is uninitialized | 2 |
Garbage return value | 2 |
Result of operation is garbage or undefined | 6 |
Memory error |
Memory leak | 49 |
Nullability | 1 |
Use-after-free | 1 |
Stream handling error |
Invalid stream state | 10 |
Resource leak | 3 |
Stream already in EOF | 5 |
Suspicious operation |
Bitwise shift | 2 |
Unused code |
Dead assignment | 11 |
Dead increment | 10 |
Dead initialization | 8 |
Dead nested assignment | 3 |

## Filter Results by File

## Reports

Bug Group | Bug Type ▾ | File | Function/Method | Line | Path Length |
API | Argument with 'nonnull' attribute passed null | plugins/epan/mate/mate_util.c | scs_subscribe | 143 | 29 | View Report
API | Argument with 'nonnull' attribute passed null | ui/recent.c | recent_read_profile_static | 1756 | 21 | View Report
API | Argument with 'nonnull' attribute passed null | epan/dissectors/dcerpc/idl2wrs.c | mergefile | 3038 | 4 | View Report
API | Argument with 'nonnull' attribute passed null | epan/wslua/lrexlib/common.c | buffer_addlstring | 181 | 10 | View Report
Logic error | Assigned value is uninitialized | epan/tvbuff.c | tvb_new_octet_aligned | 428 | 16 | View Report
Logic error | Assigned value is uninitialized | epan/dissectors/packet-snmp.c | snmp_usm_password_to_key | 3548 | 44 | View Report
Suspicious operation | Bitwise shift | epan/wslua/wslua_struct.c | getinteger | 453 | 14 | View Report
Suspicious operation | Bitwise shift | epan/proto.c | proto_tree_add_split_bits_item_ret_val | 13549 | 22 | View Report
Unused code | Dead assignment | epan/dissectors/packet-procmon.c | dissect_procmon_process_event | 363 | 1 | View Report
Unused code | Dead assignment | epan/dissectors/packet-procmon.c | dissect_procmon_filesystem_event | 2333 | 1 | View Report
Unused code | Dead assignment | epan/dissectors/packet-procmon.c | dissect_procmon_process_event | 426 | 1 | View Report
Unused code | Dead assignment | wsutil/dtoa.c | dtoa_r | 3284 | 1 | View Report
Unused code | Dead assignment | wsutil/dtoa.c | dtoa_r | 2886 | 1 | View Report
Unused code | Dead assignment | epan/dissectors/packet-procmon.c | dissect_procmon_registry_event | 834 | 1 | View Report
Unused code | Dead assignment | wsutil/dtoa.c | dtoa_r | 2930 | 1 | View Report
Unused code | Dead assignment | epan/dissectors/packet-procmon.c | dissect_procmon_registry_event | 892 | 1 | View Report
Unused code | Dead assignment | wsutil/dtoa.c | dtoa_r | 2880 | 1 | View Report
Unused code | Dead assignment | wiretap/libpcap.c | libpcap_read_header | 1448 | 1 | View Report
Unused code | Dead assignment | ui/help_url.c | topic_action_url | 332 | 1 | View Report
Unused code | Dead increment | epan/dissectors/packet-procmon.c | dissect_procmon_filesystem_event | 2317 | 1 | View Report
Unused code | Dead increment | epan/dissectors/packet-procmon.c | dissect_procmon_filesystem_event | 2343 | 1 | View Report
Unused code | Dead increment | plugins/epan/ethercat/packet-ams.c | dissect_ams_pdu | 673 | 1 | View Report
Unused code | Dead increment | plugins/epan/ethercat/packet-ams.c | dissect_ams_pdu | 647 | 1 | View Report
Unused code | Dead increment | epan/dissectors/packet-procmon.c | dissect_procmon_filesystem_event | 2091 | 1 | View Report
Unused code | Dead increment | epan/dissectors/packet-procmon.c | dissect_procmon_process_event | 382 | 1 | View Report
Unused code | Dead increment | epan/dissectors/packet-cql.c | dissect_cql_tcp_pdu | 1774 | 1 | View Report
Unused code | Dead increment | epan/dissectors/packet-cql.c | dissect_cql_tcp_pdu | 1777 | 1 | View Report
Unused code | Dead increment | epan/dissectors/packet-procmon.c | dissect_procmon_filesystem_event | 2018 | 1 | View Report
Unused code | Dead increment | epan/dissectors/packet-procmon.c | dissect_procmon_process_event | 388 | 1 | View Report
Unused code | Dead initialization | epan/dfilter/sttype-op.c | oper_todisplay | 74 | 1 | View Report
Unused code | Dead initialization | epan/dissectors/packet-asterix.c | print_icao_string | 190 | 1 | View Report
Unused code | Dead initialization | epan/ftypes/ftypes.c | ftype_name | 174 | 1 | View Report
Unused code | Dead initialization | wiretap/blf.c | blf_dump_upper_pdu | 5003 | 1 | View Report
Unused code | Dead initialization | epan/frame_data.c | frame_delta_abs_time | 50 | 1 | View Report
Unused code | Dead initialization | epan/ftypes/ftypes.c | ftype_pretty_name | 234 | 1 | View Report
Unused code | Dead initialization | epan/dissectors/packet-asterix.c | print_octal_string | 147 | 1 | View Report
Unused code | Dead initialization | epan/dfilter/syntax-tree.c | stnode_op_name | 104 | 1 | View Report
Unused code | Dead nested assignment | wsutil/dtoa.c | dtoa_r | 3282 | 1 | View Report
Unused code | Dead nested assignment | wsutil/dtoa.c | dtoa_r | 2872 | 1 | View Report
Unused code | Dead nested assignment | wsutil/dtoa.c | dtoa_r | 2858 | 1 | View Report
Logic error | Garbage return value | epan/wslua/wslua_tree.c | TreeItem_add | 751 | 15 | View Report
Logic error | Garbage return value | epan/wslua/wslua_tree.c | TreeItem_add_le | 774 | 15 | View Report
Stream handling error | Invalid stream state | ui/summary.c | summary_fill_in | 232 | 16 | View Report
Stream handling error | Invalid stream state | epan/dissectors/dcerpc/idl2wrs.c | mergefile | 3040 | 5 | View Report
Stream handling error | Invalid stream state | epan/dissectors/dcerpc/idl2wrs.c | tokenize | 968 | 20 | View Report
Stream handling error | Invalid stream state | epan/color_filters.c | read_filters_file | 707 | 84 | View Report
Stream handling error | Invalid stream state | wsutil/filter_files.c | ws_filter_list_read | 200 | 12 | View Report
Stream handling error | Invalid stream state | epan/dissectors/packet-tpncp.c | fgetline | 434 | 21 | View Report
Stream handling error | Invalid stream state | epan/dissectors/dcerpc/idl2wrs.c | tokenize | 992 | 17 | View Report
Stream handling error | Invalid stream state | epan/dissectors/dcerpc/idl2wrs.c | readcnffile | 3106 | 10 | View Report
Stream handling error | Invalid stream state | plugins/epan/mate/mate_util.c | loal_from_file | 1524 | 21 | View Report
Stream handling error | Invalid stream state | capinfos.c | calculate_hashes | 1065 | 27 | View Report
Memory error | Memory leak | build/epan/wslua/taps_wslua.c | wslua_udp_to_table | 64 | 16 | View Report
Memory error | Memory leak | epan/reassemble.c | fragment_add_work | 1506 | 68 | View Report
Memory error | Memory leak | ui/tap-sctp-analysis.c | packet | 904 | 72 | View Report
Memory error | Memory leak | build/epan/wslua/taps_wslua.c | wslua_wlan_to_table | 427 | 16 | View Report
Memory error | Memory leak | ui/cli/tap-follow.c | follow_stream | 586 | 6 | View Report
Memory error | Memory leak | ui/cli/tap-flow.c | flow_init | 100 | 3 | View Report
Memory error | Memory leak | capture/capture_sync.c | sync_pipe_start | 961 | 61 | View Report
Memory error | Memory leak | capture/capture_sync.c | sync_pipe_start | 961 | 42 | View Report
Memory error | Memory leak | capture/capture_sync.c | sync_interface_stats_open | 1619 | 10 | View Report
Memory error | Memory leak | epan/dissectors/dcerpc/idl2wrs.c | parsefunction | 2754 | 52 | View Report
Memory error | Memory leak | capture/capture_sync.c | sync_if_list_capabilities_open | 1559 | 21 | View Report
Memory error | Memory leak | build/epan/wslua/taps_wslua.c | wslua_wlan_to_table | 421 | 16 | View Report
Memory error | Memory leak | build/epan/wslua/taps_wslua.c | wslua_tcp_to_table | 367 | 16 | View Report
Memory error | Memory leak | ui/qt/packet_list.cpp | mouseMoveEvent | 922 | 13 | View Report
Memory error | Memory leak | epan/dissectors/packet-tls-utils.c | ssl_generate_keyring_material | 4881 | 34 | View Report
Memory error | Memory leak | capture/capture_sync.c | sync_interface_stats_open | 1619 | 10 | View Report
Memory error | Memory leak | wiretap/blf.c | blf_dump_expand_interface_mapping | 3996 | 9 | View Report
Memory error | Memory leak | epan/tvbuff_zlib.c | tvb_uncompress_zlib | 294 | 36 | View Report
Memory error | Memory leak | epan/tvbuff_lz77huff.c | tvb_uncompress_lz77huff | 394 | 15 | View Report
Memory error | Memory leak | epan/tvbuff_zstd.c | tvb_uncompress_zstd | 87 | 20 | View Report
Memory error | Memory leak | capture/capture_sync.c | sync_pipe_start | 961 | 42 | View Report
Memory error | Memory leak | ui/cli/tap-iostat.c | iostat_init | 1724 | 28 | View Report
Memory error | Memory leak | epan/tvbuff_lznt1.c | tvb_uncompress_lznt1 | 136 | 15 | View Report
Memory error | Memory leak | epan/protobuf_lang_tree.c | pbl_add_child | 1044 | 25 | View Report
Memory error | Memory leak | epan/tvbuff_zstd.c | tvb_uncompress_zstd | 87 | 30 | View Report
Memory error | Memory leak | build/epan/wslua/taps_wslua.c | wslua_eth_to_table | 259 | 17 | View Report
Memory error | Memory leak | capture/capture_sync.c | sync_pipe_start | 961 | 61 | View Report
Memory error | Memory leak | epan/tvbuff_lz77.c | tvb_uncompress_lz77 | 124 | 15 | View Report
Memory error | Memory leak | epan/tvbuff.c | tvb_generic_clone_offset_len | 514 | 17 | View Report
Memory error | Memory leak | build/epan/wslua/taps_wslua.c | wslua_tcp_to_table | 364 | 16 | View Report
Memory error | Memory leak | build/epan/wslua/taps_wslua.c | wslua_wlan_to_table | 424 | 16 | View Report
Memory error | Memory leak | epan/tvbuff_base64.c | base64uri_tvb_to_new_tvb | 212 | 25 | View Report
Memory error | Memory leak | capture/capture_sync.c | sync_pipe_start | 961 | 42 | View Report
Memory error | Memory leak | ui/qt/simple_statistics_dialog.cpp | addMissingRows | 207 | 24 | View Report
Memory error | Memory leak | epan/tvbuff_brotli.c | tvb_uncompress_brotli | 149 | 21 | View Report
Memory error | Memory leak | build/epan/wslua/taps_wslua.c | wslua_ip_to_table | 19 | 16 | View Report
Memory error | Memory leak | epan/reassemble.c | fragment_defragment_and_free | 1909 | 10 | View Report
Memory error | Memory leak | build/epan/wslua/taps_wslua.c | wslua_udp_to_table | 61 | 16 | View Report
Memory error | Memory leak | epan/tvbuff.c | tvb_new_octet_right_aligned | 496 | 22 | View Report
Memory error | Memory leak | epan/dissectors/dcerpc/idl2wrs.c | parsetypedefenum | 2935 | 29 | View Report
Memory error | Memory leak | ui/qt/lte_rlc_statistics_dialog.cpp | tapPacket | 892 | 13 | View Report
Memory error | Memory leak | epan/dissectors/packet-t38.c | force_reassemble_seq | 387 | 26 | View Report
Memory error | Memory leak | epan/tvbuff_snappy.c | tvb_uncompress_snappy | 48 | 11 | View Report
Memory error | Memory leak | capture/capture_sync.c | sync_pipe_start | 961 | 42 | View Report
Memory error | Memory leak | wiretap/file_access.c | wtap_dump_init_dumper | 2287 | 22 | View Report
Memory error | Memory leak | epan/tvbuff.c | tvb_new_octet_aligned | 430 | 22 | View Report
Memory error | Memory leak | wsutil/ws_pipe.c | ws_pipe_spawn_async | 641 | 15 | View Report
Memory error | Memory leak | build/epan/wslua/taps_wslua.c | wslua_ip_to_table | 34 | 16 | View Report
Memory error | Memory leak | build/epan/wslua/taps_wslua.c | wslua_eth_to_table | 262 | 17 | View Report
Memory error | Nullability | epan/conversation.c | find_or_create_conversation_strat | 3300 | 8 | View Report
Stream handling error | Resource leak | extcap/sshdump.c | ssh_open_remote_connection | 279 | 49 | View Report
Stream handling error | Resource leak | extcap/wifidump.c | ssh_open_remote_connection | 417 | 39 | View Report
Stream handling error | Resource leak | epan/dissectors/packet-knxip_decrypt.c | read_knx_keyring_xml_file | 782 | 24 | View Report
Logic error | Result of operation is garbage or undefined | ui/io_graph_item.h | update_io_graph_item | 214 | 16 | View Report
Logic error | Result of operation is garbage or undefined | wsutil/dtoa.c | quorem | 2384 | 136 | View Report
Logic error | Result of operation is garbage or undefined | epan/dissectors/packet-oran.c | dissect_oran_c_section | 3788 | 44 | View Report
Logic error | Result of operation is garbage or undefined | wsutil/pint.h | pntohu8 | 314 | 22 | View Report
Logic error | Result of operation is garbage or undefined | wsutil/dtoa.c | mult | 1835 | 130 | View Report
Logic error | Result of operation is garbage or undefined | wsutil/dtoa.c | diff | 2091 | 143 | View Report
Stream handling error | Stream already in EOF | wsutil/filter_files.c | ws_filter_list_read | 200 | 12 | View Report
Stream handling error | Stream already in EOF | ui/summary.c | summary_fill_in | 232 | 16 | View Report
Stream handling error | Stream already in EOF | capinfos.c | calculate_hashes | 1065 | 27 | View Report
Stream handling error | Stream already in EOF | epan/color_filters.c | read_filters_file | 707 | 84 | View Report
Stream handling error | Stream already in EOF | epan/dissectors/packet-tpncp.c | fgetline | 434 | 21 | View Report
Memory error | Use-after-free | wsutil/dtoa.c | pow5mult | 1943 | 113 | View Report
Error handling | Value of 'errno' could be undefined | extcap/androiddump.c | capture_android_bluetooth_btsnoop_net | 1959 | 45 | View Report
Error handling | Value of 'errno' could be undefined | extcap/androiddump.c | capture_android_logcat_text | 2100 | 43 | View Report
Error handling | Value of 'errno' could be undefined | extcap/androiddump.c | capture_android_bluetooth_hcidump | 1400 | 6 | View Report
Error handling | Value of 'errno' could be undefined | extcap/androiddump.c | capture_android_tcpdump | 2369 | 47 | View Report
Error handling | Value of 'errno' could be undefined | extcap/androiddump.c | capture_android_bluetooth_external_parser | 1776 | 16 | View Report
Error handling | Value of 'errno' could be undefined | extcap/androiddump.c | capture_android_logcat | 2236 | 41 | View Report
Error handling | Value of 'errno' could be undefined | epan/addr_resolv.c | host_name_lookup_init | 3701 | 29 | View Report
Error handling | Value of 'errno' could be undefined | epan/addr_resolv.c | ss7pc_name_lookup_init | 3330 | 41 | View Report
Error handling | Value of 'errno' was not checked | epan/addr_resolv.c | fgetline | 772 | 16 | View Report
Error handling | Value of 'errno' was not checked | epan/prefs.c | read_prefs_file | 4895 | 4 | View Report
Error handling | Value of 'errno' was not checked | epan/dissectors/packet-ssh.c | ssh_keylog_read_file | 2655 | 15 | View Report