mirror of
https://github.com/aaru-dps/Aaru.Compression.Native.git
synced 2026-09-20 05:36:22 +00:00
Merge pull request #2 from FakeShemp/fakeshemp/double-free
Wrong size allocated.
This commit is contained in:
@@ -66,7 +66,7 @@ TEST_F(ha_ascFixture, ha_asc)
|
||||
{
|
||||
size_t destLen = 152089;
|
||||
size_t srcLen = 53654;
|
||||
auto * outBuf = (uint8_t *)malloc(53654);
|
||||
auto * outBuf = (uint8_t *)malloc(152089);
|
||||
|
||||
auto err = ha_asc_decompress(buffer, srcLen, outBuf, &destLen);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user