Backport #8440

backport r40900 (fix invalid read by index underflow.)

Added by Tomoyuki Chikanaga 11 months ago. Updated 11 months ago.

[ruby-dev:47364]
Status:Closed
Priority:Normal
Assignee:Tomoyuki Chikanaga

Description

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

Associated revisions

Revision 41065
Added by Tomoyuki Chikanaga 11 months ago

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 (loadedfeaturepath): fix invalid read by index underflow.
the beginning of name is also a boundary as well as just after '/'.

History

#1 Updated by Tomoyuki Chikanaga 11 months ago

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

#2 Updated by Tomoyuki Chikanaga 11 months 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 (loadedfeaturepath): fix invalid read by index underflow.
the beginning of name is also a boundary as well as just after '/'.

Also available in: Atom PDF