]> Pileus Git - ~andy/fetchmail/commitdiff
Add a preprocessor safeguard to prevent buffer underrun.
authorMatthias Andree <matthias.andree@gmx.de>
Wed, 20 Jul 2005 15:34:33 +0000 (15:34 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Wed, 20 Jul 2005 15:34:33 +0000 (15:34 -0000)
svn path=/trunk/; revision=4146

pop3.c

diff --git a/pop3.c b/pop3.c
index 7e40a7d78fd46af3a083bb0073eeded235314b8d..9025b314008a26b8771cb6754b23bf760cee6995 100644 (file)
--- 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);
     }