Backport #8440
closed
r39637 も一緒にするとうまくマージできました。
条件分岐の順番の入れ替えによるちょっとした最適化なので一緒に入れます。
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r41065.
Tomoyuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
merge revision(s) 39637,40900: [Backport #8440]
load.c: reorder conditions
* load.c (loaded_feature_path): reorder conditions so simple
comparision comes first.
* load.c (loaded_feature_path): fix invalid read by index underflow.
the beginning of name is also a boundary as well as just after '/'.
Also available in: Atom
PDF
Like0
Like0Like0