aboutsummaryrefslogtreecommitdiffhomepage
path: root/notes/printf_oom.txt
blob: 5386593686959499a47b2e9d127408eedb008ad3 (plain)
1
2
3
4
5
6

apparently printf can allocate memory.
this means that OoM handling needs to handle that scenario specially.
for example:
- free a block of memory first, then call printf
- use fputs perhaps? or can it call malloc?
- use low level functions like write(2).