fix: bitstream_index_map overflow

This commit is contained in:
douniwan5788 committed 2024-08-30 16:05:47 +08:00
1 parent f1041c06a7
commit 0710a37429
4 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -1432,7 +1432,7 @@ static int CmdBootloader(const char *Cmd) {
}
int set_fpga_mode(uint8_t mode) {
if (mode < FPGA_BITSTREAM_LF || mode > FPGA_BITSTREAM_HF_15) {
if (mode < FPGA_BITSTREAM_MIN || mode > FPGA_BITSTREAM_MAX) {
return PM3_EINVARG;
}
uint8_t d[] = {mode};