mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 14:27:35 +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)
|
||||
{
|
||||
unsigned count = len / 2;
|
||||
uint16_t values[8];
|
||||
uint16_t values[len];
|
||||
|
||||
#if BOARD_HAS_PWM == 0
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user