diff options
| author | Richard M. Stallman | 1995-04-18 18:13:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-04-18 18:13:13 +0000 |
| commit | 5bbdb09071ac5681f6ef97418d9d0c54032dfd66 (patch) | |
| tree | 5d2ec0511e31a590043206cdc28b7af42239bdc9 | |
| parent | 2e922f0b7a6e26c380269bc8a44d0eff913b5439 (diff) | |
| download | emacs-5bbdb09071ac5681f6ef97418d9d0c54032dfd66.tar.gz emacs-5bbdb09071ac5681f6ef97418d9d0c54032dfd66.zip | |
(Ffetch_bytecode): Check the type of the object being read from the file.
| -rw-r--r-- | src/eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 29136940c4e..6a6bde4f328 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -2269,6 +2269,8 @@ DEFUN ("fetch-bytecode", Ffetch_bytecode, Sfetch_bytecode, | |||
| 2269 | && CONSP (XVECTOR (object)->contents[COMPILED_BYTECODE])) | 2269 | && CONSP (XVECTOR (object)->contents[COMPILED_BYTECODE])) |
| 2270 | { | 2270 | { |
| 2271 | tem = read_doc_string (XVECTOR (object)->contents[COMPILED_BYTECODE]); | 2271 | tem = read_doc_string (XVECTOR (object)->contents[COMPILED_BYTECODE]); |
| 2272 | if (!CONSP (tem)) | ||
| 2273 | error ("invalid byte code"); | ||
| 2272 | XVECTOR (object)->contents[COMPILED_BYTECODE] = XCONS (tem)->car; | 2274 | XVECTOR (object)->contents[COMPILED_BYTECODE] = XCONS (tem)->car; |
| 2273 | XVECTOR (object)->contents[COMPILED_CONSTANTS] = XCONS (tem)->cdr; | 2275 | XVECTOR (object)->contents[COMPILED_CONSTANTS] = XCONS (tem)->cdr; |
| 2274 | } | 2276 | } |