On 23/12/2015 13:53, Dimitry Sibiryakov wrote:
> 23.12.2015 16:45, Dmitry Yemanov wrote:
>> No, unless the object is inherited from pool_alloc() or you allocate
>> using MemoryPool::calloc().
>    Then one thing worries me: quoting 
> http://en.cppreference.com/w/c/language/object#Object_representation "If two 
> objects have 
> the same object representation, they compare equal (except if they are 
> floating-point 
> NaNs). The opposite is not true".
>    But Hash.h:DefaultHash uses object representation for hash computation.
>    Can't it fail if some hashed object has alignment bytes filled with a 
> garbage?
>
In what context are you speaking?

Stack memory is not zero-initialized as well.

Objects should not be compared after it bounds.


Adriano


------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to