]> git.ozlabs.org Git - ccan/commitdiff
ccanlint: fix stack smash.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 14 Jan 2013 07:40:59 +0000 (18:10 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 14 Jan 2013 07:40:59 +0000 (18:10 +1030)
"engla" on IRC reported that ccanlint on linux/powerpc would loop
infinitely calling dep_failed after all tests are run and the score is
output.

Reproduced, and discovered that cannot_run() takes a container_of(),
except our top node is not a struct ccanlint.  The result was harmless on
x86, but set dep_failed to the return address on powerpc, causing that
to be called repeatedly.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found