Opened 11 years ago

Closed 11 years ago

#7766 closed patch (fixed)

Segfault when skipping ahead with EIA-708 closed captions enabled

Reported by: Clayton Smith <argilo@…> Owned by: danielk
Priority: minor Milestone: unknown
Component: MythTV - ATSC Version: head
Severity: medium Keywords:
Cc: Ticket locked: no


A segfault occasionally occurs when skipping ahead (with the right arrow key) while EIA-708 (ATSC) closed captions are turned on. I did some debugging with gdb, and discovered that the crash occurs in CC708Window::Scroll, which accesses the "text" variable even though it may be null. I've attached a patch which adds a null check to prevent this crash from occurring.

Attachments (1)

segfault-fix.patch (498 bytes) - added by Clayton Smith <argilo@…> 11 years ago.
Patch to fix segfault in EIA-708 code

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by Clayton Smith <argilo@…>

Attachment: segfault-fix.patch added

Patch to fix segfault in EIA-708 code

comment:1 Changed 11 years ago by danielk

Resolution: fixed
Status: newclosed

(In [22981]) Fixes #7766. Adds needed null pointer check.

Note: See TracTickets for help on using tickets.