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


I was able to run a debug session on an observed cpu-ooping in a
cppunit test on windows (tb65)
It was not sa debug build but from the assembler  it seems to be
looping in the while loop of the code below:

void SfxOleSection::SaveProperty( SvStream& rStrm, SfxOlePropertyBase&
rProp, sal_Size& rnPropPosPos )
{
    rStrm.Seek( STREAM_SEEK_TO_END );
    sal_uInt32 nPropPos = static_cast< sal_uInt32 >( rStrm.Tell() -
mnStartPos );
    // property data type
    rStrm.WriteInt32( rProp.GetPropType() );
    // write property contents
    SaveObject( rStrm, rProp );
    // align to 32-bit
    while( (rStrm.Tell() & 3) != 0 )
        rStrm.WriteUChar( 0 );

----^
loop here

looks like WriteUChar call blind Write, does not check that Write
actually wrote anything
whch somehow it does not (although my assembler skill does not allow
me to figre out exactly which path it took to bails -- I mean in the
c++ code.

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.