summaryrefslogtreecommitdiffstats
path: root/common/mem.h
Commit message (Collapse)AuthorAgeFilesLines
* Move SpiceChunks to mem.hAlexander Larsson2010-07-081-1/+17
|
* Move in spice/draw.h from spice-protocol to common/Alexander Larsson2010-07-081-1/+1
|
* Add spice_chunks_* helpersAlexander Larsson2010-07-071-0/+5
|
* Add spice_strnlenAlexander Larsson2010-06-171-0/+2
|
* Fix spelling errors in comments and stringsAlexander Larsson2010-05-211-2/+2
|
* Relicense everything from GPL to LGPL 2.1+Alexander Larsson2010-04-131-9/+9
|
* Add spice_strndupAlexander Larsson2010-03-241-0/+1
| | | | Also, make str(n)dup handle NULL correctly
* New memory allocators that exit on OOM and handle multiplication overflowAlexander Larsson2010-03-111-0/+82
Every place that does a regular malloc/calloc and aborts on failure should use spice_malloc/spice_mallo0 instead, which is leaner and cleaner. Allocations of dynamically sized arrays can use g_malloc_n or g_new etc which correctly handle multiplication overflow if some of the arguments are not trusted.