From 487bdf6959ca943c173068f36b03598df75081b3 Mon Sep 17 00:00:00 2001 From: FeepingCreature Date: Sat, 20 Jan 2024 18:52:12 +0100 Subject: [PATCH] Fix struct stat size to avoid stack corruption. --- src/c/sys/stat.nt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/c/sys/stat.nt b/src/c/sys/stat.nt index 73d9669..42f2fad 100644 --- a/src/c/sys/stat.nt +++ b/src/c/sys/stat.nt @@ -19,6 +19,9 @@ struct stat_struct { timespec st_atim; timespec st_mtim; timespec st_ctim; + size_t __glibc_reserved1; + size_t __glibc_reserved2; + size_t __glibc_reserved3; } alias S_IFREG = 0x8000;