summaryrefslogtreecommitdiff
path: root/amd64/include/ape
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-11-02 14:17:34 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2019-11-02 14:17:34 +0100
commit37827f533bcfe73d8aff7088fbeee1eaa42e8094 (patch)
tree0e396ecb1bf9500830a4849d102a8840eccdcde3 /amd64/include/ape
parent638f860791e267893799d9a78d151a2e934941f3 (diff)
downloadplan9front-37827f533bcfe73d8aff7088fbeee1eaa42e8094.tar.xz
tar: fix memory corruption in extract1 (thanks petter)
extract1() expects two extra bytes to be avilabe before fname buffer so it can prepend ./ before the name. this used to be the case with name(), but was violated when long name support was added and getname() was used in place of name() which did not reserve the 2 extra bytes. this change reserves two extra bytes in the getname()'s static buffer and also removes the extra copy as name() already makes a copy.
Diffstat (limited to 'amd64/include/ape')
0 files changed, 0 insertions, 0 deletions