a65ffb
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
a65ffb
index db2cfd1..752393b 100644
a65ffb
--- a/epan/tvbuff.c
a65ffb
+++ b/epan/tvbuff.c
a65ffb
@@ -3433,7 +3433,7 @@ tvb_uncompress(tvbuff_t *tvb, const int offset, int comprlen)
a65ffb
 	guint      bytes_in       = tvb_length_remaining(tvb, offset);
a65ffb
 #endif
a65ffb
 
a65ffb
-	if (tvb == NULL) {
a65ffb
+	if (tvb == NULL || comprlen <= 0) {
a65ffb
 		return NULL;
a65ffb
 	}
a65ffb