3 ms·
Considering there seems to be at least a one memory bug (hm_put/key from another comment), I would strongly recommend running the tests in valgrind or similar i
by codr7 2y ago
Considering there seems to be at least a one memory bug (hm_put/key from another comment), I would strongly recommend running the tests in valgrind or similar if you haven't already. Doing C without it usually ends in some kind of disaster for me.
- ivanjermakov 2y agoWhat kind of disaster? Wouldn't OS security prevent userspace program do destructive things?
- chlorion 2y agoIt depends. You can corrupt memory in such a way that allows executing arbitrary code, in which you could do anything that the process has privilege to do, which is probably reading and writing files as the current user and a lot more.
- codr7 2y agoA userspace process can be capable of pretty destructive things, and they're all on the menu in C, especially without Valgrind.