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

Bug#408596: marked as done (preprocessor symbols _FORTIFY_SOURCE and __USE_FORTIFY_LEVEL used but not defined)



Your message dated Fri, 20 Apr 2007 02:56:44 -0700
with message-id <46288E5C.1090809@freedesktop.org>
and subject line Fixed in upstream CVS before 2.4
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libc6-dev
Version: 2.3.6.ds1-10
Severity: normal

Several headers in glibc use the preprocessor symbols _FORTIFY_SOURCE and
__USE_FORTIFY_LEVEL in #if conditionals without ensuring that they have a
definition.

>From /usr/include/features.h:

#if _FORTIFY_SOURCE > 0 && __GNUC_PREREQ (4, 1) && __OPTIMIZE__ > 0
# if _FORTIFY_SOURCE == 1
#  define __USE_FORTIFY_LEVEL 1
# elif _FORTIFY_SOURCE > 1
#  define __USE_FORTIFY_LEVEL 2
# endif
#endif

>From /usr/include/stdio.h:

#if __USE_FORTIFY_LEVEL > 0 && !defined __cplusplus
# include <bits/stdio2.h>
#endif

>From /usr/include/string.h:

# if __USE_FORTIFY_LEVEL > 0 && !defined __cplusplus
/* Functions with security checks.  */
#  include <bits/string3.h>
# endif
#endif

Each of these should get wrapped in an #ifdef on the corresponding symbol, to
avoid referencing the value of an undefined preprocessor symbol.

- Josh Triplett


--- End Message ---
--- Begin Message ---
Version: 2.4-1

Fixed upstream:

2005-10-07  Roland McGrath  <roland@redhat.com>

	[BZ #1438]
	* include/features.h: Make tests on _FORTIFY_SOURCE and __OPTIMIZE__
	friendly to -Wundef.
	(__USE_FORTIFY_LEVEL): Always define it, to 0 if nothing else.

- Josh Triplett

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply to: