diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-12-01 15:15:28 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-12-01 15:15:28 +0200 |
commit | 746f3ff670dcfcdd28fcc990e79cd6fccc7ae48d (patch) | |
tree | 9fdb2a9a498ea83d3e522553a060c6e02cee1b83 /tests/testsuite.at | |
parent | 3945f9db44c935608caa5f084fd7f67ae59ee9e1 (diff) | |
download | cpio-746f3ff670dcfcdd28fcc990e79cd6fccc7ae48d.tar.gz cpio-746f3ff670dcfcdd28fcc990e79cd6fccc7ae48d.tar.bz2 |
Fix memory overrun on reading improperly created link records.
See http://lists.gnu.org/archive/html/bug-cpio/2014-11/msg00007.html
* src/copyin.c (get_link_name): New function.
(list_file, copyin_link): use get_link_name
* tests/symlink-bad-length.at: New file.
* tests/symlink-long.at: New file.
* tests/Makefile.am: Add new files.
* tests/testsuite.at: Likewise.
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r-- | tests/testsuite.at | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at index e67689f..3b5377e 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -32,6 +32,8 @@ m4_include([version.at]) m4_include([inout.at]) m4_include([symlink.at]) +m4_include([symlink-bad-length.at]) +m4_include([symlink-long.at]) m4_include([symlink-to-stdout.at]) m4_include([interdir.at]) |