[PATCH] D31295: Add free_on_realloc_zero=true flag for compatibility with allocators which allow a realloc(p, 0) and don't free the pointer.

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 23 11:41:03 PDT 2017


vsk added a comment.

Ah, so is it also allowed to access `P[0]` under ASan after doing `P = malloc(0)`? If so, I can't spot any issues here.


https://reviews.llvm.org/D31295





More information about the llvm-commits mailing list