[PATCH] D28348: [analyzer] Taught the analyzer about Glib API to check Memory-leak
Leslie Zhai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 26 17:50:48 PST 2017
xiangzhai updated this revision to Diff 89825.
xiangzhai added a comment.
Hi Anna,
Thanks for your review!
I updated the Glib-MallocChecker-single-size-value.patch to use **zeroVal** for **g_malloc0** and **g_try_malloc0**
and Yes, I refer CallocMem to implement **SValBinMulOp** in the Glib-MallocChecker-all-in-one.patch <http://www.leetcode.cn/2017/01/Glib-MallocChecker-all-in-one.patch> if this patch could be submitted to UPSTREAM, then I create another patch for XXX_n, thanks for your suggest!
Regards,
Leslie Zhai
Repository:
rL LLVM
https://reviews.llvm.org/D28348
Files:
lib/StaticAnalyzer/Checkers/MallocChecker.cpp
test/Analysis/gmalloc.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28348.89825.patch
Type: text/x-patch
Size: 7055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170227/19b59b51/attachment-0001.bin>
More information about the cfe-commits
mailing list