Opened 16 years ago

Closed 16 years ago

#5153 closed defect (fixed)

open() call not checked in MPEG2fixup::WriteFrame and MPEG2fixup::WriteYUV

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

Description

open() can return -1 if it was not able to open the file requested. It should be checked and reported.

Attachments (1)

programs_mythtranscode_mpeg2fix.cpp-make-sure-file-is-open-before-writing.patch (1.3 KB) - added by Erik Hovland <erik@…> 16 years ago.
check open() fd and report

Download all attachments as: .zip

Change History (2)

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

check open() fd and report

comment:1 Changed 16 years ago by greg

Resolution: fixed
Status: newclosed

(In [17037]) Ensures we check to make sure we successfully return from open() before continuing on. Closes #5153

Patch from Erik Hovland

Note: See TracTickets for help on using tickets.