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

Anna Zaks zaks.anna at gmail.com
Wed May 27 10:59:43 PDT 2015


I am not convinced that this is the right approach.

Adding warnings about use of zero allocated memory is fine. However, introducing the new leak warnings is not as this might be the behavior people expect.

Keep in mind that we try to minimize the number of false positives in the analyzer; even if that means we are reducing the number of true positives.


http://reviews.llvm.org/D9040

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






More information about the cfe-commits mailing list