]> granicus.if.org Git - jq/commit
Sneaky valgrind trick to detect stack memory issues.
authorStephen Dolan <mu@netsoc.tcd.ie>
Mon, 24 Dec 2012 17:11:18 +0000 (17:11 +0000)
committerStephen Dolan <mu@netsoc.tcd.ie>
Mon, 24 Dec 2012 17:11:18 +0000 (17:11 +0000)
commitcedda2084d2f6b331ba0a73e05f0b77ee7995c86
tree8a91fd88b2ce655780f3399954c7c37d2c368b95
parent0fed03f35a63c01e89c0ba91cfe92dfc226d1e86
Sneaky valgrind trick to detect stack memory issues.

After something is popped from a stack, we overwrite the memory
with uninitialised data (if JQ_DEBUG is on). This means that
valgrind reports use-after-pop as an uninitialised memory error.
forkable_stack.h
jv_alloc.c
jv_alloc.h