]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/bfin/ChangeLog
sim: bfin: avoid stack error under asan
authorMike Frysinger <vapier@gentoo.org>
Sat, 26 Dec 2015 23:22:37 +0000 (18:22 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 26 Dec 2015 23:22:37 +0000 (18:22 -0500)
commit236bf91febaa3a7b0c2231a8740968e90aa497c6
tree6bfdfa73aef909e3aec23e739ab889f51c006d7b
parentdea10706e9159ba6e94eab4c25010f3006d033a0
sim: bfin: avoid stack error under asan

We set up an array of 3 elements and then index into it with a 2bit
value.  We check the range before we actually use the pointer, but
the indexing is enough to make asan upset, so just stuff a fourth
value in there to keep things simple.
sim/bfin/ChangeLog
sim/bfin/bfin-sim.c