https://issues.apache.org/bugzilla/show_bug.cgi?id=46392





--- Comment #5 from Trejkaz <[email protected]>  2009-03-24 18:16:36 PST ---
Created an attachment (id=23414)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23414)
Another one which doesn't work

Here's one I created by dropping a .txt file into a Word 2003 document.  It
doesn't work because the code which reads the 8 bytes between the first two
strings and the third string apparently makes a false assumption about the
meaning of the third byte.

Disassembled stream:

@0x0: 36 01 00 00
  Length of remaining data.

@0x4: 02 00
  Our original theory was that this is TYMED_FILE, but TYMED are normally 4
bytes.
  My new theory is that this is actually a header for the string array to
follow,
  as there happen to be two strings.

@0x6: 50 61 63 6b 61 67 65 64 20 66 69 6c 65 00
  "Packaged file" + NUL

@0x14: 44 3a 5c 70 61 63 6b 61 67 65 64 2e 74 78 74 00
  "D:\packaged.txt" + NUL

@0x24: 00 00
  Unknown.  Possibly terminates the string array, assuming that theory was
correct.

@0x26: 03 00
  Unknown.
  Matches the value in \u0003ObjInfo but this may just be coincidence.
  Also matches the number of strings which follow the data but this may be
coincidence too.

@0x28: 30 00 00 00
  Unknown.  Matches the length of the following string, possibly a coincidence.

@0x2c: 43 3a 5c 55 73 65 72 73 5c 64 61 6e 69 65 6c 5c 41 70 70 44 61 74 61 5c
       4c 6f 63 61 6c 5c 54 65 6d 70 5c 70 61 63 6b 61 67 65 64 2e 74 78 74 00
  "C:\Users\daniel\AppData\Local\Temp\packaged.txt" + NUL

@0x5c: 38 00 00 00
  Length of actual data following.

@0x98: 2f 00 00 00
  Number of UTF-16LE chars following.

@0xfa: 0d 00 00 00
  Number of UTF-16LE chars following.

@0x118: 0f 00 00 00
  Number of UTF-16LE chars following.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to