From b26545d68c023602e80d420e824b8d98d22e2552 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 14 Dec 2005 22:12:48 +0000 Subject: [PATCH] - avoid read beyond buffer --- http_message_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2