You sure about that? This seems to suggest otherwise: https://sourceware.org/git/?p=glibc.git;a=blob;f=stdio-commo...
It will allocate a buffer on the stack:
https://sourceware.org/git/?p=glibc.git;a=blob;f=stdio-commo...
https://sourceware.org/git/?p=glibc.git;a=blob;f=stdio-commo...
You can avoid this by doing something like: