fnmatch, glob: fix exponential CPU use with repeated '*' operators
OpenBSD, where our "new" glob(3C) code comes from, has a fix for the issues described in https://research.swtch.com/glob, pull it along with several other useful changes they did since we borrowed the code.
FreeBSD has the fix for the same issue for fnmatch(3C).
Updated by Electric Monk over 5 years ago
- Status changed from In Progress to Closed
- % Done changed from 10 to 100
commit 79d022da827bda94f470706ea9a9a8d6dbab9d07 Author: Yuri Pankov <firstname.lastname@example.org> Date: 2017-08-14T17:44:45.000Z 8568 fnmatch, glob: fix exponential CPU use with repeated '*' operators Reviewed by: Igor Kozhukhov <email@example.com> Reviewed by: Andrew Stormont <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Approved by: Robert Mustacchi <firstname.lastname@example.org>