Fix stack buffer overflows in exif_content_dump and exif_entry_dump.
authorDan Fandrich <dan@coneharvesters.com>
Wed, 25 Sep 2019 14:02:08 +0000 (16:02 +0200)
committerMarcus Meissner <meissner@suse.de>
Sat, 16 May 2020 17:30:27 +0000 (19:30 +0200)
commitbbd35b1f591b960575d8c77921f93cbedfd69e7d
tree3623426c83758f9e65e2a311ad790687c43adae4
parentec412aa4583ad71ecabb967d3c77162760169d1f
Fix stack buffer overflows in exif_content_dump and exif_entry_dump.

If too large an indent is given, a local buffer will overflow. This
can't happen when called through exif_data_dump (which is likely the
most common case) and since they are documented as being for diagnostic
purposes only, this shouldn't pose too big a security risk in the wild.

Reported-by: jonnygrant.
(not exploitable by malicious data)
libexif/exif-content.c
libexif/exif-entry.c