avoid integer overflow in and around smartlist_ensure_capacity.
commitbca7083e8285e8e6a4377076a7e432417eafc6d2
authorNick Mathewson <nickm@torproject.org>
Wed, 27 Jan 2016 17:26:02 +0000 (27 12:26 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 27 Jan 2016 17:32:41 +0000 (27 12:32 -0500)
tree688e4f31c1243d87f51b897e3e21f6cd28cc8233
parent11f63d26acb8ca872d894fb1423b380dc1f8dc2e
avoid integer overflow in and around smartlist_ensure_capacity.

This closes bug 18162; bugfix on a45b1315909c9, which fixed a related
issue long ago.

In addition to the #18162 issues, this fixes a signed integer overflow
in smarltist_add_all(), which is probably not so great either.
changes/bug18162 [new file with mode: 0644]
src/common/container.c