Apache OpenOffice (AOO) Bugzilla – Issue 70100
memory leak(?) when opening empty file as certain filetype
Last modified: 2017-05-20 11:18:04 UTC
Hi, I did the following on OpenOffice 1.9 on Linux and OpenOffice 2.0.3 on Windows: - create an empty file (I.e.: using "touch <filename>" in Linux - open with Openoffice (I.e.: using "soffice <filename>" - now OpenOffice will ask how to open it, click on 'HTML Document' or 'Help content' Now OpenOffice will open the file but instead of being unable to open it, or to show an empty file it shows 1.5 KB of some (possibly) "random" memory. I have not tested other document formats, but there may be others that have the same problem. Out of curiosity I searched my disk to see where this data comes from. It turns out the exact content also is inside the files sg30.sdv and sg100.sdv, one of them is probably loaded in memory. It is interesting that it stores the 1,5KB to disk without asking the user for saving the file. Anyway, it looks like a buffer underrun of some type, expecting 1,5KB of file contents at a specific memory location i would think.
I confirm the problem with OOo 2.0.4rc2 on Linux. BTW, the problem does not occur when the file has as little as 1 byte.
TM->SBA: Reproducible ! According to AS this might be a problem within the HTML-Filter. If you choose OpenDocument Text from the filter-selection dialog you will get the expected "General input/output error". Please have a look.
SBA->AMA: Please proceed.
target 3.0
wrong component
ama->mav: As discussed, in sw/source/ui/app/docsh.cxx SwDocShell::StartConvertFrom(..) calls rMedium.IsStorage() and I watched during debugging that the stream buffer get filled with1500 bytes when IsStorage() is called?!
target 3.x
Reset assigne to the default "issues@openoffice.apache.org".