Bugzilla – Attachment #22446: other fix for bug #58356
p = line[h-y-1] + x;
break;
default: // absolute mode
if ( b > (bpl - x) )
return FALSE;
if ( d->readBlock( (char *)p, b ) != b )
if ( (b & 1) == 1 )
p += b;
}
} else { // encoded mode
memset( p, d->getch(), b ); // repeat pixel
x += b;