Merge "Add support for 'hu-formal'"
[lhc/web/wiklou.git] / includes / media / JpegMetadataExtractor.php
index 0bd01cd..3c778f3 100644 (file)
@@ -158,6 +158,8 @@ class JpegMetadataExtractor {
                                if ( $size['int'] < 2 ) {
                                        throw new MWException( "invalid marker size in jpeg" );
                                }
+                               // Note it's possible to seek beyond end of file if truncated.
+                               // fseek doesn't report a failure in this case.
                                fseek( $fh, $size['int'] - 2, SEEK_CUR );
                        }
                }