tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 3d80c086bea3b0d93327c30ac620740b629cb294
parent b39c50cde8b1d7e3e27d5a6fc2e58ff208982637
Author: Alexander Færøy <ahf@torproject.org>
Date:   Sat, 23 Jun 2018 11:54:36 +0200

Fix memory leak in decode_link_specifiers().

This patch fixes a memory leak in decode_link_specifiers() where the
hs_spec variable might leak if the default label is taken in the
switch/case expression.

See: Coverity CID 1437437.

Diffstat:
Msrc/or/hs_descriptor.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/or/hs_descriptor.c b/src/or/hs_descriptor.c @@ -864,6 +864,7 @@ decode_link_specifiers(const char *encoded) sizeof(hs_spec->u.legacy_id)); break; default: + tor_free(hs_spec); goto err; }