Commit cc95595
committed
Fix possible internal overflow in numeric division.
div_var_fast() postpones propagating carries in the same way as mul_var(),
so it has the same corner-case overflow risk we fixed in 246693e,
namely that the size of the carries has to be accounted for when setting
the threshold for executing a carry propagation step. We've not devised
a test case illustrating the brokenness, but the required fix seems clear
enough. Like the previous fix, back-patch to all active branches.
Dean Rasheed1 parent 8bc496c commit cc95595
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5311 | 5311 | | |
5312 | 5312 | | |
5313 | 5313 | | |
5314 | | - | |
5315 | | - | |
| 5314 | + | |
| 5315 | + | |
| 5316 | + | |
| 5317 | + | |
| 5318 | + | |
| 5319 | + | |
| 5320 | + | |
| 5321 | + | |
5316 | 5322 | | |
5317 | 5323 | | |
5318 | 5324 | | |
| |||
5338 | 5344 | | |
5339 | 5345 | | |
5340 | 5346 | | |
5341 | | - | |
| 5347 | + | |
5342 | 5348 | | |
5343 | 5349 | | |
5344 | 5350 | | |
| |||
0 commit comments