]> sourceware.org Git - lvm2.git/commit
hints: allocate hint only when needed
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 14 Nov 2019 16:57:43 +0000 (17:57 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 14 Nov 2019 17:06:42 +0000 (18:06 +0100)
commitd4d82dbb706da711cad73f045be7932ce1b23407
tree52df7702f720b4ea292f2423a32571e56b595daa
parent70fb31b5d6863248b5adfb2581b706cbb158b30e
hints: allocate hint only when needed

Avoid mem leaking hint on every loop continue and
allocate hint only when it's going to be added into list.

Switch to use 'dm_strncpy()' and validate sizes.
lib/label/hints.c
This page took 0.036698 seconds and 5 git commands to generate.