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.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils