Add DISSECTOR_ASSERT() before dereferencing a possible NULL pointer
svn path=/trunk/; revision=30404
This commit is contained in:
parent
a8ca8d1815
commit
30cb2b9448
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue