If a secure memory block was allocated that was not multiple of
page size, then on releasing that block, an assertion was
raised. The source of the problem was a lack of tracking the
actually allocated block size.
if (size < DEFAULT_BLOCK_SIZE)
size = DEFAULT_BLOCK_SIZE;
- block->n_words = size / sizeof (word_t);
block->words = sec_acquire_pages (&size);
+ block->n_words = size / sizeof (word_t);
if (!block->words) {
pool_free (block);
pool_free (cell);