projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc58bea
)
* src/pdumper.c (dump_do_dump_relocation): Add sanity check.
author
Andrea Corallo
<akrl@sdf.org>
Tue, 2 Nov 2021 20:01:20 +0000
(21:01 +0100)
committer
Andrea Corallo
<akrl@sdf.org>
Tue, 2 Nov 2021 20:05:34 +0000
(21:05 +0100)
src/pdumper.c
patch
|
blob
|
history
diff --git
a/src/pdumper.c
b/src/pdumper.c
index 11c680d77b71455ebe513f45afbe3746a73198e4..a8f8d6fa00b510464fafcbb303158037d5b3e909 100644
(file)
--- 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. */