85fcbde22f
CS eliminates outer expressions before inner ones, as `x * y * z` before `x * y`. It does this by reversing the order of expressions in the code. This almost always works, but it sometimes doesn't work if a STI changes the value number of a LOI. In code like `expr1 LOI expr2 STI expr2 LOI`, CS might eliminate the inner `expr2` before the outer `expr2 LOI`. This caused a read after free because the occurrence of `expr2 LOI` pointed to the eliminated lines of `expr2`. This bug went unnoticed until my recent changes caused CS to crash with a double free. I did not get the crash in OpenBSD, but I saw the crash in Travis, then David Given reproduced the crash in Linux. See the discussion in https://github.com/davidgiven/ack/pull/73 |
||
---|---|---|
.. | ||
bo | ||
ca | ||
cf | ||
cj | ||
cs | ||
descr | ||
em_ego | ||
ic | ||
il | ||
lv | ||
ra | ||
share | ||
sp | ||
sr | ||
ud | ||
Action | ||
build.lua |