Opened 13 years ago

Closed 13 years ago

#5326 closed defect (fixed)

possible segfault in AvFormatDecoder::SetupAudioStream()

Reported by: Erik Hovland <erik@…> Owned by: Isaac Richards
Priority: trivial Milestone: unknown
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no


In AvFormatDecoder::SetupAudioStream?() codec_ctx could be null by the time it reaches line 4010. If it is dereferenced there it will segfault. This problem was introduced when ticket #5299 was fixed in svn revision r17268.

The possibility that this segfault happens is likely very small. But it does exist.

Attachments (1)

libs_libmythtv-forward-null.patch (2.0 KB) - added by Erik Hovland <erik@…> 13 years ago.
makes sure codec_ctx is not null before dereferencing

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by Erik Hovland <erik@…>

makes sure codec_ctx is not null before dereferencing

comment:1 Changed 13 years ago by danielk

Resolution: fixed
Status: newclosed

(In [17516]) Fixes #5326. Adds some needed null pointer checks.

Note: See TracTickets for help on using tickets.