Date: Mon, 2 Apr 2007 21:04:44 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 117221 for review Message-ID: <200704022104.l32L4iFh079964@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=117221 Change 117221 by rdivacky@rdivacky_witten on 2007/04/02 21:04:04 Check return value of copyinstr(). Point hat: rdivacky Affected files ... .. //depot/projects/linuxolator/src/sys/compat/linux/linux_file.c#21 edit Differences ... ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_file.c#21 (text+ko) ==== @@ -246,6 +246,8 @@ oldpath = malloc(MAXPATHLEN, M_TEMP, M_WAITOK); error = copyinstr(args->filename, oldpath, MAXPATHLEN, NULL); + if (error) + return (error); #ifdef DEBUG if (ldebug(openat))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704022104.l32L4iFh079964>