commit | 59df7834a2f54aa47010f542ddbace30e501c0a9 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@redhat.com> | Tue Feb 02 10:24:01 2010 +0100 |
committer | Daniel Veillard <veillard@redhat.com> | Tue Feb 02 10:24:01 2010 +0100 |
tree | 2dc3628c582ff8369cd9b0f21a7dd8b5b525f87c | |
parent | e20fb5a72c83cbfc8e4a8aa3943c6be8febadab7 [diff] |
608773 add a missing check in xmlGROW * parser.c: check that the input buffer is non null before dereferencing it
diff --git a/parser.c b/parser.c index a63c668..4d85966 100644 --- a/parser.c +++ b/parser.c
@@ -1864,7 +1864,7 @@ static void xmlGROW (xmlParserCtxtPtr ctxt) { xmlParserInputGrow(ctxt->input, INPUT_CHUNK); - if ((*ctxt->input->cur == 0) && + if ((ctxt->input->cur != NULL) && (*ctxt->input->cur == 0) && (xmlParserInputGrow(ctxt->input, INPUT_CHUNK) <= 0)) xmlPopInput(ctxt); }