Attention is currently required from: Arne Schwabe, Selva Nair.

Răzvan Cojocaru has posted comments on this change by Selva Nair. ( 
https://gerrit.openvpn.net/c/openvpn/+/2073?usp=email )

Change subject: Increase the buffer size for alert-message in management 
user-pass query
......................................................................


Patch Set 1: Code-Review-1

(1 comment)

File src/openvpn/manage.c:

https://gerrit.openvpn.net/c/openvpn/+/2073/comment/57844a87_beb7402a?usp=email 
:
PS1, Line 3685:                 if (!buf_printf(&alert_msg, " UN:%s", user64))
`buf_printf()` keeps only partial text on overflow, so a long username sends a 
truncated `UN:` and squeezes `SC:` out.

We might want to either size alert_msg from `strlen(user64)` and `strlen(sc)`, 
or append `UN:` only if it fits, with room left for `SC:`.

But granted, this is probably a corner case and most real-world usage fits 
within 256 characters.



--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2073?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iea14ef08268e6f6309e4bac4acff27958da8b045
Gerrit-Change-Number: 2073
Gerrit-PatchSet: 1
Gerrit-Owner: Selva Nair <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Răzvan Cojocaru <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Selva Nair <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
Gerrit-Comment-Date: Fri, 30 Oct 2026 20:59:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to