From 82bee8d5c38b7773eb8e1531142aaeb595cb118c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20B=C3=BChler?= Date: Fri, 25 Mar 2016 16:58:14 +0000 Subject: [PATCH] [base64] fix another crash due to broken force_assert conditions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit From: Stefan Bühler git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3119 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/base64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base64.c b/src/base64.c index 4ed0c03f..35e6a70d 100644 --- a/src/base64.c +++ b/src/base64.c @@ -142,8 +142,8 @@ size_t li_to_base64_no_padding(char* out, size_t out_length, const unsigned char } /* check overflows */ - force_assert(full_tuples < 2*full_tuples); - force_assert(full_tuples < 4*full_tuples); + force_assert(full_tuples <= 2*full_tuples); + force_assert(full_tuples <= 4*full_tuples); force_assert(4*full_tuples <= 4*full_tuples + out_tuple_remainder); force_assert(require_space <= out_length); -- 2.11.4.GIT