Mercurial > dovecot > core-2.2
changeset 12382:af252c044393
istream-base64-encoder: Panic if stat() is tried to be called with exact size.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 04 Nov 2010 14:11:15 +0000 |
parents | 29c71b6e354e |
children | e57054f88e66 |
files | src/lib/istream-base64-encoder.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/istream-base64-encoder.c Thu Nov 04 14:07:30 2010 +0000 +++ b/src/lib/istream-base64-encoder.c Thu Nov 04 14:11:15 2010 +0000 @@ -120,6 +120,11 @@ 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); }