1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/format1
Zdenek Kabelac 844b75f4d6 Fix allocation of system_id
As code uses strncpy(system_id, NAME_LEN) and doesn't set '\0'
Fix it by always allocating NAME_LEN + 1 buffer size and with zalloc
we always get '\0' as the last byte.

This bug may trigger some unexpected behavior of the string operation
code - depends on the pool allocator.

FIXME: refactor this code to alloc_vg.
2011-03-13 23:05:48 +00:00
..
.exported_symbols .export.sym generation 2004-03-26 14:51:23 +00:00
disk-rep.c Fallback to full rescan for missing device 2010-12-01 10:33:55 +00:00
disk-rep.h Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
format1.c Use format instance mempool where possible and adequate. 2011-03-11 15:10:16 +00:00
format1.h split orphan VG by format type 2008-02-06 15:47:28 +00:00
import-export.c Fix allocation of system_id 2011-03-13 23:05:48 +00:00
import-extents.c Fix pvmove allocation to take existing parallel stripes into account. 2010-04-08 00:28:57 +00:00
layout.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvm1-label.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvm1-label.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
Makefile.in Install plugins to subdirs 2010-05-06 10:07:46 +00:00
vg_number.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00