diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-05-03 11:43:36 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-05-03 11:43:36 +0200 |
| commit | 54b31a67e6a9f49fc2cda38a79c5adfe68fe9d21 (patch) | |
| tree | 65969ad936d46be11da1399b70fcddb01ca6ff8d /tools | |
| parent | 8813b44c4bb24ec9eb8c3f4d3847d90a8986aba9 (diff) | |
| parent | ed787856f258f495445c2267b9cf40d7d4ce320d (diff) | |
Merge pull request #39 from ramosian-glider/restore_pc_2
Use readelf to obtain the upper 32 bits of addresses returned by kcov.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-execprog/execprog.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go index e9246766b..fdba0f258 100644 --- a/tools/syz-execprog/execprog.go +++ b/tools/syz-execprog/execprog.go @@ -110,7 +110,7 @@ func main() { buf := new(bytes.Buffer) binary.Write(buf, binary.LittleEndian, uint64(0xC0BFFFFFFFFFFF64)) for _, pc := range c { - binary.Write(buf, binary.LittleEndian, cover.RestorePC(pc)) + binary.Write(buf, binary.LittleEndian, cover.RestorePC(pc, 0xffffffff)) } err := ioutil.WriteFile(fmt.Sprintf("%v.%v", *flagCoverFile, i), buf.Bytes(), 0660) if err != nil { |
