https://issues.apache.org/ooo/show_bug.cgi?id=119935
--- Comment #16 from hanya <[email protected]> --- (In reply to hanya from comment #15) > This can open from the bytes into spreadsheet. > > Sub CSVFromStream With this, during the detection of the file type in ScFilterDetect::detect, lcl_MayBeAscii function returns true because rStream.Read results always zero. The passed stream to the lcl_MayBeAscii function is not reset the error happen in SotStorage ctor. In the SotStorage ctor, Storage instance is created and it tries to read file header in StgHeader::Load method. aBytes only have 9 bytes in the macro, and some operator>> call goes to wrong SvStream::nBufActualPos in the StgHeader::Load method. The error code 530 (SVSTREAM_SEEK_ERROR) of the stream is not reset in the detect method. SvStream::GetData method returns zero in lcl_MayBeAscii function because the error is not reset. When I make aBytes longer than about 128 bytes, the error not happen. -- You are receiving this mail because: You are the assignee for the bug.
