Commit 787a5efb authored by Snehasish Kumar's avatar Snehasish Kumar
Browse files

[memprof] Fix use-after-free in peekBuildIds.

To check the uniqueness of buildids, we held on to a StringRef of the build id string pushed into the vector. If the number of build ids were large enough to trigger a realloc in the vector then these references where invalidated resulting in a use-after free. This was exposed in downstream usage.

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D155110
parent cdfd1475
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment