[haiku-bugs] Re: [Haiku] #10176: BMediaFile crashes within AVFormatReader::Sniff() if it cannot handle the file

  • From: "phoudoin" <trac@xxxxxxxxxxxx>
  • Date: Thu, 07 Nov 2013 13:08:50 -0000

#10176: BMediaFile crashes within AVFormatReader::Sniff() if it cannot handle 
the
file
------------------------------------+----------------------------
   Reporter:  ttcoder               |      Owner:  stippi
       Type:  bug                   |     Status:  assigned
   Priority:  normal                |  Milestone:  R1
  Component:  Audio & Video/Codecs  |    Version:  R1/Development
 Resolution:                        |   Keywords:  ffmpeg
 Blocked By:                        |   Blocking:
Has a Patch:  0                     |   Platform:  All
------------------------------------+----------------------------

Comment (by phoudoin):

 While the stack trace may suggest it crashed in ctor, maybe it's as in
 #6595, in StreamBase'dtor. Since #6595 fix, fIOContext was changed to a
 pointer, and av_free(fIOContext->buffer) is called without checking
 fIOContext was actually allocated.
 May I suggest to check fIOContext is not null before doing that, as it's
 still a possible case...

--
Ticket URL: <http://dev.haiku-os.org/ticket/10176#comment:4>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: