diff options
author | Evan Huus <eapache@gmail.com> | 2013-10-17 12:24:25 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-10-17 12:24:25 +0000 |
commit | cbe8af0a8b75399f3fe909ee8b838eeedd6fae40 (patch) | |
tree | f4c94c87c5cfc34faa14769b5a41908918c6db2a /epan/tvbuff.c | |
parent | 744f47107e28a8632cf79fde901713f73fd0e349 (diff) | |
download | wireshark-cbe8af0a8b75399f3fe909ee8b838eeedd6fae40.tar.gz |
Revert the optimization in r52578. As Jakub predicted, it caused at least one
infinite loop to pop up. We're just going to have to eat the performance hit.
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9282)
svn path=/trunk/; revision=52660
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r-- | epan/tvbuff.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c index b967e81f11..e783746acd 100644 --- a/epan/tvbuff.c +++ b/epan/tvbuff.c @@ -510,21 +510,6 @@ tvb_offset_exists(const tvbuff_t *tvb, const gint offset) } } -/* Like tvb_offset_exists except it throws an exception instead of returning - * FALSE */ -void -tvb_ensure_offset_exists(const tvbuff_t *tvb, const gint offset) -{ - guint abs_offset; - int exception; - - DISSECTOR_ASSERT(tvb && tvb->initialized); - - exception = compute_offset(tvb, offset, &abs_offset); - if (exception) - THROW(exception); -} - guint tvb_reported_length(const tvbuff_t *tvb) { |