mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 22:45:27 +00:00
Fix a signedness bug when shifting bits; this caused the length field
of the packet to occasionally been misinterpreted as a negative number. When discarding a packet for being overly long, restart the state machine instead of attempting to drop a preposterous amount of data. It is unlikely in that case that preposterous amount of data would ever arrive, so rather attempt to re-align the reading algorithm (supposedly resulting in a timeout and retransmit). git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@472 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2005-05-27 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||
|
||||
* jtagmkII.c: fix a signedness bug when shifting bits; when
|
||||
discarding a packet for being overly long, restart the state
|
||||
machine instead of attempting to drop a preposterous amount
|
||||
of data.
|
||||
|
||||
2005-05-19 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||
|
||||
* avrdude.1:
|
||||
|
Reference in New Issue
Block a user