mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 17:13:34 +08:00
fmu:Fix stack overwrite
This commit is contained in:
committed by
Daniel Agar
parent
444a7a2aec
commit
58c3c8a94b
@@ -2577,7 +2577,7 @@ ssize_t
|
|||||||
PX4FMU::write(file *filp, const char *buffer, size_t len)
|
PX4FMU::write(file *filp, const char *buffer, size_t len)
|
||||||
{
|
{
|
||||||
unsigned count = len / 2;
|
unsigned count = len / 2;
|
||||||
uint16_t values[8];
|
uint16_t values[len];
|
||||||
|
|
||||||
#if BOARD_HAS_PWM == 0
|
#if BOARD_HAS_PWM == 0
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user