[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gprof/28968] New: gprofng doesn't build with -Werror=format-securit
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gprof/28968] New: gprofng doesn't build with -Werror=format-security |
Date: |
Tue, 15 Mar 2022 00:54:39 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28968
Bug ID: 28968
Summary: gprofng doesn't build with -Werror=format-security
Product: binutils
Version: 2.39 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gprof
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
CC: vladimir.mezentsev at oracle dot com
Target Milestone: ---
I got
Print.cc: In function 'int print_one_visible(FILE*, char*, char*, char*,
TValue*, int)':
Print.cc:547:22: error: format not a string literal and no format arguments
[-Werror=format-security]
547 | nc = fprintf (out_file, fmt_real0);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Print.cc:574:22: error: format not a string literal and no format arguments
[-Werror=format-security]
574 | nc = fprintf (out_file, fmt_real0);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Print.cc: In function 'int print_one_tvisible(FILE*, char*, char*, TValue*,
int, int)':
Print.cc:596:18: error: format not a string literal and no format arguments
[-Werror=format-security]
596 | nc = fprintf (out_file, fmt_real0);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Print.cc: In function 'void print_one(FILE*, Hist_data*, Hist_data::HistItem*,
char**, char**, char**, MetricList*, Metric::HistMetric*, char*,
Histable::NameFormat)':
Print.cc:692:38: error: format not a string literal and no format arguments
[-Werror=format-security]
692 | nc += fprintf (out_file, stmp);
| ^~~~
Print.cc: In member function 'void er_print_histogram::dump_detail(int)':
Print.cc:1044:38: error: format not a string literal and no format arguments
[-Werror=format-security]
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gprof/28968] New: gprofng doesn't build with -Werror=format-security,
hjl.tools at gmail dot com <=