Skip to content

Commit

Permalink
Add some missing C functions to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Oct 27, 2024
1 parent 571d334 commit 3e3a164
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/sandbox_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ static const std::unordered_set<std::string_view> exclude_functions{
"_Exit",
"_fclose_r",
"_fflush_r",
"_findenv_r",
"_findenv",
"_fiprintf_r",
"_fitoa_word",
"_flushlbf",
Expand All @@ -31,7 +33,9 @@ static const std::unordered_set<std::string_view> exclude_functions{
"_fstat_r",
"_fstat",
"_fwalk_reent",
"_fwalk_sglue",
"_fwalk",
"_getenv_r",
"_getpid_r",
"_getpid",
"_i18n_number_rewrite",
Expand Down Expand Up @@ -61,6 +65,7 @@ static const std::unordered_set<std::string_view> exclude_functions{
"_mbtowc_r",
"_mid_memalign.isra.0",
"_mprec_log10",
"_physics_process",
"_pthread_cleanup_pop",
"_pthread_cleanup_push",
"_putc_r",
Expand All @@ -81,10 +86,13 @@ static const std::unordered_set<std::string_view> 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",
Expand Down Expand Up @@ -162,8 +170,10 @@ static const std::unordered_set<std::string_view> exclude_functions{
"chmod",
"chown",
"chroot",
"classify_object_over_fdes.constprop.0",
"classify_object_over_fdes",
"cleanup_glue",
"cleanup_stdio",
"cleanup",
"clear_once_control",
"clearenv",
Expand Down Expand Up @@ -478,6 +488,7 @@ static const std::unordered_set<std::string_view> exclude_functions{
"freeaddrinfo",
"freeifaddrs",
"frexp",
"frexpl",
"fs.Dir.openFile",
"fs.Dir.openFileZ",
"fs.File.read",
Expand Down Expand Up @@ -557,6 +568,7 @@ static const std::unordered_set<std::string_view> exclude_functions{
"gettext",
"getuid",
"global_state_allocate",
"global_stdio_init.part.0",
"gnu_get_libc_release",
"gnu_get_libc_version",
"group_member",
Expand Down Expand Up @@ -957,6 +969,7 @@ static const std::unordered_set<std::string_view> exclude_functions{
"start.posixCallMainAndExit",
"stat",
"stat64",
"stdio_exit_handler",
"stpcpy",
"str_to_mpn.part.0.constprop.0",
"strcasecmp_l",
Expand All @@ -967,8 +980,9 @@ static const std::unordered_set<std::string_view> exclude_functions{
"strcpy",
"strcspn",
"strdup",
"strerror",
"strerror_l",
"strerror_r",
"strerror",
"strip_whitespace",
"strlen",
"strncasecmp_l",
Expand Down

0 comments on commit 3e3a164

Please sign in to comment.