Port #4230 fix to obfsproxy's container.c.
#4230 (moved) was about overflows in smartlist_ensure_capacity() of container.c.
obfsproxy also uses container.c and #4230 (moved)'s fix is not included.
#4230 (moved) was about overflows in smartlist_ensure_capacity() of container.c.
obfsproxy also uses container.c and #4230 (moved)'s fix is not included.