Skip to content
  • Philip Withnall's avatar
    xmlIO: Handle error returns from dup() · 21699937
    Philip Withnall authored and Daniel Veillard's avatar Daniel Veillard committed
    If dup() fails and returns -1, gzdopen() will transparently return NULL,
    but then close() will fail after being called on an invalid FD. Change
    the code to only call close() on valid FDs.
    
    Coverity issue: #72382
    21699937