diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2021-07-04 16:34:32 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2021-07-04 16:34:32 (GMT) |
commit | 0150df2a3dafcce46bc95a2cb8642d0bb842ca8d (patch) | |
tree | 2cc81b0141a303d6f74af9d8d1716948159ac0d7 /src/analysis/db/misc | |
parent | 9283ead0b063e526fdcab00bcf86e2f10387a78f (diff) |
Check the right length variable for an unpacked string.
Diffstat (limited to 'src/analysis/db/misc')
-rw-r--r-- | src/analysis/db/misc/rlestr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analysis/db/misc/rlestr.c b/src/analysis/db/misc/rlestr.c index b93304b..a211723 100644 --- a/src/analysis/db/misc/rlestr.c +++ b/src/analysis/db/misc/rlestr.c @@ -285,7 +285,7 @@ bool unpack_rle_string(rle_string *str, packed_buffer_t *pbuf) result = unpack_uleb128(&len, pbuf); - if (result && str->length > 0) + if (result && len > 0) { str->length = len; |