commit | 3ec225dd411c1a779089fa558d659cf860d12da0 | [log] [tgz] |
---|---|---|
author | Sami Boukortt <sboukortt@google.com> | Tue Feb 12 14:17:27 2019 +0100 |
committer | Cosmin Truta <ctruta@gmail.com> | Tue Sep 13 14:11:33 2022 +0300 |
tree | 45f6f700ce621b8027ba1e1da3d2bdcbebf08c9c | |
parent | 36bd1bbd549a4b6dd5ed2e1dbf7fd623c0a9797d [diff] |
Fix a memory leak in png_set_tRNS This leak was discovered by OSS-Fuzz. The old structure of the code was along the lines of: allocate trans_alpha; if (problem) { // Jumps away from this function png_warning("tRNS chunk has out-of-range samples for bit_depth"); } mark trans_alpha as to-free; Signed-off-by: Cosmin Truta <ctruta@gmail.com>