View | Details | Raw Unified | Return to bug 44824
Collapse All | Expand All

(-)src/scratchpad/src/org/apache/poi/hwpf/usermodel/Picture.java (-1 / +1 lines)
Lines 363-369 Link Here
363
      do {
363
      do {
364
        firstByte = _dataStream[pointer];
364
        firstByte = _dataStream[pointer];
365
        secondByte = _dataStream[pointer+1];
365
        secondByte = _dataStream[pointer+1];
366
      } while (!(firstByte==(byte)0xFF) && pointer<endOfPicture-1);
366
      } while (!(firstByte==(byte)0xFF) && ++pointer<endOfPicture-1);
367
367
368
      if (firstByte==((byte)0xFF) && pointer<endOfPicture-1) {
368
      if (firstByte==((byte)0xFF) && pointer<endOfPicture-1) {
369
        if (secondByte==(byte)0xD9 || secondByte==(byte)0xDA) {
369
        if (secondByte==(byte)0xD9 || secondByte==(byte)0xDA) {

Return to bug 44824