emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 9d61620: * src/pdumper.c (dump_do_dump_relocation): Add sanity


From: Andrea Corallo
Subject: emacs-28 9d61620: * src/pdumper.c (dump_do_dump_relocation): Add sanity check.
Date: Tue, 2 Nov 2021 16:06:11 -0400 (EDT)

branch: emacs-28
commit 9d6162053ebb508dee02baabfae26dea053446c4
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>

    * 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 11c680d..a8f8d6f 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.  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]