Bug 661305 - Check crc32 on omnijar startupcache entries, r=taras

This commit is contained in:
Michael Wu 2011-06-02 13:58:37 -07:00
parent 7364042b6f
commit 8a2f7d79aa

View File

@ -252,7 +252,7 @@ StartupCache::GetBuffer(const char* id, char** outbuf, PRUint32* length)
if (mozilla::Omnijar::GetReader(mozilla::Omnijar::APP)) {
// no need to checksum omnijarred entries
nsZipItemPtr<char> zipItem(mozilla::Omnijar::GetReader(mozilla::Omnijar::APP), id);
nsZipItemPtr<char> zipItem(mozilla::Omnijar::GetReader(mozilla::Omnijar::APP), id, true);
if (zipItem) {
*outbuf = zipItem.Forget();
*length = zipItem.Length();
@ -262,7 +262,7 @@ StartupCache::GetBuffer(const char* id, char** outbuf, PRUint32* length)
if (mozilla::Omnijar::GetReader(mozilla::Omnijar::GRE)) {
// no need to checksum omnijarred entries
nsZipItemPtr<char> zipItem(mozilla::Omnijar::GetReader(mozilla::Omnijar::GRE), id);
nsZipItemPtr<char> zipItem(mozilla::Omnijar::GetReader(mozilla::Omnijar::GRE), id, true);
if (zipItem) {
*outbuf = zipItem.Forget();
*length = zipItem.Length();