ifaddrs: Get rid of alloca
commit48170127d984f41cd59dfc1b9ee40f729d953bf9
authorJoe Simmons-Talbott <josimmon@redhat.com>
Wed, 21 Jun 2023 20:00:53 +0000 (21 16:00 -0400)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 26 Jun 2023 13:17:39 +0000 (26 10:17 -0300)
tree4b2896ac6fa30a982c5e79781c6854c9ad2b2e10
parent45e2483a6cd920b38d287c51c5363f03a34f92da
ifaddrs: Get rid of alloca

Use scratch_buffer and malloc rather than alloca to avoid potential stack
overflows.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/ifaddrs.c