[wp-trac] [WordPress Trac] #14207: streams.php, POMO_FileReader $length parameter of fread

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 6 09:42:28 UTC 2010


#14207: streams.php, POMO_FileReader $length parameter of fread
--------------------------+-------------------------------------------------
 Reporter:  bueltge       |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  i18n          |     Version:  3.0            
 Severity:  major         |    Keywords:  has-patch      
--------------------------+-------------------------------------------------
Changes (by nacin):

  * component:  Administration => i18n
  * severity:  critical => major


Comment:

 Without speaking at all to the validity of the patch, checking for empty()
 would be much simpler.

 Lowering priority a bit as fread() with zero length fires only a warning,
 not a fatal, and I'm still not sure of the steps to reproduce an instance
 where 0 is requested.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14207#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list