gh-60107: avoid io.RawIOBase.read from reading into a temporary bytearray
#138616
+62
−8
io.RawIOBase.read from reading into a temporary bytearray
#138616