diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2019-04-10 20:25:07 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2019-04-10 20:25:07 +0000 |
commit | 66b6bb1766b3e5eea56b26fc91d03f1fccbe15e4 (patch) | |
tree | 6e510965e70a6a84c0c4df4304e3f5ee8aa2d3bd /lldb/source/Symbol/ClangUtil.cpp | |
parent | 6644d014dd98c8039d7aa1148aada8e2a2fee488 (diff) | |
download | bcm5719-llvm-66b6bb1766b3e5eea56b26fc91d03f1fccbe15e4.tar.gz bcm5719-llvm-66b6bb1766b3e5eea56b26fc91d03f1fccbe15e4.zip |
Check i < FD->getNumParams() before querying
Summary:
As was already stated in a previous comment, the parameter isn't
necessarily referring to one of the DeclContext's parameter. We
should check the index is within the range to avoid out-of-boundary
access.
Reviewers: gribozavr, rsmith, lebedev.ri
Reviewed By: gribozavr, rsmith
Subscribers: lebedev.ri, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D60055
Patch by Violet.
llvm-svn: 358134
Diffstat (limited to 'lldb/source/Symbol/ClangUtil.cpp')
0 files changed, 0 insertions, 0 deletions