Skip to content
Commit 6ac555fb authored by Chandler Carruth's avatar Chandler Carruth
Browse files

[UB] Avoid a really broken call to realloc that would later result in

a bad call to memcpy.

When we only have a buffer from one of the two reparse calls, we can
just return that buffer rather than going through the realloc/memcpy
dance.

Found with UBsan.

llvm-svn: 243950
parent 38a45cc6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment