]> git.ipfire.org Git - thirdparty/tar.git/commit
tar: fix --exclude-vcs-ignores memory
authorAurélien Martin <amartin@witekio.com>
Fri, 7 Oct 2022 19:08:40 +0000 (21:08 +0200)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 7 Oct 2022 22:25:36 +0000 (15:25 -0700)
commit7324326b1df67831b39a597eb10f67a5369aa189
tree8c1b97ba324e90ae8fa55727a9fe30aaea0b55ae
parent705bb093174004275009510bdaab6e8046ab37f8
tar: fix --exclude-vcs-ignores memory

The function frees the patterns' wordsplit structure without asking
add_exclude to reallocate the strings.  In many cases, this leads to
each file name in the directory being checked against the memory
location where it just got reallocated.
* src/exclist.c: Use EXCLUDE_ALLOC.
Copyright-paperwork-exempt: Yes
src/exclist.c