[PATCH] D158269: [clang] Prevent possible use-after-free
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 18 06:41:11 PDT 2023
ilya-biryukov accepted this revision.
ilya-biryukov added a comment.
This revision is now accepted and ready to land.
LGTM. Thanks for getting to the bottom of this!
================
Comment at: clang/lib/Parse/ParseObjc.cpp:3768
+ // Clean up the remaining EOF token, only if it's inserted by us. Otherwise
+ // this might be code-completion token, so leave it.
+ if (Tok.is(tok::eof) && Tok.getEofData() == MCDecl)
----------------
Suggestion
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158269/new/
https://reviews.llvm.org/D158269
More information about the cfe-commits
mailing list