New valgrind warnings in kernel32/tests/codepage.c

Dan Kegel dank at kegel.com
Thu Jul 31 12:14:19 CDT 2008


Hi Colin,
your change
http://source.winehq.org/git/wine.git/?a=commitdiff;h=c2c1a55f1c08f35ae02b811d1141acd6ec76fca6
seems to have triggered some valgrind warnings,
http://kegel.com/wine/valgrind/logs/2008-07-31-07.46/vg-kernel32_codepage-diff.txt
e.g.

+ Use of uninitialised value of size 4
+    at  wcstombs_sbcs (wctomb.c:186)
+    by  wine_cp_wcstombs (wctomb.c:457)
+    by  WideCharToMultiByte (locale.c:1936)
+    by  test_string_conversion (codepage.c:288)
+    by  func_codepage (codepage.c:351)
+    by  run_test (test.h:488)
+    by  main (test.h:537)
+  Uninitialised value was created by a stack allocation
+    at  test_string_conversion (codepage.c:216)

+ Use of uninitialised value of size 4
+    at  wcstombs_sbcs_slow (wctomb.c:246)
+    by  wine_cp_wcstombs (wctomb.c:453)
+    by  WideCharToMultiByte (locale.c:1936)
+    by  test_string_conversion (codepage.c:288)
+    by  func_codepage (codepage.c:352)
+    by  run_test (test.h:488)
+    by  main (test.h:537)
+  Uninitialised value was created by a stack allocation
+    at  test_string_conversion (codepage.c:216)

Could you have a look?



More information about the wine-devel mailing list