This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Checking cc1plus with purify : UMR in yylex [spew.c:263]



      UMR: Uninitialized memory read
      This is occurring while in:
            yylex          [spew.c:263]
                 /* if we've got tokens, send them */
                 else if (num_tokens ())
                   {
            =>       tmp_token= *nth_token (0);
               
                     /* TMP_TOKEN.YYLVAL.TTYPE may have been allocated on the wrong obstack.
                        If we don't find it in CURRENT_OBSTACK's current or immediately
            yyparse        [bison.simple:387]
            compile_file   [toplev.c:2557]
            main           [toplev.c:4351]
            _start         [crt1.o]
      Reading 4 bytes from 0x44cb98 in the heap.
      Address 0x44cb98 is 48 bytes into a malloc'd block at 0x44cb68 of 4072 bytes.
      This block was allocated from:
            malloc         [rtlib.o]
            xmalloc        [toplev.c:1931]
            _obstack_begin [obstack.c:196]
            gcc_obstack_init [tree.c:325]
            init_spew      [spew.c:77]
            init_lex       [lex.c:471]

-- 
Laurent.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]