Skip to content

Commit

Permalink
stores only code regions in the KB
Browse files Browse the repository at this point in the history
  • Loading branch information
ivg committed Nov 2, 2020
1 parent e7ad5f1 commit 30f1161
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/bap/bap_project.ml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ let with_filename spec target code memory path =
KB.promising Theory.Label.unit ~promise:(fun label ->
KB.collect Theory.Label.addr label >>=? fun addr ->
let addr = Word.create addr width in
let memory = union_memory code data in
if Memmap.contains memory addr then
if Memmap.contains code addr then
Theory.Unit.for_file path >>= fun unit ->
KB.sequence [
KB.provide Image.Spec.slot unit spec;
Expand Down

0 comments on commit 30f1161

Please sign in to comment.