]> git.ipfire.org Git - thirdparty/libarchive.git/commit
tar: Clear safe_fprintf stack before usage
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 16 May 2025 21:50:27 +0000 (23:50 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 16 May 2025 21:50:27 +0000 (23:50 +0200)
commit3f1e45d14673f2a85fb051198c01884a1362a106
tree9a9260c2f264740550b227f26a580a8dd5d5667a
parent428167e7509c80b276a13c9e806e222c33dcdd71
tar: Clear safe_fprintf stack before usage

The stack buffer is never cleared, which can become an issue depending
on vsnprintf implementation's behavior if -1 is returned. The code
would eventually fall back to stack buffer which might be not
nul terminated.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
tar/util.c