[PATCH] Fix realloc'ing a freed pointer

Kostya Serebryany kcc at google.com
Sun May 19 23:34:38 PDT 2013


  It's not that simple.
  At least, you also need to check for invalid free.
  This code already exists in Deallocate, but it is called too late in your case.
  So, we probably need to factor it out into a separate function

http://llvm-reviews.chandlerc.com/D818



More information about the llvm-commits mailing list