aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-giop.c
diff options
context:
space:
mode:
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>2006-12-22 14:48:51 +0000
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>2006-12-22 14:48:51 +0000
commitee7439b3f924b45628d4e8a20b0c7c70017b96ca (patch)
tree769c7074c1bacbaef6b2f87b0c2a1b1022d84037 /epan/dissectors/packet-giop.c
parentfe2edf8b19420fcbd6fb5a324e959ad4d92786aa (diff)
Fix for bug 1272.
Check length remaining before aligning. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20198 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-giop.c')
-rw-r--r--epan/dissectors/packet-giop.c5
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.