diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2008-10-04 18:00:35 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2008-10-04 18:00:35 +0000 |
commit | af8ff96739d00e12b309b54adf18fddee45520a5 (patch) | |
tree | cddbbb81511e4e2e5730f280fde2f34150e522f9 /epan/dissectors/packet-x11.c | |
parent | 8b82ba219b8c91556974562ec289ccff3dac3fa7 (diff) |
Add safety against possible endless loop.
svn path=/trunk/; revision=26349
Diffstat (limited to 'epan/dissectors/packet-x11.c')
-rw-r--r-- | epan/dissectors/packet-x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-x11.c b/epan/dissectors/packet-x11.c index 0cfd258817..92f544de8c 100644 --- a/epan/dissectors/packet-x11.c +++ b/epan/dissectors/packet-x11.c @@ -4494,7 +4494,7 @@ dissect_x11_replies(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) case 1: /* replylength is in units of four. */ plen = 32 + VALUE32(tvb, offset + 4) * 4; - + DISSECTOR_ASSERT(plen >= 32); HANDLE_REPLY(plen, length_remaining, "Reply", dissect_x11_reply); break; |