]> git.lizzy.rs Git - plan9front.git/commit
libaml: fix gc bug, need to amltake()/amldrop() temporary buffer
authorcinap_lenrek <cinap_lenrek@felloff.net>
Wed, 14 Jul 2021 17:04:40 +0000 (17:04 +0000)
committercinap_lenrek <cinap_lenrek@felloff.net>
Wed, 14 Jul 2021 17:04:40 +0000 (17:04 +0000)
commit1a46b6c19e0e81cd3125a9e026e6aec76ccb110b
treec4331af7c24a8fc15bf2d456d80df9a01da991aa
parent6560e7c6fd26dc99604beba0f45292f592155aeb
libaml: fix gc bug, need to amltake()/amldrop() temporary buffer

we have to protect the temporary buffer allocated by rwfield()
as rwreg() calls amlmapio() which might cause further aml code
execution causing gc() which frees it under us (as it is not
referenced from the interpreter state).

this fixes a panic on boot of a

Lenovo Thinkpad P17 Gen1 Professional Mobile Workstation
sys/src/libaml/aml.c