summaryrefslogtreecommitdiffstats
path: root/jv_alloc.c
AgeCommit message (Collapse)Author
2013-05-05Remove JQ_DEBUG #define and jq_test binary, simplifying build.Stephen Dolan
The debugging features previously available via JQ_DEBUG are now command-line options.
2012-12-24Sneaky valgrind trick to detect stack memory issues.Stephen Dolan
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.
2012-12-18Print an error message and abort in out-of-memory situations.Stephen Dolan
Closes #43. Tested with: ulimit -v 5000 ./jq -n -c 'def f(x): x,f([x,x]); f(0)'
2012-12-18Add wrappers for malloc/realloc/free. See #43.Stephen Dolan