1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 11:55:55 +03:00
lvm2/libdm/ioctl
Zdenek Kabelac e134ce7c3c Fix reading byte from char params[-1] position
When the ->params string is empty - memory access is made on the byte
before allocated buffer (catched by valgrind) - in the case it would
constain 0x20 - it would even overwrite this buffer.
So fix by checking len > 0 before doing such access.
Also slightly optimise this loop from repeated strlen call.
2011-03-08 22:43:19 +00:00
..
libdm-compat.h further progress 2008-11-01 02:19:19 +00:00
libdm-iface.c Fix reading byte from char params[-1] position 2011-03-08 22:43:19 +00:00
libdm-targets.h Add --addnodeonresume, --addnodeoncreate 2011-02-04 19:33:53 +00:00