On Fri, 03 Feb 2012 15:13:56 +0100, John LeSueur <john.lesu...@gmail.com> wrote:

I could be wrong, but doesn't:
 (header_line[i+1] != ' ' && header_line[i+1] != '\t')
access an element past the end of the header_line array on the last
iteration of the for loop? shouldn't the for loop go until header_line_len
- 1?


No in this case because header_line_len is the length not including the terminator and estrndup guarantees a null terminated string.

Thanks

--
Gustavo Lopes

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to