To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=54347 Issue #:|54347 Summary:|race in ucbhelper/backgrounddownload Component:|ucb Version:|680m124 Platform:|All URL:| OS/Version:|All Status:|NEW Status whiteboard:| Keywords:| Resolution:| Issue type:|DEFECT Priority:|P3 Subcomponent:|code Assigned to:|abi Reported by:|sb
------- Additional comments from [EMAIL PROTECTED] Thu Sep 8 01:21:42 -0700 2005 ------- The InputStream implementation in ucbhelper/source/provider/backgrounddownload.cxx has a race in function seek, as it calls skipBytes after releasing the mutex: If two threads simultaneously issue seek(N) both with the same N > m_nLen, then it may happen that skipBytes is called twice, effectively skipping to position 2 * location - m_nLen. Also, it appears that the implementation of seek can be improved for the case location == m_nLen, by simply setting m_nPos = location in that case. --------------------------------------------------------------------- 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]