commit | 23478bc8eb2dcf7df4678359e8fb164a5317313f | [log] [tgz] |
---|---|---|
author | krasin <krasin@chromium.org> | Thu Dec 15 23:39:36 2016 |
committer | Commit bot <commit-bot@chromium.org> | Thu Dec 15 23:42:39 2016 |
tree | 864220d8f46cb28ea7aeb76cba463bb375a37dc1 | |
parent | 6e98a82eb3adcc9a1e9ae20e2d26b6dba24f9652 [diff] |
Fix stack-use-after-scope in png_codec. PngWriteStructDestroyer accesses info_ptr, so info_ptr must have a wider lifetime scope. Otherwise, the behavior of the problem is undefined. The issue is found by AddressSanitizer with use-after-scope check enabled. BUG=649897 Review-Url: https://codereview.chromium.org/2576823002 Cr-Commit-Position: refs/heads/master@{#438954}