News for hackers. Stuff that matters.
Re:Malloc Never Fails (2012) by dooglius on Monday June 10, 2019 @10:47AM (#20147216)
The C spec actually states at the beginning, "This International Standard does not specify ... the size or complexity of a program and its data that will exceed the capacity of any specific data-processing system or the capacity of a particular processor;"
Re:Malloc Never Fails (2012) by mehrdadn on Monday June 10, 2019 @03:15PM (#20149814)
Yes and that's why malloc can return null.