Backport #8451

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

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

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

Associated revisions

Revision 41068
Added by Tomoyuki Chikanaga 11 months 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 Tomoyuki Chikanaga 11 months 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