3 ms·
If the memory was actually being used it would have crashed long before that. The test was kind of artificial.
by danieltillett 11y ago
If the memory was actually being used it would have crashed long before that. The test was kind of artificial.
- dalke 11y agoAbsolutely. I was pointing out that "It is impossible for malloc to fail" is, according to the linked page, an incorrect summary.
- danieltillett 11y agoIt is still pointless checking if malloc fails on linux :) Actually the real issue here is that you should be aware that on some systems malloc might fail and not segfault.