[PATCH applied] Re: dhcp: Fix off-by-one in write_dhcp_search_str() temp buffer guard

Gert Doering <[email protected]>
Newsgroups gmane.network.openvpn.devel
Message-ID <[email protected]>
Thanks to both patch author and independent discoverer :-) - both
credits have been recorded, and I think I even got the UTF8 bits right.

Your patch has been applied to the master, release/2.7 and release/2.6
branches.

Release/2.6 has the same code, but it's still in tun.c, and there is
no unit test.  So I have backported the fix + comment only, keeping
your commit message.

commit 1ece6fe6fd586501b486aac6932d424c167a3adb (master)
commit cc2032f3e2e3a930aed657653fb7a771a9b43b1d (release/2.7)
commit cedf9bc20f1af01c544489e62da6ff2c7ca82488 (release/2.6)
Author: Nexory
Date:   Mon Aug 31 10:34:40 2026 +0200

     dhcp: Fix off-by-one in write_dhcp_search_str() temp buffer guard

     Signed-off-by: Nexory <[email protected]>
     Acked-by: Gert Doering <[email protected]>
     Acked-by: Razvan Cojocaru <[email protected]>
     Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1884
     Message-Id: <[email protected]>
     Signed-off-by: Gert Doering <[email protected]>


--
kind regards,

Gert Doering
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.