Bug 225527 Crash [@ map2tsv] null section

r=bryner
This commit is contained in:
timeless%mozdev.org 2003-11-17 06:48:34 +00:00
parent 502d375f7a
commit c41650eeb8

View File

@ -1746,6 +1746,8 @@ int map2tsv(Options* inOptions)
{
symbol = &module.mSymbols[symLoop];
section = getSymbolSection(&module, symbol);
if (!section)
continue;
/*
** Use the symbol DB size if available.
@ -1832,7 +1834,7 @@ int map2tsv(Options* inOptions)
{
section = &module.mSegments[secLoop];
if(section->mUsed < section->mLength)
if(section && section->mUsed < section->mLength)
{
retval = tsvout(inOptions,
section->mLength - section->mUsed,