]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r293855:
authorbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 20 Jan 2016 19:52:01 +0000 (19:52 +0000)
committerbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 20 Jan 2016 19:52:01 +0000 (19:52 +0000)
commitcfcb61d9f471dff8e9e45327d38798ce6c1e1662
tree7242c08e698c4e0550b06aff0d3a2291b9c735b6
parent1ac3117749f723e73e769749c92ddc2ebe7ed32d
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>

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