[fpc-devel] MemSize argument validity

Nikolai Zhubr n-a-zhubr at yandex.ru
Tue Feb 16 19:11:53 CET 2010


Hello people,

I've just discovered that passing an invalid pointer to MemSize() 
results in a bogus value returned and no error generally reported. Is 
this intentional?

Example:

var
   a: integer;
begin
   writeln('MemSize(@a)=', MemSize(@a));
end.




More information about the fpc-devel mailing list