Object: Find terminator correctly when reading long filenames in GNU archives (PR37244)
commitabad877bfa02f7f6ab9c75a9658b996c7f20f96e
authorHans Wennborg <hans@hanshq.net>
Tue, 8 May 2018 08:22:58 +0000 (8 08:22 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 8 May 2018 08:22:58 +0000 (8 08:22 +0000)
treefb6d12d38ee7585ba1329ef0d331c2c1aaccf156
parentac11e1c226b347bc77dd983aab8015632bb9f9b8
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