[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] Patch: avoid buffer overflow in socket read
From: |
Tom Tromey |
Subject: |
Re: [cp-patches] Patch: avoid buffer overflow in socket read |
Date: |
26 Dec 2005 18:58:38 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Anthony" == Anthony Green <address@hidden> writes:
Anthony> This next patch computes right amount of data to read from a
Anthony> socket to stuff in a Buffer. When dst.limit < dst.capacity,
Anthony> we're trying to put too much data into the buffer and we get
Anthony> a buffer overflow exception.
Anthony> Ok to apply?
Yes, thanks. Could you look at the similar code in
DatagramChannelImpl.java and, if needed, apply the same fix there?
Tom