Files
Matthew Jordan 8235a16c2b Fix remotely exploitable stack overrun in Milliwatt
Milliwatt is vulnerable to a remotely exploitable stack overrun when using
the 'o' option.  This occurs due to the milliwatt_generate function not
accounting for AST_FRIENDLY_OFFSET when calculating the maximum number of
samples it can put in the output buffer.

This patch resolves this issue by taking into account AST_FRIENDLY_OFFSET
when determining the maximum number of samples allowed.  Note that at no
point is remote code execution possible.  The data that is written into the
buffer is the pre-defined Milliwatt data, and not custom data.

(issue ASTERISK-19541)
Reported by: Russell Bryant
Tested by: Matt Jordan
Patches:
  milliwatt_stack_overrun.rev1.txt by Russell Bryant (license 6283)
  Note that this patch was written by Russell, even though Matt uploaded it



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@359615 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2012-03-15 18:20:49 +00:00
..
2009-08-10 19:15:57 +00:00
2009-08-10 19:15:57 +00:00
2009-08-10 19:15:57 +00:00
2008-12-19 19:48:00 +00:00
2011-05-18 19:56:08 +00:00
2010-03-02 19:36:20 +00:00
2008-03-11 17:32:17 +00:00
2008-06-22 02:54:52 +00:00
2009-08-10 19:15:57 +00:00
2009-08-10 19:15:57 +00:00
2009-08-10 19:15:57 +00:00
2011-05-06 07:55:21 +00:00
2009-08-10 19:15:57 +00:00
2009-08-10 19:15:57 +00:00
2009-08-10 19:15:57 +00:00
2010-12-20 09:13:18 +00:00
2009-08-10 19:15:57 +00:00
2010-09-30 15:34:29 +00:00
2009-08-10 19:15:57 +00:00
2009-08-10 19:15:57 +00:00
2010-01-13 17:16:12 +00:00