Ondřej Surý
798333d456
Allow size == 0 in isc_mem_{get,allocate,reallocate}
...
Calls to jemalloc extended API with size == 0 ends up in undefined
behaviour. This commit makes the isc_mem_get() and friends calls
more POSIX aligned:
If size is 0, either a null pointer or a unique pointer that can be
successfully passed to free() shall be returned.
We picked the easier route (which have been already supported in the old
code) and return NULL on calls to the API where size == 0.
2021-07-09 15:58:02 +02:00
..
2021-07-09 15:58:02 +02:00
2021-07-09 15:58:02 +02:00
2021-07-09 15:58:02 +02:00
2021-07-06 05:33:48 +00:00
2021-07-06 05:33:48 +00:00
2021-07-06 05:33:48 +00:00
2021-07-06 05:33:48 +00:00
2021-07-06 05:33:48 +00:00
2021-07-06 05:33:48 +00:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-07-06 05:33:48 +00:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-07-06 05:33:48 +00:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-07-06 05:33:48 +00:00
2021-05-07 10:19:05 -07:00
2021-05-26 09:43:12 +02:00
2021-06-09 14:35:14 +02:00
2021-07-09 15:58:02 +02:00
2021-05-27 08:02:21 +02:00
2021-07-06 05:33:48 +00:00
2021-07-09 15:58:02 +02:00
2021-05-07 14:28:30 -07:00
2021-02-18 19:33:54 +01:00
2021-07-09 15:58:02 +02:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-05-07 14:28:30 -07:00
2021-01-25 09:19:22 +01:00
2021-01-25 09:19:22 +01:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-07-06 05:33:48 +00:00
2020-12-01 16:47:07 +01:00
2021-07-06 05:33:48 +00:00
2020-12-08 18:36:23 +01:00
2020-12-08 18:36:23 +01:00
2021-07-06 05:33:48 +00:00
2021-05-17 11:59:19 +02:00
2021-07-06 05:33:48 +00:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-07-06 05:33:48 +00:00
2021-07-06 05:33:48 +00:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-05-07 14:28:30 -07:00
2021-07-06 05:33:48 +00:00
2021-04-20 23:22:28 +02:00
2021-06-09 14:35:14 +02:00
2021-07-06 05:33:48 +00:00
2021-05-07 10:19:05 -07:00
2021-07-06 05:33:48 +00:00
2021-02-18 19:33:54 +01:00
2021-07-09 15:58:02 +02:00
2021-05-05 19:15:33 +02:00
2021-06-09 14:35:14 +02:00
2021-07-09 15:58:02 +02:00
2021-03-15 14:18:03 +11:00