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
Change History
Changed 4 years ago by Erik Hovland <erik@…>
- Attachment libs_libmythtv-forward-null.patch added
Note: See
TracTickets for help on using
tickets.

makes sure codec_ctx is not null before dereferencing