avr_loadcode(): If too much code, bail out instead of crashing.
authorSami Liedes <sliedes@cc.hut.fi>
Sat, 19 Feb 2011 03:25:53 +0000 (05:25 +0200)
committerMichel Pollet <buserror@gmail.com>
Mon, 21 Feb 2011 23:17:38 +0000 (23:17 +0000)
commit2a012a045c4d75bf9cb97ca1d4034a40afefe8c8
tree7c34fdba551647ad29e2dd19f2535a9e96d36cf7
parentb682e4b6309f42fe5b3babec0935461264bcd785
avr_loadcode(): If too much code, bail out instead of crashing.

Check that the code to be loaded actually fits in the flash.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
simavr/sim/sim_avr.c