]> git.feebdaed.xyz Git - 0xmirror/openvpn.git/commit
iservice: fix calculation of converted domains size
authorHeiko Hund <heiko@ist.eigentlich.net>
Wed, 26 Nov 2025 10:34:21 +0000 (11:34 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 26 Nov 2025 10:57:56 +0000 (11:57 +0100)
commitac6c9d65701ed6d41691497846a47cb4e72b2878
treedd5f6cc05048dec97b8ccb6460edf698ace974cd
parent6244e466217a367dd4d858f5e930e3aab415fc42
iservice: fix calculation of converted domains size

To keep track of how much of the buffer is already used, the difference
of the current position and the start of the buffer needs to be
multiplied with the size of a character / glyph to bet the byte count,
with which calculations are done further down below.

Reported-by: Marc Heuse <marc@srlabs.de>
Reported-by: stephan@srlabs.de
Change-Id: I16f9426e57f4802ba038ab51f5b70161464b9428
Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1390
Message-Id: <20251126103427.4085-1-gert@greenie.muc.de>
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpnserv/interactive.c