Add sc_allocarray() util
Add a function to allocate an array, which fails safely in the case where the multiplication would overflow.
This commit is contained in:
@@ -35,6 +35,7 @@ src = [
|
||||
'src/util/intmap.c',
|
||||
'src/util/intr.c',
|
||||
'src/util/log.c',
|
||||
'src/util/memory.c',
|
||||
'src/util/net.c',
|
||||
'src/util/net_intr.c',
|
||||
'src/util/process.c',
|
||||
|
||||
Reference in New Issue
Block a user