Bug 952110 - Parsing JAR file may crash when it installs a extension. r=bsmedberg

This commit is contained in:
Makoto Kato 2013-12-24 11:12:52 +09:00
parent 1ef4d3b422
commit 45168c5faa

View File

@ -443,6 +443,10 @@ nsJAR::LoadEntry(const nsACString &aFilename, char** aBuf, uint32_t* aBufLen)
int32_t
nsJAR::ReadLine(const char** src)
{
if (!*src) {
return 0;
}
//--Moves pointer to beginning of next line and returns line length
// not including CR/LF.
int32_t length;