Bug 1032529 - libbsd: missing format string annotations [NEEDINFO]
Summary: libbsd: missing format string annotations
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libbsd
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lukáš Tinkl
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 1032518
TreeView+ depends on / blocked
 
Reported: 2013-11-20 11:03 UTC by Florian Weimer
Modified: 2015-07-13 17:45 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1162587 (view as bug list)
Environment:
Last Closed: 2014-01-27 13:29:58 UTC
Target Upstream Version:
jscotka: needinfo? (ltinkl)


Attachments (Terms of Use)

Description Florian Weimer 2013-11-20 11:03:10 UTC
The functions warnc, errc in bsd/err.h should have printf format string annotations, so that GCC can warn about their misuse.

setproctitle in bsd/unistd.h should should have a format string, too.

It seems the __printflike macro already provides a means to achieve this.

Comment 2 Lukáš Tinkl 2014-01-27 13:29:58 UTC
Closing as fixed as the current snapshot trees also don't require nor contain libbsd anymore.


Note You need to log in before you can comment on or make changes to this bug.