From 0b156962233f9d5e02a672eeb91446062dcc5b79 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sat, 12 Nov 2005 13:38:01 +0000 Subject: [PATCH] (xdump): Add EF_MAX check for table selection by number. Fixes a crash when selecting a table over EF_MAX. --- src/lib/commands/xdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/xdump.c b/src/lib/commands/xdump.c index 15e49f78..ca61ed40 100644 --- a/src/lib/commands/xdump.c +++ b/src/lib/commands/xdump.c @@ -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