EngineeringSpirit / FreeLwIP-Nios-II

FreeRTOS with LwIP integration in the Nios II EDS
19 stars 28 forks source link

Possible packet lost / overwrite on a busy network #5

Closed EngineeringSpirit closed 11 years ago

EngineeringSpirit commented 11 years ago

The driver could overwrite the oldest (and possibly the one packet buffer LwIP was working with) on a busy connection. The driver allowed to use +1 buffer from the number of buffers available. Also indexes to the rotating buffer could have invalid values because they where not volatile.

EngineeringSpirit commented 11 years ago

Fixed in next commit