News for hackers. Stuff that matters.
Re:Debugging Your Operating System: A Lesson in Memory Alloc... by sp332 on Friday December 09, 2016 @05:39PM (#13142492)
I think assert() is usually used by people who are going to just turn them off during a "production" build (with -NDEBUG).
Re:Debugging Your Operating System: A Lesson in Memory Alloc... by loeg on Friday December 09, 2016 @05:41PM (#13142509)
And GP is right that in that case, you really want calloc to return NULL rather than an overflowed (short) non-NULL allocation.