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-02-22 22:43:14 +01:00
2021-05-19 10:25:26 +09:00
2021-09-29 14:36:47 +02:00
2021-10-14 15:57:52 +02:00
2021-06-25 12:52:39 +02:00
2021-08-03 10:05:10 +02:00
2021-02-16 13:42:49 +01:00
2021-08-03 10:05:10 +02:00
2021-02-16 10:03:43 +01:00
2021-03-23 21:30:23 +09:00
2021-03-23 21:30:23 +09:00
2021-09-29 03:37:06 +09:00
2021-02-16 10:03:43 +01:00
2021-08-03 10:05:10 +02:00
2021-05-19 16:42:37 +02:00
2021-08-03 10:05:10 +02:00
2021-09-15 13:09:45 +02:00
2021-05-14 16:31:16 +02:00
2021-03-31 12:54:05 +03:00
2021-03-31 12:54:05 +03:00
2021-08-20 18:29:40 +01:00
2021-05-14 17:15:53 +02:00
2021-08-03 10:05:10 +02:00
2021-05-14 17:34:38 +02:00
2021-08-03 10:05:10 +02:00
2021-02-18 16:38:27 +01:00
2021-08-13 09:23:12 +02:00
2021-02-18 18:20:36 +01:00
2021-05-04 14:57:49 +02:00
2021-08-10 16:41:33 +02:00
2021-02-25 14:07:21 +01:00
2021-04-23 12:02:20 +02:00
2021-08-13 09:23:12 +02:00
2021-05-14 17:28:48 +02:00
2021-04-10 20:14:57 +01:00
2021-05-08 15:12:31 +09:00
2021-06-24 22:30:14 +02:00
2021-05-08 15:12:31 +09:00
2021-02-16 17:15:11 +01:00
2021-09-28 17:03:31 +02:00
2021-05-19 16:42:37 +02:00
2021-05-19 16:42:37 +02:00
2021-04-07 16:04:52 +02:00
2021-02-18 03:48:07 +09:00
2021-02-16 16:13:42 +01:00
2021-03-01 23:12:51 +01:00
2021-05-14 19:51:37 +02:00
2021-02-18 15:42:18 +01:00
2021-03-31 12:54:08 +03:00
2021-09-28 11:27:36 +09:00
2021-10-01 17:27:34 +01:00
2021-10-01 17:27:34 +01:00
2021-03-26 14:18:51 +01:00
2021-03-26 14:18:51 +01:00
2021-08-03 10:05:10 +02:00
2021-09-15 13:09:45 +02:00
2021-05-19 10:25:26 +09:00
2021-02-23 01:06:08 +01:00
2021-10-12 15:20:28 +09:00