mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
- Makefile.am: added --push regression tests
- parserInternals.c: the XML parser segfaulted in --push mode Daniel
This commit is contained in:
@ -1575,7 +1575,8 @@ xmlSwitchEncoding(xmlParserCtxtPtr ctxt, xmlCharEncoding enc)
|
||||
* Specific handling of the Byte Order Mark for
|
||||
* UTF-8
|
||||
*/
|
||||
if ((ctxt->input->cur[0] == 0xEF) &&
|
||||
if ((ctxt->input != NULL) &&
|
||||
(ctxt->input->cur[0] == 0xEF) &&
|
||||
(ctxt->input->cur[1] == 0xBB) &&
|
||||
(ctxt->input->cur[2] == 0xBF)) {
|
||||
ctxt->input->cur += 3;
|
||||
|
Reference in New Issue
Block a user