uninitialized memory errors in JScriptParse_ParseScriptText ?

Dan Kegel dank at kegel.com
Tue Oct 20 13:13:38 CDT 2009


Hi Jacek!
Please have a look at
http://kegel.com/wine/valgrind/logs/2009-10-20-01.09/vg-jscript_run.txt
There are a few interesting errors there.  The first one (with a
little context from
http://kegel.com/wine/valgrind/logs/2009-10-20-01.09.log) is:


valgrind ... wine jscript_test.exe.so run.c
...
run.c:367: Test failed: lang.js: L"2.5*3.5 !== 8.75"
...
 Use of uninitialised value of size 4
    at  get_char_typeW (unicode.h:141)
    by  isdigitW (unicode.h:165)
    by  String_replace (string.c:968)
    by  invoke_prop_func (dispex.c:257)
    by  jsdisp_call (dispex.c:868)
    by  disp_call (dispex.c:897)
    by  call_expression_eval (engine.c:1604)
    by  expr_eval (engine.c:42)
    by  assign_expression_eval (engine.c:3108)
    by  expr_eval (engine.c:42)
    by  expression_statement_eval (engine.c:678)
    by  stat_eval (engine.c:37)
    by  exec_source (engine.c:472)
    by  exec_global_code (jscript.c:106)
    by  JScriptParse_ParseScriptText (jscript.c:715)
  Uninitialised value was created by a client request
    at  mark_block_uninitialized (heap.c:187)
    by  RtlAllocateHeap (heap.c:1429)
    by  SysAllocStringLen (oleaut.c:233)
    by  SysAllocString (oleaut.c:157)
    by  to_string (jsutils.c:558)
    by  String_replace (string.c:882)
    by  invoke_prop_func (dispex.c:257)
    by  jsdisp_call (dispex.c:868)
    by  disp_call (dispex.c:897)
    by  call_expression_eval (engine.c:1604)
    by  expr_eval (engine.c:42)
    by  assign_expression_eval (engine.c:3108)
    by  expr_eval (engine.c:42)
    by  expression_statement_eval (engine.c:678)
    by  stat_eval (engine.c:37)
    by  exec_source (engine.c:472)
    by  exec_global_code (jscript.c:106)
    by  JScriptParse_ParseScriptText (jscript.c:715)

Removing the common bits, the core of that warning is

 Use of uninitialised value of size 4
    at  get_char_typeW (unicode.h:141)
    by  isdigitW (unicode.h:165)
    by  String_replace (string.c:968)
  Uninitialised value was created by a client request
    at  mark_block_uninitialized (heap.c:187)
    by  RtlAllocateHeap (heap.c:1429)
    by  SysAllocStringLen (oleaut.c:233)
    by  SysAllocString (oleaut.c:157)
    by  to_string (jsutils.c:558)
    by  String_replace (string.c:882)

Thanks!
- Dan



More information about the wine-devel mailing list