K 10 svn:author V 5 danfe K 8 svn:date V 27 2014-11-15T16:45:10.858729Z K 7 svn:log V 983 - Stop trying to adopt cap_rights_t type change in FreeBSD src SVN r255219 as recent driver versions are already account for it; this unbreaks the build for 304.xx branch [*] - Simplify patching for stack buffer overflow in nvidia_sysctl_bus_type(): NVidia really screwed up fixing it since it was reported. Originally, they were sprintf(bus_type, "PCI-E")ing to a 4-character buffer allocated on stack (304.88 and earlier); later they've replaced the buffer with a char * pointer, but left one sprintf() into it (304.108 and above, up to 304.121); then finally fixed it for real in 304.123. Given versions are only for 304.xx branch; others retained the same bugs during this time frame. Fix it across the gang by simply extending bus_type[4] (if found) to eight bytes instead of employing complex NVVERSION checks: this should now be no-op for newer versions, but good enough for older ones (e.g. for 173.14.35, 96.xx, and 71.xx) PR: 194866, 194958 [*] END