diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2017-08-27 18:22:48 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2017-08-27 18:22:48 (GMT) | 
| commit | 6b25e01d08db15c039a17ce00ac4c103d61364f5 (patch) | |
| tree | a2a0bb5851d47b3572ed35942c1af3ff45544c5a /src/format/dex | |
| parent | 5792b6c860810915d62365125cafc6bff096e405 (diff) | |
Ensured a string is properly loaded as expected before returning success.
Diffstat (limited to 'src/format/dex')
| -rw-r--r-- | src/format/dex/dex-int.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/format/dex/dex-int.c b/src/format/dex/dex-int.c index 811cf5d..043d8cc 100644 --- a/src/format/dex/dex-int.c +++ b/src/format/dex/dex-int.c @@ -159,7 +159,10 @@ bool read_dex_string_data_item(const GDexFormat *format, vmpa2t *pos, string_dat      result = g_binary_content_read_uleb128(content, pos, &str_data->utf16_size);      if (result) +    {          str_data->data = g_binary_content_get_raw_access(content, pos, str_data->utf16_size); +        result = (str_data->data != NULL); +    }      return result; | 
