mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-16 21:29:59 +01:00
Do not allocate big context on stack for cryptsetup-reencrypt.
This commit is contained in:
@@ -1086,7 +1086,7 @@ static void destroy_context(struct reenc_ctx *rc)
|
|||||||
static int run_reencrypt(const char *device)
|
static int run_reencrypt(const char *device)
|
||||||
{
|
{
|
||||||
int r = -EINVAL;
|
int r = -EINVAL;
|
||||||
struct reenc_ctx rc = {};
|
static struct reenc_ctx rc = {};
|
||||||
|
|
||||||
if (initialize_context(&rc, device))
|
if (initialize_context(&rc, device))
|
||||||
goto out;
|
goto out;
|
||||||
|
|||||||
Reference in New Issue
Block a user