diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2026-05-02 16:13:52 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2026-05-13 17:37:48 +0900 |
| commit | ded98a40dc1bde5bfc3d582da9b40172fa66b61b (patch) | |
| tree | 75f4a8bf9f419469dfecf8295c4a8ce0d4ae629c /pathname.c | |
| parent | b0b7a943e84e6bede60ebaec74c838ccb3cb6b7f (diff) | |
pathname: Check for path encoding and NUL terminators
Diffstat (limited to 'pathname.c')
| -rw-r--r-- | pathname.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pathname.c b/pathname.c index 5f12d13767..28e25512a1 100644 --- a/pathname.c +++ b/pathname.c @@ -11,6 +11,7 @@ get_strpath(VALUE obj) strpath = rb_ivar_get(obj, id_at_path); if (!RB_TYPE_P(strpath, T_STRING)) rb_raise(rb_eTypeError, "unexpected @path"); + rb_get_path_check_no_convert(strpath); return strpath; } |
