aboutsummaryrefslogtreecommitdiffstats
path: root/epan/charsets.c
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2020-11-15 04:39:18 +0000
committerGuy Harris <gharris@sonic.net>2020-11-15 07:07:00 +0000
commitcd6afd7c9bf621c361e4e8c561e1cc4dd270d310 (patch)
tree55a51aac6c5a9478e5b7c92c7891df69d10d7376 /epan/charsets.c
parenta0ce8fa84dfa3a092b1906cedf75ab41fb06fb84 (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. (cherry picked from commit 5df3f5d05d67caef7f83520aa28d24b0af9e0443)
Diffstat (limited to 'epan/charsets.c')
-rw-r--r--epan/charsets.c2
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);
}