fix(native): __getcwd_chk checks its buffer, and seccomp-sim -a takes only call numbers

This commit is contained in:
Kurt Himebauch committed 2026-11-09 13:23:11 -05:00
1 parent 107cefbf46
commit bde8c9fbed
2 files changed
+11 -1

No files matched your search

+2
View File
@@ -596,7 +596,9 @@ char *getcwd(char *buf, size_t size) {
return res;
}
extern void __chk_fail(void) __attribute__((__noreturn__));
char *__getcwd_chk(char *buf, size_t size, size_t buflen) {
if (size > buflen) __chk_fail();
return getcwd(buf, size);
}