(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:
Ron Koenderink 2005-11-12 13:38:01 +00:00
parent 0a44c4893e
commit 0b15696223

View file

@ -358,7 +358,7 @@ xdump(void)
return RET_SYN;
type = isdigit(p[0]) ? atoi(p) : ef_byname(p);
if (type >= 0) {
if (type >= 0 && type < EF_MAX) {
if (meta)
return xdmeta(type);
else