bug#76907: Potential buffer overflow in getsockopt

Mike Gran via "Bug reports for GUILE, GNU's Ubiquitous Extension Language" <[email protected]> Mon, 10 Mar 2025 09:52:50 -0700
Newsgroups gmane.lisp.guile.bugs
Message-ID <[email protected]>
Mike Gran <[email protected]> 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