Eo: Made eo id for classes a bit more secure.
authorTom Hacohen <tom@stosb.com>
Tue, 11 Mar 2014 15:50:44 +0000 (15:50 +0000)
committerTom Hacohen <tom@stosb.com>
Tue, 11 Mar 2014 15:56:30 +0000 (15:56 +0000)
commit122a2f890e4995a211e857b60414b7af503693d3
tree7ce710050d543d046ac5b08e4c8b2cd4daec34da
parentfd67c1692c9385c4edbc314d2edc12c13cf9e429
Eo: Made eo id for classes a bit more secure.

This patch sets the one before most significant bit on for classes. This
means that class ids are now very big, compared to the old ids which
were growing small integers (1, 2, 3...).
This makes accidental passing of integers (corrupted obj pointers) less
common.

@feature
src/lib/eo/eo.c
src/lib/eo/eo_ptr_indirection.x