summaryrefslogtreecommitdiffstats
path: root/main/python/unchecked-ioctl.patch
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2014-05-09 06:59:37 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2014-05-09 06:59:37 +0000
commitcefd4657a7b185db8758159b1d9a08781ebd03a1 (patch)
tree72aef9df898bef94b79829a5856e061e11b7c5d7 /main/python/unchecked-ioctl.patch
parente6efea9f1e7cab6e51396e35faaccac9c7fbb56f (diff)
downloadaports-cefd4657a7b185db8758159b1d9a08781ebd03a1.tar.bz2
aports-cefd4657a7b185db8758159b1d9a08781ebd03a1.tar.xz
main/python: allow 64-bit arguments to ioctl()
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 000000000..e80a8ed6f
--- /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;