]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
mod_fsv: Check audio/video frame size for possible buffer overflow and abort playback
authorStefan Knoblich <stkn@openisdn.net>
Mon, 21 Jan 2013 22:18:16 +0000 (23:18 +0100)
committerStefan Knoblich <stkn@openisdn.net>
Mon, 21 Jan 2013 22:27:23 +0000 (23:27 +0100)
commitd311b4380ea2f61896ca281f4c0b1eda216c9299
tree7fb2f41b2634dad0c2d3d9edf50b7cc19ab9feb1
parentdd8784a9e0b102828967db41b47a7803f293a7eb
mod_fsv: Check audio/video frame size for possible buffer overflow and abort playback

Audio frame sizes were already being checked for overflow,
but video frame sizes were taken as-is, which would
lead to heap corruption.

In case an overflow has been detected, playback is aborted immediately as
there is no way we can ever recover from such a situation due to the lack
of a (well-known) frame header signature that could be used to skip over
the corrupted part of the streams.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
src/mod/applications/mod_fsv/mod_fsv.c