[libGD] #204 [Task opened] gdImageCreateFromPng potential segfault

[email protected] Wed, 17 Jun 2009 21:11:21 +0200 (CEST)
Newsgroups php.gd.bugs
Message-ID <[email protected]>
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - James Buren (ryuo) 

Attached to Project - libGD
Summary - gdImageCreateFromPng potential segfault
Task Type - Bug Report
Category - Image Import/Export
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Normal
Reported Version - 2.0.35
Due in Version - Undecided
Due Date - Undecided
Details - gdImageCreateFromPng, and possibly other image file loaders, makes an assumption that gdNewFileCtx returns a valid pointer, but a review of the underlying code suggests it can return NULL if allocation fails. While it is rare to run out of memory when such little is used, it can still happen. I am reporting this because its bad to assume that the memory returned from any allocation function is valid, especially in C.

More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=204

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.