Repository navigation
Commit 5ef883b
authored
[2.7] bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (pythonGH-3947) (python#4088)
Bad remainder in divmod() in intermediate calculations caused an assertion failure..
(cherry picked from commit 4ffd465)1 parent f7d19b0 commit 5ef883b
3 files changed
Lines changed: 48 additions & 2 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Library
- Modules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
495 | 535 | | |
496 | 536 | | |
497 | 537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1537 | 1537 | | |
1538 | 1538 | | |
1539 | 1539 | | |
| 1540 | + | |
1540 | 1541 | | |
1541 | 1542 | | |
1542 | 1543 | | |
| |||
1559 | 1560 | | |
1560 | 1561 | | |
1561 | 1562 | | |
| 1563 | + | |
1562 | 1564 | | |
1563 | 1565 | | |
1564 | 1566 | | |
| |||
1851 | 1853 | | |
1852 | 1854 | | |
1853 | 1855 | | |
1854 | | - | |
| 1856 | + | |
1855 | 1857 | | |
1856 | 1858 | | |
| 1859 | + | |
1857 | 1860 | | |
1858 | 1861 | | |
| 1862 | + | |
1859 | 1863 | | |
1860 | 1864 | | |
1861 | 1865 | | |
| |||
1898 | 1902 | | |
1899 | 1903 | | |
1900 | 1904 | | |
1901 | | - | |
| 1905 | + | |
1902 | 1906 | | |
1903 | 1907 | | |
1904 | 1908 | | |
| |||
1916 | 1920 | | |
1917 | 1921 | | |
1918 | 1922 | | |
| 1923 | + | |
1919 | 1924 | | |
1920 | 1925 | | |
1921 | 1926 | | |
| |||
0 commit comments