Date: Fri, 23 Sep 2022 18:32:22 +0200 (CEST) Message-Id: <202209231632.28NGWMP7019849@...2054...> From: Gert Doering In-Reply-To: <20220917125811.13549-1-a@...2181...> References: <20220917125811.13549-1-a@...2181...> Subject: [Openvpn-devel] [PATCH applied] Re: solaris/open_tun: prevent crash when dev is empty string List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Antonio Quartulli Cc: openvpn-devel@lists.sourceforge.net Acked-by: Gert Doering I'm not sure how "dev" can ever be an empty string here, but if it can be one, we shouldn't crash :-) - subjected to t_client tests on OpenIndiana 2019 that excercise --dev tun/tap and --dev tun3/tap3 Trying around a bit, I came up with "openvpn --dev '' --dev-type tun" which would indeed end up there with an empty *dev, leading to *ptr pointing to random garbage (no crash here, but that's more luck in stack layout I'd say). With the bugfix, I get 2022-09-23 18:31:28 dev=8043451, ptr=8043451, *dev='00', *dev='', *ptr='' .. better. Your patch has been applied to the master branch. commit cec4353b60bc74a2d8d78ca6b8b6f9fae02e92eb Author: Antonio Quartulli Date: Sat Sep 17 14:58:11 2022 +0200 solaris/open_tun: prevent crash when dev is empty string Signed-off-by: Antonio Quartulli Acked-by: Gert Doering Message-Id: <20220917125811.13549-1-a@...2181...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25235.html Signed-off-by: Gert Doering -- kind regards, Gert Doering