From 5fa12dafa8cb8f7158452356611967880745bba5 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 28 Mar 2020 13:03:17 +0100 Subject: The last argument of rb_rescue2() should always be (VALUE)0 * Otherwise it might segfault, since C has no idea of the type of varargs, and the C code must assume all varargs are VALUE. --- eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index a68c26a2d6..b472fec83c 100644 --- a/eval.c +++ b/eval.c @@ -974,7 +974,7 @@ rb_rescue2(VALUE (* b_proc) (VALUE), VALUE data1, /*! * \copydoc rb_rescue2 - * \param[in] args exception classes, terminated by 0. + * \param[in] args exception classes, terminated by (VALUE)0. */ VALUE rb_vrescue2(VALUE (* b_proc) (VALUE), VALUE data1, -- cgit v1.2.3