Project

General

Profile

Actions

Backport #8440

closed

backport r40900 (fix invalid read by index underflow.)

Added by nagachika (Tomoyuki Chikanaga) almost 11 years ago. Updated almost 11 years ago.


Description

よく確認していませんがバックポートが必要な気がします。
なお r40900 だけだと conflict してすんなり merge できない模様。

Updated by nagachika (Tomoyuki Chikanaga) almost 11 years ago

r39637 も一緒にするとうまくマージできました。
条件分岐の順番の入れ替えによるちょっとした最適化なので一緒に入れます。

Actions #2

Updated by nagachika (Tomoyuki Chikanaga) almost 11 years ago

  • 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 '/'.

Actions

Also available in: Atom PDF

Like0
Like0Like0