To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=49889
                  Issue #:|49889
                  Summary:|sys file picker (win) crashes with file names
                          |containing ASCII characters 1..31
                Component:|framework
                  Version:|current
                 Platform:|All
                      URL:|
               OS/Version:|Windows, all
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|tra
              Reported by:|as





------- Additional comments from [EMAIL PROTECTED] Thu May 26 00:46:35 -0700 
2005 -------
a)
Create a file which uses ASCI characters 1..31 (0x00..0x1F) e.g. on an unix 
machine. How? Type into a system shell "test\1\5_.odt" and you get a file with 
0x01 and 0x05 characters.

b)
Try to open this file on windows (using samba or nfs) using the system file 
picker of 
the office. First time nothing will happen ... but if you try to load the file 
a second 
time ... it crashes.

=> The reason: Your struct LPOPENFILENAME contains the values "lpstrFile" and 
"nFileOffset". And you will get a value 65531 as "nFileOffset" .-)
So you call later "m_displayDirectory = rtl::OUString(m_ofn.lpstrFile,m_ofn.
nFileOffset);" in file "fpicker\source\win32\filepicker\FileOpenDlg.cxx". And 
the 
construction of the OUString will fail.

May be there is a chance to detect such "not relay true" length informations 
and 
reject or ignore it.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to