diff options
author | John Thacker <johnthacker@gmail.com> | 2020-11-14 23:39:18 -0500 |
---|---|---|
committer | John Thacker <johnthacker@gmail.com> | 2020-11-14 23:39:18 -0500 |
commit | 5df3f5d05d67caef7f83520aa28d24b0af9e0443 (patch) | |
tree | c8fa6b6363f928b3ffa73a5e31e19272322bb590 /epan/charsets.c | |
parent | 646bfde7fa26cdd89caec59eeef4c10861954d2d (diff) |
Encodings: Fix missing pointer increment in 3GPP TS 28.038 unpacked
The pointer isn't incremented in get_ts_23_038_7bits_string_unpacked
so it just decodes the first octet length times.
Diffstat (limited to 'epan/charsets.c')
-rw-r--r-- | epan/charsets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/charsets.c b/epan/charsets.c index a49cb127ae..dc74e80360 100644 --- a/epan/charsets.c +++ b/epan/charsets.c @@ -1149,7 +1149,7 @@ get_ts_23_038_7bits_string_unpacked(wmem_allocator_t *scope, const guint8 *ptr, strbuf = wmem_strbuf_sized_new(scope, length+1, 0); for (i = 0; i < length; i++) - saw_escape = handle_ts_23_038_char(strbuf, *ptr, saw_escape); + saw_escape = handle_ts_23_038_char(strbuf, *ptr++, saw_escape); return (guint8 *)wmem_strbuf_finalize(strbuf); } |