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 about 5 years ago
- Status changed from In Progress to Closed
- % Done changed from 10 to 100
commit 79d022da827bda94f470706ea9a9a8d6dbab9d07 Author: Yuri Pankov <email@example.com> Date: 2017-08-14T17:44:45.000Z 8568 fnmatch, glob: fix exponential CPU use with repeated '*' operators Reviewed by: Igor Kozhukhov <firstname.lastname@example.org> Reviewed by: Andrew Stormont <email@example.com> Reviewed by: Toomas Soome <firstname.lastname@example.org> Approved by: Robert Mustacchi <email@example.com>