1
1
Christoph Niethammer a3483e4b71 Fix null pointer arithmetic resulting in potential undefined behavior
NULL pointer arithmetic is undefined behaviour in c.
The payload_ptr can be NULL in the moment when mpool is not initialized.

References from the c11 standard:
- 6.5.6 Additive operators
- 6.3.2.3 Pointers

Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
2020-07-03 22:18:17 +02:00
..
2020-02-27 11:30:00 -05:00
2018-12-18 14:37:04 -07:00
2020-03-27 10:15:45 -06:00
2015-06-23 20:59:57 -07:00