[PATCH] Fix invalid memory access in llvm-mc if file ends in non-newline whitespace or comma

colinl at codeaurora.org colinl at codeaurora.org
Thu Nov 6 15:48:07 PST 2014


Agreed that loop is a little difficult.

It looks like we can also move the check for '\n' in to the find_first_not_of check.

http://reviews.llvm.org/D6151

Files:
  test/tools/llvm-mc/line_end_with_space.test
  tools/llvm-mc/Disassembler.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6151.15899.patch
Type: text/x-patch
Size: 1533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141106/2963d5bd/attachment.bin>


More information about the llvm-commits mailing list