aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/file.c b/file.c
index bc5071ed8d..99435829c9 100644
--- a/file.c
+++ b/file.c
@@ -3173,6 +3173,9 @@ realpath_internal(VALUE path, int strict)
volatile VALUE unresolved_path;
char *unresolved_names;
VALUE loopcheck;
+
+ rb_secure(2);
+
FilePathValue(path);
unresolved_path = rb_str_dup_frozen(path);
unresolved_names = skiproot(RSTRING_PTR(unresolved_path));