mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Added "i" and "l" to the list of std-mode struct codes that don't range-
check correctly on pack(). While these were checking OK on my 32-bit box, Mark Favas reported failures on a 64-bit box (alas, easy to believe).
This commit is contained in:
parent
5ca576ed0a
commit
3eec38af37
1 changed files with 4 additions and 1 deletions
|
@ -188,7 +188,10 @@ import binascii
|
|||
class IntTester:
|
||||
|
||||
# XXX Most std integer modes fail to test for out-of-range.
|
||||
BUGGY_RANGE_CHECK = "bBhHIL"
|
||||
# The "i" and "l" codes appear to range-check OK on 32-bit boxes, but
|
||||
# fail to check correctly on some 64-bit ones (Tru64 Unix + Compaq C
|
||||
# reported by Mark Favas).
|
||||
BUGGY_RANGE_CHECK = "bBhHiIlL"
|
||||
|
||||
def __init__(self, formatpair, bytesize):
|
||||
assert len(formatpair) == 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue