]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r293856:
authorbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 20 Jan 2016 19:56:43 +0000 (19:56 +0000)
committerbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 20 Jan 2016 19:56:43 +0000 (19:56 +0000)
commit2482791e13847b9def3ad6f0ff4ad3f72dc0993a
treefe8491f9a3db5ad18065e41e01a4d591c5cc09ac
parentcfcb61d9f471dff8e9e45327d38798ce6c1e1662
MFC r293856:

Avoid reading pass the end of the source buffer when it is not NUL
terminated.

If this buffer is adjacent to an unmapped page or a version of C with
bounds checked is used this may result in a crash.

PR: 206178
Submitted by: Alexander Cherepanov <cherepan@mccme.ru>

git-svn-id: svn://svn.freebsd.org/base/stable/9@294457 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/string/wcslcat.c