]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r204447:
authorjh <jh@FreeBSD.org>
Fri, 12 Mar 2010 06:56:51 +0000 (06:56 +0000)
committerjh <jh@FreeBSD.org>
Fri, 12 Mar 2010 06:56:51 +0000 (06:56 +0000)
commitc4a13ea37fbc64339be45f9da5746f4c1faae737
tree131db6e8fd8925d1bc64971b7af8c26260fe62d8
parent720adc707cd86fb2cab76b41902787f6f241c473
MFC r204447:

In _gettemp(), check that the length of the path doesn't exceed
MAXPATHLEN. Otherwise the path name (or part of it) may not fit to
carrybuf causing a buffer overflow.

PR: bin/140228
lib/libc/stdio/mktemp.c