--- Comment #1 from baldrick at gcc dot gnu dot org 2006-12-01 15:24
---
The uninitialized bytes are normal: the Unit_Type structure is 16 bytes long:
type Unit_Type is
record
Position : Natural := 19;
String_Value : String (1..9) := (others = 'X');
end record;
but only 13 of the bytes are used. The 3 trailing bytes are not initialized.
This seems to be GNAT policy. The uninitialized bytes are written to the
file when Unit_Type is. Valgrind complains about this, and indeed it is a
security leak. However I don't think it can be described as a compiler bug.
--
baldrick at gcc dot gnu dot org changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution||INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19416