Branch: Tag:


2014-04-26 12:06:41 by Henrik Grubbström (Grubba) <>

Runtime: Improved robustness of parent_storage().

Under some circumstances parent_storage() could return
a storage pointer to a class that had inherited the
parent program. Fix this by making sure that we get the
storage for the program that we expect to find as parent.

497:    }      #define GET_META(o) \ -  ( ((struct Nettle_Hash_struct *)parent_storage(1))->meta ) +  ( ((struct Nettle_Hash_struct *)parent_storage(1, Nettle_Hash_program))->meta )       CVAR void *ctx;