Commit 79b97ee
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 parent 4b2f9e9 commit 79b97ee
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4149 | 4149 | | |
4150 | 4150 | | |
4151 | 4151 | | |
4152 | | - | |
4153 | | - | |
| 4152 | + | |
| 4153 | + | |
4154 | 4154 | | |
4155 | 4155 | | |
4156 | 4156 | | |
| |||
0 commit comments