From 9d6162053ebb508dee02baabfae26dea053446c4 Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Tue, 2 Nov 2021 21:01:20 +0100 Subject: [PATCH] * src/pdumper.c (dump_do_dump_relocation): Add sanity check. --- src/pdumper.c | 3 +++ 1 file changed, 3 insertions(+) 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. */ -- 2.39.2