Closed lesniewski closed 2 years ago
huffdata is initially allocated using aligned_dealloc but can be replaced with data2 which is allocated using custom_calloc. This can cause a wild free when aligned_dealloc(huffdata) is called. Fix by replacing allocation sites with aligned_alloc.
huffdata
aligned_dealloc
data2
custom_calloc
aligned_dealloc(huffdata)
Noticed and fixed a similar problem with hdrdata.
hdrdata
Fixes #154.
huffdata
is initially allocated usingaligned_dealloc
but can be replaced withdata2
which is allocated usingcustom_calloc
. This can cause a wild free whenaligned_dealloc(huffdata)
is called. Fix by replacing allocation sites with aligned_alloc.Noticed and fixed a similar problem with
hdrdata
.Fixes #154.