Hello,
I attached a patch for fdo#44533 (SLIDESHOW: CRASH when play particular
presentation with sound).
I attached in the bugtracker the backtrace
(https://bugs.freedesktop.org/attachment.cgi?id=55314)
and console logs (https://bugs.freedesktop.org/attachment.cgi?id=55315)
Here is the code :
VectorOfSprites::iterator aBegin( aUpdatableSprites.begin() );
VectorOfSprites::iterator aEnd ( aUpdatableSprites.end() );
::std::sort( aBegin,
aEnd,
aSpriteComparator );
aEnd = ::std::unique( aBegin, aEnd );
...comments
::std::for_each( aBegin,
aEnd,
SpriteUpdater( rUpdateAreas,
maChangeRecords) );
...comments
VectorOfSprites aUnchangedSprites;
::std::set_difference( aSortedSpriteVector.begin(),
aSortedSpriteVector.end(),
aBegin, aEnd,
::std::back_insert_iterator< VectorOfSprites
(aUnchangedSprites) );
Because of the sort, I don't think that the iterators aBegin and aEnd can be
reused just after a sort.
So i try to declare these variables after the sort and I didn't have a
crash.
Perhaps, these variables could be declared more lately for safety or perhaps
not at all (and so we should call each time .begin and .end each time), I'm
not sure.
Any idea ?
Julien
http://nabble.documentfoundation.org/file/n3643134/proposed_patch_44533.txt
proposed_patch_44533.txt
--
View this message in context:
http://nabble.documentfoundation.org/PATCH-proposed-fix-for-fdo-44533-tp3643134p3643134.html
Sent from the Dev mailing list archive at Nabble.com.
Context
- [Libreoffice] [PATCH] proposed fix for fdo#44533 · julien2412
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.