apply fixes to close #63271 and avoid segfaults when the error routine
* parser.c globals.c DOCBparser.c HTMLparser.c error.c:
apply fixes to close #63271 and avoid segfaults when
the error routine gets callbed before xmlInitParser()
get called.
* nanoftp.c error.c: Applied patches from Justin Fletcher
correcting some xmlGenericError misuses.
Daniel
diff --git a/DOCBparser.c b/DOCBparser.c
index 013e819..8001438 100644
--- a/DOCBparser.c
+++ b/DOCBparser.c
@@ -5042,7 +5042,7 @@
ctxt->userData = ctxt;
ctxt->myDoc = NULL;
ctxt->wellFormed = 1;
- ctxt->linenumbers = 1;
+ ctxt->linenumbers = xmlLineNumbersDefaultValue;
ctxt->replaceEntities = xmlSubstituteEntitiesDefaultValue;
ctxt->html = 2;
ctxt->record_info = 0;