ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 1326] New: Coverity CID 216: Dead code in epan/req_resp_hd

Date: Thu, 25 Jan 2007 07:14:14 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1326

           Summary: Coverity CID 216: Dead code in epan/req_resp_hdrs.c
           Product: Wireshark
           Version: SVN
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: gerald@xxxxxxxxxxxxx


Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
Pasted from Coverity:

49              long int        content_length;
50              gboolean        content_length_found = FALSE;

Event const: After this line, the value of "content_type_found" is equal to 0
Event assignment: Assigning "0" to "content_type_found"
Also see events: [dead_error_line][dead_error_condition][assignment]

51              gboolean        content_type_found = FALSE;
52              gboolean        chunked_encoding = FALSE;

  [ ... ]

345     
346                             }

Event dead_error_line: Cannot reach this line of code
Event dead_error_condition: On this path, the condition "content_type_found !=
0" could not be true
Also see events: [dead_error_condition][const][assignment]

347                     } else if (content_type_found && pinfo->can_desegment)
{
348                             /* We found a content-type but no
content-length.


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.