From 9eb54353a1bbe05f5a067f7249f25abe3b8eff7a Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 31 May 2026 21:25:34 -0300 Subject: [PATCH] stat: fix use of unitialized memory --- kernel-src/sys/syscalls/stat.c | 2 +- recipes/astral | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel-src/sys/syscalls/stat.c b/kernel-src/sys/syscalls/stat.c index 26d5df44..50ac358d 100644 --- a/kernel-src/sys/syscalls/stat.c +++ b/kernel-src/sys/syscalls/stat.c @@ -77,13 +77,13 @@ syscallret_t syscall_fstatat(context_t *ctx, int dirfd, char *upath, stat_t *ust return ret; } + vnode_t *node = NULL; vnode_t *dirnode = NULL; file_t *file = NULL; ret.errno = dirfd_enter(path, dirfd, &file, &dirnode); if (ret.errno) goto cleanup; - vnode_t *node = NULL; ret.errno = vfs_lookup(&node, dirnode, path, NULL, flags & AT_SYMLINK_NOFOLLOW ? VFS_LOOKUP_NOLINK : 0); if (ret.errno) goto cleanup; diff --git a/recipes/astral b/recipes/astral index bc71c3f3..8e5392f0 100644 --- a/recipes/astral +++ b/recipes/astral @@ -1,5 +1,5 @@ name=astral -revision=14 +revision=15 from_source=astral imagedeps="build-essential nasm" hostdeps="xgcc xbinutils limine"