From 49064ec67dfe684abb075305ce9433ed801eab68 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 25 Jul 2010 02:37:55 -0400 Subject: [PATCH] Properly handle FMODEs from InspIRCd with more than 25 arguments.. reported by Angel-SL --- src/protocol/inspircd11.c | 2 +- src/protocol/inspircd12.c | 2 +- version.log | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index cd2895f82..799ecb3ac 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -682,7 +682,7 @@ int anope_event_opertype(char *source, int ac, char **av) int anope_event_fmode(char *source, int ac, char **av) { - char *newav[25]; + char *newav[128]; int n, o; Channel *c; diff --git a/src/protocol/inspircd12.c b/src/protocol/inspircd12.c index 03743d2fc..b6a92231a 100644 --- a/src/protocol/inspircd12.c +++ b/src/protocol/inspircd12.c @@ -733,7 +733,7 @@ int anope_event_opertype(char *source, int ac, char **av) int anope_event_fmode(char *source, int ac, char **av) { - char *newav[25]; + char *newav[128]; int n, o; Channel *c; diff --git a/version.log b/version.log index c9db416f3..51d25ca07 100644 --- a/version.log +++ b/version.log @@ -8,9 +8,10 @@ VERSION_MAJOR="1" VERSION_MINOR="8" VERSION_PATCH="4" VERSION_EXTRA="-git" -VERSION_BUILD="3015" +VERSION_BUILD="3016" # $Log$ # Changes since the 1.8.4 Release +#Revision 3016 - Fixed a potential crash from receiving a very long FMODE from InspIRCd #Revision 3015 - Allow clearing of access lists while in XOP mode #Revision 3014 - Increased command buffer size. Insp 2.0 has a bigger appetite it seems.. #Revision 3012 - Removed enc_encrypt_in_place, it is unnecessary and it can easially be used improperly