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 5863] DTLS and RELOAD enhancements and bug fixes

Date: Thu, 26 May 2011 17:51:44 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5863

Chris Maynard <christopher.maynard@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #6387|review_for_checkin?         |review_for_checkin-
               Flag|                            |

--- Comment #7 from Chris Maynard <christopher.maynard@xxxxxxxxx> 2011-05-26 17:51:42 PDT ---
(From update of attachment 6387)
When performing heuristics, the tvb_get*() functions called in
looks_like_dtls() could throw an error if there's not enough data available in
the tvb, but this packet might not even be for the dtls dissector, so care
should be taken to first ensure that there are enough bytes to get before
actually getting them.

Also, tvb should remain an opaque data structure; instead of using tvb->length,
use tvb_length(tvb).

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