[gnome-keyring] [egg] Fix assertion when releasing secure memory block.
- From: Stefan Walter <stefw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-keyring] [egg] Fix assertion when releasing secure memory block.
- Date: Wed, 30 Sep 2009 01:51:26 +0000 (UTC)
commit 3341fb92230ec4da70290727629c34be2ec5ec61
Author: Stef Walter <stef memberwebs com>
Date: Wed Sep 30 01:48:10 2009 +0000
[egg] Fix assertion when releasing secure memory block.
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.
egg/egg-secure-memory.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/egg/egg-secure-memory.c b/egg/egg-secure-memory.c
index 2791e5e..58889ef 100644
--- a/egg/egg-secure-memory.c
+++ b/egg/egg-secure-memory.c
@@ -873,8 +873,8 @@ sec_block_create (size_t 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]