mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-19 23:48:50 +00:00
6849693: index of fdTable should be less than num. of fdTable in jdk7
Reviewed-by: alanb
This commit is contained in:
parent
9607630405
commit
60bf44dc75
@ -112,7 +112,7 @@ static void __attribute((constructor)) init() {
|
||||
*/
|
||||
static inline fdEntry_t *getFdEntry(int fd)
|
||||
{
|
||||
if (fd < 0 || fd > fdCount) {
|
||||
if (fd < 0 || fd >= fdCount) {
|
||||
return NULL;
|
||||
}
|
||||
return &fdTable[fd];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user