msxml3: Fix invalid read.
This commit is contained in:
parent
8348c0ebe0
commit
f259ba33bb
|
@ -690,12 +690,13 @@ static void format_error_message_from_id(saxlocator *This, HRESULT hr)
|
||||||
static void update_position(saxlocator *This, BOOL fix_column)
|
static void update_position(saxlocator *This, BOOL fix_column)
|
||||||
{
|
{
|
||||||
const xmlChar *p = This->pParserCtxt->input->cur-1;
|
const xmlChar *p = This->pParserCtxt->input->cur-1;
|
||||||
|
const xmlChar *baseP = This->pParserCtxt->input->base;
|
||||||
|
|
||||||
This->line = xmlSAX2GetLineNumber(This->pParserCtxt);
|
This->line = xmlSAX2GetLineNumber(This->pParserCtxt);
|
||||||
if(fix_column)
|
if(fix_column)
|
||||||
{
|
{
|
||||||
This->column = 1;
|
This->column = 1;
|
||||||
for(; *p!='\n' && *p!='\r' && p>=This->pParserCtxt->input->base; p--)
|
for(;p>=baseP && *p!='\n' && *p!='\r'; p--)
|
||||||
This->column++;
|
This->column++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue