This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug build/9571] Fails to build with -D_FORTIFY_SOURCE=2 due to unchecked fgets usage
- From: "pedro at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 17 Jan 2009 23:25:56 -0000
- Subject: [Bug build/9571] Fails to build with -D_FORTIFY_SOURCE=2 due to unchecked fgets usage
- References: <20080611173802.9571.jw+debian@jameswestby.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From pedro at codesourcery dot com 2009-01-17 23:25 -------
And it has recently been checked in:
2009-01-06 Jim Blandy <jimb@red-bean.com>
Check return values of functions declared with warn_unused_result
attribute in GLIBC 2.8.
* cli/cli-cmds.c (pwd_command): Check return value from getcwd.
* inflow.c (check_syscall): New function.
(new_tty): Use check_syscall to check return values from open and dup.
* linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
* main.c (captured_main): Call cwd after setting up gdb_stderr;
check for errors from getcwd.
* mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
* ui-file.c (stdio_file_write): Ignore return value from fwrite.
(stdio_file_fputs): Same.
* utils.c (internal_vproblem): abort if last-ditch error message
write fails.
* top.c (gdb_init): Don't set the current directory here; that's
already been done in captured_main.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=9571
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.