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