summaryrefslogtreecommitdiff
path: root/epan
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-04-25 13:57:02 +0000
committerEvan Huus <eapache@gmail.com>2013-04-25 13:57:02 +0000
commitdf0bbb4ffcaf77f996ef06149b3adb99c65ccbb4 (patch)
treeab41ba1359b4f299138f3c61c4e86e32344ac923 /epan
parent557e7723e018e673fe249b93c04fb4b7003974a3 (diff)
downloadwireshark-df0bbb4ffcaf77f996ef06149b3adb99c65ccbb4.tar.gz
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8611
svn path=/trunk/; revision=49030
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-nfs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/dissectors/packet-nfs.c b/epan/dissectors/packet-nfs.c
index debca644b0..808293fddc 100644
--- a/epan/dissectors/packet-nfs.c
+++ b/epan/dissectors/packet-nfs.c
@@ -8383,6 +8383,17 @@ dissect_nfs4_notification_bitmap(tvbuff_t *tvb, proto_tree *tree, int offset)
bitmap_num = tvb_get_ntohl(tvb, offset);
offset += 4;
+
+ /* https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8611 */
+ if (!tree) {
+ if ((guint)offset > offset + (bitmap_num * 4)) {
+ return tvb_reported_length(tvb);
+ }
+ else {
+ return offset + (bitmap_num * 4);
+ }
+ }
+
for (i = 0; i < bitmap_num; i++) {
offset = dissect_rpc_uint32(tvb, tree, hf_nfs4_notification_bitmap, offset);
}