Skip to content

Commit

Permalink
LoRaWAN: Memory overrun correction
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Hasnain Virk committed Sep 4, 2018
1 parent dd91b90 commit 7b7d5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/lorawan/lorastack/phy/LoRaPHYCN470.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit 7b7d5eb

Please sign in to comment.