diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-01-25 18:12:52 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-01-25 18:12:52 (GMT) |
commit | 61c9454a718b1cf87029833d5fb493e09990dbfe (patch) | |
tree | 2a134c6d8880f17e41f746b7b9d93018995e56b8 /plugins | |
parent | d7a7c0dc3f20664f3e4d6bd7a3caa08bb6511cd9 (diff) |
Handled the MUTF-8 U+0000 code point.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/dex/dex-int.c | 2 | ||||
-rw-r--r-- | plugins/dexbnf/simple.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/dex/dex-int.c b/plugins/dex/dex-int.c index 843db32..fc1db58 100644 --- a/plugins/dex/dex-int.c +++ b/plugins/dex/dex-int.c @@ -210,7 +210,7 @@ bool read_dex_string_data_item(const GDexFormat *format, vmpa2t *pos, vmpa2t *in tmp = g_binary_content_get_raw_access(content, pos, maxsize); - ch = decode_utf8_char(tmp, maxsize, &used); + ch = decode_mutf8_char(tmp, maxsize, &used); if (IS_UTF8_ERROR(ch)) result = false; diff --git a/plugins/dexbnf/simple.c b/plugins/dexbnf/simple.c index f06fc4d..fd7b8ab 100644 --- a/plugins/dexbnf/simple.c +++ b/plugins/dexbnf/simple.c @@ -132,7 +132,7 @@ static size_t dcd_simple_name_char(input_buffer *buffer) text = get_input_buffer_text_access(buffer); remaining = count_input_buffer_remaining(buffer); - wc = decode_utf8_char((unsigned char *)text, remaining, &result); + wc = decode_mutf8_char((unsigned char *)text, remaining, &result); if (IS_UTF8_ERROR(wc)) return 0; |