[mythtv-commits] Ticket #4207: MythTV.pm doesn't check return code of read.

MythTV mythtv at cvs.mythtv.org
Thu Nov 22 03:31:08 UTC 2007


#4207: MythTV.pm doesn't check return code of read.
-------------------------------+--------------------------------------------
 Reporter:  andrew at etc.gen.nz  |       Owner:  xris   
     Type:  defect             |      Status:  new    
 Priority:  minor              |   Milestone:  unknown
Component:  perl / nuvexport   |     Version:  0.20.2 
 Severity:  medium             |     Mlocked:  0      
-------------------------------+--------------------------------------------
 When the data is read from the backend there is no checking of the return
 code for the read.

 This can lead to $length being the empty string which then causes Perl to
 throw an error when it tries to do integer($length).

 The attached patch protects from this.  I haven't seen the problem
 personally (it was reported to me) so I haven't been able to fully check
 it (but the reporter is no longer seeing errors).

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4207>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list