[PATCH] [analyzer] Make realloc(ptr, 0) handling equivalent to malloc(0).

Joerg Sonnenberger joerg at NetBSD.org
Fri May 15 01:53:31 PDT 2015


I don't believe we have to change anything here. The historic behavior of realloc(ptr, 0) is free(ptr) + returning NULL. That is also valid behavior under C11 where the behavior of malloc(0) is implemtation defined.


http://reviews.llvm.org/D9040

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list