Skip to content

Commit

Permalink
Sanity check.
Browse files Browse the repository at this point in the history
See Bug: 13788
  • Loading branch information
mrubinsk committed Feb 9, 2015
1 parent 5131f30 commit 8ac25d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion framework/Image/lib/Horde/Image/Exif/Bundled.php
Expand Up @@ -196,7 +196,11 @@ protected function _readData($path)
}

// 2 bytes of 0x002a
$tag = bin2hex($in->substring(0, 2));
if (bin2hex($in->substring(0, 2)) != '002a') {
$result['Errors'] = $result['Errors'] + 1;
$result['Error'][$result['Errors']] = 'Unexpected value.';
return $result;
}

// Then 4 bytes of offset to IFD0 (usually 8 which includes all 8 bytes
// of TIFF header)
Expand Down

0 comments on commit 8ac25d7

Please sign in to comment.