• Nick Wellnhofer's avatar
    Fix memory leak in xmlParseEntityDecl error path · bedbef80
    Nick Wellnhofer authored
    When parsing the entity value, it can happen that an external entity
    with an unsupported encoding is loaded and the parser is stopped. This
    would lead to a memory leak.
    
    A custom SAX callback could also stop the parser.
    
    Found with libFuzzer and ASan.
    bedbef80
parser.c 432 KB