changeset 3290:a1df75458e13

* src/common/sprintf.cxx (__sprintf_chk): Implement alias for use with libsupc++ in fortified linux distributions. [ Bugzilla 1001139 ]
author jld
date Thu, 03 Jul 2014 08:21:45 +0000
parents 5d16532287ee
children 68c8985fd5f0
files packages/language/c/libc/stdio/current/ChangeLog packages/language/c/libc/stdio/current/src/common/sprintf.cxx
diffstat 2 files changed, 13 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/packages/language/c/libc/stdio/current/ChangeLog
+++ b/packages/language/c/libc/stdio/current/ChangeLog
@@ -1,3 +1,8 @@
+2014-07-03  John Dallaway  <john@dallaway.org.uk>
+
+	* src/common/sprintf.cxx (__sprintf_chk): Implement alias for use
+	with libsupc++ in fortified linux distributions. [ Bugzilla 1001139 ]
+
 2012-02-19  Sergei Gavrikov  <sergei.gavrikov@gmail.com>
 
 	* src/common/vsnprintf.c: If string truncated (C99 case), apply the
@@ -7,7 +12,7 @@ 2012-02-19  Sergei Gavrikov  <sergei.gav
 
 2009-08-20  Uwe Kindler  <uwe_kindler@web.de>
 
-	* cdl/stdio.cdl Added option CYGIMP_LIBC_STDIO_C99_SNPRINTF
+	* cdl/stdio.cdl: Added option CYGIMP_LIBC_STDIO_C99_SNPRINTF
 	for activation of C99 compliant snprintf() return value.
 	* src/output/vfnprintf.cxx: Added optional C99 compliant return
 	value calculation.
@@ -580,7 +585,7 @@ 2000-05-02  Jonathan Larmour  <jlarmour@
 // ####GPLCOPYRIGHTBEGIN####                                                
 // -------------------------------------------                              
 // This file is part of eCos, the Embedded Configurable Operating System.   
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2006, 2009 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2006, 2009, 2014 Free Software Foundation, Inc.
 //
 // This program is free software; you can redistribute it and/or modify     
 // it under the terms of the GNU General Public License as published by     
--- a/packages/language/c/libc/stdio/current/src/common/sprintf.cxx
+++ b/packages/language/c/libc/stdio/current/src/common/sprintf.cxx
@@ -8,7 +8,7 @@
 // ####ECOSGPLCOPYRIGHTBEGIN####                                            
 // -------------------------------------------                              
 // This file is part of eCos, the Embedded Configurable Operating System.   
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2014 Free Software Foundation, Inc.
 //
 // eCos is free software; you can redistribute it and/or modify it under    
 // the terms of the GNU General Public License as published by the Free     
@@ -40,7 +40,7 @@
 //#####DESCRIPTIONBEGIN####
 //
 // Author(s):    jlarmour
-// Contributors: 
+// Contributors: jld
 // Date:         2000-04-20
 // Purpose:     
 // Description: 
@@ -78,4 +78,8 @@ sprintf( char *s, const char *format, ..
     return rc;
 } // sprintf()
 
+externC int
+__sprintf_chk( char *s, const char *format, ... ) __THROW
+    CYGBLD_ATTRIB_ALIAS( sprintf );
+
 // EOF sprintf.cxx