зеркало из https://github.com/mozilla/gecko-dev.git
Bug 625951 - Content processes should not crash on startup when building with --disable-crashreporter, r=mwu
This commit is contained in:
Родитель
eb82d17fdb
Коммит
bc0a52beda
|
@ -264,7 +264,7 @@ ContentChild::Init(MessageLoop* aIOLoop,
|
|||
PCrashReporterChild* crashreporter = SendPCrashReporterConstructor();
|
||||
InfallibleTArray<Mapping> mappings;
|
||||
const struct mapping_info *info = getLibraryMapping();
|
||||
while (info->name) {
|
||||
while (info && info->name) {
|
||||
mappings.AppendElement(Mapping(nsDependentCString(info->name),
|
||||
nsDependentCString(info->file_id),
|
||||
info->base,
|
||||
|
|
|
@ -121,7 +121,7 @@ struct cdir_end {
|
|||
|
||||
static size_t zip_size;
|
||||
static int zip_fd;
|
||||
static struct mapping_info * lib_mapping;
|
||||
static struct mapping_info * lib_mapping = NULL;
|
||||
|
||||
NS_EXPORT const struct mapping_info *
|
||||
getLibraryMapping()
|
||||
|
@ -646,8 +646,8 @@ loadLibs(const char *apkName)
|
|||
|
||||
struct cdir_entry *cdir_start = (struct cdir_entry *)(zip + cdir_offset);
|
||||
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
lib_mapping = (struct mapping_info *)calloc(MAX_MAPPING_INFO, sizeof(*lib_mapping));
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
file_ids = (char *)extractBuf("lib.id", zip, cdir_start, cdir_entries);
|
||||
#endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче