]> sourceware.org Git - lvm2.git/commit
libdm-stats: backtrace if fclose fails (Coverity)
authorBryn M. Reeves <bmr@redhat.com>
Mon, 10 Aug 2015 18:23:41 +0000 (19:23 +0100)
committerBryn M. Reeves <bmr@redhat.com>
Mon, 10 Aug 2015 19:26:07 +0000 (20:26 +0100)
commitf072a7632655d0541b56858d5fbe172fa6075e68
tree7d017497a803c7db603cbd4f88fda39a80082a5d
parent856f9cced83078a90ca2291eff0758d42775f195
libdm-stats: backtrace if fclose fails (Coverity)

Since libdm-stats only uses fmemopen'd FILE objects the only way
that a close can fail is corruption of the memory containing the
FILE: check for this case and emit a backtrace if it occurs.

libdm/libdm-stats.c: 338 in _stats_parse_list()
libdm/libdm-stats.c: 341 in _stats_parse_list()
libdm/libdm-stats.c: 481 in _stats_parse_region()
libdm/libdm-stats.c: 487 in _stats_parse_region()
libdm/libdm-stats.c: 487 in _stats_parse_region()
 - Calling "fclose" without checking return value
libdm/libdm-stats.c
This page took 0.035526 seconds and 5 git commands to generate.