From ec043079e9915d7d1f4cb06eeadb2c7fca195658 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 4 Oct 2016 10:13:35 +0200 Subject: [PATCH] fix PHP-73185 --- src/php_http_url.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/php_http_url.c b/src/php_http_url.c index 8384f99..474a7bf 100644 --- a/src/php_http_url.c +++ b/src/php_http_url.c @@ -836,7 +836,7 @@ static ZEND_RESULT_CODE parse_userinfo(struct parse_state *state, const char *pt break; } - } while(++ptr != end); + } while(++ptr < end); state->buffer[state->offset++] = 0; @@ -1231,7 +1231,7 @@ static ZEND_RESULT_CODE parse_hostinfo(struct parse_state *state, const char *pt label = ptr; ptr += mb - 1; } - } while (++ptr != end); + } while (++ptr < end); if (!state->url.host) { len = state->offset - len; @@ -1612,7 +1612,7 @@ static const char *parse_scheme(struct parse_state *state) } state->ptr += mb - 1; } - } while (++state->ptr != state->end); + } while (++state->ptr < state->end); softfail: state->offset = 0; -- 2.30.2