mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-09-23 10:18:30 +08:00
fix(bootloader): Use PANIC() instead of up_assert() for NuttX 12.12.0
NuttX 12.12.0 changed up_assert ABI
This commit is contained in:
committed by
Ramon Roche
parent
33010e6dea
commit
b12ec6b50c
@@ -52,14 +52,14 @@
|
||||
* The implementation panics rather than returning zeros: if anyone
|
||||
* ever enables bootloader-side encryption without also wiring up a
|
||||
* real RNG, silently handing out predictable bytes would be a
|
||||
* serious security bug. up_assert() makes that mistake loud.
|
||||
* serious security bug. PANIC() makes that mistake loud.
|
||||
*/
|
||||
size_t px4_get_secure_random(uint8_t *out, size_t outlen)
|
||||
{
|
||||
(void)out;
|
||||
(void)outlen;
|
||||
|
||||
up_assert(__FILE__, __LINE__);
|
||||
PANIC();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user