[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnutls-dev][PATCH] inappropriate buffer check in _gnutls_io_read_buffer

From: Ian Peters
Subject: [gnutls-dev][PATCH] inappropriate buffer check in _gnutls_io_read_buffered
Date: Wed Mar 5 23:54:02 2003


I'm integrating GnuTLS support into our internal HTTP transfer library,
and I was running into some problems with UNEXPECTED_PACKET_LENGTH
errors.  I eventually tracked these down to one place, in
_gnutls_recv_int, which calls _gnutls_io_read_buffered.

The first check in that function verifies that the received packet isn't
larger than the MAX_RECV_SIZE, but the third condition appears to be
bogus.  Specifically, _gnutls_io_read_buffered will be recalled in cases
where GNUTLS_E_AGAIN, which lead to the function incorrectly returning
GNUTLS_E_INVALID_REQUEST.  The attached patch seems to fix the issue.


Attachment: gnutls-_gnutls_io_read_buffered.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]