Lennart Poettering
2f82562bad
alloc-util: add strdupa_safe() + strndupa_safe() and use it everywhere
...
Let's define two helpers strdupa_safe() + strndupa_safe() which do the
same as their non-safe counterparts, except that they abort if called
with allocations larger than ALLOCA_MAX.
This should ensure that all our alloca() based allocations are subject
to this limit.
afaics glibc offers three alloca() based APIs: alloca() itself,
strndupa() + strdupa(). With this we have now replacements for all of
them, that take the limit into account.
2021-10-14 15:57:52 +02:00
..
2021-10-14 15:57:52 +02:00
2021-09-24 21:46:32 +09:00
2021-09-15 13:09:45 +02:00
2021-09-29 20:50:37 +09:00
2021-09-29 20:50:37 +09:00
2021-10-07 01:03:06 +09:00
2021-09-29 03:37:06 +09:00
2021-10-07 01:24:50 +09:00
2021-10-07 01:24:50 +09:00
2021-09-24 21:46:32 +09:00
2021-10-07 01:03:06 +09:00
2021-10-07 01:03:06 +09:00
2021-09-04 00:23:20 +09:00
2021-08-16 22:30:38 +09:00
2021-08-16 22:30:38 +09:00
2021-09-24 21:46:32 +09:00
2021-08-23 20:36:09 +09:00
2021-10-13 02:46:24 +09:00
2021-09-24 21:46:32 +09:00
2021-09-15 13:09:45 +02:00
2021-09-14 20:31:17 +09:00
2021-08-11 16:43:26 +09:00
2021-10-01 17:27:34 +01:00
2021-10-01 17:27:34 +01:00
2021-09-24 21:46:32 +09:00
2021-09-24 21:46:32 +09:00
2021-09-24 21:46:32 +09:00
2021-09-24 21:46:32 +09:00
2021-09-24 21:46:32 +09:00
2021-09-30 00:06:17 +09:00
2021-09-30 00:06:17 +09:00
2021-09-29 20:50:37 +09:00
2021-10-07 22:12:19 +02:00
2021-09-28 01:35:51 +09:00
2021-09-30 00:06:17 +09:00
2021-09-30 00:06:17 +09:00
2021-10-07 01:16:29 +09:00
2021-10-07 01:03:06 +09:00
2021-09-15 16:50:23 +09:00
2021-09-15 16:50:23 +09:00
2021-10-13 02:46:24 +09:00
2021-10-13 02:46:24 +09:00
2021-10-13 02:46:24 +09:00
2021-10-04 17:59:15 +09:00
2021-09-15 16:50:23 +09:00
2021-09-24 21:46:36 +09:00
2021-09-24 21:46:36 +09:00
2021-10-12 03:10:30 +09:00
2021-10-12 03:10:30 +09:00
2021-10-04 17:59:15 +09:00
2021-10-04 17:59:15 +09:00
2021-09-15 16:50:23 +09:00
2021-09-15 16:50:23 +09:00
2021-09-24 21:46:32 +09:00
2021-09-29 20:50:37 +09:00
2021-09-15 16:50:23 +09:00
2021-09-15 16:50:23 +09:00
2021-09-29 15:56:20 +09:00
2021-09-29 15:56:20 +09:00
2021-09-29 20:50:37 +09:00
2021-10-12 20:48:19 +09:00
2021-09-30 00:06:17 +09:00
2021-09-24 21:46:32 +09:00