Modify

Ticket #9940 (closed Patch - Bug Fix: fixed)

Opened 22 months ago

Last modified 22 months ago

Patch: Static analysis null pointer deference in hdhomerun_device.c

Reported by: Gary Buhrmaster <gary.buhrmaster@…> Owned by: robertm
Priority: trivial Milestone: 0.25
Component: MythTV - HDHomeRun Version: Master Head
Severity: low Keywords:
Cc: Ticket locked: no

Description

Running cppcheck on the mythtv code, there is a valid null pointer deference error reported in hdhomerun_device.c. A patch is attached.

Attachments

hdhomerun_device.c.patch (732 bytes) - added by Gary Buhrmaster <gary.buhrmaster@…> 22 months ago.

Change History

Changed 22 months ago by Gary Buhrmaster <gary.buhrmaster@…>

comment:1 Changed 22 months ago by robertm

  • Status changed from new to infoneeded_new

Hi Gary,

Have you submitted this patch to SiliconDust?? Which version of MythTV is this against? We have different versions of the library in each release.

comment:2 Changed 22 months ago by silicondust

Problem confirmed by code review. Patch approved for trunk.

Nick - Silicondust

comment:3 Changed 22 months ago by silicondust

RE backporting:

This bug probably goes back a long way, however no need to backport as this codepath is theoretical under Linux (requires calloc to return NULL and I don't believe Linux will do that due to the way it lazy allocates memory).

Nick

comment:4 Changed 22 months ago by robertm

  • Status changed from infoneeded_new to new

Will apply to master for continuity's sake, thanks.

comment:5 Changed 22 months ago by robertm

  • Owner changed from silicondust to robertm
  • Status changed from new to assigned
  • Version changed from Unspecified to Trunk Head
  • Milestone changed from unknown to 0.25

comment:6 Changed 22 months ago by Github

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

libhdhomerun: Fix NULL pointer dereference.

Fixes #9940 with a patch provided by Gary Buhrmaster, OK'd by Nick K from SiliconDust?.

Branch: master Changeset: cbed8d8a8e0ceb37d1ba19338adab6e6fa2d96bc

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.