diff options
author | Evan Huus <eapache@gmail.com> | 2013-12-18 15:54:32 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-12-18 15:54:32 +0000 |
commit | 8f665d9b36a7b7b3ae30b9e7afbc7724957e0bc1 (patch) | |
tree | 93ea8124c60b6c5e55a1cec422eda62557642cef /epan/dissectors/packet-gsm_a_common.c | |
parent | 197c2ffac6913dd3953409bef42af54cfb1f3dfe (diff) |
Add a sixteenth element to all BCD digit sets to avoid garbage values when
decoding corrupt bytes. Some of these digit sets could probably be
deduplicated...
svn path=/trunk/; revision=54224
Diffstat (limited to 'epan/dissectors/packet-gsm_a_common.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gsm_a_common.c b/epan/dissectors/packet-gsm_a_common.c index f5c5442610..3680e03a2e 100644 --- a/epan/dissectors/packet-gsm_a_common.c +++ b/epan/dissectors/packet-gsm_a_common.c @@ -1928,14 +1928,14 @@ guint16 elem_v_short(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, gint p static dgt_set_t Dgt_tbcd = { { /* 0 1 2 3 4 5 6 7 8 9 a b c d e */ - '0','1','2','3','4','5','6','7','8','9','?','B','C','*','#' + '0','1','2','3','4','5','6','7','8','9','?','B','C','*','#','?' } }; static dgt_set_t Dgt1_9_bcd = { { /* 0 1 2 3 4 5 6 7 8 9 a b c d e */ - '0','1','2','3','4','5','6','7','8','9','?','?','?','?','?' + '0','1','2','3','4','5','6','7','8','9','?','?','?','?','?','?' } }; |