commit | 40d291b609d0cc6344f3e26ed34b4fd755e403da | [log] [tgz] |
---|---|---|
author | Lasse Collin <[email protected]> | Wed Oct 30 18:26:56 2019 +0200 |
committer | Lasse Collin <[email protected]> | Wed Oct 30 18:26:56 2019 +0200 |
tree | dc66800971ca2a458e42cb69262b3d422c53b080 | |
parent | 525549dce62c134ebe26255deab0eb795d92599d [diff] |
Fix XZ_DYN_ALLOC to avoid useless memory reallocations. s->dict.allocated was initialized to 0 but never set after a successful allocation, thus the code always thought that the dictionary buffer has to be reallocated. Thanks to Yu Sun from Cisco Systems for reporting this bug.