[Webkit-unassigned] [Bug 88369] Add support for malloc and alloc_size attributes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 5 15:48:07 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=88369
--- Comment #4 from Nuno Lopes <nlopes at apple.com> 2012-06-05 15:48:06 PST ---
(In reply to comment #2)
> Why?
The malloc attribute is used by compilers for optimizations purposes. It allows the compiler to decide that a pointer returned by such functions cannot alias anything.
The alloc_size attribute allows the compilers to emit warnings and/or add run-time instrumentation to catch buffer overflows. GCC can emit warnings based on this attribute, and clang has experimental support to instrument code to detect buffer overflows.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list