Project

General

Profile

Backport #8451

backport r40925 (bug fix of File.fnmatch with multi-byte character in bracket)

Added by nagachika (Tomoyuki Chikanaga) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
[ruby-dev:47372]

Associated revisions

Revision 0c91b249
Added by nagachika (Tomoyuki Chikanaga) over 6 years ago

merge revision(s) 40925: [Backport #8451]

    * dir.c (bracket): fix copy-paste error.  When the first and last
      characters of fnmatch range have different length, fnmatch may
      have wrongly matched a path that does not really match.
      Coverity Scan found this bug.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@41068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 41068
Added by nagachika (Tomoyuki Chikanaga) over 6 years ago

merge revision(s) 40925: [Backport #8451]

* dir.c (bracket): fix copy-paste error.  When the first and last
  characters of fnmatch range have different length, fnmatch may
  have wrongly matched a path that does not really match.
  Coverity Scan found this bug.

History

#1

Updated by nagachika (Tomoyuki Chikanaga) over 6 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r41068.
Tomoyuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 40925: [Backport #8451]

* dir.c (bracket): fix copy-paste error.  When the first and last
  characters of fnmatch range have different length, fnmatch may
  have wrongly matched a path that does not really match.
  Coverity Scan found this bug.

Also available in: Atom PDF