Apache OpenOffice (AOO) Bugzilla – Issue 107358
vcl: uninitialized m_aDigitLanguage in PDF export
Last modified: 2010-04-13 08:34:20 UTC
patch attached, valgrind says... ==9928== Conditional jump or move depends on uninitialised value(s) ==9928== at 0x7BD0F18: OutputDevice::ImplPrepareLayoutArgs(String&, unsigned short, unsigned short, long, int const*) const (outdev3.cxx:6378) ==9928== by 0x7BDF8D4: OutputDevice::ImplLayout(String const&, unsigned short, unsigned short, Point const&, long, int const*, bool) const (outdev3.cxx:6503) ==9928== by 0x7C3C049: vcl::PDFWriterImpl::drawText(Point const&, String const&, unsigned short, unsigned short, bool) (pdfwriter_impl.cxx:7228) ==9928== by 0x286AED67: PDFExport::ImplWriteActions(vcl::PDFWriter&, vcl::PDFExtOutDevData*, GDIMetaFile const&, VirtualDevice&) (pdfexport.cxx:1592) ==9928== by 0x286B0A97: PDFExport::ImplExportPage(vcl::PDFWriter&, vcl::PDFExtOutDevData&, GDIMetaFile const&) (pdfexport.cxx:971) ==9928== by 0x286B130B: PDFExport::ExportSelection(vcl::PDFWriter&, com::sun::star::uno::Reference<com::sun::star::view::XRenderable>&, com::sun::star::uno::Any&, MultiSelection, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>&, int) (pdfexport.cxx:245) ==9928== by 0x286B4A60: PDFExport::Export(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (pdfexport.cxx:894) ==9928== by 0x286AB7F0: PDFFilter::implExport(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (pdffilter.cxx:126) ==9928== by 0x286ACD12: PDFFilter::filter(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (pdffilter.cxx:185) ==9928== by 0x5E82C70: SfxObjectShell::ExportTo(SfxMedium&) (in /usr/lib64/openoffice.org/basis3.2/program/libsfxlx.so) ==9928== by 0x5E8B656: ??? (in /usr/lib64/openoffice.org/basis3.2/program/libsfxlx.so) ==9928== by 0x5E8D4FC: ??? (in /usr/lib64/openoffice.org/basis3.2/program/libsfxlx.so) ==9928== Uninitialised value was created by a heap allocation ==9928== at 0x4A0515D: malloc (vg_replace_malloc.c:195) ==9928== by 0x4011CA: ??? (in /usr/lib64/openoffice.org3/program/soffice.bin) ==9928== by 0x4012D6: operator new(unsigned long) (in /usr/lib64/openoffice.org3/program/soffice.bin) ==9928== by 0x7C1DC18: vcl::PDFWriterImpl::push(unsigned short) (new_allocator.h:89) ==9928== by 0x286AF26A: PDFExport::ImplWriteActions(vcl::PDFWriter&, vcl::PDFExtOutDevData*, GDIMetaFile const&, VirtualDevice&) (pdfexport.cxx:1746) ==9928== by 0x286B0A97: PDFExport::ImplExportPage(vcl::PDFWriter&, vcl::PDFExtOutDevData&, GDIMetaFile const&) (pdfexport.cxx:971) ==9928== by 0x286B130B: PDFExport::ExportSelection(vcl::PDFWriter&, com::sun::star::uno::Reference<com::sun::star::view::XRenderable>&, com::sun::star::uno::Any&, MultiSelection, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>&, int) (pdfexport.cxx:245) ==9928== by 0x286B4A60: PDFExport::Export(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (pdfexport.cxx:894) ==9928== by 0x286AB7F0: PDFFilter::implExport(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (pdffilter.cxx:126) ==9928== by 0x286ACD12: PDFFilter::filter(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (pdffilter.cxx:185) ==9928== by 0x5E82C70: SfxObjectShell::ExportTo(SfxMedium&) (in /usr/lib64/openoffice.org/basis3.2/program/libsfxlx.so) ==9928== by 0x5E8B656: ??? (in /usr/lib64/openoffice.org/basis3.2/program/libsfxlx.so) ==9928== ==9928== Conditional jump or move depends on uninitialised value(s) ==9928== at 0x7C62FF5: GetLocalizedChar(unsigned int, unsigned short) (sallayout.cxx:308) ==9928== by 0x7BD100D: OutputDevice::ImplPrepareLayoutArgs(String&, unsigned short, unsigned short, long, int const*) const (outdev3.cxx:6390) ==9928== by 0x7BDF8D4: OutputDevice::ImplLayout(String const&, unsigned short, unsigned short, Point const&, long, int const*, bool) const (outdev3.cxx:6503) ==9928== by 0x7C3C049: vcl::PDFWriterImpl::drawText(Point const&, String const&, unsigned short, unsigned short, bool) (pdfwriter_impl.cxx:7228) ==9928== by 0x286AED67: PDFExport::ImplWriteActions(vcl::PDFWriter&, vcl::PDFExtOutDevData*, GDIMetaFile const&, VirtualDevice&) (pdfexport.cxx:1592) ==9928== by 0x286B0A97: PDFExport::ImplExportPage(vcl::PDFWriter&, vcl::PDFExtOutDevData&, GDIMetaFile const&) (pdfexport.cxx:971) ==9928== by 0x286B130B: PDFExport::ExportSelection(vcl::PDFWriter&, com::sun::star::uno::Reference<com::sun::star::view::XRenderable>&, com::sun::star::uno::Any&, MultiSelection, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>&, int) (pdfexport.cxx:245) ==9928== by 0x286B4A60: PDFExport::Export(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (pdfexport.cxx:894) ==9928== by 0x286AB7F0: PDFFilter::implExport(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (pdffilter.cxx:126) ==9928== by 0x286ACD12: PDFFilter::filter(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (pdffilter.cxx:185) ==9928== by 0x5E82C70: SfxObjectShell::ExportTo(SfxMedium&) (in /usr/lib64/openoffice.org/basis3.2/program/libsfxlx.so) ==9928== by 0x5E8B656: ??? (in /usr/lib64/openoffice.org/basis3.2/program/libsfxlx.so) ==9928== Uninitialised value was created by a heap allocation ==9928== at 0x4A0515D: malloc (vg_replace_malloc.c:195) ==9928== by 0x4011CA: ??? (in /usr/lib64/openoffice.org3/program/soffice.bin) ==9928== by 0x4012D6: operator new(unsigned long) (in /usr/lib64/openoffice.org3/program/soffice.bin) ==9928== by 0x7C1DC18: vcl::PDFWriterImpl::push(unsigned short) (new_allocator.h:89) ==9928== by 0x286AF26A: PDFExport::ImplWriteActions(vcl::PDFWriter&, vcl::PDFExtOutDevData*, GDIMetaFile const&, VirtualDevice&) (pdfexport.cxx:1746)
Created attachment 66439 [details] fix up
committed in CWS vcl108
target
Good catch! This might explain issue 87669, issue 100007, issue 101715, issue 105912 and probably some more.
*** Issue 87669 has been marked as a duplicate of this issue. ***
Will also commit in CWS ooo32gsl09 for 3.2 since hdu thinks this can explain so many issues (and the fix is obvious).
please verify in CWS ooo32gsl09
looks good to me anyway
*** Issue 105912 has been marked as a duplicate of this issue. ***
*** Issue 108439 has been marked as a duplicate of this issue. ***
closing, integrated OOO320 and DEV300 codelines
*** Issue 110118 has been marked as a duplicate of this issue. ***
*** Issue 104930 has been marked as a duplicate of this issue. ***