[wp-trac] [WordPress Trac] #17779: Add some casts in Custom_Image_Header

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 13 08:31:00 UTC 2011


#17779: Add some casts in Custom_Image_Header
--------------------------+------------------
 Reporter:  xknown        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.2
Component:  Themes        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by xknown):

 Replying to [comment:1 nacin]:
 > In the future, please report things that sound like vulnerabilities to
 security at wordpress.org. After walking through the code, this comes pretty
 close to being one.

 I reported it before the latest minor release (on May 5) :)


 > I don't see a memory consumption issue, unless an image is being
 referenced, and thus GD goes through a resizing.

 Well, I'm not sure about that. The imagecreatefromstring function still
 needs some amount of memory to load the image. Thus, if someone forces to
 load multiple large images you may have a problem there.

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


More information about the wp-trac mailing list