News for hackers. Stuff that matters.
Re:Tearing apart printf() (2018) by luke0016 on Tuesday November 12, 2019 @07:42PM (#21519955)
> 1. printf may malloc so don't use it in an out of memory situation. Though I think this problem is vanishingly unlikely these days.

You can avoid this by doing something like:

  setvbuf(stdout, NULL, _IONBF, 0);
Re:Tearing apart printf() (2018) by saagarjha on Tuesday November 12, 2019 @08:40PM (#21520357)
You sure about that? This seems to suggest otherwise: https://sourceware.org/git/?p=glibc.git;a=blob;f=stdio-commo...
Re:Tearing apart printf() (2018) by crististm on Wednesday November 13, 2019 @08:30AM (#21523723)