diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2006-12-22 14:48:51 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2006-12-22 14:48:51 +0000 |
commit | 79b23d485695a323964ce3274677aed4225e6ec7 (patch) | |
tree | 769c7074c1bacbaef6b2f87b0c2a1b1022d84037 /epan/dissectors/packet-giop.c | |
parent | c582bce50de4f01d10267f805fa499ae6a9b21c3 (diff) |
Fix for bug 1272.
Check length remaining before aligning.
svn path=/trunk/; revision=20198
Diffstat (limited to 'epan/dissectors/packet-giop.c')
-rw-r--r-- | epan/dissectors/packet-giop.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dissectors/packet-giop.c b/epan/dissectors/packet-giop.c index 597fc3ff2f..435205fa33 100644 --- a/epan/dissectors/packet-giop.c +++ b/epan/dissectors/packet-giop.c @@ -3586,7 +3586,10 @@ dissect_giop_request_1_2 (tvbuff_t * tvb, packet_info * pinfo, * GIOP octet stream start. */ - set_new_alignment(&offset, GIOP_HEADER_SIZE, 8); + if (tvb_reported_length_remaining(tvb, offset) > 0) + { + set_new_alignment(&offset, GIOP_HEADER_SIZE, 8); + } /* * Save FN,reqid,and operation for later. Add sub_handle later. |