This commit is contained in:
twinaphex 2020-07-01 19:23:33 +02:00
parent 9e9fb47c05
commit d2afef58d7
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ static void *lzma_fast_alloc(void *p, size_t size)
}
/* alloc a new one and put it into the list */
addr = (uint32_t *)malloc(sizeof(uint32_t) * (size + sizeof(uint32_t)));
addr = (uint32_t *)malloc(sizeof(uint32_t) * size + sizeof(uintptr_t));
if (!addr)
return NULL;

View File

@ -263,7 +263,7 @@ voidpf zlib_fast_alloc(voidpf opaque, uInt items, uInt size)
}
/* alloc a new one */
ptr = (UINT32 *)malloc(size + sizeof(UINT32));
ptr = (UINT32 *)malloc(size + sizeof(uintptr_t));
if (!ptr)
return NULL;