From: Michael Wallner Date: Wed, 14 Dec 2005 22:12:48 +0000 (+0000) Subject: - avoid read beyond buffer X-Git-Tag: RELEASE_0_20_0~3 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=b26545d68c023602e80d420e824b8d98d22e2552;p=m6w6%2Fext-http - avoid read beyond buffer --- diff --git a/http_message_api.c b/http_message_api.c index 2a7a1eb..6641f5d 100644 --- a/http_message_api.c +++ b/http_message_api.c @@ -288,7 +288,7 @@ PHP_HTTP_API http_message *_http_message_parse_ex(http_message *msg, const char #endif /* HTTP_HAVE_ZLIB || HAVE_ZLIB */ /* check for following messages */ - if (continue_at) { + if (continue_at && (continue_at < (message + message_length))) { while (isspace(*continue_at)) ++continue_at; if (continue_at < (message + message_length)) { http_message *next = NULL, *most = NULL;