summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-07-04 16:34:32 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-07-04 16:34:32 (GMT)
commit0150df2a3dafcce46bc95a2cb8642d0bb842ca8d (patch)
tree2cc81b0141a303d6f74af9d8d1716948159ac0d7
parent9283ead0b063e526fdcab00bcf86e2f10387a78f (diff)
Check the right length variable for an unpacked string.
-rw-r--r--src/analysis/db/misc/rlestr.c2
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;