mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
fix: bitstream_index_map overflow
This commit is contained in:
parent
f1041c06a7
commit
0710a37429
4 changed files with 7 additions and 5 deletions
|
@ -797,7 +797,7 @@ static void PacketReceived(PacketCommandNG *packet) {
|
|||
}
|
||||
case CMD_SET_FPGAMODE: {
|
||||
uint8_t mode = packet->data.asBytes[0];
|
||||
if (mode >= FPGA_BITSTREAM_LF && mode <= FPGA_BITSTREAM_HF_15) {
|
||||
if (mode >= FPGA_BITSTREAM_MIN && mode <= FPGA_BITSTREAM_MAX) {
|
||||
FpgaDownloadAndGo(mode);
|
||||
reply_ng(CMD_SET_FPGAMODE, PM3_SUCCESS, NULL, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue