[Webkit-unassigned] [Bug 78513] If memset gets inlined at WebKit/Source/JavaScriptCore/wtf/Vector.h, it may produce a warning

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 17 10:44:38 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=78513


Mike Frysinger <vapier at gentoo.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vapier at gentoo.org




--- Comment #13 from Mike Frysinger <vapier at gentoo.org>  2012-02-17 10:44:38 PST ---
while it's true that fortify breaks code that is correct from the language/runtime pov, we're talking about snippets that arguably go against style tastes.  such as:
struct { char a[2]; char b; char d[3]; } foo;
strcpy(&foo.a[0], "aabdd");

many distros now build with fortify enabled by default for pretty much all packages (Debian/Ubuntu/Fedora/Redhat/Gentoo).  it has certainly been a much bigger benefit than the handful of downsides.

the proposed patch probably should have a comment in there explaining why this magic check is active.  or perhaps replace/augment the GCC define with _FORTIFY_SOURCE so that the code is self-documenting.

-- 
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