Issue 122879 - RTF: Renders image encoding instead of image
Summary: RTF: Renders image encoding instead of image
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: viewing (show other issues)
Version: 3.4.0
Hardware: All Windows 7
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact: Edwin Sharp
URL:
Keywords:
: 128244 (view as issue list)
Depends on:
Blocks:
 
Reported: 2013-07-29 00:52 UTC by Alan A. Jorgensen, Ph.D.
Modified: 2019-12-20 17:03 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.0.0
Developer Difficulty: ---


Attachments
A rich text file (.rtf) containing only a small encoded image (33.66 KB, text/rtf)
2013-07-29 00:52 UTC, Alan A. Jorgensen, Ph.D.
no flags Details
Word 2007 vs. Writer 4.0 (233.91 KB, image/jpeg)
2013-08-08 08:34 UTC, Edwin Sharp
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Alan A. Jorgensen, Ph.D. 2013-07-29 00:52:43 UTC
Created attachment 81185 [details]
A rich text file (.rtf) containing only a small encoded image

RTF text identifies encoding as {\pict\wmetafile8\picw1323\pich1323\picwgoal750\pichgoal750.

Writer renders the encoding of image rather that the image itself, e.g. 

010009000003421e00000000140f00000000140f000026060f001e1e574d4643010000000000010019440000000001000000fc1d000000000000fc1d0000010000006c00000000000000000000003100000031000000000000000 ... 

The test file, Test.rtf, is attached.

This file was created by copying my Facebook home page and pasting it into MS Word and saving it as an .rtf file as part of my development of a fuzzing framework for OpenOffice applications as describe in "Testing with Hostile Data Streams"

The original file was very large but has been pruned using MS Wordpad to what I believe is the minimum file that causes the problem.  Perhaps there is unnecessary context in the .rtf file.
Comment 1 Edwin Sharp 2013-08-06 07:31:26 UTC
Please specify steps to reproduce.
Comment 2 Alan A. Jorgensen, Ph.D. 2013-08-06 16:57:29 UTC
Reproduction procedure:

1.  Save test file, Test.rtf, in a convenient directory.
2.  Open Test.rtf with MS Word or WordPad
3.  Note the display of the image of an anser in flight.
4.  Invoke OpenOffice Write (swrite.exe) version 4.0.0 (build 9702)
5.  Left click "file"
6.  Left click "open"
7.  Select Test.rtf from the convenient directory specified in step 1.
8.  Note the display of the file encoding start with "010009000003421e00000000140f00000"
9.  This should display as the same image as shown in step 3.
Comment 3 Edwin Sharp 2013-08-08 08:34:04 UTC
Created attachment 81270 [details]
Word 2007 vs. Writer 4.0
Comment 4 Edwin Sharp 2013-08-08 08:34:45 UTC
Thank you.

Rev. 1507307 Win 7
Comment 5 Oliver-Rainer Wittmann 2013-08-09 13:48:06 UTC
also reproduced with OOo 3.3.0 -> adjust field Version accordingly.
Comment 6 oooforum (fr) 2019-12-20 17:03:15 UTC
*** Issue 128244 has been marked as a duplicate of this issue. ***