Alexander Kuleshov
dbacacaaea
alloc-util: cleanups
...
This patch contains a set of little cleanups for alloc-util.h:
1. The malloc_multiply(), realloc_multiply() and memdup_multiply()
functions check allocation related parameters on overflow. Let's
move them to the separate size_multiply_overflow() function for
simplicity, code duplication prevention and possible reuse in future.
2. use SIZE_MAX from stdlib instead of ((size_t) - 1) to be more
clear.
3. The 'a'/'b' variables are renamed to 'size' and 'need' to be
more clear.'
2016-02-19 01:36:46 +06:00
..
2016-02-10 13:41:57 +01:00
2016-02-13 11:54:39 -05:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-19 01:36:46 +06:00
2016-02-10 13:41:57 +01:00
2016-02-11 17:48:09 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-13 12:28:28 +01:00
2016-02-16 18:36:42 -05:00
2016-02-10 16:09:24 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-11 16:25:54 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2015-11-27 19:19:36 +01:00
2016-02-13 12:03:16 +01:00
2016-02-10 13:41:57 +01:00
2016-02-13 11:15:41 +01:00
2016-02-10 13:41:57 +01:00
2016-02-15 14:54:09 +01:00
2016-02-16 13:06:55 +01:00
2015-12-07 00:44:14 -05:00
2016-02-10 13:41:57 +01:00
2016-02-15 23:26:34 +01:00
2016-02-15 23:26:34 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-16 15:22:06 +01:00
2016-02-10 13:41:57 +01:00
2016-02-13 11:15:41 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 23:42:34 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-13 12:28:28 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-16 18:36:42 -05:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-15 19:06:53 -05:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-12 19:10:01 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-15 19:06:53 -05:00
2016-02-11 21:52:02 -05:00
2016-02-10 13:41:57 +01:00
2016-02-13 12:28:28 +01:00
2016-02-15 14:54:09 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 16:53:49 +01:00
2016-02-16 15:30:04 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00