diff options
| author | Andrea Corallo | 2021-11-02 21:01:20 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2021-11-02 21:05:34 +0100 |
| commit | 9d6162053ebb508dee02baabfae26dea053446c4 (patch) | |
| tree | a344e3592ba610dd9107286c3a0c6b980075997e | |
| parent | bc58bea371a7ddd43ed672def931262c521120db (diff) | |
| download | emacs-9d6162053ebb508dee02baabfae26dea053446c4.tar.gz emacs-9d6162053ebb508dee02baabfae26dea053446c4.zip | |
* src/pdumper.c (dump_do_dump_relocation): Add sanity check.
| -rw-r--r-- | src/pdumper.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, | |||
| 5295 | error ("Trying to load incoherent dumped eln file %s", | 5295 | error ("Trying to load incoherent dumped eln file %s", |
| 5296 | SSDATA (comp_u->file)); | 5296 | SSDATA (comp_u->file)); |
| 5297 | 5297 | ||
| 5298 | if (!CONSP (comp_u->file)) | ||
| 5299 | error ("Incoherent compilation unit for dump was dumped"); | ||
| 5300 | |||
| 5298 | /* emacs_execdir is always unibyte, but the file names in | 5301 | /* emacs_execdir is always unibyte, but the file names in |
| 5299 | comp_u->file could be multibyte, so we need to encode | 5302 | comp_u->file could be multibyte, so we need to encode |
| 5300 | them. */ | 5303 | them. */ |