JpegMetadataExtractor: Don't fail when garbage bytes are present between JPEG sections
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 19 Oct 2016 06:20:23 +0000 (23:20 -0700)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 19 Oct 2016 06:20:23 +0000 (23:20 -0700)
commit5506a8d43ddc4eb35ab566f63fbba074f85da10e
tree61d6ce594db41a9eaa0b229c4e98bdedb7371bb9
parent12fb71be546c8b942d9273f827ba1e44b5e7c9da
JpegMetadataExtractor: Don't fail when garbage bytes are present between JPEG sections

In theory JPEG files are not allowed to contain anything between the sections,
but in practice they sometimes do. It's customary to ignore the garbage data.

Bug: T148606
Change-Id: I98f2609644bcd8bfd7c1679afc6e7af83e228685
includes/media/JpegMetadataExtractor.php