comparison src/eval.c @ 6997:cdd862e0f896 v7.4.816

patch 7.4.816 Problem: Invalid memory access when doing ":fun X(". Solution: Check for missing ')'. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Tue, 11 Aug 2015 15:54:52 +0200
parents fc099c55a36a
children 286fd54c7ae3
comparison
equal deleted inserted replaced
6996:89686806b233 6997:cdd862e0f896
22555 if (!eap->skip) 22555 if (!eap->skip)
22556 EMSG2(_(e_invarg2), eap->arg); 22556 EMSG2(_(e_invarg2), eap->arg);
22557 break; 22557 break;
22558 } 22558 }
22559 } 22559 }
22560 if (*p != ')')
22561 goto erret;
22560 ++p; /* skip the ')' */ 22562 ++p; /* skip the ')' */
22561 22563
22562 /* find extra arguments "range", "dict" and "abort" */ 22564 /* find extra arguments "range", "dict" and "abort" */
22563 for (;;) 22565 for (;;)
22564 { 22566 {