Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Issue 68453006: Clean up after longjmp in SkImageDecoder_libpng. (Closed)

Created:
7 years, 1 month ago by scroggo
Modified:
7 years, 1 month ago
Reviewers:
djsollen
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Clean up after longjmp in SkImageDecoder_libpng. In onDecodeInit, if longjmp sends us back to setjmp, destroy the png_struct and info_ptr before returning false. Since the PNGAutoClean has not been created yet, we were previously leaking resources. R=djsollen@google.com Committed: https://code.google.com/p/skia/source/detail?r=12244

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M src/images/SkImageDecoder_libpng.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
scroggo
7 years, 1 month ago (2013-11-12 15:10:17 UTC) #1
djsollen
lgtm
7 years, 1 month ago (2013-11-12 15:25:59 UTC) #2
scroggo
7 years, 1 month ago (2013-11-12 15:30:10 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r12244 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698