libftdi Archives

Subject: Bug in ftdi_read_data

From: "Hermann Kraus" <herm@xxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 16 Aug 2010 00:12:51 +0200
Hello!

The current git version of libftdi contains a critical bug in ftdi_read_data. If a read from the device returns more data than requested the function exits with error -127 (documented as "// never reached") instead of a correct return code.

The attached patch fixes this problem.

Hermann

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Attachment: read_data.diff
Description: Binary data

Current Thread