]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 59093] Rewrite filter/filter-out to avoid large stack usage
authorPaul Smith <psmith@gnu.org>
Thu, 12 Nov 2020 22:00:39 +0000 (17:00 -0500)
committerPaul Smith <psmith@gnu.org>
Fri, 13 Nov 2020 05:44:24 +0000 (00:44 -0500)
commite49e11e069fe7f214263be1782242b9b50f71eaa
treed15e015d4f4e340f84d50b7fee97226428d2a3e7
parentf4f353bb54ac562b61d715f57671eda39c876a51
[SV 59093] Rewrite filter/filter-out to avoid large stack usage

* src/function.c (func_filter_filterout): Allocate arrays to hold
pattern and word information rather than creating linked lists on
the stack.
* tests/scripts/functions/filter-out: Test large filters.
src/function.c
tests/scripts/functions/filter-out