mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 05:44:10 +00:00
Bug 661305 - Check crc32 on omnijar startupcache entries, r=taras
This commit is contained in:
parent
7364042b6f
commit
8a2f7d79aa
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user