mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 05:29:10 +02:00
![]() (https://github.com/ruby/zlib/pull/88)
* Only release the GVL where necessary.
- Several string manipulation methods were invoked while the GVL was
released. This is unsafe.
- The mutex protecting multi-threaded access was not covering buffer state
manipulation, leading to data corruption and out-of-bounds writes.
- Using `rb_str_locktmp` prevents changes to buffer while it's in use.
[Bug #20863]
|
||
---|---|---|
.. | ||
test_zlib.rb |