]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r293855:
authorbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 22 Jan 2016 00:08:16 +0000 (00:08 +0000)
committerbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 22 Jan 2016 00:08:16 +0000 (00:08 +0000)
commit0983c1f04c56f0fb314c536a7fc1fe239418050b
treea28b83c595a210fa1d406e876b0ce2e97627ae88
parent1b50bd1aec24da815773990fa98a7990d24a652d
MFC r293855:

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: 206177
Submitted by: Alexander Cherepanov <cherepan@mccme.ru>
Requested by: danfe

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