setipv4sourcefilter: Avoid using alloca.
authorJoe Simmons-Talbott <josimmon@redhat.com>
Fri, 26 May 2023 13:58:27 +0000 (09:58 -0400)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Fri, 26 May 2023 13:58:27 +0000 (09:58 -0400)
commit02f3d4c53a81f4c9954fbd5502f2e4fe1ab25edd
tree6431d8f1cfb4b61d78fd1ad8376a3582d910f33e
parenta363f7075125fa654342c69331e6c075518ec28c
setipv4sourcefilter: Avoid using alloca.

Use a scratch_buffer rather than alloca/malloc to avoid potential stack
overflow.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
sysdeps/unix/sysv/linux/setipv4sourcefilter.c