aboutsummaryrefslogtreecommitdiffstats
path: root/main/python/unchecked-ioctl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/python/unchecked-ioctl.patch')
-rw-r--r--main/python/unchecked-ioctl.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/python/unchecked-ioctl.patch b/main/python/unchecked-ioctl.patch
new file mode 100644
index 0000000000..e80a8ed6f1
--- /dev/null
+++ b/main/python/unchecked-ioctl.patch
@@ -0,0 +1,11 @@
+--- 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#|I:ioctl",
+ conv_descriptor, &fd, &code,
+ &str, &len, &mutate_arg)) {
+ char *arg;