Valgrind's wine_cp_wcstombs warnings

Dan Kegel dank at kegel.com
Mon May 3 08:32:19 CDT 2010


Hi Joerg,
did you try the --track-origins option?  That can sometimes give more detail
(see e.g. the traces in this old message):

On Thu, Jul 31, 2008 at 10:14 AM, Dan Kegel <dank at kegel.com> wrote:
> 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