Comment by gkfasdfasdf Comment by gkfasdfasdf a day ago 1 reply Copy Link View on Hacker News Does Fil-C catch uninitialized memory reads?
Copy Link jitl a day ago Collapse Comment - malloc'd memory is zeroed in fil-c:> *zgc_alloc*> Allocate count bytes of zero-initialized memory. May allocate slightly more than count, based on the runtime's minalign (which is currently 16).> This is a GC allocation, so freeing it is optional. Also, if you free it and then use it, your program is guaranteed to panic.> libc's malloc just forwards to this. There is no difference between calling malloc and zgc_alloc.from https://fil-c.org/stdfil Reply View | 0 replies
malloc'd memory is zeroed in fil-c:
> *zgc_alloc*
> Allocate count bytes of zero-initialized memory. May allocate slightly more than count, based on the runtime's minalign (which is currently 16).
> This is a GC allocation, so freeing it is optional. Also, if you free it and then use it, your program is guaranteed to panic.
> libc's malloc just forwards to this. There is no difference between calling malloc and zgc_alloc.
from https://fil-c.org/stdfil