Open
Description
by jeff.allen:
What steps will reproduce the problem? 1. decode attached gif, get bad behavior due to giant malloc followed by giant memset(0). 2. finally get error about UnexpectedEOF because there is not as much pixel data as the bounds say there should be. The problem is that the gif has a frame in it that would need 4.2e9 bytes to hold according to bounding box, but it only has 1 byte. The allocation of the 4.2e9 bytes succeeds, but at considerable pain. Then the UnexpectedEOF is thrown. What is the expected output? Getting the error without allocating a huge amount of memory first. What do you see instead? Long pause and unresponsive computer due to giant memory allocation. Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? linux Which version are you using? (run 'go version') tip
Attachments:
- bug525326.gif (11606 bytes)
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
nigeltao commentedon Mar 15, 2013
Comment 1:
Labels changed: added priority-later, removed priority-triage.
Status changed to Thinking.
gopherbot commentedon Mar 15, 2013
Comment 2 by jeff.allen:
gopherbot commentedon Jun 25, 2013
Comment 3 by jeff.allen:
gopherbot commentedon Jul 10, 2013
Comment 4 by jeff.allen:
nigeltao commentedon Jul 11, 2013
Comment 5:
rsc commentedon Jul 30, 2013
Comment 7:
Labels changed: added go1.2maybe.
robpike commentedon Aug 20, 2013
Comment 8:
Labels changed: added go1.3maybe, removed go1.2maybe.
robpike commentedon Aug 20, 2013
Comment 9:
Labels changed: removed go1.3maybe.
rsc commentedon Nov 27, 2013
Comment 10:
Labels changed: added go1.3maybe.
rsc commentedon Dec 4, 2013
Comment 11:
Labels changed: added release-none, removed go1.3maybe.
rsc commentedon Dec 4, 2013
Comment 12:
Labels changed: added repo-main.
8 remaining items
yonderblue commentedon Nov 29, 2016
Is anyone working on the DecodeInto?
vsiv commentedon Mar 31, 2017
We run into this from time to time:
For gif image - https://media.giphy.com/media/3oKIP94L7OaT9m3DPy/giphy.gif:
Error: gif: frame bounds larger than image bounds
But this issue might resolve it - #16146
bradfitz commentedon Apr 2, 2017
@vsiv, yeah, I think you're commenting on the wrong issue here.
fatal error: runtime: out of memory
via(*decoder).parseIDAT
#53778gopherbot commentedon Jul 13, 2022
Change https://go.dev/cl/417477 mentions this issue:
image/png: build large images incrementally