- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitcc95595
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 in246693e,namely that the size of the carries has to be accounted for when settingthe threshold for executing a carry propagation step. We've not deviseda test case illustrating the brokenness, but the required fix seems clearenough. Like the previous fix, back-patch to all active branches.Dean Rasheed1 parent8bc496c commitcc95595
1 file changed
+9
-3
lines changedLines changed: 9 additions & 3 deletions
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
Comments
(0)