diff --git a/NEWS b/NEWS index 551662867..394a7a78d 100644 --- a/NEWS +++ b/NEWS @@ -96,6 +96,8 @@ every line in a file. ** r6rs-ports.test custom ports tests should no longer fail on stray closes Previously the custom ports weren't explicitly closed, causing GC-related closes to produce spurious "log" events in other tests. +** getsockopt no longer risks a buffer overrun with timestamps + () Changes in 3.0.10 (since 3.0.9) diff --git a/libguile/socket.c b/libguile/socket.c index 101afd80d..aa012c919 100644 --- a/libguile/socket.c +++ b/libguile/socket.c @@ -1,4 +1,4 @@ -/* Copyright 1996-1998,2000-2007,2009,2011-2015,2018,2021,2022 +/* Copyright 1996-1998,2000-2007,2009,2011-2015,2018,2021,2022,2025 Free Software Foundation, Inc. This file is part of Guile. @@ -454,6 +454,7 @@ typedef union #endif size_t size; int integer; + struct timeval timeval; } scm_t_getsockopt_result; SCM_DEFINE (scm_getsockopt, "getsockopt", 3, 0, 0,