]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r293856:
authorbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 22 Jan 2016 00:13:18 +0000 (00:13 +0000)
committerbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 22 Jan 2016 00:13:18 +0000 (00:13 +0000)
commita18da6401fd8f2bbafdc7a719184ecf6aae70e6d
tree8bf56e5d276ef317295cd3ee77a2a62fbc117786
parent0983c1f04c56f0fb314c536a7fc1fe239418050b
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>
Requested by: danfe

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