asterisk/addons
Russell Bryant 4a2678b561 format_mp3: Fix a possible crash in mp3_read().
This patch fixes a potential crash in mp3_read() by not assuming that
dbuf has enough data to finish filling up the output buffer.  The patch
also makes sure that the dbuf state gets reset after we know we read
everything out of it already.

In passing, this patch includes some other cleanups of this module,
including stripping trailing whitespace, formatting fixes based on
coding guidelines, and removing a number of unused members from the
private state struct.

(closes issue ASTERISK-19761)
Reported by: Chris Maciejewsk
Tested by: Chris Maciejewsk
........

Merged revisions 366296 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 366297 from http://svn.asterisk.org/svn/asterisk/branches/10


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@366298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2012-05-12 00:03:42 +00:00
..
ooh323c Fix warning of Coverity Static analysis, change H225ProtocolIdentifier 2012-05-03 15:05:14 +00:00
Makefile Merged revisions 280742 via svnmerge from 2010-08-03 18:50:14 +00:00
app_mysql.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
app_saycountpl.c Opaquify channel stringfields 2012-01-24 20:12:09 +00:00
cdr_mysql.c Fix setting CDR variables in the hangup extension 2012-03-28 19:39:24 +00:00
chan_mobile.c Fix a variety of potential buffer overflows 2012-04-19 02:40:55 +00:00
chan_ooh323.c Convert some strncpys to ast_copy_string 2012-04-19 19:05:17 +00:00
chan_ooh323.h Asterisk media architecture conversion - no more format bitfields 2011-02-03 16:22:10 +00:00
format_mp3.c format_mp3: Fix a possible crash in mp3_read(). 2012-05-12 00:03:42 +00:00
ooh323cDriver.c Fix use freed pointer in return value from call thread 2012-04-30 16:59:53 +00:00
ooh323cDriver.h Merged revisions 308242 via svnmerge from 2011-02-18 00:11:06 +00:00
res_config_mysql.c Re-commit the verbose branch. 2012-02-14 20:27:16 +00:00