SB-BSD-SOCKETS:SOCKET-RECEIVE throws an error when there are more bytes to read than will fit in the buffer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
SB-BSD-
Of note, even if BUFFER is large enough to hold LEN bytes, it is a violation of the interface to write more data than requested into it.
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
commit 9d17f7daef6d930 a229ae6c0339c9e efc3dd71e6
Author: Nathan Froyd <email address hidden>
Date: Tue Sep 4 22:45:03 2012 -0400
make SOCKET-RECEIVE work correctly when receiving overly-long UDP packets
Only copy as much data as the provided buffer can hold. Continue to return
the length provided from recvfrom as per documentation.