summaryrefslogtreecommitdiff
path: root/src/env/putenv.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-07-13 21:56:27 -0400
committerRich Felker <dalias@aerifal.cx>2018-07-13 21:56:27 -0400
commit9cad27a3dc1a4eb349b6591e4dc8cc89dce32277 (patch)
tree9346b3dd848090b935d466385c006fdd86263ceb /src/env/putenv.c
parent062015204a192dd6ab9663abcc3171b9106d1749 (diff)
downloadmusl-9cad27a3dc1a4eb349b6591e4dc8cc89dce32277.tar.gz
fix writes outside buffer by ungetc after setvbuf
commit 0b80a7b0404b6e49b0b724e3e3fe0ed5af3b08ef, which added non-stub setvbuf, applied the UNGET pushback adjustment to the size of the buffer passed in, but inadvertently omitted offsetting the start by the same amount, thereby allowing unget to clobber up to 8 bytes before the start of the buffer. this bug was introduced in the present release cycle; no releases are affected.
Diffstat (limited to 'src/env/putenv.c')
0 files changed, 0 insertions, 0 deletions