diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-07-01 09:15:03 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-07-01 09:15:03 +0200 |
commit | 678261844d162112cc9268e8082be580f7218525 (patch) | |
tree | 71ff44fdc72a96561a7f2ed9743ff72da3b95b1d /tests/tar/long-paths/pax.tar | |
parent | a585b2a1dacdb109f445b6599d22d719903461d5 (diff) |
Fix null-pointer dereference in restore_unpack
Use a seperate variable to iterate over directory children and don't
modify n. Otherwise, the chown/chmod code below derefernces a null
pointer when trying to access n->name, n->uid and n->gid.
Bug found using scan-build.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/tar/long-paths/pax.tar')
0 files changed, 0 insertions, 0 deletions