Fix array bounds overrun in Blackbox logging
This commit is contained in:
parent
e6a40d732d
commit
b739a57ea2
|
@ -517,7 +517,7 @@ static void writeIntraframe(void)
|
||||||
static void writeInterframe(void)
|
static void writeInterframe(void)
|
||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
int32_t deltas[5];
|
int32_t deltas[7];
|
||||||
|
|
||||||
blackboxValues_t *blackboxCurrent = blackboxHistory[0];
|
blackboxValues_t *blackboxCurrent = blackboxHistory[0];
|
||||||
blackboxValues_t *blackboxLast = blackboxHistory[1];
|
blackboxValues_t *blackboxLast = blackboxHistory[1];
|
||||||
|
|
Loading…
Reference in New Issue