summaryrefslogtreecommitdiffstats
path: root/python_modules/codegen.py
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-03-09 12:23:49 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:40 +0100
commit59b330b4d2fbfd410bf5ade59a7939017e9e3659 (patch)
treebc9d1156d6e4ec719c7097441aa27da2c1e5c8c5 /python_modules/codegen.py
parent1327d81492a8780ec1dcd18da0fb6a0d079fad21 (diff)
downloadspice-common-59b330b4d2fbfd410bf5ade59a7939017e9e3659.tar.gz
spice-common-59b330b4d2fbfd410bf5ade59a7939017e9e3659.tar.xz
spice-common-59b330b4d2fbfd410bf5ade59a7939017e9e3659.zip
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.
Diffstat (limited to 'python_modules/codegen.py')
0 files changed, 0 insertions, 0 deletions