3 ms·
This is going to get really good when zlibc is done, you'll be able to for example, override the c stdlib "free" function in the c code and add features, for ex
by throwawaymaths 3y ago
This is going to get really good when zlibc is done, you'll be able to for example, override the c stdlib "free" function in the c code and add features, for example (runtime) UAF/DF detection with metadata tracking (like stacktraces of where the memory was created and freed)
- duped 3y agoYou can already do this with LD_PRELOAD, no?
- throwawaymaths 3y agoCould be wrong, but only if libc is expected to be dynamically linked (and anyways you'd still need zlibc)
- staunton 3y agoYou can just define your own malloc and free in any C program. Am I missing what you're talking about?
- maxmcd 3y agoWhat is zlibc? A libc implementation in zig? Googling did not turn up much.
- dataangel 3y agoYou can do that in any C program today