summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
authorStefan Esser2012-04-13 15:52:21 +0200
committerStefan Esser2012-04-13 15:52:21 +0200
commitb477d16f2cce7ba44dd4072c269d86059b4e3ca4 (patch)
tree85d774787076de3622259170bf7f71ebc9b34109 /execute.c
parentd81bb40b680c68ac6c51d93ad57aca1c8b5e8444 (diff)
Fix potential out of bounds access
Diffstat (limited to 'execute.c')
-rw-r--r--execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/execute.c b/execute.c
index a3766b8..5255052 100644
--- a/execute.c
+++ b/execute.c
@@ -1056,7 +1056,7 @@ static int ih_function_exists(IH_HANDLER_PARAMS)
1056 } 1056 }
1057 1057
1058 /* Ignore leading "\" */ 1058 /* Ignore leading "\" */
1059 if (lcname[0] == '\\') { 1059 if (func_name_len > 0 && lcname[0] == '\\') {
1060 lcname = &lcname[1]; 1060 lcname = &lcname[1];
1061 func_name_len--; 1061 func_name_len--;
1062 } 1062 }