Modify

Ticket #7766 (closed patch: fixed)

You must read the TicketHowTo before creating a new ticket or commenting on an existing ticket.

Opened 2 years ago

Last modified 2 years ago

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

Description

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

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

Change History

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

Patch to fix segfault in EIA-708 code

comment:1 Changed 2 years ago by danielk

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

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

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.