]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Increase the size of buff by 1 and adjust the readlink(2) call to
authorNgie Cooper <yanegomi@gmail.com>
Sun, 11 Dec 2016 00:15:18 +0000 (16:15 -0800)
committerNgie Cooper <yanegomi@gmail.com>
Sun, 11 Dec 2016 00:15:18 +0000 (16:15 -0800)
commitb7caec3e4cab2b1f16743c1df3e48d78a4daa4aa
tree8773da660436e76d50e784f5f187888b41ac9343
parente9a5a70f9a00a985e6d41c77feba43f71d1a6f0f
Increase the size of buff by 1 and adjust the readlink(2) call to
subtract the buffer len by 1 to account for the needed space for a
NUL terminator, as readlink isn't guaranteed to provide one

Reported by: Coverity
CID: 13312931332105
tar/test/main.c