From: Andrea Corallo Date: Sun, 27 Oct 2019 15:11:56 +0000 (+0100) Subject: fix invalid write into emit_limple_insn X-Git-Tag: emacs-28.0.90~2727^2~1054 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=10c6303d242ce8f01f38e78da71d01c7a379e651;p=emacs.git fix invalid write into emit_limple_insn --- diff --git a/src/comp.c b/src/comp.c index a7a5ce0dcbe..3b124bef23a 100644 --- a/src/comp.c +++ b/src/comp.c @@ -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); }