shithub: npe

Download patch

ref: 262246a2bb9c9c820fc6ff1b9b9980d4e7573347
parent: 132961ec4787e48cd1ef08814211fab981f988c4
author: Noam Preil <noam@pixelhero.dev>
date: Fri Dec 12 05:08:40 EST 2025

zero out unknown fields in npe_stat

--- a/libnpe/stat.c
+++ b/libnpe/stat.c
@@ -13,6 +13,7 @@
 		return -1;
 	}
 
+	memset(buf, 0, sizeof(*buf));
 	buf->st_size = d->length;
 	buf->st_mtime = d->mtime;
 	buf->st_atime = d->atime;
--