aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-07-20 15:34:33 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-07-20 15:34:33 +0000
commitfbf2c846a174a337a428e80d94411faa7fb6333b (patch)
tree2a46184b1ca0f9d66a4f792316424675e4e8aa75 /pop3.c
parent13208ecc1ba2826b9f62e36860493565c1628590 (diff)
downloadfetchmail-fbf2c846a174a337a428e80d94411faa7fb6333b.tar.gz
fetchmail-fbf2c846a174a337a428e80d94411faa7fb6333b.tar.bz2
fetchmail-fbf2c846a174a337a428e80d94411faa7fb6333b.zip
Add a preprocessor safeguard to prevent buffer underrun.
svn path=/trunk/; revision=4146
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c3
1 files changed, 3 insertions, 0 deletions
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);
}