Prevent archive memebers with illegal pathnames from being extracted from an archive.
authorNick Clifton <nickc@redhat.com>
Thu, 6 Nov 2014 14:49:10 +0000 (14:49 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 6 Nov 2014 14:49:10 +0000 (14:49 +0000)
commitdd9b91de2149ee81d47f708e7b0bbf57da10ad42
tree9abc44b553f584ed318e6747e7f49d1095ea13c6
parent834107255bbefceb445fa733ebc1ea5d9f41ec7f
Prevent archive memebers with illegal pathnames from being extracted from an archive.

PR binutils/17552, binutils/17533
* bucomm.c (is_valid_archive_path): New function.  Returns false
for absolute pathnames and pathnames that include /../.
* bucomm.h (is_valid_archive_path): Add prototype.
* ar.c (extract_file): Use new function to check for valid
pathnames when extracting files from an archive.
* objcopy.c (copy_archive): Likewise.
* doc/binutils.texi: Update documentation to mention the
limitation on pathname of archive members.
binutils/ChangeLog
binutils/ar.c
binutils/bucomm.c
binutils/bucomm.h
binutils/doc/binutils.texi
binutils/objcopy.c
This page took 0.024859 seconds and 4 git commands to generate.