Subject: [Openvpn-devel] [PATCH] tun.c: fix "use after free" error
>
> From: Lev Stipakov
>
> Commit 509c45f has factored out code blocks of open_tun() into separate
> functions and introduced "use after free" bug:
>
> Variable "device_guid&qu
From: Lev Stipakov
Commit 509c45f has factored out code blocks of open_tun()
into separate functions and introduced "use after free" bug:
Variable "device_guid" is allocated inside tun_open_device()
function and used outside of it. Allocation happens with
local gc_arena, which is freed at the