Commit d35771292e99dae6db6d9e5fdd530b0152b51c1b
authorDoug Goldstein <cardoe@cardoe.com>
Sun, 27 Apr 2014 21:41:47 +0000 (16:41 -0500)
committerMichel Pollet <michel.pollet@bp.renesas.com>
Wed, 19 Oct 2016 09:12:41 +0000 (10:12 +0100)
treeb1dfebb7393c74e574cd64021bf202819d307f21
parent13d121d77203740eaf6fb17a10b0d468c6ba6d51
Message:
elf: check for error instead of crashing

Check for error when allocating memory instead of dereferencing a NULL
pointer later in the program.

(cherry picked from commit b3ecaf43cba921c6a257132093107771074ab749)

Conflicts:
simavr/sim/sim_elf.c
simavr/sim/sim_elf.c