2 ms·
I think the suggestion was only that the call to malloc shouldn't crash. If it overcommitted memory, some other part of the program will likely be where the cr
by taeric 8y ago
I think the suggestion was only that the call to malloc shouldn't crash. If it overcommitted memory, some other part of the program will likely be where the crash is. If it couldn't commit the memory, it will return null. Which is not crashing.
- loeg 8y agoThat makes sense.