Menu

#76 Missing range check in ChoiceGroup.getItemHeight

open
nobody
5
2008-02-19
2008-02-19
Anonymous
No

There is no range check for itemIndex in microemu-midp\src\main\java\javax\microedition\lcdui\ChoiceGroup.java in method int getItemHeight(int itemIndex). This method may have something like this:

if (itemIndex < 0 || itemIndex > items.length - 1) return 0;
else return items[itemIndex].getHeight();

Discussion


Log in to post a comment.