]> git.sur5r.net Git - openocd/commit
fix segfault from stack corruption in ahbap_debugport_init
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Wed, 26 Jan 2011 12:13:14 +0000 (12:13 +0000)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Wed, 26 Jan 2011 12:14:51 +0000 (12:14 +0000)
commit5b34018ccd244e888e8b7e1619e0e979b2a6147e
treee4b1e734bf8dc90385796628fb8eb8f52eb49440
parenta72741818431d693e48b0f016258be0fec1f79da
fix segfault from stack corruption in ahbap_debugport_init

ahbap_debugport_init was queueing reads to a local stack variable but
didn't execute the queue before returning. Since the result of the reads
are not used anyway, it's better to pass NULL as the destination instead of
a dummy variable. I changed this throughout the function, even for the
reads that were actually executed.

Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
src/target/arm_adi_v5.c