uwsgi/uwsgi_fix_ruby_taint.patch
Ralf Ertzinger 36451ce9eb Update to 2.0.22
This updates uwsgi to 2.0.22.

It also adds an (incomplete) patch to support python 3.12, used in
the upcoming Fedora 39.
2023-07-30 09:48:50 +02:00

15 lines
518 B
Diff

diff -uNr a/plugins/rack/rack_plugin.c b/plugins/rack/rack_plugin.c
--- a/plugins/rack/rack_plugin.c 2022-10-24 12:21:58.000000000 +0200
+++ b/plugins/rack/rack_plugin.c 2023-06-13 21:47:46.514179214 +0200
@@ -456,7 +456,11 @@
static void rack_hack_dollar_zero(VALUE name, ID id) {
ur.dollar_zero = rb_obj_as_string(name);
+ // From ruby 2.7 onwards this is a noop, from ruby 3.2 onwards
+ // this function no longer exists
+#if !defined(RUBY27)
rb_obj_taint(ur.dollar_zero);
+#endif
}
#ifndef RUBY19