From 4fc4946f3c257bb5228df0a8393316b1119c6712 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 24 Mar 2026 22:21:22 +0000 Subject: util/nvmutil: fix name size in fs_resolve_at it's capped at 256 bytes we need it configurable and in sync with other limits in the code. Signed-off-by: Leah Rowe --- util/libreboot-utils/lib/file.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/libreboot-utils/lib/file.c b/util/libreboot-utils/lib/file.c index c9ec8f61..4a12cca7 100644 --- a/util/libreboot-utils/lib/file.c +++ b/util/libreboot-utils/lib/file.c @@ -787,7 +787,12 @@ fs_resolve_at(int dirfd, const char *path, int flags) int nextfd = -1; int curfd; const char *p; - char name[256]; +#if defined(PATH_LEN) && \ + ((PATH_LEN) >= 256) + char name[PATH_LEN]; +#else + char name[4096]; +#endif int saved_errno = errno; int r; int is_last; -- cgit v1.2.1