From 006537ad2234bca5988fcb656eb9672cbec171c7 Mon Sep 17 00:00:00 2001 From: Martin Mathieson Date: Sat, 31 Oct 2020 12:09:23 +0000 Subject: [PATCH] GSM A: Uncertainty speed is only 1 byte. (cherry picked from commit b925734fe29306d575347ce56ec8d4910f712d3e) --- epan/dissectors/packet-gsm_a_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/epan/dissectors/packet-gsm_a_common.c b/epan/dissectors/packet-gsm_a_common.c index 2c55744460..9b31ce905b 100644 --- a/epan/dissectors/packet-gsm_a_common.c +++ b/epan/dissectors/packet-gsm_a_common.c @@ -1175,7 +1175,7 @@ dissect_description_of_velocity(tvbuff_t *tvb, proto_tree *tree, packet_info *pi * N gives the uncertainty speed except for N=255 which indicates that the uncertainty is not specified. */ uncertainty_speed = tvb_get_guint8(tvb,curr_offset); - velocity_item = proto_tree_add_item(tree, hf_gsm_a_uncertainty_speed, tvb, offset, 2, ENC_BIG_ENDIAN); + velocity_item = proto_tree_add_item(tree, hf_gsm_a_uncertainty_speed, tvb, offset, 1, ENC_BIG_ENDIAN); if (uncertainty_speed == 255) { proto_item_append_text(velocity_item, " not specified"); }else{ @@ -1203,7 +1203,7 @@ dissect_description_of_velocity(tvbuff_t *tvb, proto_tree *tree, packet_info *pi /* Horizontal Uncertainty Speed Octet 6 */ uncertainty_speed = tvb_get_guint8(tvb,curr_offset); - velocity_item = proto_tree_add_item(tree, hf_gsm_a_h_uncertainty_speed, tvb, offset, 2, ENC_BIG_ENDIAN); + velocity_item = proto_tree_add_item(tree, hf_gsm_a_h_uncertainty_speed, tvb, offset, 1, ENC_BIG_ENDIAN); if (uncertainty_speed == 255) { proto_item_append_text(velocity_item, " not specified"); }else{ @@ -1213,7 +1213,7 @@ dissect_description_of_velocity(tvbuff_t *tvb, proto_tree *tree, packet_info *pi /* Vertical Uncertainty Speed Octet 7 */ uncertainty_speed = tvb_get_guint8(tvb,curr_offset); - velocity_item = proto_tree_add_item(tree, hf_gsm_a_v_uncertainty_speed, tvb, offset, 2, ENC_BIG_ENDIAN); + velocity_item = proto_tree_add_item(tree, hf_gsm_a_v_uncertainty_speed, tvb, offset, 1, ENC_BIG_ENDIAN); if (uncertainty_speed == 255) { proto_item_append_text(velocity_item, " not specified"); }else{