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/7982/head
Hasnain Virk 2018-09-04 15:21:40 +03:00
parent dd91b90149
commit 7b7d5ebc77
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ LoRaPHYCN470::LoRaPHYCN470()
}
// 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];
}