1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
lvm2/lib
Zdenek Kabelac 55fe07ad98 mm: fix leak in fail path
If the dm_realloc would fail, the already allocate _maps_buffer
memory would have been lost (overwritten with NULL).
Fix this by using temporary line buffer.

Also add a minor cleanup to set end of buffer to '\0',
only when we really know the file size fits the preallocated buffer.
2013-05-13 13:13:20 +02:00
..
activate toolcontext: check dm version lazily for udev_fallback setting 2013-05-13 11:53:53 +02:00
cache lvmetad: fix error paths 2013-04-21 23:04:53 +02:00
commands toolcontext: check dm version lazily for udev_fallback setting 2013-05-13 11:53:53 +02:00
config config: fix bitfield for section 2013-05-03 15:42:44 +02:00
datastruct Switch to return void 2012-02-08 12:52:58 +00:00
device cleanup: add some FIXMEs 2013-04-21 23:14:05 +02:00
display thin: fix cut&paste bug 2013-04-21 23:07:00 +02:00
error cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
filters cleanup: improve messages 2013-04-23 12:27:33 +02:00
format1 format1: add workaround for vg_set_fid 2013-04-21 23:53:53 +02:00
format_pool vgread: fix fid transfer for lvm1 and pool format 2013-04-21 23:13:57 +02:00
format_text RAID: Add writemostly/writebehind support for RAID1 2013-04-15 13:59:46 -05:00
freeseg cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
label logging: classify log_debug messages 2013-01-07 22:30:29 +00:00
locking clmvd: fix responce status 2013-04-21 22:54:42 +02:00
log log: reenable abort 2013-04-02 15:16:04 +02:00
metadata lv: fix typedef 2013-05-03 16:02:43 +02:00
mirror config: refer to config nodes using assigned IDs 2013-03-06 10:14:33 +01:00
misc cleanup: explicit check for nonnull pointer 2013-04-21 23:14:05 +02:00
mm mm: fix leak in fail path 2013-05-13 13:13:20 +02:00
raid RAID: Add writemostly/writebehind support for RAID1 2013-04-15 13:59:46 -05:00
replicator cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
report cleanup: shift line down 2013-05-03 15:44:15 +02:00
snapshot config: refer to config nodes using assigned IDs 2013-03-06 10:14:33 +01:00
striped Add activation/use_linear_target enabled by default. (prajnoha) 2011-11-28 20:37:51 +00:00
thin config: refer to config nodes using assigned IDs 2013-03-06 10:14:33 +01:00
unknown cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
uuid Revert the #include changes. Need to fix this at the #include site for now, and 2011-07-18 14:34:33 +00:00
zero cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
Makefile.in cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00