]> Pileus Git - ~andy/fetchmail/commit
Fix crash: Handle invalid base64 in NTLM challenge.
authorMatthias Andree <matthias.andree@gmx.de>
Mon, 13 Aug 2012 18:48:12 +0000 (20:48 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Mon, 13 Aug 2012 19:00:21 +0000 (21:00 +0200)
commit3fbc7cd331602c76f882d1b507cd05c1d824ba8b
treee153acf66d6583d9bf108dbf5b946283f244550f
parent0780b0e7a19dc8058cfc93e41f27a9965434b085
Fix crash: Handle invalid base64 in NTLM challenge.

Some servers, for instance the MS Exchange servers deployed by the
US-American National Aeronautics and Space Administration (NASA),
aborted the NTLM protocol exchange after receiving the initial request.

Fetchmail did not detect that there was an error message, rather than
NTLM protocol exchange, and caught a segmentation fault while reading
from a bad location.

Detect base64 decoding errors, and return PS_AUTHFAIL in this case.

Reported by J[ames] Porter Clark.
ntlmsubr.c