diff options
author | Not Zed <NotZed@Ximian.com> | 2001-07-05 11:59:45 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-07-05 11:59:45 +0800 |
commit | 0f51f730ac4caa7259e3b6fd70374b63baa3ecc1 (patch) | |
tree | aa782c22a3ec60c5322123b4581f008125cf90c2 /camel/camel-mime-filter-basic.c | |
parent | bf20209bbbbab216918ff84d435a8e98e22c0601 (diff) | |
download | gsoc2013-evolution-0f51f730ac4caa7259e3b6fd70374b63baa3ecc1.tar.gz gsoc2013-evolution-0f51f730ac4caa7259e3b6fd70374b63baa3ecc1.tar.zst gsoc2013-evolution-0f51f730ac4caa7259e3b6fd70374b63baa3ecc1.zip |
Fix the assertion slightly, if we have a little bit of input the output
2001-07-05 Not Zed <NotZed@Ximian.com>
* camel-mime-filter-basic.c (filter): Fix the assertion slightly,
if we have a little bit of input the output size could be larger,
since we store upto 3 chars in the state.
svn path=/trunk/; revision=10786
Diffstat (limited to 'camel/camel-mime-filter-basic.c')
-rw-r--r-- | camel/camel-mime-filter-basic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-mime-filter-basic.c b/camel/camel-mime-filter-basic.c index be38933683..056110695c 100644 --- a/camel/camel-mime-filter-basic.c +++ b/camel/camel-mime-filter-basic.c @@ -158,9 +158,9 @@ filter(CamelMimeFilter *mf, char *in, size_t len, size_t prespace, char **out, s break; case CAMEL_MIME_FILTER_BASIC_BASE64_DEC: /* output can't possibly exceed the input size */ - camel_mime_filter_set_size(mf, len, FALSE); + camel_mime_filter_set_size(mf, len+3, FALSE); newlen = base64_decode_step(in, len, mf->outbuf, &f->state, &f->save); - g_assert(newlen <= len); + g_assert(newlen <= len+3); break; case CAMEL_MIME_FILTER_BASIC_QP_DEC: /* output can't possibly exceed the input size */ |