blockd: use allocated strings instead of fixed buffers
authorDaniel Golle <daniel@makrotopia.org>
Wed, 12 May 2021 15:29:36 +0000 (16:29 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 15 May 2021 23:28:11 +0000 (00:28 +0100)
commit6d8450e9ffac42fca34df8972c5379821bf65eff
tree0680131b97982ee042d84437f4b0640115272a3a
parentbd7cc8dd12481167d5a3b289c19ca9ccd8effa7c
blockd: use allocated strings instead of fixed buffers

device names can be pretty long when using LVM2, mount targets are
user defined and can potentially also be of PATH_MAX length.
Replace static buffers with dynamically allocated strings to avoid
buffer overflow with too long device names or mount targets.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
blockd.c