]> git.lizzy.rs Git - plan9front.git/commit
rc: skip arguments to Xsrcline, Xsrcfile in codefree
authorOri Bernstein <ori@eigenstate.org>
Fri, 25 Jun 2021 23:10:07 +0000 (23:10 +0000)
committerOri Bernstein <ori@eigenstate.org>
Fri, 25 Jun 2021 23:10:07 +0000 (23:10 +0000)
commit759aafa007c42dce044800863455ad6048ed0ba5
treeac041e727b0ca0fe197912f3920fd1117a4d75d0
parent88a8ca5c8de86f1f3e5b43a490e0e70c6b456072
rc: skip arguments to Xsrcline, Xsrcfile in codefree

We weren't correctly skipping the location operators
in codefree. This would mostly be work, but sometimes
you'd get unlucky and have one of the argmuents mismatch,
and that would lead to an invalid free.

This correctly skips the args in codefree.
sys/src/cmd/rc/code.c