Wireshark-bugs: [Wireshark-bugs] [Bug 6175] wslua: Add reported_length_remaining to tvb
Date: Wed, 10 Aug 2011 15:54:27 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6175

--- Comment #6 from Tony Trinh <tony19@xxxxxxxxx> 2011-08-10 18:54:26 EDT ---
(In reply to comment #5)
I'm confused. Are you saying that a negative return value from
tvb_reported_length_remaining() (or the Lua wrapper) is dangerous? How so?

The Lua Tvb functions validate the offset and length fields (and throw an
exception as necessary if that's what you're concerned about). In any case, I
think it's fine to let the caller check the return value, but even if he
didn't, nothing "dangerous" would happen in Wireshark Lua (barring any
third-party stuff that would rely on the returned length...but even then,
that's not Wireshark's problem to worry about).

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