On 12.06.2012 13:54, Stephan Bergmann wrote:
On 06/12/2012 01:32 PM, Michael Stahl wrote:
On 12.06.2012 13:14, Muthu Subramanian K wrote:
Can somebody review and cherry-pick this one please?
http://cgit.freedesktop.org/libreoffice/core/commit/?id=25dd603fe2044f35341fe0c6d0b632c9295a824e
hmm... that old code looks legit to me?
No, growing a vector (which push_back can do) invalidates all references
into the vector.
ah, back() returns a reference, not a value?
then of course it was wrong.
hmm... grep finds some more occurrences of this...
sc/source/filter/html/htmlpars.cxx: rSizes.push_back( rSizes.empty() ? 1 : (rSizes.back()
+ 1) );
this one can't go wrong because has to dereferences before calling
push_back.
i've fixed the other ones, please review and push to libreoffice-3-5:
http://cgit.freedesktop.org/libreoffice/core/commit/?id=cd18b8e313b792f5fc42edb3314a95d202406899
Context
- Re: [REVIEW-3-5] Fix for crash in fdo#50868 (continued)
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.