Modify

Ticket #5120 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

dyn_cast can return 0, check in HandlePAT and UpdateValues

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

Description

dynamic_cast can return 0. The pointer returned should be checked before being dereferenced.

This patch also has a small change for FirewireSignalMonitor::RunTableMonitor?(). That change can be safely ignored.

Attachments

libs_libmythtv_firewiresignalmonitor.cpp-dyncast-can-be-null.patch (1.9 KB) - added by Erik Hovland <erik@…> 4 years ago.
check dynamic_cast

Change History

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

check dynamic_cast

comment:1 Changed 4 years ago by danielk

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

(In [17201]) Fixes #5120. Adds some 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.