]> git.ipfire.org Git - thirdparty/tar.git/commit
Fix unlikely uninitalized var bug with sparse file
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Mar 2021 07:23:16 +0000 (23:23 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Mar 2021 08:18:44 +0000 (00:18 -0800)
commit55f2a0772e08b9febac3ac0de5cb048d4c60d2f5
tree392c30ce4b70ba1431f0bd6d5ec35223cd632a68
parentdaf634c44e2714c7525e6c552c5a5adc87cba887
Fix unlikely uninitalized var bug with sparse file

* src/sparse.c (sparse_extract_file): Set *SIZE to
stat.st_size so that the caller does not use *SIZE
when uninitalized.  Problem found with GCC 10 and
--enable-gcc-warnings CFLAGS='-O2 -flto -fanalyzer'.
src/sparse.c