• Michael Stahl's avatar
    sot: don't leak uninitialized memory into temp file · 6a223b9a
    Michael Stahl yazdı
    Both valgrind and drmemory complain about this in
    SdExportTest::testSwappedOutImageExport() via
    SfxOleThumbnailProperty::ImplSave().
    
     Syscall param pwrite64(buf) points to uninitialised byte(s)
    
     UNINITIALIZED READ: reading 0x0455b1b4-0x0455b1c8 20 byte(s) within...
    
    It appears that the stream writes out everything up to the seek position
    anyway (otherwise the size check wouldn't work, with sparse files)
    so make sure it's all zeroed.
    
    Also fix SvMemoryStream::ReAllocateMemory() to zero it.
    
    Change-Id: Id86dfa65ef6f7d1bba4810f121e01473c5fcf4c7
    6a223b9a
Adı
Son kayıt (commit)
Son güncelleme
..
inc/pch Loading commit data...
qa Loading commit data...
source Loading commit data...
util Loading commit data...
workben Loading commit data...
CppunitTest_sot_test_sot.mk Loading commit data...
JunitTest_sot_complex.mk Loading commit data...
Library_sot.mk Loading commit data...
Makefile Loading commit data...
Module_sot.mk Loading commit data...
README Loading commit data...