ASF Bugzilla – Attachment 21860 Details for
Bug 44824
[PATCH] Infinite loop in hwpf/usermodel/Picture.java
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for infinite loop in Picture.java
picture-patch.txt (text/plain), 694 bytes, created by
Mike Flester
on 2008-04-27 12:53:50 UTC
(
hide
)
Description:
patch for infinite loop in Picture.java
Filename:
MIME Type:
Creator:
Mike Flester
Created:
2008-04-27 12:53:50 UTC
Size:
694 bytes
patch
obsolete
>Index: src/scratchpad/src/org/apache/poi/hwpf/usermodel/Picture.java >=================================================================== >--- src/scratchpad/src/org/apache/poi/hwpf/usermodel/Picture.java (revision 652008) >+++ src/scratchpad/src/org/apache/poi/hwpf/usermodel/Picture.java (working copy) >@@ -363,7 +363,7 @@ > do { > firstByte = _dataStream[pointer]; > secondByte = _dataStream[pointer+1]; >- } while (!(firstByte==(byte)0xFF) && pointer<endOfPicture-1); >+ } while (!(firstByte==(byte)0xFF) && ++pointer<endOfPicture-1); > > if (firstByte==((byte)0xFF) && pointer<endOfPicture-1) { > if (secondByte==(byte)0xD9 || secondByte==(byte)0xDA) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 44824
: 21860