From: Michael Poole Date: Fri, 7 Apr 2006 00:56:38 +0000 (+0000) Subject: Fix a +o mode parsing error. X-Git-Tag: v1.4.0-rc1~144 X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=138fe497d304b8802c189f9355d787483656db61 Fix a +o mode parsing error. src/proto-p10.c (mod_chanmode_parse): Check that the input argument after +o is a valid one. git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-12 --- diff --git a/ChangeLog b/ChangeLog index 9f4add7..4154aa2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,20 @@ # arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3 # +2006-04-07 00:56:38 GMT Michael Poole patch-12 + + Summary: + Fix a +o mode parsing error. + Revision: + srvx--devo--1.3--patch-12 + + src/proto-p10.c (mod_chanmode_parse): Check that the input argument after + +o is a valid one. + + modified files: + ChangeLog src/proto-p10.c + + 2006-04-06 02:19:47 GMT Michael Poole patch-11 Summary: diff --git a/src/proto-p10.c b/src/proto-p10.c index a5d61e4..595bd14 100644 --- a/src/proto-p10.c +++ b/src/proto-p10.c @@ -2274,6 +2274,8 @@ mod_chanmode_parse(struct chanNode *channel, char **modes, unsigned int argc, un char *oplevel_str; int oplevel; + if (in_arg >= argc) + goto error; oplevel_str = strchr(modes[in_arg], ':'); if (oplevel_str) {