Stefan Knoblich 8a98baa696 ftmod_isdn: Avoid stack smashing buffer overflow in isdn_tones_run().
The len variable can, in certain situations (large burst of incoming non-SLIN audio),
exceed the size of the on-stack frame buffer, which causes ftdm_buffer_read_loop() to
overwrite the dt_buffer pointer.

Use ftdm_min() to make sure len (after conversion to SLIN units) isn't larger
than the frame buffer size.

Also adds are couple more code comments.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-14 00:25:07 -05:00
..
2012-06-24 08:15:16 +00:00
2012-01-12 14:17:23 -06:00
2012-07-15 21:52:02 -05:00
2012-01-11 20:14:17 -05:00
2011-02-03 23:46:19 -06:00
2012-05-12 18:53:00 +00:00
2012-04-04 16:18:53 -05:00
2012-07-14 20:23:13 -05:00
2012-06-25 08:51:49 +00:00
2011-12-16 07:35:05 -05:00
2011-12-15 21:23:19 -05:00
2012-07-18 21:48:53 -05:00
2010-08-19 10:38:54 -05:00
2012-06-24 08:34:52 +00:00
2012-05-25 07:54:11 -05:00
2010-03-30 14:25:13 -04:00
2011-12-15 16:55:10 -05:00
2010-02-23 22:56:54 +00:00
2012-07-20 05:18:04 +00:00