From 6eb4f0248de511e63532338cfabbdc8ce01caba0 Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Mon, 12 Oct 1998 16:40:20 +0000 Subject: [PATCH] Added additional array boundary check. --- ksym_mod.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ksym_mod.c b/ksym_mod.c index d6a40b4..af053dc 100644 --- a/ksym_mod.c +++ b/ksym_mod.c @@ -424,7 +424,10 @@ static int AddModule(address, symbol) } else { + if (num_modules > 0) mp = &sym_array_modules[num_modules - 1]; + else + mp = &sym_array_modules[0]; AddSymbol(mp, address, symbol); }