[FFmpeg-trac] #235(swscale:new): possible SIGSEGV in sws_getColorspaceDetails

FFmpeg trac at avcodec.org
Tue May 24 01:14:58 CEST 2011


#235: possible SIGSEGV in sws_getColorspaceDetails
-------------------------+---------------------
  Reporter:  jtlebi      |      Owner:  michael
      Type:  defect      |     Status:  new
  Priority:  normal      |  Component:  swscale
   Version:  git-master  |   Keywords:
Blocked By:              |   Blocking:
Reproduced:  0           |   Analyzed:  0
-------------------------+---------------------
 I experienced a SIGSEGV in the MLT library happending in the function
 sws_getColorspaceDetails in libwscale/utils.c:718. While i know the actual
 source of the bug is not in ffmpeg's sources, it is possible to have the
 first parameter (SwsContext *c) set to NULL wich causes the crash.

 changing line 720 from

 {{{
 if (isYUV(c->dstFormat) || isGray(c->dstFormat)) return -1;
 }}}

 to

 {{{
 if (c==NULL || isYUV(c->dstFormat) || isGray(c->dstFormat)) return -1;
 }}}


 allows playback to continue.

 PS: i'm working with the latest ffmpeg sources from git in an (almost)
 clean environnment

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/235>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list