From: Timo Sirainen Date: Thu, 4 Nov 2010 14:11:15 +0000 (+0000) Subject: istream-base64-encoder: Panic if stat() is tried to be called with exact size. X-Git-Tag: 2.0.7~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=effd6c0d0786b256918312e9e756488361430121;p=thirdparty%2Fdovecot%2Fcore.git istream-base64-encoder: Panic if stat() is tried to be called with exact size. --- diff --git a/src/lib/istream-base64-encoder.c b/src/lib/istream-base64-encoder.c index 3e664ca17b..a4a01b6257 100644 --- a/src/lib/istream-base64-encoder.c +++ b/src/lib/istream-base64-encoder.c @@ -120,6 +120,11 @@ static ssize_t i_stream_base64_encoder_read(struct istream_private *stream) static const struct stat * i_stream_base64_encoder_stat(struct istream_private *stream, bool exact) { + if (exact) { + /* too much trouble to implement until it's actually needed */ + i_panic("istream-base64-encoder: " + "stat() doesn't support getting exact size"); + } return i_stream_stat(stream->parent, exact); }