• Show log

    Commit

  • Hash : f19a9510
    Author : Nick Wellnhofer
    Date : 2023-12-10T17:50:22

    parser: Report malloc failures
    
    Fix many places where malloc failures aren't reported.
    
    Make xmlErrMemory public. This is useful for custom external entity
    loaders.
    
    Introduce new API function xmlSwitchEncodingName.
    
    Change the way how we store whether the the parser is stopped. This used
    to be signaled by setting ctxt->instate to XML_PARSER_EOF which was
    misdesigned and error-prone. Set ctxt->disableSAX to 2 instead and
    introduce a macro PARSER_STOPPED. Also stop to remove parser inputs in
    xmlHaltParser. This allows to remove many checks of ctxt->instate.
    
    Introduce xmlErrParser to handle errors if a parser context is
    available.