This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Ada] Fix for buffer overflows in GNAT run-time library


Florian Weimer <fw@deneb.enyo.de> writes:

> 2001-10-20  Florian Weimer  <fw@deneb.enyo.de>
>
> 	* cstreams.c (__gnat_full_name): Eliminate risk of buffer
> 	overflow.
>
> 	* adaint.c (__gnat_try_lock): Increase buffer size, eliminate
> 	buffer overflow.
> 	(__gnat_tmp_name): Eliminate buffer overflow.
> 	(__gnat_readdir): Eliminate buffer overflow, readdir_r() case is
> 	still problematic.
> 	(win32_no_block_spawn): Add ??? marks because of buffer overflow.

I forgot to submit the following related patch to a header file.

2001-10-21  Florian Weimer  <fw@deneb.enyo.de>

	* adaint.h (max_path_len): Declare.

Index: adaint.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ada/adaint.h,v
retrieving revision 1.3
diff -u -r1.3 adaint.h
--- adaint.h	2001/10/05 21:07:05	1.3
+++ adaint.h	2001/10/21 07:12:05
@@ -96,6 +96,7 @@
 extern char  *__gnat_to_canonical_path_spec	   PARAMS ((char *));
 extern void   __gnat_adjust_os_resource_limits	   PARAMS ((void));
 
+extern int     max_path_len;
 extern int     __gnat_feof		  	   PARAMS ((FILE *));
 extern int     __gnat_ferror		  	   PARAMS ((FILE *));
 extern int     __gnat_fileno		  	   PARAMS ((FILE *));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]