Commit f4a289091ee226cb9a323e2b2796ba706c2fc149
authorFrej Drejhammar <frej.drejhammar@gmail.com>
Sun, 17 May 2015 14:34:49 +0000 (16:34 +0200)
committerFrej Drejhammar <frej.drejhammar@gmail.com>
Sun, 17 May 2015 15:10:22 +0000 (17:10 +0200)
treed95028fa18a013979c861c62947d614533f70d5c
parentf1e25444a7b407f46107320953fc85048b744d31
Message:
Avoid buffer overrun on smaller AVRs

On smaller AVRs, such as the attiny13, MAX_IOs will be larger than the
size of SRAM which will lead to out of range writes to a malloc
allocated buffer. Therefore limit the number of bytes cleared to the
size of SRAM.
simavr/sim/sim_avr.c