aboutsummaryrefslogtreecommitdiffstats
path: root/asterisk.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-01-23 19:12:44 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-01-23 19:12:44 +0000
commit08d1af85c90ffa4003e3e18d35539e804725d146 (patch)
treee0b2e7f093e2ccdd61e1b10688b67fc51795b2ff /asterisk.c
parent443dd11cf82765e7e3c31675031bdf2c5259e4c8 (diff)
Fix overflow in too many arguments (bug #806)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2064 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rwxr-xr-xasterisk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/asterisk.c b/asterisk.c
index 4c1c6992f..43f46b4b0 100755
--- a/asterisk.c
+++ b/asterisk.c
@@ -1046,7 +1046,8 @@ static int ast_el_add_history(char *buf)
if (el_hist == NULL || el == NULL)
ast_el_initialize();
-
+ if (strlen(buf) > 256)
+ return 0;
return (history(el_hist, &ev, H_ENTER, buf));
}