* src/pdumper.c (dump_do_dump_relocation): Add sanity check.

This commit is contained in:
Andrea Corallo 2021-11-02 21:01:20 +01:00
parent bc58bea371
commit 9d6162053e

View file

@ -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. */