]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299510:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jun 2016 18:10:32 +0000 (18:10 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jun 2016 18:10:32 +0000 (18:10 +0000)
commitb3e3ceb9160799e6e9537efced41d2d51e15b9a0
tree4ae715a9af793f53e3d0ea626df974ced85a96b2
parentd37a5699d7c3f375a830f49796825d5d9ab02870
MFC r299510:
r299510 (by cem):

libmp: Fix trivial buffer overrun

fgetln yields a non-NUL-terminated buffer and its length.  This routine
attempted to NUL-terminate it, but did not allocate space for the NUL.  So,
allocate space for the NUL.

CID: 1017457

git-svn-id: svn://svn.freebsd.org/base/stable/10@301806 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libmp/mpasbn.c