]> granicus.if.org Git - php/commit
Fixed bug #77564: Memory leak in exif_process_IFD_TAG
authorBen Ramsey <ben@benramsey.com>
Sun, 10 Feb 2019 18:25:19 +0000 (12:25 -0600)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 12 Feb 2019 08:28:33 +0000 (09:28 +0100)
commitc4294440ffc4a59a1298292b76072e6759034a68
tree75375e33dc8011c0228a234877387df88c4c902a
parent9222702633c63254b08466b322266b647ac3e905
Fixed bug #77564: Memory leak in exif_process_IFD_TAG

The memory leak occurs when more than one UserComment tag is present in
the EXIF data. It's still considered corrupt EXIF data, but this ensures
the memory is freed before trying to set to already allocated memory.
NEWS
ext/exif/exif.c
ext/exif/tests/bug77564/bug77564.jpg [new file with mode: 0644]
ext/exif/tests/bug77564/bug77564.phpt [new file with mode: 0644]