This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/21823] MAXPATHLEN usage in [gcc]/fixincludes
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Oct 2017 09:58:01 +0000
- Subject: [Bug other/21823] MAXPATHLEN usage in [gcc]/fixincludes
- Auto-submitted: auto-generated
- References: <bug-21823-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21823
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egallager at gcc dot gnu.org
--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Alfred M. Szmidt from comment #2)
> Created attachment 9857 [details]
> Don't use arbitrary limits.
>
> The following fixes fixincludes.
>
> fixincludes/ChangeLog
> 2005-09-16 Alfred M. Szmidt <ams@gnu.org>
>
> * fixincl.c (quoted_file_exists): Use xmalloc to allocate memory
> for FNAME.
> (create_file): Use xmalloc to allocate memory for FNAME.
>
> * server.c (server_setup): Use dynamic allocation for BUFF.
Please send this patch to the gcc-patches mailing list for review, if it still
applies