diff options
| author | Matthias Andree <matthias.andree@gmx.de> | 2005-07-20 15:34:33 +0000 |
|---|---|---|
| committer | Matthias Andree <matthias.andree@gmx.de> | 2005-07-20 15:34:33 +0000 |
| commit | fbf2c846a174a337a428e80d94411faa7fb6333b (patch) | |
| tree | 2a46184b1ca0f9d66a4f792316424675e4e8aa75 | |
| parent | 13208ecc1ba2826b9f62e36860493565c1628590 (diff) | |
| download | fetchmail-fbf2c846a174a337a428e80d94411faa7fb6333b.tar.gz fetchmail-fbf2c846a174a337a428e80d94411faa7fb6333b.tar.bz2 fetchmail-fbf2c846a174a337a428e80d94411faa7fb6333b.zip | |
Add a preprocessor safeguard to prevent buffer underrun.
svn path=/trunk/; revision=4146
| -rw-r--r-- | pop3.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |
