aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.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/tvbuff.c
parent197c2ffac6913dd3953409bef42af54cfb1f3dfe (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/tvbuff.c')
-rw-r--r--epan/tvbuff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index 95b7c4d3d9..5d74393b42 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -2738,8 +2738,8 @@ tvb_bytes_to_str_punct(tvbuff_t *tvb, const gint offset, const gint len, const g
*/
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 a b c d e f*/
+ '0','1','2','3','4','5','6','7','8','9','?','?','?','?','?','?'
}
};
const gchar *