Commit fa9032a
Revert D116335797
Summary:
This diff reverts D116335797 ("[folly] fix integer overflow in `IOBuf::coalesceAndReallocate`"). `IOBuf::coalesceAndReallocate` goes back to computing `newCapacity = newLength + newHeadroom + newTailroom` with unchecked `size_t` addition, and the `TEST(IOBuf, CoalesceCapacityOverflow)` regression test is removed.
S698837
Reviewed By: ericcfu
Differential Revision: D116862638
fbshipit-source-id: 0723175e22b0b6b1ce424469175bae5b180bbe321 parent 514cda3 commit fa9032a
2 files changed
Lines changed: 1 addition & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1044 | 1044 | | |
1045 | 1045 | | |
1046 | 1046 | | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
| 1047 | + | |
1052 | 1048 | | |
1053 | 1049 | | |
1054 | 1050 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1576 | 1576 | | |
1577 | 1577 | | |
1578 | 1578 | | |
1579 | | - | |
1580 | | - | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
1585 | | - | |
1586 | | - | |
1587 | | - | |
1588 | | - | |
1589 | | - | |
1590 | | - | |
1591 | | - | |
1592 | 1579 | | |
1593 | 1580 | | |
1594 | 1581 | | |
| |||
0 commit comments