From fbf2c846a174a337a428e80d94411faa7fb6333b Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 20 Jul 2005 15:34:33 +0000 Subject: Add a preprocessor safeguard to prevent buffer underrun. svn path=/trunk/; revision=4146 --- pop3.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pop3.c') diff --git a/pop3.c b/pop3.c index 7e40a7d7..9025b314 100644 --- a/pop3.c +++ b/pop3.c @@ -207,6 +207,9 @@ static int pop3_ok (int sock, char *argbuf) else ok = PS_PROTOCOL; +#if POPBUFSIZE > MSGBUFSIZE +#error "POPBUFSIZE must not be larger than MSGBUFSIZE" +#endif if (argbuf != NULL) strcpy(argbuf,bufp); } -- cgit v1.2.3