cisco-open / llvm-crash-analyzer

llvm crash analysis
Apache License 2.0
40 stars 17 forks source link

[DFG] Fix MEM nodes without Concrete Address #20

Closed niktesic closed 1 year ago

niktesic commented 1 year ago

In the Taint Data Flow Graph, if node represents Memory Location Taint Info, and the Concrete Memory Address is not available, print symbolic address as register + offset, like in the example below. !2{1; $rdi = MOV64rm $rax, 1, $noreg, 8, $noreg; MEM: $rax + 8}

Before this patch, Memory Locations without Concrete Address, were represented only by the base register (as a simple register location) like in the second example. !2{1; $rdi = MOV64rm $rax, 1, $noreg, 8, $noreg; REG: $rax}