Ericsson / clang

Cross Translation Unit analysis capability for Clang Static Analyzer. (Fork of official clang at http://llvm.org/git/clang)
http://clang.llvm.org/
Other
15 stars 10 forks source link

Really fix use after free in class template spec import #462

Closed martong closed 6 years ago

dkrupp commented 6 years ago

Can one of the admins verify this patch?

martong commented 6 years ago

Yes. However, in the case of this particular bug we import another partial specialization, which invalidates the insert position because the foldingSet grows and frees the old buckets (and the previous insert position still points to the old bucket).

martong commented 6 years ago

https://reviews.llvm.org/D50451