Code Review 6849693: index of fdTable should be less than num. of fdTable in jdk7
Alan Bateman
Alan.Bateman at oracle.com
Thu Feb 24 05:03:08 PST 2011
Chris Hegarty wrote:
> Alan, Michael,
>
> Trivially change getFdEntry() to ensure that the given fd is not >=
> fdCount since fdTable ( the array indexed by fd ) has only fdCount
> elements.
>
> I'm not sure how anyone seen this bug in real life, but making this
> simple change won't hurt and is strictly correct.
>
> http://cr.openjdk.java.net/~chegar/6849693/webrev.00/webrev/
>
> -Chris.
Looks good to me.
-Alan
More information about the net-dev
mailing list