mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 19:28:53 +00:00
Fix AEL max character bug (bug #4837)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6259 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1149,7 +1149,7 @@ static int ast_ael_compile(struct ast_context **local_contexts, const char *file
|
||||
buf[0] = 0;
|
||||
bufsiz = 4096;
|
||||
while(!feof(f)) {
|
||||
if (strlen(buf) - bufsiz < 2048) {
|
||||
if (bufsiz - strlen(buf) < 2048) {
|
||||
bufsiz += 4096;
|
||||
tbuf = realloc(buf, bufsiz);
|
||||
if (tbuf) {
|
||||
|
Reference in New Issue
Block a user