Add missing boundary checks in vtx_common for band, channel and powerlevel index
commit1138c4dd6ae04e5821676ae196a25cbb1ad314c3
authorBruce Luckcuck <github@etracer.net>
Tue, 10 Sep 2019 19:40:11 +0000 (10 15:40 -0400)
committerBruce Luckcuck <github@etracer.net>
Tue, 10 Sep 2019 22:38:54 +0000 (10 18:38 -0400)
treea07bbf3db75bbc1456660a6f93a7233d6e94d33e
parent2a182094920635c6cc1ad54c770b0ca6a7d3ba1f
Add missing boundary checks in vtx_common for band, channel and powerlevel index
Previously there were cases where the input was not compared to the currently defined vtxtable limits and this could lead to a wedge as code referenced the uninitialize string arrays.
src/main/drivers/vtx_common.c