diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-11 08:22:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-11 08:22:00 +0200 |
commit | 22d100ad3a8580a727869dba2c6802e1f8979a18 (patch) | |
tree | c0861f6633d699d21ba0831314d3f4797ea9918f | |
parent | 25d1073f6e5e43ad92421e4a5a526b4391bf0884 (diff) | |
parent | 684156f7114bcc2d1d95f77c50add11a1eb7b2ce (diff) |
Merge pull request #32717 from qarmin/decompress_crash
Fix decompress PoolByteArray crash
-rw-r--r-- | core/variant_call.cpp | 4 |
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); |