]> git.ipfire.org Git - thirdparty/tar.git/commit
Fix bad pointer usage in xsparse.c
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Nov 2024 18:18:13 +0000 (10:18 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Nov 2024 18:18:55 +0000 (10:18 -0800)
commitd2b6b7b0a727b6b493dcffdab14c6c1c53dee148
tree56f6c32cb5904f8fc20dda8a775e5748f1a8f983
parent9bbcac1cf79e23c251a1e00cce5023a0cbd8301e
Fix bad pointer usage in xsparse.c

* scripts/xsparse.c (read_xheader): Avoid undefined behavior by
accessing via null pointer sparse_map or out of its bounds when
the input is invalid.  This means we no longer need the â€˜expect’
local, so omit it for simplicity.
scripts/xsparse.c