Wireshark-bugs: [Wireshark-bugs] [Bug 2028] New: Infinite loop in packet_sctp.c
Date: Tue, 27 Nov 2007 08:34:10 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2028

           Summary: Infinite loop in packet_sctp.c
           Product: Wireshark
           Version: SVN
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Medium
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: florent.drouin@xxxxxxxxxx


Build Information:
wireshark_TRUNK23618
Debian etch AMD64 (64 bits)
--
In the function sctp_ack_block (epan/dissectors/packet_sctp.c)
the following instructions leads to an infinite loop on my 64bits, if rel_tsn
is equal to 0xffffffff
<<
for (rel_tsn = rel_start ; rel_tsn <= rel_end ; rel_tsn++) {
                    sctp_ack(pinfo, tvb,  acks_tree, h, rel_tsn);
            }
>>

I did compile this code sequence to check, and I have got an infinite loop!
<<
        guint32 deb=0xfffffff9,fin=0xffffffff,var=0;
        for (var=deb; var <= fin; var++)
          fprintf(stderr,".");
>>

PS: In the SCTP preferences, the flag for TSN analysis must be set.


-- 
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.