aports/main/python/unchecked-ioctl.patch
2014-05-09 07:04:02 +00:00

12 lines
417 B
Diff

--- Python-2.7.6.orig/Modules/fcntlmodule.c
+++ Python-2.7.6/Modules/fcntlmodule.c
@@ -118,7 +118,7 @@
int mutate_arg = 1;
char buf[IOCTL_BUFSZ+1]; /* argument plus NUL byte */
- if (PyArg_ParseTuple(args, "O&Iw#|i:ioctl",
+ if (PyArg_ParseTuple(args, "O&Iw#|n:ioctl",
conv_descriptor, &fd, &code,
&str, &len, &mutate_arg)) {
char *arg;