[PATCH] D42043: c-index: CXString: fix MSAN read-past-end bug

Steve O'Brien via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 17 11:17:28 PST 2018


elsteveogrande updated this revision to Diff 130225.
elsteveogrande added a comment.

Add a needed null-check on input string's data ptr.


Repository:
  rC Clang

https://reviews.llvm.org/D42043

Files:
  include/clang-c/CXString.h
  tools/c-index-test/c-index-test.c
  tools/libclang/CXString.cpp
  tools/libclang/CXString.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42043.130225.patch
Type: text/x-patch
Size: 14320 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180117/a4fc9e7d/attachment.bin>


More information about the cfe-commits mailing list