You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #1655 provided a fix for some alias instructions where the incorrect access type was being fetched due to a change in the number of operands.
For example, cmp x0, x1 is an alias of subs xzr, x0, x1, and the access rights for cmp are WRITE, READ respectively, when they should be READ, READ.
The fix from #1655 changes the printOperand function to use OpNum instead of MI->ac_idx to retrieve the access type from the map; which works for the case above, but for other instructions it retrieves the incorrect types.
For example, ldrsw x2, [x0], #4 should have access types x2=WRITE, [x0]=READ | WRITE, however with the change from #1655 the access types are x2=READ | WRITE, [x0]=READ | WRITE.
PR #1907 reverts the change made from #1655, as another solution will need implementing to ensure the access types are correct for all instructions, including aliases
The text was updated successfully, but these errors were encountered:
Issue 1653 test commented out as the change made for this issue was reverted due to it being incomplete for all instructions. New issue capstone-engine#1911 has been opened to document that the original issue needs re-addressing.
PR #1655 provided a fix for some alias instructions where the incorrect access type was being fetched due to a change in the number of operands.
For example,
cmp x0, x1
is an alias ofsubs xzr, x0, x1
, and the access rights forcmp
are WRITE, READ respectively, when they should be READ, READ.The fix from #1655 changes the
printOperand
function to useOpNum
instead ofMI->ac_idx
to retrieve the access type from the map; which works for the case above, but for other instructions it retrieves the incorrect types.For example,
ldrsw x2, [x0], #4
should have access typesx2
=WRITE,[x0]
=READ | WRITE, however with the change from #1655 the access types arex2
=READ | WRITE,[x0]
=READ | WRITE.PR #1907 reverts the change made from #1655, as another solution will need implementing to ensure the access types are correct for all instructions, including aliases
The text was updated successfully, but these errors were encountered: