]> diplodocus.org Git - nmh/commit
uip/dropsbr.c: Fix buffer overrun in mbx_copy().
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 20 Apr 2017 13:27:46 +0000 (14:27 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Thu, 20 Apr 2017 13:27:46 +0000 (14:27 +0100)
commitab7f4c906111c206b91236ed8c210e681c85f338
treebb52dc70d3be615e0c5fa3559bdefe661d9bc91d
parent2d033e9c995d385fcd69cb604bf8814de4d1ccec
uip/dropsbr.c: Fix buffer overrun in mbx_copy().

The overrun occurs frequently, but typically zeroes a byte of a
character pointer on the stack that's not yet been used.
Caused by 28610ff9a604a75ae0c383be03aa19415ddb1965 appending a NUL after
the bytes stored by read(2).
uip/dropsbr.c