mirror of https://github.com/rusefi/wideband.git
fix bounds check
This commit is contained in:
parent
327e3b08ec
commit
70ea760717
|
@ -157,7 +157,7 @@ void RunBootloaderLoop()
|
|||
sendNak();
|
||||
}
|
||||
// Don't allow out of bounds writes
|
||||
else if (embeddedData < 0 || embeddedData > 26 * 1024)
|
||||
else if (embeddedData >= 26 * 1024)
|
||||
{
|
||||
sendNak();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue