From: Andrea Corallo Date: Tue, 2 Nov 2021 20:01:20 +0000 (+0100) Subject: * src/pdumper.c (dump_do_dump_relocation): Add sanity check. X-Git-Tag: emacs-28.0.90~137 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9d6162053ebb508dee02baabfae26dea053446c4;p=emacs.git * src/pdumper.c (dump_do_dump_relocation): Add sanity check. --- diff --git a/src/pdumper.c b/src/pdumper.c index 11c680d77b7..a8f8d6fa00b 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -5295,6 +5295,9 @@ dump_do_dump_relocation (const uintptr_t dump_base, error ("Trying to load incoherent dumped eln file %s", SSDATA (comp_u->file)); + if (!CONSP (comp_u->file)) + error ("Incoherent compilation unit for dump was dumped"); + /* emacs_execdir is always unibyte, but the file names in comp_u->file could be multibyte, so we need to encode them. */