[wp-trac] [WordPress Trac] #31879: Possible crash without any reporting in class-wp-image-editor-gd.php

WordPress Trac noreply at wordpress.org
Fri Apr 3 12:00:15 UTC 2015


#31879: Possible crash without any reporting in class-wp-image-editor-gd.php
-----------------------------+-----------------------------
 Reporter:  nevma            |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Post Thumbnails  |    Version:  4.1.1
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 In certain situations, the processing of an image (e.g. via
 wp_generate_attachment_metadata()) can lead to unreported memory
 exhaustion in:

 wp-includes/class-wp-image-editor-gd.php
 line: 102
 (public function load() )

 At that point there is the statement:
 $this->image = @imagecreatefromstring( file_get_contents( $this->file ) );

 Since the errors are suppressed, the user is never notified of the issue,
 and the execution abruptly ends.

 This is not a bug itself, but the issue should probably be communicated to
 the user somehow.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31879>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list