]> git.ipfire.org Git - thirdparty/tor.git/commit
Reserve enough space for rend_service_port_config_t
authorSebastian Hahn <sebastian@torproject.org>
Mon, 9 Feb 2015 03:48:16 +0000 (04:48 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Mon, 9 Feb 2015 03:48:16 +0000 (04:48 +0100)
commit37d16c3cc78151daf2cbebd643ea4d64b504989e
treeb10459934783843ef3e1038f5e4ddf312a7942c3
parentb101f4e98ce811aee729c31f62ec5dd1cfe44e85
Reserve enough space for rend_service_port_config_t

In #14803, Damian noticed that his Tor sometimes segfaults. Roger noted
that his valgrind gave an invalid write of size one here. Whenever we
use FLEXIBLE_ARRAY_MEMBER, we have to make sure to actually malloc a
thing that's large enough.

Fixes bug #14803, not in any released version of Tor.
src/or/rendservice.c