forked from pool/atheme
This commit is contained in:
parent
165e16478b
commit
a97202143b
17
atheme-2.0.0_static_buffer_overflow.patch
Normal file
17
atheme-2.0.0_static_buffer_overflow.patch
Normal file
@ -0,0 +1,17 @@
|
||||
Index: src/account.c
|
||||
===================================================================
|
||||
--- src/account.c (revision 7260)
|
||||
+++ src/account.c (revision 7261)
|
||||
@@ -372,9 +372,9 @@
|
||||
if (!use_myuser_access)
|
||||
return FALSE;
|
||||
|
||||
- snprintf(buf, BUFSIZE, "%s@%s", u->user, u->vhost);
|
||||
- snprintf(buf2, BUFSIZE, "%s@%s", u->user, u->host);
|
||||
- snprintf(buf3, BUFSIZE, "%s@%s", u->user, u->ip);
|
||||
+ snprintf(buf, sizeof buf, "%s@%s", u->user, u->vhost);
|
||||
+ snprintf(buf2, sizeof buf2, "%s@%s", u->user, u->host);
|
||||
+ snprintf(buf3, sizeof buf3, "%s@%s", u->user, u->ip);
|
||||
|
||||
LIST_FOREACH(n, mu->access_list.head)
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user