bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gprof/23698] New: Possible access of unintended macro in "gprof/gpr


From: petrum at gmail dot com
Subject: [Bug gprof/23698] New: Possible access of unintended macro in "gprof/gprof.c" line 455
Date: Fri, 21 Sep 2018 09:06:34 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23698

            Bug ID: 23698
           Summary: Possible access of unintended macro in "gprof/gprof.c"
                    line 455
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gprof
          Assignee: unassigned at sourceware dot org
          Reporter: petrum at gmail dot com
  Target Milestone: ---

While experimenting with a CodeSonar plugin we develop, we noticed a potential
bug in file "gprof/gprof.c" line 455 function main:

 445        case 'Z':
 446           if (optarg)
 447             {
 448               sym_id_add (optarg, EXCL_EXEC);
 449               output_style |= STYLE_EXEC_COUNTS;
 450             }
 451           else
 452             {
 453               output_style &= ~STYLE_EXEC_COUNTS;
 454             }
 455           user_specified |= STYLE_ANNOTATED_SOURCE; //HERE
 456           break;

Shouldn't you use STYLE_EXEC_COUNTS instead of STYLE_ANNOTATED_SOURCE?

Thanks,
Petru-Florin Mihancea

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]