]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Avoid buffer overflow in Long_Long_Float_Text_IO
authorSteve Baird <baird@adacore.com>
Sat, 18 Jan 2020 06:10:13 +0000 (22:10 -0800)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 4 Jun 2020 09:10:59 +0000 (05:10 -0400)
commitb5682bf40cedf95d1e0150c6a6ba7a64c59fd968
tree8a859c90f9b28e936ef5d91c4bbb5b8220a8a319
parentb68c1670b7d40b09be2995e1e730ce4c87eb688c
[Ada] Avoid buffer overflow in Long_Long_Float_Text_IO

2020-06-04  Steve Baird  <baird@adacore.com>

gcc/ada/

* libgnat/s-imgrea.ads: Declare a named number
Max_Real_Image_Length with value 5200.  Provide a comment
explaining why this value was chosen.
* libgnat/s-imgrea.adb (Set_Image_Real): Increase the upper
bound of the local String variable Digs to
Max_Real_Image_Length.
* libgnat/a-tiflau.adb (Put): Increase the upper bound of the
local String variable Buf to Max_Real_Image_Length.
(Puts): Increase the upper bound of the local String variable
Buf to Max_Real_Image_Length.
gcc/ada/libgnat/a-tiflau.adb
gcc/ada/libgnat/s-imgrea.adb
gcc/ada/libgnat/s-imgrea.ads