]> git.eshelyaron.com Git - emacs.git/commitdiff
(Ffetch_bytecode): Check the type of the object being read from the file.
authorRichard M. Stallman <rms@gnu.org>
Tue, 18 Apr 1995 18:13:13 +0000 (18:13 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 18 Apr 1995 18:13:13 +0000 (18:13 +0000)
src/eval.c

index 29136940c4e94cd0f3fc92b11614667875bbb3e3..6a6bde4f3282766b359e60d6768011da64e2bc4e 100644 (file)
@@ -2269,6 +2269,8 @@ DEFUN ("fetch-bytecode", Ffetch_bytecode, Sfetch_bytecode,
       && CONSP (XVECTOR (object)->contents[COMPILED_BYTECODE]))
     {
       tem = read_doc_string (XVECTOR (object)->contents[COMPILED_BYTECODE]);
+      if (!CONSP (tem))
+       error ("invalid byte code");
       XVECTOR (object)->contents[COMPILED_BYTECODE] = XCONS (tem)->car;
       XVECTOR (object)->contents[COMPILED_CONSTANTS] = XCONS (tem)->cdr;
     }