Subject: Re: Potential buffer overflow in getsockopt

From: Mike Gran <[email-masked]>
Date: Mon, 10 Mar 2025 09:52:50 -0700

Mike Gran <[email-masked]> writes:

> struct timeval is a potential return value of struct getsockopt, but,
> when HAVE_STRUCT_LINGER is not defined, scm_t_getsockopt_result may
> be too small to hold a struct timeval.
>
> To fix this, struct timeval can be added to the scm_t_getsockopt_result
> union.

Also, this should partially fix the guile-without-threads in Guix's
CI.

https://ci.guix.gnu.org/build/9530486/details

Regards,
Mike Gran