aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/tvbuff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index 44ada14ad5..3e7bcba448 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -517,6 +517,8 @@ tvb_new_subset(tvbuff_t *backing, gint backing_offset, gint backing_length, gint
guint subset_tvb_offset;
guint subset_tvb_length;
+ DISSECTOR_ASSERT(backing && backing->initialized);
+
THROW_ON(reported_length < -1, ReportedBoundsError);
check_offset_length(backing->length, backing->reported_length, backing_offset, backing_length,