File qhull-bufferoverflowstrncat.patch of Package python-scipy
--- scipy.orig/scipy/spatial/qhull/src/global.c 2010-11-20 10:17:52.000000000 -0500
+++ scipy/scipy/spatial/qhull/src/global.c 2010-11-20 18:24:37.765650260 -0500
@@ -614,7 +614,7 @@
if (command <= &qh qhull_command[0] || command > &qh qhull_command[0] + sizeof(qh qhull_command)) {
if (command != &qh qhull_command[0]) {
*qh qhull_command= '\0';
- strncat( qh qhull_command, command, sizeof( qh qhull_command));
+ strncat( qh qhull_command, command, sizeof( qh qhull_command)-strlen( qh qhull_command)-1);
}
while (*s && !isspace(*s)) /* skip program name */
s++;