mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-22 06:07:36 +02:00
spiFlash: workaround for dump > 1M
This commit is contained in:
@@ -146,6 +146,10 @@ bool SPIFlash::dump(const std::string &filename, const int &base_addr,
|
||||
if (rd_burst == 0)
|
||||
rd_burst = len;
|
||||
|
||||
/* segfault with buffer > 1M */
|
||||
if (rd_burst > 0x100000)
|
||||
rd_burst = 0x100000;
|
||||
|
||||
std::string data;
|
||||
data.resize(rd_burst);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user