Date: Sun, 23 Nov 2025 14:28:16 +0100 (CET) Message-Id: <202511231328.5ANDSGDg083825@...2054...> From: Gert Doering In-Reply-To: <20251123115851.19555-1-gert@...1296...> References: <20251123115851.19555-1-gert@...1296...> Subject: [Openvpn-devel] [PATCH applied] Re: iservice: make sure registry string is terminated 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 Trivial enough. Not sure we really *need* this - the documentation for RegGetValueW() states If the data is a string, the function checks for a terminating null character. If one is not found, the string is stored with a null terminator if the buffer is large enough to accommodate the extra character. Otherwise, the function fails and returns ERROR_MORE_DATA. which reads to me like "either we get 'err' or it is always null terminated", so the "if (!err)" part would catch this anyway. I have no way to actually test this beyond "does it compile" - which it does. Your patch has been applied to the master branch. commit a1c41b0acb6905506ad35e339396206653fee5cc Author: Heiko Hund Date: Sun Nov 23 12:58:46 2025 +0100 iservice: make sure registry string is terminated Signed-off-by: Heiko Hund Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1392 Message-Id: <20251123115851.19555-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34610.html Signed-off-by: Gert Doering -- kind regards, Gert Doering