[PATCH] Ignore report when the argument to malloc is assigned known value

Aditya Kumar hiraditya at msn.com
Fri Jun 19 03:59:11 PDT 2015


================
Comment at: test/Analysis/malloc-overflow.c:118
@@ +117,3 @@
+  return malloc(n * 0 * sizeof(int));  // no-warning
+}
+
----------------
This warning is valid. I'll update the test case. I only intended to ignore static analyzer warning related to memory leak. Thanks for the review.

http://reviews.llvm.org/D9924

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






More information about the cfe-commits mailing list