[Webkit-unassigned] [Bug 14866] [S60] Widget Cascade menu not in FIFO order

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 3 07:18:46 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=14866





------- Comment #3 from sornalatha.rathnasamy at nokia.com  2007-08-03 07:18 PDT -------
TInt index = aIsRootMenuPane ? aMenuPane.NumberOfItemsInPane() - 1 :
aMenuPane.NumberOfItemsInPane();

------------------

this piece of code assumes that if aIsRootMenuPane is true, NumberOfItemsInPane
will always be greater than 0. But we should still handle the case : if
inadvertently the value is 0, it would crash since
aMenuPane.NumberOfItemsInPane() - 1  will evaluate to -1.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list