On Mon, 16 Jun 2003, Steven Edwards wrote:

: Does this need to be changed or is there something else wrong with this
: patch?

: -    return (ptr >= parser->end || *ptr == CONTROL_Z || *ptr == '\n');
: +    return (ptr >= parser->end || *ptr == CONTROL_Z || *ptr == '\n' ||
: (*ptr == '\r'&& *(ptr + 1) == '\n'));

Could overrun the buffer by looking one char too far if the last character
of the file is '\r'.

-- 
-- Todd Vierling <[EMAIL PROTECTED]>

Reply via email to