John Reiser wrote:

> There is a dispute about the meaning of memory allocation when
> the requested size is 0.  The recipient must not access any memory
> there; after all, the requested size is zero.  Also, NULL strings
> occur *everywhere*, so *any* address ought to be satisfactory
> for a zero-length block.

In C++, operator new[] with a size of zero is well defined. It should 
return a valid pointar that should not be dereferenced.

A+
Paul

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to