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

Laurent Bonnaud bonnaud@irisa.fr
Wed Feb 18 06:15:00 GMT 1998


      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.



More information about the Gcc-bugs mailing list