[ooo-build-commit] Branch 'ooo-build-3-2' - patches/dev300

Kohei Yoshida kohei at kemper.freedesktop.org
Mon Jan 18 20:36:07 PST 2010


 patches/dev300/apply                                 |    3 +++
 patches/dev300/svtools-uninitialized-member-fix.diff |   12 ++++++++++++
 2 files changed, 15 insertions(+)

New commits:
commit 46ec1fcc38b909ce609fd56a33ef827a9087853e
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Mon Jan 18 23:37:06 2010 -0500

    Valgrind says an uninitialized value is used.
    
    * patches/dev300/apply:
    * patches/dev300/svtools-uninitialized-member-fix.diff: initialize
      eSetType data member before it gets accessed.

diff --git a/patches/dev300/apply b/patches/dev300/apply
index f62b0f0..31329a6 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -850,6 +850,9 @@ calc-xlsx-import-default-cellstyle.diff, n#558577, kohei
 # correctly highlight disjoint ranges in chart mode.
 chart-highlight-selection-fix.diff, n#568016, kohei
 
+# make sure to initialize data member before it gets used.
+svtools-uninitialized-member-fix.diff, kohei
+
 # Support PHONETIC function to display asian phonetic guide.
 # LATER: I'll take care of this later.  --kohei
 # calc-formula-asian-phonetic.diff, i#80764, i#80765, i#80766, kohei
diff --git a/patches/dev300/svtools-uninitialized-member-fix.diff b/patches/dev300/svtools-uninitialized-member-fix.diff
new file mode 100644
index 0000000..2af7878
--- /dev/null
+++ b/patches/dev300/svtools-uninitialized-member-fix.diff
@@ -0,0 +1,12 @@
+diff --git svtools/source/numbers/zforfind.cxx svtools/source/numbers/zforfind.cxx
+index 9fba39e..872ada2 100644
+--- svtools/source/numbers/zforfind.cxx
++++ svtools/source/numbers/zforfind.cxx
+@@ -138,6 +138,7 @@ void ImpSvNumberInputScan::Reset()
+     nAnzNums     = 0;
+     nThousand    = 0;
+     eScannedType = NUMBERFORMAT_UNDEFINED;
++    eSetType     = NUMBERFORMAT_UNDEFINED;
+     nAmPm        = 0;
+     nPosThousandString = 0;
+     nLogical     = 0;


More information about the ooo-build-commit mailing list