diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-08-24 23:10:13 +0100 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2014-10-06 11:53:39 +0800 |
commit | 21699937b0db0da004401c9571ef10203ec134b2 (patch) | |
tree | bed56d6118d1e0ff0e26a202b1db6a48f4871859 /xmlreader.c | |
parent | 98d71f9191ac83959d24ad7b01b211ef7bb3172e (diff) | |
download | libxml2-21699937b0db0da004401c9571ef10203ec134b2.tar.gz |
xmlIO: Handle error returns from dup()
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
Diffstat (limited to 'xmlreader.c')
0 files changed, 0 insertions, 0 deletions