Commit bb26f56
committed
sv_grow - new allocs are at least a sensible size
We don't believe that the size of new buffers allocated via Perl_sv_grow
should be rounded up, but with the new `expected_size` macro we can
ensure that `newlen` is not smaller than the minimum possible allocation
and is at least rounded up to the nearest PTRSIZE.1 parent 4a38ddc commit bb26f56
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1425 | 1425 | | |
1426 | 1426 | | |
1427 | 1427 | | |
1428 | | - | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
1429 | 1431 | | |
1430 | 1432 | | |
1431 | 1433 | | |
1432 | 1434 | | |
| 1435 | + | |
| 1436 | + | |
1433 | 1437 | | |
1434 | 1438 | | |
1435 | 1439 | | |
| |||
0 commit comments