OSDN Git Service

Object: Find terminator correctly when reading long filenames in GNU archives (PR37244)
authorHans Wennborg <hans@hanshq.net>
Tue, 8 May 2018 08:22:58 +0000 (08:22 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 8 May 2018 08:22:58 +0000 (08:22 +0000)
commitaa4eef7aaba505f5a9df48075b2760bddaff244a
treefb6d12d38ee7585ba1329ef0d331c2c1aaccf156
parentceb5c6fec6d15024ce490a764ae7879359084283
Object: Find terminator correctly when reading long filenames in GNU archives (PR37244)

The code was previously relying on there being a null terminator
somewhere in (or after) the string table, something made less likely by
r330786.

Differential Revision: https://reviews.llvm.org/D46527

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331746 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/Archive.cpp