From 377e30ea03005454a26bd3caace933ab54f9c3fd Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Wed, 1 Aug 2012 12:20:17 +1200 Subject: [PATCH] coff: skip over bad symbol table entries. --- formats/coff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/formats/coff.c b/formats/coff.c index fce037f..cf68da4 100644 --- a/formats/coff.c +++ b/formats/coff.c @@ -383,7 +383,8 @@ int coff_syms(FILE *in) name = strtab + offset; } - if ((storage_class == C_EXT || storage_class == C_LABEL) && + if (name && + (storage_class == C_EXT || storage_class == C_LABEL) && stab_set(name, value) < 0) { printc_err("coff: failed to insert symbol\n"); ret = -1;