From: Michael Wallner Date: Tue, 4 Oct 2016 08:13:35 +0000 (+0200) Subject: fix PHP-73185 X-Git-Tag: RELEASE_2_6_0_RC1~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ec043079e9915d7d1f4cb06eeadb2c7fca195658;p=m6w6%2Fext-http fix PHP-73185 --- 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;