Wireshark mailing list archives
Re: tvb_length_remaining() and tvb_reported_length_remaining()
From: Jakub Zawadzki <darkjames-ws () darkjames pl>
Date: Thu, 12 Jul 2012 16:13:49 +0200
On Mon, Jul 09, 2012 at 04:10:53PM +0000, Christopher Maynard wrote:
Would replacement functions help here which would return an out-of-bounds error in one of their arguments, so that things would look instead something like: len2 = tvb_length_remaining_new(tvb, offset, &error); if (error == TBD) return offset;
Can this new function throw exception when offset is out of bounds? ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- tvb_length_remaining() and tvb_reported_length_remaining() Christopher Maynard (Jul 09)
- Re: tvb_length_remaining() and tvb_reported_length_remaining() Jakub Zawadzki (Jul 12)
- Re: [Wireshark-dev] tvb_length_remaining() and tvb_reported_length_remaining() Christopher Maynard (Jul 12)
- Re: tvb_length_remaining() and tvb_reported_length_remaining() Jakub Zawadzki (Jul 12)