[asterisk-bugs] [JIRA] (ASTERISK-17067) Long lines in call files cause spurious syntax error

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Thu Mar 23 16:02:13 CDT 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-17067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Harwell updated ASTERISK-17067:
-------------------------------------

    Target Release Version/s: 13.4.0

> Long lines in call files cause spurious syntax error
> ----------------------------------------------------
>
>                 Key: ASTERISK-17067
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-17067
>             Project: Asterisk
>          Issue Type: Bug
>          Components: PBX/pbx_spool
>            Reporter: Dave Olszewski
>            Assignee: Sean Bright
>            Severity: Minor
>      Target Release: 13.4.0, 13.15.0
>
>
> The main loop in pbx/pbx_spool.c:apply_outgoing uses fgets() to loop over the lines in the call file, but the buffer size is only 256 and it never checks if the characters read contain a newline.  This means that any line longer than 256 will likely cause a syntax error on the next read, because it picks up where the last read left off, in addition to mishandling the first short read.
> This issue appears to have been around for a long time, and is also reported at http://projectb14ck.org/the-asterisk-spooling-daemon



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list