Files
systemd/src/basic
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-19 01:36:46 +06:00
2015-12-07 18:34:05 +01:00
2015-12-07 18:34:05 +01:00
2015-11-30 21:51:03 +01:00
2015-11-18 23:09:02 +01:00
2015-11-18 23:09:02 +01:00
2016-02-16 15:22:06 +01:00
2015-11-30 21:51:03 +01:00
2015-12-01 23:40:17 +01:00