OSDN Git Service

Fix buffer overflow.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 19 Oct 2017 01:25:48 +0000 (01:25 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 19 Oct 2017 01:25:48 +0000 (01:25 +0000)
commit4179daa6ae61df372e060c891144be70090b2706
treefbe59916685e0fe366c071bd67a14f145d5525f3
parentf3ed5282d73a489c737802eae61c07916151a5e6
Fix buffer overflow.

We were reading past the end of the buffer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316143 91177308-0d34-0410-b5e6-96231b3b80d8
lib/BinaryFormat/Magic.cpp
test/Object/Inputs/invalid-coff-header-too-small [new file with mode: 0644]
test/Object/invalid.test