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:
parent
4bb3aa7e32
commit
d487e3c10a
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user