commit | 9e509d4ec97cb3d71696f1a2f1fdad254cbbce11 | [log] [tgz] |
---|---|---|
author | deraadt@openbsd.org <deraadt@openbsd.org> | Wed May 31 09:15:42 2017 +0000 |
committer | Damien Miller <djm@mindrot.org> | Thu Jun 01 14:55:22 2017 +1000 |
tree | 8f33ae8fa9bcfa0d9c80d0e0f1555a814a844bc1 | |
parent | dc5dc45662773c0f7745c29cf77ae2d52723e55e [diff] |
upstream commit Switch to recallocarray() for a few operations. Both growth and shrinkage are handled safely, and there also is no need for preallocation dances. Future changes in this area will be less error prone. Review and one bug found by markus Upstream-ID: 822d664d6a5a1d10eccb23acdd53578a679d5065