Modify

Ticket #5326 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

possible segfault in AvFormatDecoder::SetupAudioStream()

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

Description

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

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

Change History

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

makes sure codec_ctx is not null before dereferencing

comment:1 Changed 4 years ago by danielk

  • Status changed from new to closed
  • Resolution set to fixed

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

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.