Commit 7ae251a
committed
Fix out of bounds read in long_new() for empty bytes with an explicit base. int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4285 | 4285 | | |
4286 | 4286 | | |
4287 | 4287 | | |
4288 | | - | |
4289 | | - | |
| 4288 | + | |
| 4289 | + | |
4290 | 4290 | | |
4291 | 4291 | | |
4292 | 4292 | | |
| |||
0 commit comments