summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-bssap.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-12-18 15:54:32 +0000
committerEvan Huus <eapache@gmail.com>2013-12-18 15:54:32 +0000
commit8f665d9b36a7b7b3ae30b9e7afbc7724957e0bc1 (patch)
tree93ea8124c60b6c5e55a1cec422eda62557642cef /epan/dissectors/packet-bssap.c
parent197c2ffac6913dd3953409bef42af54cfb1f3dfe (diff)
downloadwireshark-8f665d9b36a7b7b3ae30b9e7afbc7724957e0bc1.tar.gz
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-bssap.c')
-rw-r--r--epan/dissectors/packet-bssap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bssap.c b/epan/dissectors/packet-bssap.c
index 665e82333b..3919c20176 100644
--- a/epan/dissectors/packet-bssap.c
+++ b/epan/dissectors/packet-bssap.c
@@ -620,7 +620,7 @@ dissect_bssap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
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','*','#','?'
}
};
#endif
@@ -628,7 +628,7 @@ static dgt_set_t Dgt_tbcd = {
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','?','?','?','?','?','?'
}
};
/* Assumes the rest of the tvb contains the digits to be turned into a string