Commit 5f10b7a
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 c5ec406 commit 5f10b7a
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6266 | 6266 | | |
6267 | 6267 | | |
6268 | 6268 | | |
6269 | | - | |
6270 | | - | |
| 6269 | + | |
| 6270 | + | |
| 6271 | + | |
| 6272 | + | |
| 6273 | + | |
| 6274 | + | |
| 6275 | + | |
| 6276 | + | |
6271 | 6277 | | |
6272 | 6278 | | |
6273 | 6279 | | |
| |||
6293 | 6299 | | |
6294 | 6300 | | |
6295 | 6301 | | |
6296 | | - | |
| 6302 | + | |
6297 | 6303 | | |
6298 | 6304 | | |
6299 | 6305 | | |
| |||
0 commit comments