Go to file
Alexander Larsson 59b330b4d2 New memory allocators that exit on OOM and handle multiplication overflow
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.
2012-03-20 15:25:40 +01:00
common New memory allocators that exit on OOM and handle multiplication overflow 2012-03-20 15:25:40 +01:00