fix: bitstream_index_map overflow
This commit is contained in:
1 parent
f1041c06a7
commit
0710a37429
4 files changed
+7
-5
No files matched your search
+1
-1
@@ -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};
|
||||
|
||||
Reference in new issue
Block a user