提交 e91ac6b6 编写于 作者: C chegar

6849693: index of fdTable should be less than num. of fdTable in jdk7

Reviewed-by: alanb
上级 4d1e2a6e
...@@ -112,7 +112,7 @@ static void __attribute((constructor)) init() { ...@@ -112,7 +112,7 @@ static void __attribute((constructor)) init() {
*/ */
static inline fdEntry_t *getFdEntry(int fd) static inline fdEntry_t *getFdEntry(int fd)
{ {
if (fd < 0 || fd > fdCount) { if (fd < 0 || fd >= fdCount) {
return NULL; return NULL;
} }
return &fdTable[fd]; return &fdTable[fd];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册