This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/42582] fortify with optimisation above -O0 cause abort in realpath()
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jan 2010 11:38:09 -0000
- Subject: [Bug middle-end/42582] fortify with optimisation above -O0 cause abort in realpath()
- References: <bug-42582-14488@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jakub at gcc dot gnu dot org 2010-01-03 11:38 -------
The testcase is indeed invalid, if the second argument to realpath is not NULL,
it must be a buffer at least PATH_MAX bytes long.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42582