Skip to content

Commit

Permalink
fix in bmp parser
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6862 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed May 9, 2010
1 parent c6d9a12 commit 6eba2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/net/yacy/document/parser/images/bmpParser.java
Expand Up @@ -186,7 +186,7 @@ private void parseBMP4(final byte[] s, final int offset, final int width, final
int n = 0;
int b;
for (int rows = 0; rows < height; rows++) {
for (int columns = 0; columns < width; columns = columns + 2) {
for (int columns = 0; columns < width - 1; columns = columns + 2) {
if (offset + n >= s.length) return; // emergency break
b = (s[offset + n] & 0xff);
n++;
Expand Down

0 comments on commit 6eba2cb

Please sign in to comment.