Avoid OOB read on short buffer in various Olympus-like MakerNotes.
authorDan Fandrich <dan@coneharvesters.com>
Mon, 18 Jun 2018 10:41:15 +0000 (12:41 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 12 Jul 2019 08:35:12 +0000 (10:35 +0200)
commitd0ec90fd1ae873e69901851a8dfd57f6cf372de2
tree20f9a7aa7faee22fa51d8020315a651ce1e0d376
parenta0c04d9cb6ab0c41a6458def9f892754e84160a0
Avoid OOB read on short buffer in various Olympus-like MakerNotes.

A sanity check on entry to the block ensures a minimum buffer size, so a few
other checks were redundant and could actually be removed. This improves
on commit a0c04d9c.
Fixes https://sourceforge.net/p/libexif/bugs/132/ found by the Google
Autofuzz project.  Patch from Google.
libexif/olympus/exif-mnote-data-olympus.c