aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-05-14 13:00:37 -0400
committerEvan Huus <eapache@gmail.com>2014-05-14 17:12:12 +0000
commita1b939313f75220beaf0d3342cd5f413cb9edcae (patch)
tree9868d1e4d575843d0b931f60447031a9d14eeabb /epan/tvbuff.c
parentd7c4bde2799084aee717dbaa04d7fd4be06cd989 (diff)
Revert "Don't throw for offset at end of TVB with len -1."
This reverts commit fe195c0c978b4b92dc5a77daa6449a7f1314243d. Conflicts: epan/tvbuff.c Change-Id: I1af618d0bd1e6211281b6d67c0ad197cfa513a0c Reviewed-on: https://code.wireshark.org/review/1639 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r--epan/tvbuff.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index a6ab643fcf..be7f1403e5 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -457,24 +457,6 @@ tvb_captured_length_remaining(const tvbuff_t *tvb, const gint offset)
return rem_length;
}
-/* Just like tvb_ensure_captured_length_remaining except it doesn't have to
- * guarantee that at least one byte is available, it simply guarantees that the
- * offset exists (so a 0 offset in a 0-length tvb won't throw) */
-guint
-tvb_ensure_captured_length_remaining_cheat(const tvbuff_t *tvb, const gint offset)
-{
- guint abs_offset, rem_length;
- int exception = 0;
-
- DISSECTOR_ASSERT(tvb && tvb->initialized);
-
- COMPUTE_OFFSET_AND_REMAINING(tvb, offset, &abs_offset, rem_length, exception);
- if (exception)
- THROW(exception);
-
- return rem_length;
-}
-
guint
tvb_ensure_captured_length_remaining(const tvbuff_t *tvb, const gint offset)
{