Opened 13 years ago

Closed 13 years ago

#5524 closed defect (fixed)

make sure fopen worked before doing a bunch of work on a file handle

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


UpdatePositionMap? uses fopen but does not check the value returned to see if it was not null. This can lead to bad problems when the file handle is used.

Attachments (1)

programs_mythtranscode-null-return.patch (1.3 KB) - added by Erik Hovland <erik@…> 13 years ago.
check return value of fopen before using

Download all attachments as: .zip

Change History (2)

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

check return value of fopen before using

comment:1 Changed 13 years ago by danielk

Resolution: fixed
Status: newclosed

(In [18182]) Fixes #5524. Check if we successfully opened map file for writing before trying to write to it, print error message if we failed to open it.

Note: See TracTickets for help on using tickets.