diff options
| author | Alexander Egorenkov <Alexander.Egorenkov@ibm.com> | 2020-10-01 13:16:00 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-10-02 12:10:52 +0200 |
| commit | 062c9832a6cdb39bf38ad7a6dad51300a2e9a734 (patch) | |
| tree | d70ada13165f07d43aa14aea49e685953f553513 /pkg/report/bsd.go | |
| parent | 9602ddf403bdf3cfd87efef14becc76f9a38b81d (diff) | |
vm/vmimpl/merger: remove all CRs from output
Get rid of all places stripping \r in pkg/report.
And adapt all tests.
Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov@ibm.com>
Diffstat (limited to 'pkg/report/bsd.go')
| -rw-r--r-- | pkg/report/bsd.go | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/pkg/report/bsd.go b/pkg/report/bsd.go index d79c36b6c..327ddc8c6 100644 --- a/pkg/report/bsd.go +++ b/pkg/report/bsd.go @@ -50,17 +50,7 @@ func (ctx *bsd) ContainsCrash(output []byte) bool { } func (ctx *bsd) Parse(output []byte) *Report { - stripped := bytes.Replace(output, []byte{'\r', '\n'}, []byte{'\n'}, -1) - stripped = bytes.Replace(stripped, []byte{'\n', '\r'}, []byte{'\n'}, -1) - for len(stripped) != 0 && stripped[0] == '\r' { - stripped = stripped[1:] - } - rep := simpleLineParser(stripped, ctx.oopses, nil, ctx.ignores) - if rep == nil { - return nil - } - rep.Output = output - return rep + return simpleLineParser(output, ctx.oopses, nil, ctx.ignores) } func (ctx *bsd) Symbolize(rep *Report) error { |
