diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-09-13 00:06:20 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-09-13 00:06:20 -0700 |
commit | 4a5140fe4b466b55bad596eab4662499f54cd1f3 (patch) | |
tree | a63901ee7fcba491b80016e175ca188729ff2c09 /tests/012/lambda.tl | |
parent | 521ab968ee48e4e40a3e1a5ea00851d39e59b4b3 (diff) | |
download | txr-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