Bug 225986 DRefTool analysis for libjar files

r=roc sr=roc
This commit is contained in:
timeless%mozdev.org 2003-11-17 20:44:14 +00:00
parent bfe76024bf
commit ea7558fbed

View File

@ -645,7 +645,9 @@ nsJAR::ParseOneFile(nsISignatureVerifier* verifier,
nsJARManifestItem* curItemMF = nsnull;
PRBool foundName = PR_FALSE;
if (aFileType == JAR_MF)
curItemMF = new nsJARManifestItem();
if (!(curItemMF = new nsJARManifestItem()))
return NS_ERROR_OUT_OF_MEMORY;
nsCAutoString curItemName;
nsCAutoString storedSectionDigest;
@ -698,7 +700,8 @@ nsJAR::ParseOneFile(nsISignatureVerifier* verifier,
break;
sectionStart = nextLineStart;
curItemMF = new nsJARManifestItem();
if (!(curItemMF = new nsJARManifestItem()))
return NS_ERROR_OUT_OF_MEMORY;
} // (aFileType == JAR_MF)
else
//-- file type is SF, compare digest with calculated