mirror of
https://github.com/janet-lang/janet
synced 2024-12-01 12:29:54 +00:00
Address issue #54
Bug when marshalling function environments that were still on a fiber stack.
This commit is contained in:
parent
340a6c4d8d
commit
9d60e8b343
@ -804,7 +804,7 @@ static const uint8_t *unmarshal_one_fiber(
|
|||||||
data = unmarshal_one_env(st, data, &env, flags + 1);
|
data = unmarshal_one_env(st, data, &env, flags + 1);
|
||||||
if (env->offset != 0 && env->offset != offset)
|
if (env->offset != 0 && env->offset != offset)
|
||||||
janet_panic("funcenv offset does not match fiber frame");
|
janet_panic("funcenv offset does not match fiber frame");
|
||||||
if (env->length != 0 && env->length != offset)
|
if (env->length != 0 && env->length != length)
|
||||||
janet_panic("funcenv length does not match fiber frame");
|
janet_panic("funcenv length does not match fiber frame");
|
||||||
env->offset = offset;
|
env->offset = offset;
|
||||||
env->length = length;
|
env->length = length;
|
||||||
|
Loading…
Reference in New Issue
Block a user