]> git.ipfire.org Git - thirdparty/tar.git/commit
Fix CVE-2018-20482
authorSergey Poznyakoff <gray@gnu.org>
Thu, 27 Dec 2018 15:48:57 +0000 (17:48 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Thu, 27 Dec 2018 15:53:38 +0000 (17:53 +0200)
commitc15c42ccd1e2377945fd0414eca1a49294bff454
treeab52643fffe3c544c3c89953e942f8047435c33f
parent3c2a2cd94d3b062aa5bf850b82364039ec9c6029
Fix CVE-2018-20482

* NEWS: Update.
* src/sparse.c (sparse_dump_region): Handle short read condition.
(sparse_extract_region,check_data_region): Fix dumped_size calculation.
Handle short read condition.
(pax_decode_header): Fix dumped_size calculation.
* tests/Makefile.am: Add new testcases.
* tests/testsuite.at: Likewise.

* tests/sptrcreat.at: New file.
* tests/sptrdiff00.at: New file.
* tests/sptrdiff01.at: New file.
NEWS
src/sparse.c
tests/Makefile.am
tests/sptrcreat.at [new file with mode: 0644]
tests/sptrdiff00.at [new file with mode: 0644]
tests/sptrdiff01.at [new file with mode: 0644]
tests/testsuite.at