fix writes outside buffer by ungetc after setvbuf
commit 0b80a7b0, 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.
Showing
想要评论请 注册 或 登录