Re: [PATCH] rpcrt4: fixed memory leak on error exit (Coverity)
15 Jul
2014
15 Jul
'14
7:13 a.m.
Marcus Meissner <marcus(a)jet.franken.de> wrote:
--- a/dlls/rpcrt4/rpc_transport.c +++ b/dlls/rpcrt4/rpc_transport.c @@ -941,6 +941,7 @@ static size_t rpcrt4_ip_tcp_get_top_of_tower(unsigned char *tower_data, } else { + freeaddrinfo(ai); ERR("unexpected protocol family %d\n", ai->ai_family); return 0; }
This will introduce use after free (by ERR() statement). -- Dmitry.
4171
Age (days ago)
4171
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov