Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: wifi: radio_test: Fix crash during temp and rssi get
Getting temperature and RSSI don't take any args, but due to copy-paste the code tries to parse the args argv[1] without any NULL or boundary checks causing a crash. This bug is quite old but in RF53 (and 52) the address 0x0 is a valid address, so, the conversion to string passed though it returns garbage and the check for the returned value is completely unnecessary so it doesn't matter if that is invokved or not, so, this issue was hidden. In nRF54H the address 0x0 is not mapped and leading to a crash. Signed-off-by: Chaitanya Tata <[email protected]>
- Loading branch information