[Home]

Summary:ASTERISK-00395: [patch] ast_cli() limited to 4096 characters
Reporter:Tilghman Lesher (tilghman)Labels:
Date Opened:2003-10-17 16:40:06Date Closed:2011-06-07 14:10:09
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) cli__bugfix__20031017.diff
( 1) cli__staticbuffer__20031021.diff
Description:Due to a static buffer, ast_cli() is limited to printing out 4096 characters at once.
Comments:By: Mark Spencer (markster) 2003-10-21 22:27:13

Added without bogus free

By: Tilghman Lesher (tilghman) 2003-10-21 23:02:41

free() is actually needed, because vasprintf() uses malloc(), not alloca().

By: Tilghman Lesher (tilghman) 2003-10-21 23:03:37

new patch uploaded, in case vasprintf() fails to allocate the buffer.

By: Mark Spencer (markster) 2003-10-21 23:07:40

Okay to ignore failure.

By: Digium Subversion (svnbot) 2008-01-15 14:36:21.000-0600

Repository: asterisk
Revision: 1651

U   trunk/cli.c

------------------------------------------------------------------------
r1651 | markster | 2008-01-15 14:36:20 -0600 (Tue, 15 Jan 2008) | 2 lines

Switch to vasprintf (big ASTERISK-395) dropping bogus free()

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=1651