• Show log

    Commit

  • Hash : 54c70ed5
    Author : Nick Wellnhofer
    Date : 2023-12-18T19:31:29

    parser: Improve error handling
    
    Introduce xmlCtxtSetErrorHandler allowing to set a structured error for
    a parser context. There already was the "serror" SAX handler but this
    always receives the parser context as argument.
    
    Start to use xmlRaiseMemoryError.
    
    Remove useless arguments from memory error functions. Rename
    xmlErrMemory to xmlCtxtErrMemory.
    
    Remove a few calls to xmlGenericError.
    
    Remove support for runtime entity debugging.
    

  • README

  • libFuzzer instructions for libxml2
    ==================================
    
    Set compiler and options:
    
        export CC=clang
        export CFLAGS="-g -fsanitize=fuzzer-no-link,address,undefined \
            -fno-sanitize-recover=all \
            -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
    
    Build libxml2 with instrumentation:
    
        ./configure --without-python
        make
    
    Run fuzzers:
    
        make -C fuzz fuzz-xml