https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112023-03-17T15:25:33ZRuby Issue Tracking SystemRuby master - Bug #19537: Regexp caching algorithm since v3.2.0 causes invalid memory accesshttps://bugs.ruby-lang.org/issues/19537?journal_id=1024502023-03-17T15:25:33Zjj1uzh (Futa Miyachi)
<ul><li><strong>Subject</strong> changed from <i>Regexp caching algorithm since v3.2.1 causes invalid memory access</i> to <i>Regexp caching algorithm since v3.2.0 causes invalid memory access</i></li></ul> Ruby master - Bug #19537: Regexp caching algorithm since v3.2.0 causes invalid memory accesshttps://bugs.ruby-lang.org/issues/19537?journal_id=1024662023-03-18T14:36:33Zjj1uzh (Futa Miyachi)
<ul><li><strong>File</strong> <a href="/attachments/9430">ruby-19537.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/9430/ruby-19537.patch">ruby-19537.patch</a> added</li></ul><p>I have not understand the implementation in detail, but maybe this patch fixes the problem.<br>
(No new tests have been added, existing tests pass.)</p> Ruby master - Bug #19537: Regexp caching algorithm since v3.2.0 causes invalid memory accesshttps://bugs.ruby-lang.org/issues/19537?journal_id=1025082023-03-22T19:24:08Zalanwu (Alan Wu)
<ul><li><strong>Assignee</strong> set to <i>make_now_just (Hiroya Fujinami)</i></li></ul> Ruby master - Bug #19537: Regexp caching algorithm since v3.2.0 causes invalid memory accesshttps://bugs.ruby-lang.org/issues/19537?journal_id=1025112023-03-23T02:31:30Zmake_now_just (Hiroya Fujinami)make.just.on@gmail.com
<ul></ul><p>Thank you for your report. I am sorry that I missed your report.</p>
<p>I checked the patch, and it seems not the correct fix because the binary search should be performed on <code>num_cache_table</code>. I will tackle this problem in a week.</p> Ruby master - Bug #19537: Regexp caching algorithm since v3.2.0 causes invalid memory accesshttps://bugs.ruby-lang.org/issues/19537?journal_id=1050832023-10-25T23:54:24Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Fixed in <a class="changeset" title="Refactor `Regexp#match` cache implementation (#7724) * Refactor Regexp#match cache implementatio..." href="https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/a1c2c274eebcc2a5275b677ebf94a8dbff380770">a1c2c274eebcc2a5275b677ebf94a8dbff380770</a></p>