diff options
author | Shafik Yaghmour <shafik.yaghmour@intel.com> | 2023-09-12 11:04:03 -0700 |
---|---|---|
committer | Shafik Yaghmour <shafik.yaghmour@intel.com> | 2023-09-12 11:06:06 -0700 |
commit | 6eadc8f16e03f6aa3b1b1c178c308ac452eabeac (patch) | |
tree | cf8828c49e4c9902091e2da26bb6887c40291e9d /clang/tools/include-mapping/cppreference_parser.py | |
parent | 063cd5545b6a4eb2b37bfb55b16a2391be221fe4 (diff) | |
download | llvm-6eadc8f16e03f6aa3b1b1c178c308ac452eabeac.zip llvm-6eadc8f16e03f6aa3b1b1c178c308ac452eabeac.tar.gz llvm-6eadc8f16e03f6aa3b1b1c178c308ac452eabeac.tar.bz2 |
[Clang] Fix crash in Parser::ParseDirectDeclarator by adding check that token is not an annotation token
In Parser::ParseDirectDeclarator(...) in some cases ill-formed code can cause an
annotation token to end up where it was not expected. The fix is to add a
!Tok.isAnnotation() guard before attempting to access identifier info.
This fixes: https://github.com/llvm/llvm-project/issues/64836
Differential Revision: https://reviews.llvm.org/D158804
Diffstat (limited to 'clang/tools/include-mapping/cppreference_parser.py')
0 files changed, 0 insertions, 0 deletions