Mercurial > vim
comparison src/eval.c @ 18851:3cf9529b3a4a v8.1.2412
patch 8.1.2412: crash when evaluating expression with error
Commit: https://github.com/vim/vim/commit/0ff822d2ebf0d130516631734b00179ba8dd8251
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 8 18:41:34 2019 +0100
patch 8.1.2412: crash when evaluating expression with error
Problem: Crash when evaluating expression with error. (Dhiraj Mishra)
Solution: Check parsing failed. (closes https://github.com/vim/vim/issues/5329)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 08 Dec 2019 18:45:03 +0100 |
parents | 3a68dc2a1bc1 |
children | 25ebc35e104f |
comparison
equal
deleted
inserted
replaced
18850:cdf752086b54 | 18851:3cf9529b3a4a |
---|---|
2900 // Skip over the ->. | 2900 // Skip over the ->. |
2901 *arg += 2; | 2901 *arg += 2; |
2902 rettv->v_type = VAR_UNKNOWN; | 2902 rettv->v_type = VAR_UNKNOWN; |
2903 | 2903 |
2904 ret = get_lambda_tv(arg, rettv, evaluate); | 2904 ret = get_lambda_tv(arg, rettv, evaluate); |
2905 if (ret == NOTDONE) | 2905 if (ret != OK) |
2906 return FAIL; | 2906 return FAIL; |
2907 else if (**arg != '(') | 2907 else if (**arg != '(') |
2908 { | 2908 { |
2909 if (verbose) | 2909 if (verbose) |
2910 { | 2910 { |