summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-10-26 06:58:44 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-10-26 06:58:44 -0700
commitd8185f6ae9d706f68e3ad3da5c1899ffffab415d (patch)
tree20d4aa7a36935ecdbb1e226dad3f36f1188d8f54 /stream.c
parent0b0ef7806b96292ad11378dad7f9c6ae8274ad71 (diff)
downloadtxr-d8185f6ae9d706f68e3ad3da5c1899ffffab415d.tar.gz
txr-d8185f6ae9d706f68e3ad3da5c1899ffffab415d.tar.bz2
txr-d8185f6ae9d706f68e3ad3da5c1899ffffab415d.zip
vm: bugfix: corruption of global desc list.
* vm.c (vm_make_desc): We must register the newly malloced descriptor structure into the free list before calling cobj, because calling cobj may trigger gc, which can blow away the object pointed to by our vtail local variable. Alternatively, we calculate vtail after doign the cobj. Obtaining vtail and using it cannot be separated by gc.
Diffstat (limited to 'stream.c')
0 files changed, 0 insertions, 0 deletions