Commit 9681135
committed
Add +1 so allocation is over max byte length
On 32 bit systems with 4GB of ram there may be PY_SSIZE_T_MAX
allocatable and the testt would pass as the allocation would succeed.
Add a + 1 so that it's over the max bytes length and an OverflowError
will be raised by bytes.1 parent c470178 commit 9681135
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments