ft2232: fix possible read buffer overflow
commit6ddcee7d20ee873f1c214736c22f29d9781dded4
authorMathias K <kesmtp@freenet.de>
Thu, 24 Feb 2011 12:00:59 +0000 (24 13:00 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 24 Feb 2011 22:20:03 +0000 (24 23:20 +0100)
treed74bc998c444b9f17775f5eadc3dd6da27c83c36
parent47b5829db40459650866488ab46008fd8b7e191c
ft2232: fix possible read buffer overflow

This patch fix a possible read buffer overflow in ft2232_execute_queue.
Also the correct read queue size for libftdi and libftd2xx was added and
and tested.
In function ft2232_write a uninitialized value was initialized because we
don't know if this value was set in the ftdi api call.
src/jtag/drivers/ft2232.c