[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 12:30:48 PST 2014
Str may be empty after .find_first_not_of(" \t\r,") and the following Str[0] accesses invalid memory.
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.15886.patch
Type: text/x-patch
Size: 844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141106/1a363880/attachment.bin>
More information about the llvm-commits
mailing list