about summary refs log tree commit diff
path: root/src/stdio/__uflow.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-08-29 23:45:43 -0400
committerRich Felker <dalias@aerifal.cx>2018-08-29 23:45:43 -0400
commitf1791f42ef6d22e68dfc1ee45c0a478b156ce46d (patch)
treed3b784e175e9b701e2f25213070b4ae7251e21e8 /src/stdio/__uflow.c
parentddc947eda311331959c73dbc4491afcfe2326346 (diff)
downloadmusl-f1791f42ef6d22e68dfc1ee45c0a478b156ce46d.tar.gz
musl-f1791f42ef6d22e68dfc1ee45c0a478b156ce46d.tar.xz
musl-f1791f42ef6d22e68dfc1ee45c0a478b156ce46d.zip
re-fix vfprintf temporary buffer logic
commit b5a8b28915aad17b6f49ccacd6d3fef3890844d1 setup the write buffer
bound pointers for the temporary buffer manually to fix a buffer
overflow issue, but in doing so, caused vfprintf on unbuffered files
never to call __towrite, thereby failing to set the stream orientation
to byte-oriented, failing to clear any prior read mode, and failing to
produce an error when the stream is not writable.

revert the inline setup of the bounds pointers and instead zero them,
so that the underlying fwrite code will call __towrite to set them up.
Diffstat (limited to 'src/stdio/__uflow.c')
0 files changed, 0 insertions, 0 deletions