summaryrefslogtreecommitdiffstats
path: root/tests/012/lambda.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-09-13 00:06:20 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-09-13 00:06:20 -0700
commit4a5140fe4b466b55bad596eab4662499f54cd1f3 (patch)
treea63901ee7fcba491b80016e175ca188729ff2c09 /tests/012/lambda.tl
parent521ab968ee48e4e40a3e1a5ea00851d39e59b4b3 (diff)
downloadtxr-4a5140fe4b466b55bad596eab4662499f54cd1f3.tar.gz
txr-4a5140fe4b466b55bad596eab4662499f54cd1f3.tar.bz2
txr-4a5140fe4b466b55bad596eab4662499f54cd1f3.zip
hash: gc problem in copy-hash.
* hash.c (copy_hash): The order of allocating the hash object and vector is incorrect. The hash must be allocated last, like it is in do_make_hash and make_similar_hash. If the vector is allocated after the hash, it can trigger gc, and then the garbage collector will traverse the uninitialized parts of the hash object.
Diffstat (limited to 'tests/012/lambda.tl')
0 files changed, 0 insertions, 0 deletions