Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Fri, 2011-05-20 at 07:48 -0600, Tor Lillqvist wrote:
http://cgit.freedesktop.org/libreoffice/libs-core/commit/?id=37b8567fc76b78b1844461926175ba6919b8c7bd

Not marked as a mostly annoying bug, but it is a crasher, so perhaps
should be cherry-picked to the -3-4 or even -3-4-0 branches?

if ( !m_disabledUpdates.empty() )
    bInserted = showDescription( m_disabledUpdates[pos].aUpdateInfo );

Hmm... Shouldn't the check be the size of the vector vs pos?  The vector
is accessed by the pos index which may not be always 0.

So, I would make it

if ( pos < m_disabledUpdates.size() )
    bInserted = showDescription( m_disabledUpdates[pos].aUpdateInfo );

instead, to make it even more crash-proof.

Kohei

-- 
Kohei Yoshida, LibreOffice hacker, Calc
<kyoshida@novell.com>


Context


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.