summaryrefslogtreecommitdiff
path: root/egg/egg-secure-memory.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove old FSF license from header filesStef Walter2014-01-081-2/+1
| | | | | | And refresh the COPYING and COPYING.LIB files https://bugzilla.gnome.org/show_bug.cgi?id=721549
* Merge secure memory changes from libsecretStef Walter2012-10-271-172/+194
|
* Bring over new egg'd components from gcrStef Walter2012-04-071-68/+116
| | | | * Updated ASN.1, armor, bytes, openssl, etc.
* Rename GKR_SECURE_USE_FALLBACK to fix building with valgrind supportAndre Klapper2011-12-011-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=664850
* Secure memory taggingStef Walter2011-09-101-116/+193
| | | | | * Tag all secure memory with strings, and print out diagnostic report of what's in use, upon request.
* Fix compile warnings when building with --disable-debugStef Walter2011-08-301-0/+4
|
* [egg] Fix secure memory assertion.Stef Walter2010-09-111-3/+4
| | | | | | Fix assertion that occurs when searching for pool to free memory from. https://bugzilla.gnome.org/show_bug.cgi?id=616175
* Merge branch 'master' into dbus-apiStef Walter2009-09-301-1/+1
|\
| * [egg] Fix assertion when releasing secure memory block.Stef Walter2009-09-301-1/+1
| | | | | | | | | | | | | | 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] Function for clearing secure memory.Stefan Walter2009-08-081-10/+16
|/ | | | Added egg_secure_clear() and fine tuned egg_secure_strclear().
* Fix problem with integer overflow in memory allocator.stefw2009-04-101-1/+1
| | | | svn path=/branches/gnome-2-26/; revision=1717
* Put in a semi-random test excercising 1000 iterations of allocation,stefw2009-04-021-15/+18
| | | | | | | | reallocation, freeing. Validates between each step. svn path=/trunk/; revision=1709
* Fix problem where freed memory is not inserted into the unused ring properly.stefw2009-04-021-1/+1
| | | | | | This caused enless loops. Should fix bug #575247 svn path=/trunk/; revision=1708
* Add validator which walks the secure memory heap and checks for inconsistencies.stefw2009-04-021-1/+58
| | | | svn path=/trunk/; revision=1707
* Fix assertion that occurs when shrinking block of secure memory and then ↵stefw2009-04-021-2/+10
| | | | | | expanding again. svn path=/trunk/; revision=1706
* Implement valgrind support for our memory allocator, and support forStefan Walter2009-03-111-24/+162
| | | | | | running gnome-keyring-daemon under valgrind. Use --enable-valgrind=run svn path=/trunk/; revision=1665
* Fix compiler warnings on 32-bit.Stefan Walter2009-02-281-7/+12
| | | | svn path=/trunk/; revision=1638
* Use union instead of struct. Fixes bug #571951Jeff Cai2009-02-191-3/+1
| | | | | | | | | | | 2009-02-19 Jeff Cai <jeff.cai@sun.com> * egg/egg-secure-memory.c: Use union instead of struct. Fixes bug #571951 svn path=/trunk/; revision=1606
* Don't allow allocating zero bytes.Stefan Walter2009-02-131-0/+4
| | | | svn path=/trunk/; revision=1564
* Use size_t and gsize for memory sizes rather than unsigned long.Stefan Walter2009-02-131-5/+5
| | | | | | Fixes bug #571615 svn path=/trunk/; revision=1563
* Completely overhaul the secure memory allocator.Stefan Walter2009-02-131-372/+612
| | | | | | Don't store metadata inside the secure memory area. Add memory guards, so that we can see if/when memory is incorrectly overflown. svn path=/trunk/; revision=1562
* Be much stricter about checking pointers and sizes being passed around.Stefan Walter2009-02-131-47/+31
| | | | svn path=/trunk/; revision=1561
* Remove unused field.Stefan Walter2009-02-131-1/+0
| | | | svn path=/trunk/; revision=1560
* Calculate memory header size at compile time.Stefan Walter2009-02-131-10/+8
| | | | svn path=/trunk/; revision=1559
* Remove FORCE_MALLOC_MEMORY define.Stefan Walter2009-02-131-12/+2
| | | | | | It seems we can accomplish the identical goal with FORCE_FALLBACK_MEMORY. svn path=/trunk/; revision=1558
* Remove non-useful mincell structure element from sub allocator.Stefan Walter2009-02-131-8/+7
| | | | svn path=/trunk/; revision=1557
* Fix problems with clearing out entire memory block when allocatingStefan Walter2009-02-071-1/+1
| | | | | | memory, and then reallocating it. svn path=/trunk/; revision=1501
* Consolidate truly common functionality into 'egg' library. Many more filesStefan Walter2009-01-171-0/+805
* egg/egg-asn1.c: (moved from pkcs11/gck/gck-data-asn1.c) * egg/egg-asn1.h: (moved from pkcs11/gck/gck-data-asn1.h) * egg/egg-buffer.c: (moved from common/gkr-buffer.c) * egg/egg-buffer.h: (moved from common/gkr-buffer.h) * egg/egg-secure-memory.c: (moved from common/gkr-secure-memory.c) * egg/egg-secure-memory.h: (moved from common/gkr-secure-memory.h) * egg/egg-unix-credentials.c: (moved from common/gkr-unix-credentials.c) * egg/egg-unix-credentials.h: (moved from common/gkr-unix-credentials.h) * egg/Makefile.am: (added) * egg/pk.asn: (moved from pkcs11/gck/pk.asn) * egg/pkix.asn: (moved from pkcs11/gck/pkix.asn) * egg/tests/Makefile.am: (added) * egg/tests/test.asn: (moved from pkcs11/gck/tests/test.asn) * egg/tests/unit-test-asn1.c: (moved from pkcs11/gck/tests/unit-test-data-asn1.c) * egg/tests/unit-test-secmem.c: (moved from common/tests/unit-test-secmem.c) * egg/tests/test-data: (added) Consolidate truly common functionality into 'egg' library. Many more files touched due to above changes. svn path=/trunk/; revision=1461