Bug 625951 - Content processes should not crash on startup when building with --disable-crashreporter, r=mwu

This commit is contained in:
Vladimir Vukicevic 2011-05-26 08:48:36 +02:00
Родитель eb82d17fdb
Коммит bc0a52beda
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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