diff options
author | Nathan Jeffords <blunted2night@gmail.com> | 2010-05-21 18:23:56 +0000 |
---|---|---|
committer | Nathan Jeffords <blunted2night@gmail.com> | 2010-05-21 18:23:56 +0000 |
commit | 0783fb7e6d2f03cbb398dc0f083c96ba8af9ab21 (patch) | |
tree | 5bd5941a675ae20bd84497c6ac21132b11a23ce7 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | a26a8471bdb132f963f26e4df2091ed204024f36 (diff) |
added an assertion to MCObjectWriter::WriteBytes to catch misuse of the ZeroFillSize parameter
If the size of the string is greater than the zero fill size, the function will attempt to write a very large string of zeros to the object file (~4GB on 32 bit platforms). This assertion will catch the scenario and crash the program before the write occurs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104334 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
0 files changed, 0 insertions, 0 deletions