[PATCH] AsmParser: Require null terminator in the created memory buffer.

Alex Lorenz arphaman at gmail.com
Wed May 20 13:03:50 PDT 2015


I went back to the patch that requires a terminating null character again, as the range
checks in LLLexer would have to be introduced in a lot of places.

I updated the unittest to include a passing testcase as Duncan suggested.


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9883

Files:
  lib/AsmParser/Parser.cpp
  unittests/AsmParser/AsmParserTest.cpp
  unittests/AsmParser/CMakeLists.txt
  unittests/AsmParser/Makefile
  unittests/CMakeLists.txt
  unittests/Makefile

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9883.26172.patch
Type: text/x-patch
Size: 3981 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150520/128c38ff/attachment.bin>


More information about the llvm-commits mailing list