fix invalid write into emit_limple_insn
authorAndrea Corallo <akrl@sdf.org>
Sun, 27 Oct 2019 15:11:56 +0000 (16:11 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:37:59 +0000 (11:37 +0100)
src/comp.c

index a7a5ce0dcbe26595d5ec4ba99ba45b30f7bcadc5..3b124bef23a5b6540adee467e7eb99fe89c9f838 100644 (file)
@@ -1182,7 +1182,8 @@ emit_limple_insn (Lisp_Object insn)
   unsigned i = 0;
   FOR_EACH_TAIL (p)
     {
-      eassert (i < sizeof (arg));
+      if (i == sizeof (arg) / sizeof (Lisp_Object))
+       break;
       arg[i++] = XCAR (p);
     }