summaryrefslogtreecommitdiffhomepage
path: root/lib.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-10-19 13:36:09 +0200
committerJo-Philipp Wich <jo@mein.io>2020-10-19 13:40:41 +0200
commit036ba87c5d18385c5da13c331658363ea0ba6afe (patch)
treeac89ce98fde5e88fac1833236513ac09a2b48c1a /lib.c
parent898a28de86600b62ddd5f971b910eaadc222bbb7 (diff)
eval: avoid ut_op deref after ut_execute_op() in ut_execute_local()
Since we're invoking ut_execute_op() to obtain the assignment value, the operand pool might have been reallocated at a different memory address, invalidating the label opcode pointer. Obtain a reference to the underlying json label value and re-obtain the assignment opcode pointer with each iteration to avoid dereferencing stale pointers. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib.c')
0 files changed, 0 insertions, 0 deletions