Date: Thu, 30 Oct 2025 22:14:23 +0100 (CET) Message-Id: <202510302114.59ULENN8026695@...2054...> From: Gert Doering In-Reply-To: <20251030194736.2151-1-gert@...1296...> References: <20251030194736.2151-1-gert@...1296...> Subject: [Openvpn-devel] [PATCH applied] Re: iservice: check return value of MultiByteToWideChar List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Heiko Hund Cc: openvpn-devel@lists.sourceforge.net Not sure if MultiByteToWideChar() could ever fail here (UTF8 decoding errors are only reported if MB_ERR_INVALID_CHARS is passed in), but then, checking for an error here will ensure that we can't crash further down. So, good practice. I have verified that all callers of utf8to16_size() and utf8to16() can handle NULL returns fine, so this is safe. Your patch has been applied to the master and release/2.6 branch (bugfix, with some shoehorning). commit fdd4072541ba52e297c19672d3b1e7021d14bc91 (master) commit 5b5fdb05d969abc0be7a701c752821299cb98d5e (release/2.6) Author: Heiko Hund Date: Thu Oct 30 20:47:31 2025 +0100 iservice: check return value of MultiByteToWideChar Signed-off-by: Heiko Hund Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1306 Message-Id: <20251030194736.2151-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34071.html Signed-off-by: Gert Doering -- kind regards, Gert Doering