re PR ada/19414 (ACATS cxb4003 - valgrind detects wrong code (invalid read))

2005-01-26  Laurent GUERBY <laurent@guerby.net>

	PR ada/19414
	* i-cobol.adb (Valid_Numeric): Handle zero length case.

From-SVN: r94287
This commit is contained in:
Laurent GUERBY 2005-01-26 21:35:50 +00:00 committed by Laurent Guerby
parent 4bb3aa7e32
commit d487e3c10a
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-01-26 Laurent GUERBY <laurent@guerby.net>
PR ada/19414
* i-cobol.adb (Valid_Numeric): Handle zero length case.
2005-01-20 Richard Henderson <rth@redhat.com>
* Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use

View File

@ -632,6 +632,10 @@ package body Interfaces.COBOL is
return Boolean
is
begin
if Item'Length = 0 then
return False;
end if;
-- All character positions except first and last must be Digits.
-- This is true for all the formats.