Bugfix GIOP LocateRequest v1.0

Bug: 13488
Change-Id: If4717dee805fdb3e910e2ea8ef16352294b305c6
Reviewed-on: https://code.wireshark.org/review/20575
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Éric Piel 2017-03-16 21:00:40 -04:00 committed by Michael Mann
parent 77ee625fcd
commit 144a4acb29
1 changed files with 2 additions and 2 deletions

View File

@ -4582,13 +4582,13 @@ dissect_giop_locate_request( tvbuff_t * tvb, packet_info * pinfo,
len = get_CDR_ulong(tvb, &offset, stream_is_big_endian, GIOP_HEADER_SIZE);
proto_tree_add_uint (locate_request_tree, hf_giop_objekt_key_len, tvb, offset-4, 4, len);
if (len > (guint32)tvb_reported_length_remaining(tvb, offset-4)) {
if (len > (guint32)tvb_reported_length_remaining(tvb, offset)) {
expert_add_info_format(pinfo, tf, &ei_giop_length_too_big, "Object key length bigger than packet size");
return;
}
if (len > 0) {
proto_tree_add_item(locate_request_tree, hf_giop_objekt_key, tvb, offset-len, len, ENC_NA);
proto_tree_add_item(locate_request_tree, hf_giop_objekt_key, tvb, offset, len, ENC_NA);
}
}
else /* GIOP 1.2 and higher */