Author: Philip Jenvey <[email protected]>
Branch: py3.5
Changeset: r90523:766232ac3729
Date: 2017-03-03 20:26 -0800
http://bitbucket.org/pypy/pypy/changeset/766232ac3729/

Log:    lost this in the d4951c9a2236 merge

diff --git a/pypy/module/_socket/interp_socket.py 
b/pypy/module/_socket/interp_socket.py
--- a/pypy/module/_socket/interp_socket.py
+++ b/pypy/module/_socket/interp_socket.py
@@ -565,6 +565,8 @@
             raise oefmt(space.w_ValueError, "negative buffersize in recv_into")
         if nbytes == 0:
             nbytes = lgt
+        if lgt < nbytes:
+            raise oefmt(space.w_ValueError, "buffer too small for requested 
bytes")
         while True:
             try:
                 nbytes_read = self.sock.recvinto(rwbuffer, nbytes, flags)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to