Re: [Openvpn-devel] [PATCH] tun.c: fix "use after free" error

2020-03-12 Thread Simon Rozman
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

[Openvpn-devel] [PATCH] tun.c: fix "use after free" error

2020-03-12 Thread Lev Stipakov
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