aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r--epan/tvbuff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index bcf8a183ca..5dab307577 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -4318,6 +4318,7 @@ int tvb_get_token_len(tvbuff_t *tvb, const gint offset, int len, gint *next_offs
gchar *
tvb_bytes_to_str_punct(wmem_allocator_t *scope, tvbuff_t *tvb, const gint offset, const gint len, const gchar punct)
{
+ DISSECTOR_ASSERT(len > 0);
return bytes_to_str_punct(scope, ensure_contiguous(tvb, offset, len), len, punct);
}