From cefd4657a7b185db8758159b1d9a08781ebd03a1 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 9 May 2014 06:59:37 +0000 Subject: main/python: allow 64-bit arguments to ioctl() --- main/python/unchecked-ioctl.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 main/python/unchecked-ioctl.patch (limited to 'main/python/unchecked-ioctl.patch') 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; -- cgit v1.2.3