https://bugs.freedesktop.org/show_bug.cgi?id=64235

--- Comment #25 from Julien Nabet <[email protected]> ---
Mikael: what amount of RAM do you have?
Could you check memory consumption during the tests?

Michael: according to Mikael trace, it seems here:
    258         if ( NULL != ptdSrc )
    259         {
    260             ptdDest = static_cast< DVTARGETDEVICE* >( CoTaskMemAlloc(
ptdSrc->tdSize ) );
    261             memcpy( ptdDest, ptdSrc, static_cast< size_t >(
ptdSrc->tdSize ) );
    262         }

of course we could add a test on ptdDest before memcpy but why CoTaskMemAlloc
could return NULL.
BTW, I tried to find some other uses of CoTaskMemAlloc
http://opengrok.libreoffice.org/search?q=CoTaskMemAlloc&project=core&defs=&refs=&path=&hist=
it seems we may have the same problem here:
http://opengrok.libreoffice.org/xref/core/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx#241

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to