summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-10-10 17:15:10 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-10-10 17:15:10 +0200
commit684156f7114bcc2d1d95f77c50add11a1eb7b2ce (patch)
treea2913383ce2561bf4f22cb4306f61f783e48050a
parent01481127301b7defadb69cd712f82ad7f840340e (diff)
Fix decompress PoolByteArray crash
-rw-r--r--core/variant_call.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index 1b5ca9d3e5..8a64ee4e2f 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -591,9 +591,9 @@ struct _VariantCall {
int buffer_size = (int)(*p_args[0]);
- if (buffer_size < 0) {
+ if (buffer_size <= 0) {
r_ret = decompressed;
- ERR_FAIL_MSG("Decompression buffer size is less than zero.");
+ ERR_FAIL_MSG("Decompression buffer size must be greater than zero.");
}
decompressed.resize(buffer_size);