mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-21 09:46:59 +02:00
lbutils: don't use stack memory for path strings
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -195,7 +195,11 @@ env_tmpdir(int bypass_all_sticky_checks, char **tmpdir,
|
||||
bypass_all_sticky_checks))
|
||||
goto err;
|
||||
|
||||
rval = t;
|
||||
rval = NULL;
|
||||
if (t != NULL) {
|
||||
if (sdup(t, PATH_MAX, &rval) == NULL)
|
||||
goto err;
|
||||
}
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user