mirror of
git://github.com/lxc/lxc
synced 2025-08-31 06:10:04 +00:00
Fix alloca size in rbd_destroy
Signed-off-by: Laurent Barbe <laurent@ksperis.com>
This commit is contained in:
@@ -1245,7 +1245,7 @@ static int rbd_destroy(struct bdev *orig)
|
||||
if ((pid = fork()) < 0)
|
||||
return -1;
|
||||
if (!pid) {
|
||||
rbdfullname = alloca(strlen(orig->src) - 9);
|
||||
rbdfullname = alloca(strlen(orig->src) - 8);
|
||||
strcpy( rbdfullname, &orig->src[9] );
|
||||
execlp("rbd", "rbd", "rm" , rbdfullname, NULL);
|
||||
exit(1);
|
||||
|
Reference in New Issue
Block a user