mirror of https://github.com/ARMmbed/mbed-os.git
LoRaWAN: Memory overrun correction
A typo in LoRaPHYCN470 is causing memory overrun. We were supposed to fill-in default channel mask and iterate over CN470_CHANNEL_MASK_SIZE times.pull/8341/head
parent
5e55fdfa20
commit
a3c3f7af3c
|
@ -220,7 +220,7 @@ LoRaPHYCN470::LoRaPHYCN470()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize the channels default mask
|
// Initialize the channels default mask
|
||||||
for (uint8_t i = 0; i < CN470_MAX_NB_CHANNELS; i++) {
|
for (uint8_t i = 0; i < CN470_CHANNEL_MASK_SIZE; i++) {
|
||||||
default_channel_mask[i] = 0xFFFF & fsb_mask[i];
|
default_channel_mask[i] = 0xFFFF & fsb_mask[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue