[PATCH] D40574: Bounds check argument_with_type_tag attribute.

Matt Davis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 28 12:44:54 PST 2017


mattd created this revision.

Fixes: PR28520

Perform a bounds check on a function's argument list, before accessing any index value specified by an 'argument_with_type_tag' attribute.


https://reviews.llvm.org/D40574

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Sema/Sema.h
  lib/Sema/SemaChecking.cpp
  test/Sema/error-type-safety.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40574.124606.patch
Type: text/x-patch
Size: 4195 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171128/5a8ba43d/attachment-0001.bin>


More information about the cfe-commits mailing list