mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 19:55:32 +02:00
MDEV-4513 Valgrind warnings (Conditional jump or move depends on uninitialised value) in inflate on UNCOMPRESS
This commit is contained in:
parent
5d0122bd77
commit
cc2c296309
3 changed files with 18 additions and 1 deletions
|
|
@ -3720,7 +3720,7 @@ String *Item_func_uncompress::val_str(String *str)
|
|||
goto err;
|
||||
|
||||
if ((err= uncompress((Byte*)buffer.ptr(), &new_size,
|
||||
((const Bytef*)res->ptr())+4,res->length())) == Z_OK)
|
||||
((const Bytef*)res->ptr())+4,res->length()-4)) == Z_OK)
|
||||
{
|
||||
buffer.length((uint32) new_size);
|
||||
return &buffer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue