[Webkit-unassigned] [Bug 105129] [Blackberry] Static code analysis warning fixes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 17 07:24:47 PST 2012


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





--- Comment #5 from AnthonyS <ascian at rim.com>  2012-12-17 07:27:05 PST ---
I considered that possibility but it would be an exceptionally strange interface that the single pointer would have a longer lifetime than the event containing it (in my change the scope of the drawRect is exactly the same as the scope of the event). From my reading of the code, the drawRect is a pointer because it can be an array of rects, not that its lifetime is different than the event. Note that this code will merrily consume 128 bytes of stack space each time through the loop reusing the event struct each time. The new code is simpler and consumes far less stack space for what is essentially the same semantics. To further reinforce the scope of the pointer issue, the alloca allocation would go away after the loop is done since the method returns immediately, it can't have a longer lifetime than the event call.

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