1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-25 01:34:38 +03:00
lvm2/libdm
Zdenek Kabelac 108cfe0b0b Check target type name for DM_MAX_TYPE_NAME length
Avoid creation of target type name when it's longer then
DM_MAX_TYPE_NAME (noticed by static analyzer where the
sp.target_type might be missing '\0' at the end.)

Before patch:

$> dmsetup create long
0 1000 looooooooooooooooooooooooooong
^D
device-mapper: reload ioctl failed: Invalid argument

After patch:

$> dmsetup create xxx
0 1000 looooooooooooooooooooooooooong
Target type name looooooooooooooooooooooooooong is too long.
Command failed
2011-11-18 19:34:02 +00:00
..
datastruct Use void pointer instead of char for binary key 2011-03-10 12:48:40 +00:00
ioctl Check target type name for DM_MAX_TYPE_NAME length 2011-11-18 19:34:02 +00:00
misc cmirrord now returns log name to kernel in CTR so it can be registered 2011-10-14 14:18:49 +00:00
mm Improve valgrind support when compiled with DEBUG_MEM 2011-10-28 20:37:31 +00:00
regex Fix some unmatching sign comparation gcc warnings 2011-04-08 14:40:18 +00:00
.exported_symbols Generate liblvm2app and libdevmapper exported symbols from header files. 2010-06-25 18:17:38 +00:00
libdevmapper.h Thin remove unused define 2011-11-12 22:44:10 +00:00
libdevmapper.pc.in Switch to use Requires.private for devmapper.pc and lvm2app.pc 2010-05-11 08:54:11 +00:00
libdm-common.c Check target type name for DM_MAX_TYPE_NAME length 2011-11-18 19:34:02 +00:00
libdm-common.h Move udev_only logic inside stacked node op code. 2011-06-27 21:43:58 +00:00
libdm-config.c Fix core on buggy config file 2011-10-28 20:07:38 +00:00
libdm-deptree.c Thin remove unused define 2011-11-12 22:44:10 +00:00
libdm-file.c Add dm_device_has_holders fn to to check use of the device by another device. 2011-09-22 17:23:35 +00:00
libdm-report.c Remove meaningless const type qualifiers on cast type 2011-08-04 14:30:51 +00:00
libdm-string.c Fix memory overwrite 2011-09-14 16:07:07 +00:00
Makefile.in Move the core of the lib/config/config.c functionality into libdevmapper, 2011-08-30 14:55:15 +00:00