mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-31 10:16:11 +02:00
Fix build with -DENABLE_FTDI_BASED_CABLE=off; fix potential array out-of-bounds access (#616)
* Fix build without FTDI cable Signed-off-by: Qi Zhou <[email protected]> * Fix potential array out‑of‑bounds access Signed-off-by: Qi Zhou <[email protected]> --------- Signed-off-by: Qi Zhou <[email protected]> Co-authored-by: Qi Zhou <[email protected]>
This commit is contained in:
+7
-1
@@ -17,7 +17,9 @@
|
||||
#include "anlogic.hpp"
|
||||
#include "board.hpp"
|
||||
#include "cable.hpp"
|
||||
#ifdef USE_LIBFTDI
|
||||
#include "colognechip.hpp"
|
||||
#endif
|
||||
#include "common.hpp"
|
||||
#include "cxxopts.hpp"
|
||||
#include "device.hpp"
|
||||
@@ -25,12 +27,16 @@
|
||||
#include "dfu.hpp"
|
||||
#endif
|
||||
#include "display.hpp"
|
||||
#ifdef USE_LIBFTDI
|
||||
#include "efinix.hpp"
|
||||
#include "ftdispi.hpp"
|
||||
#endif
|
||||
#include "gowin.hpp"
|
||||
#include "ice40.hpp"
|
||||
#include "lattice.hpp"
|
||||
#ifdef USE_LIBFTDI
|
||||
#include "ice40.hpp"
|
||||
#include "latticeSSPI.hpp"
|
||||
#endif
|
||||
#ifdef ENABLE_USB_SCAN
|
||||
#include "libusb_ll.hpp"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user