diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-07-30 19:33:02 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-07-30 19:33:02 +0200 |
| commit | 7c7ded697e6322b0975f061b7e268fe44f585dab (patch) | |
| tree | 400f141578159dce58b9ab2a2ba32842e29b1149 /pkg | |
| parent | 3b37734422dc0cb40100287bbb3628d8d946c271 (diff) | |
prog: fix out-of-bounds access
ParseLog can access data out-of-bounds.
Fix that and fix regression fuzz tests to catch this.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/report/report_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/report/report_test.go b/pkg/report/report_test.go index 4d3137175..983da5d1e 100644 --- a/pkg/report/report_test.go +++ b/pkg/report/report_test.go @@ -372,6 +372,6 @@ func TestFuzz(t *testing.T) { "cleaned vnod\re", "kernel\r:", } { - Fuzz([]byte(data)) + Fuzz([]byte(data)[:len(data):len(data)]) } } |
