diff options
author | Mark Spencer <markster@digium.com> | 2004-01-23 19:12:44 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-01-23 19:12:44 +0000 |
commit | e60848a65faf46bab5e87e87aed6e2ad8b3ac054 (patch) | |
tree | e0b2e7f093e2ccdd61e1b10688b67fc51795b2ff /asterisk.c | |
parent | 1455d0211baa3b547ccd45c3874476f3b03644a8 (diff) |
Fix overflow in too many arguments (bug #806)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'asterisk.c')
-rwxr-xr-x | asterisk.c | 3 |
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)); } |