ThrowTheSwitch / CMock

CMock - Mock/stub generator for C
http://throwtheswitch.org
MIT License
653 stars 269 forks source link

Fix runaway regex #381

Closed Tschet1 closed 2 years ago

Tschet1 commented 2 years ago

Multiple nested greedy quantifiers can cause to increase complexity of the regular expression so that the matching in the cmock_header_parser would take multiple minutes. Fixed by removing one of the quantifiers that seems not to be needed.

mvandervoord commented 2 years ago

Thanks for the optimization!