mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-28 01:35:33 +03:00
Discovery: Rebuild segmented addr meta data in concretizeAbsCodePointers
This commit is contained in:
parent
0c3c935b7b
commit
501a24c47a
@ -101,9 +101,10 @@ concretizeAbsCodePointers mem (FinSet s) =
|
||||
, Just sa <- [absoluteAddrSegment mem (fromInteger a)]
|
||||
, Perm.isExecutable (segmentFlags (addrSegment sa))
|
||||
]
|
||||
concretizeAbsCodePointers _ (CodePointers s _) =
|
||||
concretizeAbsCodePointers mem (CodePointers s _) =
|
||||
[ sa
|
||||
| sa <- Set.toList s
|
||||
| a <- Set.toList s
|
||||
, Just sa <- [absoluteAddrSegment mem (_addrOffset a)]
|
||||
, Perm.isExecutable (segmentFlags (addrSegment sa))
|
||||
]
|
||||
-- FIXME: this is dangerous !!
|
||||
|
Loading…
Reference in New Issue
Block a user