(xdump): Add EF_MAX check for table selection by number.
Fixes a crash when selecting a table over EF_MAX.
This commit is contained in:
parent
0a44c4893e
commit
0b15696223
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ xdump(void)
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
|
|
||||||
type = isdigit(p[0]) ? atoi(p) : ef_byname(p);
|
type = isdigit(p[0]) ? atoi(p) : ef_byname(p);
|
||||||
if (type >= 0) {
|
if (type >= 0 && type < EF_MAX) {
|
||||||
if (meta)
|
if (meta)
|
||||||
return xdmeta(type);
|
return xdmeta(type);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue