From 3e3a164ab33e77a6d7e0a27764362591160c9911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alf-Andr=C3=A9=20Walla?= Date: Sun, 27 Oct 2024 20:42:37 +0100 Subject: [PATCH] Add some missing C functions to filter --- src/sandbox_functions.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/sandbox_functions.cpp b/src/sandbox_functions.cpp index 57f780b..6da140c 100644 --- a/src/sandbox_functions.cpp +++ b/src/sandbox_functions.cpp @@ -20,6 +20,8 @@ static const std::unordered_set exclude_functions{ "_Exit", "_fclose_r", "_fflush_r", + "_findenv_r", + "_findenv", "_fiprintf_r", "_fitoa_word", "_flushlbf", @@ -31,7 +33,9 @@ static const std::unordered_set exclude_functions{ "_fstat_r", "_fstat", "_fwalk_reent", + "_fwalk_sglue", "_fwalk", + "_getenv_r", "_getpid_r", "_getpid", "_i18n_number_rewrite", @@ -61,6 +65,7 @@ static const std::unordered_set exclude_functions{ "_mbtowc_r", "_mid_memalign.isra.0", "_mprec_log10", + "_physics_process", "_pthread_cleanup_pop", "_pthread_cleanup_push", "_putc_r", @@ -81,10 +86,13 @@ static const std::unordered_set exclude_functions{ "_signal_r", "_sprintf_r", "_start", + "_strerror_r", "_strtoul_l.constprop.0", + "_strtoul_l.isra.0", "_strtoul_r", "_svfiprintf_r", "_svfprintf_r", + "_user_strerror", "_vfiprintf_r", "_wcrtomb_r", "_wctomb_r", @@ -162,8 +170,10 @@ static const std::unordered_set exclude_functions{ "chmod", "chown", "chroot", + "classify_object_over_fdes.constprop.0", "classify_object_over_fdes", "cleanup_glue", + "cleanup_stdio", "cleanup", "clear_once_control", "clearenv", @@ -478,6 +488,7 @@ static const std::unordered_set exclude_functions{ "freeaddrinfo", "freeifaddrs", "frexp", + "frexpl", "fs.Dir.openFile", "fs.Dir.openFileZ", "fs.File.read", @@ -557,6 +568,7 @@ static const std::unordered_set exclude_functions{ "gettext", "getuid", "global_state_allocate", + "global_stdio_init.part.0", "gnu_get_libc_release", "gnu_get_libc_version", "group_member", @@ -957,6 +969,7 @@ static const std::unordered_set exclude_functions{ "start.posixCallMainAndExit", "stat", "stat64", + "stdio_exit_handler", "stpcpy", "str_to_mpn.part.0.constprop.0", "strcasecmp_l", @@ -967,8 +980,9 @@ static const std::unordered_set exclude_functions{ "strcpy", "strcspn", "strdup", - "strerror", + "strerror_l", "strerror_r", + "strerror", "strip_whitespace", "strlen", "strncasecmp_l",