4refr0nt / er9x-frsky-mavlink

Automatically exported from code.google.com/p/er9x-frsky-mavlink
GNU General Public License v3.0
8 stars 5 forks source link

Buffer overflow #4

Open MikeBland opened 8 years ago

MikeBland commented 8 years ago

I'm looking to include this in the 'official' er9x and also into ersky9x. I compiled the code for the Arduino and examined the FrSky hub serial data. One of the messages did not end correctly in a 0x5E value. The total message length is greater than the buffer in the class Frsky, I changed the declaration to: unsigned char frskyBuffer[80]; and the message then correctly ends in a 0x5E.

4refr0nt commented 8 years ago

thanks. This mod indcluded in the 'official' er9x now?

MikeBland commented 8 years ago

It is not released yet, but a test version is available here: http://openrcforums.com/forum/viewtopic.php?f=5&t=4598#p64969. The Arduino Pro Mini code I'm using is here: http://openrcforums.com/forum/viewtopic.php?f=7&t=4676#p65894 Due to limited flash space on the ATMEGA64, this is currently only available on er9x if you have either a ATMEGA128 or a ATMEGA2561 fitted.