[Midnightbsd-mports] fix (patch) for x11/nvidia-driver-173-173.14.39_2

Chris H midnightbsd at BSDforge.com
Tue Dec 22 21:24:36 EST 2015


Greetings, all.
 I went to attempt a make on x11/nvidia-driver-173-173.14.39_2
and discovered quite quickly that it was broken. I had a closer
look, and found that the patch:
x11/nvidia-driver/files/security-patch-CVE-2012-0946
was completely BOGUS.
Turns out that nVidia already patched src/nv.h in the distribution.
So that part was useless. Where src/nvidia_subr.c is concerned;
It comes down to a choice of return EINVAL (already provided), or
return -1 (what's provided in the original patch). I chose the
latter, and cobbled up a replacement patch (attached).

I proceeded with the make && install. I then bounced the box,
and all's well.

The patch is a unified diff, I'm not quite setup for svn diff's
yet. As I'm still building the box.

Best wishes.

--Chris

--

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: security-patch-CVE-2012-0946
URL: <http://www.midnightbsd.org/pipermail/midnightbsd-mports/attachments/20151222/2d9e30ee/attachment.ksh>


More information about the Midnightbsd-mports mailing list