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]
Other format: [Raw text]

Re: [Ada] don't overflow version string max length


> This patch bumps up the maximum version length, to account for the
> possibility of longer branch names, and truncates the copying at the
> reserved length.
> 
> Regstrapping now (already past the earlier build error, and the version
> string looks good).  Ok to install?

The gnatvsn.adb change certainly is fine.

I'm not very happy with bumping Ver_Len_Max again, but I guess this is OK
to commit.

> for  gcc/ada/ChangeLog
> from  Alexandre Oliva  <aoliva@redhat.com>
> 
> 	* gnatvsn.adb (Gnat_Version_String): Don't overrun Ver_Len_Max.
> 	* gnatvsn.ads (Ver_Len_Max): Bump up to 256.
> 	* g-comver.adb (Ver_Len_Max): Likewise.


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