load_input_picture-crash-fix.patch
Long time ago I had some crashes inside avcodec. I tried to debug and it appeared that in low memory conditions it could crash if ff_alloc_picture fails. As far as I remember that ff_alloc_picture could request considerable amount of memory so, return results really should be checked everywhere. The attached patch fixed my problems
Long time ago I had some crashes inside avcodec. I tried to debug and it appeared that in low memory conditions it could crash if ff_alloc_picture fails. As far as I remember that ff_alloc_picture could request considerable amount of memory so, return results really should be checked everywhere. The attached patch fixed my problems
Patch updated to handle the last unchecked ff_alloc_picture call
On Mon, Mar 08, 2010 at 06:41:03PM -0500, Pavel Pavlov wrote:
Long time ago I had some crashes inside avcodec. I tried to debug and it appeared that in low memory conditions it could crash if ff_alloc_picture fails. As far as I remember that ff_alloc_picture could request considerable amount of memory so, return results really should be checked everywhere. The attached patch fixed my problems
Patch updated to handle the last unchecked ff_alloc_picture call
Content-Description: load_input_picture-crash-fix2.patch
mpegvideo_enc.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) 8ef0b07dc62dd921318a9db1f633d0e0971e183d load_input_picture-crash-fix2.patch
ok if tested [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I have never wished to cater to the crowd; for what I know they do not approve, and what they approve I do not know. -- Epicurus
Michael Niedermayer <michaelni <at> gmx.at> writes:
Patch updated to handle the last unchecked ff_alloc_picture call
Content-Description: load_input_picture-crash-fix2.patch
mpegvideo_enc.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) 8ef0b07dc62dd921318a9db1f633d0e0971e183d load_input_picture-crash-fix2.patch
ok if tested
Regression tests pass, patch applied. Carl Eugen
participants (3)
-
cehoyos@ag.or.at -
michaelni@gmx.at -
pavel@summit-tech.ca