Open Quuxplusone opened 11 years ago
Bugzilla Link | PR15836 |
Status | NEW |
Importance | P normal |
Reported by | Graham Lee (iamleeg@gmail.com) |
Reported on | 2013-04-24 07:52:49 -0700 |
Last modified on | 2016-12-07 01:55:52 -0800 |
Version | 3.9 |
Hardware | PC All |
CC | jrose@belkadan.com, llvm-bugs@lists.llvm.org, zhaixiang@loongson.cn |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
I haven't tested with trunk because the compiler I do have crashed trying to build clang from trunk. I've filed that as rdar://problem/13726184 for Apple types.
Seems reasonable. Cloned to rdar://problem/13727776.
Hi llvm developers,
The same story for QChar http://www.leetcode.cn/2016/11/analyzing-code-for-kde-
qt-open-source-components.html#qtbase
llvm/tools/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp *wrongly*
BR.EmitBasicReport(D, this, "Allocator sizeof operand mismatch",
categories::UnixAPI, OS.str(), L, Ranges);
in the function of checkASTCodeBody! because sizeof(ushort) is equals to
sizeof(QChar), it is better to run the sizeof() really for Static Analyzer ;-)
Regards,
Leslie Zhai