Commit de7990b
committed
SF bug #1238681: freed pointer is used in longobject.c:long_pow().
In addition, long_pow() skipped a necessary (albeit extremely unlikely
to trigger) error check when converting an int modulus to long.
Alas, I was unable to write a test case that crashed due to either
cause.
Bugfix candidate.1 parent f5f32b4 commit de7990b
2 files changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2360 | 2360 | | |
2361 | 2361 | | |
2362 | 2362 | | |
2363 | | - | |
| 2363 | + | |
2364 | 2364 | | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
2365 | 2368 | | |
2366 | 2369 | | |
2367 | 2370 | | |
| |||
2511 | 2514 | | |
2512 | 2515 | | |
2513 | 2516 | | |
2514 | | - | |
2515 | | - | |
2516 | | - | |
2517 | | - | |
2518 | 2517 | | |
2519 | 2518 | | |
2520 | 2519 | | |
2521 | 2520 | | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
2522 | 2525 | | |
2523 | 2526 | | |
2524 | 2527 | | |
| |||
0 commit comments