Fix buffer overflow in introduce_client and burst_TS6
If the client being introduced has more than 10 user modes send_umode() will overflow ubuf
This commit is contained in:
parent
ad4b76b417
commit
9744d53ec9
2 changed files with 2 additions and 2 deletions
|
@ -555,7 +555,7 @@ burst_modes_TS6(struct Client *client_p, struct Channel *chptr,
|
|||
static void
|
||||
burst_TS6(struct Client *client_p)
|
||||
{
|
||||
static char ubuf[12];
|
||||
char ubuf[BUFSIZE];
|
||||
struct Client *target_p;
|
||||
struct Channel *chptr;
|
||||
struct membership *msptr;
|
||||
|
|
|
@ -592,7 +592,7 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char
|
|||
int
|
||||
introduce_client(struct Client *client_p, struct Client *source_p, struct User *user, const char *nick, int use_euid)
|
||||
{
|
||||
static char ubuf[12];
|
||||
char ubuf[BUFSIZE];
|
||||
struct Client *identifyservice_p;
|
||||
char *p;
|
||||
hook_data_umode_changed hdata;
|
||||
|
|
Loading…
Reference in a new issue