summaryrefslogtreecommitdiffstats
path: root/Misc/ACKS
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-10-23 21:25:24 (GMT)
committerGuido van Rossum <guido@python.org>2001-10-23 21:25:24 (GMT)
commit00ebd46dfc8623ac0bd436e5d0c47b53cac29fb9 (patch)
treeb31c56f7e70af0d9b1459602a504192de8b9d6e7 /Misc/ACKS
parent0d429e8cdd98399b3c7eae55984463856de9281d (diff)
downloadcpython-00ebd46dfc8623ac0bd436e5d0c47b53cac29fb9.zip
cpython-00ebd46dfc8623ac0bd436e5d0c47b53cac29fb9.tar.gz
cpython-00ebd46dfc8623ac0bd436e5d0c47b53cac29fb9.tar.bz2
SF patch #474175 (Jay T Miller): file.readinto arg parsing bug
The C-code in fileobject.readinto(buffer) which parses the arguments assumes that size_t is interchangeable with int: size_t ntodo, ndone, nnow; if (f->f_fp == NULL) return err_closed(); if (!PyArg_Parse(args, "w#", &ptr, &ntodo)) return NULL; This causes a problem on Alpha / Tru64 / OSF1 v5.1 where size_t is a long and sizeof(long) != sizeof(int). The patch I'm proposing declares ntodo as an int. An alternative might be to redefine w# to expect size_t. [We can't change w# because there are probably third party modules relying on it. GvR]
Diffstat (limited to 'Misc/ACKS')
-rw-r--r--Misc/ACKS1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 36e41e0..18bac30 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -279,6 +279,7 @@ Dieter Maurer
Greg McFarlane
Michael McLay
Gordon McMillan
+Jay T. Miller
Caolan McNamara
Craig McPheeters
Lambert Meertens