]> jfr.im git - irc/DALnet/bahamut.git/commitdiff
Increase the umode buffer on register_user() to prevent a possible buffer overflow
authorKobi Shmueli <redacted>
Mon, 22 Oct 2018 04:06:32 +0000 (07:06 +0300)
committerKobi Shmueli <redacted>
Wed, 24 Oct 2018 05:07:00 +0000 (08:07 +0300)
src/s_user.c

index 5c40dc6a8f821f0cf8fcc89ff524e5d993e3b992..026fd9d96faa48faf0097b70b833b0969bec4608 100644 (file)
@@ -475,7 +475,7 @@ register_user(aClient *cptr, aClient *sptr, char *nick, char *username,
 {
     aAllow  *pwaconf = NULL;
     char       *parv[3];
-    static char ubuf[12];
+    static char ubuf[54];
     char       *p;
     anUser     *user = sptr->user;
     struct userBan    *ban;