Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Clang] Fix null pointer dereference in VisitUsingEnumDecl #97910

Merged
merged 1 commit into from
Jul 10, 2024

Commits on Jul 6, 2024

  1. [Clang] Fix null pointer dereference in VisitUsingEnumDecl

    This patch addresses static analyzer concern where TSI could be dereferenced after being assigned a null value from SubstType in clang::TemplateDeclInstantiator::VisitUsingEnumDecl(clang::UsingEnumDecl *).
    
    The fix now checks null value of TSI after the call to SubstType and return nullptr to prevent potential null pointer dereferences when calling UsingEnumDecl::Create() and ensures safe execution.
    smanna12 committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    1c8d64e View commit details
    Browse the repository at this point in the history