https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112013-06-04T23:43:40ZRuby Issue Tracking SystemBackport200 - Backport #8440: backport r40900 (fix invalid read by index underflow.)https://bugs.ruby-lang.org/issues/8440?journal_id=396952013-06-04T23:43:40Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul></ul><p>r39637 も一緒にするとうまくマージできました。<br>
条件分岐の順番の入れ替えによるちょっとした最適化なので一緒に入れます。</p> Backport200 - Backport #8440: backport r40900 (fix invalid read by index underflow.)https://bugs.ruby-lang.org/issues/8440?journal_id=396962013-06-04T23:47:19Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r41065.<br>
Tomoyuki, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>merge revision(s) 39637,40900: [Backport <a class="issue tracker-4 status-5 priority-4 priority-default closed" title="Backport: backport r40900 (fix invalid read by index underflow.) (Closed)" href="https://bugs.ruby-lang.org/issues/8440">#8440</a>]</p>
<pre><code>load.c: reorder conditions
* load.c (loaded_feature_path): reorder conditions so simple
</code></pre>
<p>comparision comes first.<br>
* load.c (loaded_feature_path): fix invalid read by index underflow.<br>
the beginning of name is also a boundary as well as just after '/'.</p>