• Rusty Russell's avatar
    ccanlint: fix stack smash. · 6bab11a2
    Rusty Russell authored
    "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: default avatarRusty Russell <rusty@rustcorp.com.au>
    6bab11a2
ccanlint.c 16.7 KB