Gregwar/fatcat

Memory leak/Heap Corruption when using fatcat

aarrbba123 opened this issue · 2 comments

Build Info

Platform: Windows 10 / Cygwin
Compiler(s): Clang

Issue

When trying to get the info of a fat12 image, it threw a heap corruption error
image
2023-09-23_2

So I went to debug it ...aaannnnd
image

(There's nothing wrong with the image file itself, even the root directory is correctly recognised by the program)

Alr found the heap corruption part, i'll post the PR once I properly fix it

Btw is using the heap nesessary, because you can't use sizeof() on heap arrays