4 ms·
I think much worse is forgetting to check the size returned by a read() or write() call, especially when dealing with sockets. Unchecked malloc() crashes very
by nh2 9y ago
I think much worse is forgetting to check the size returned by a read() or write() call, especially when dealing with sockets.
Unchecked malloc() crashes very easily, data chopped off in the middle usually triggers problems on the /other/ side.