From 9f6eb714dc2e9a93d9be8201a8159878e0d822c4 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Wed, 20 Mar 2024 17:13:35 -0300 Subject: [PATCH] Verify 'path' is a Ruby string --- ext/hbsdctl.rb/glue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/hbsdctl.rb/glue.c b/ext/hbsdctl.rb/glue.c index 7a367b3..b5ebc4c 100644 --- a/ext/hbsdctl.rb/glue.c +++ b/ext/hbsdctl.rb/glue.c @@ -8,6 +8,7 @@ int bsdcontrol_open(VALUE path) { int fd; + Check_Type(path, T_STRING); fd = open(RSTRING_PTR(path), O_PATH); if (fd == -1) {