2017-10-17 16:08:39 +00:00
|
|
|
// Copyright 2017 syzkaller project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package report
|
|
|
|
|
|
|
|
import (
|
|
|
|
"regexp"
|
|
|
|
|
|
|
|
"github.com/google/syzkaller/pkg/symbolizer"
|
|
|
|
)
|
|
|
|
|
2018-05-07 11:05:41 +00:00
|
|
|
type stub struct {
|
2017-10-17 16:08:39 +00:00
|
|
|
kernelSrc string
|
|
|
|
kernelObj string
|
|
|
|
symbols map[string][]symbolizer.Symbol
|
|
|
|
ignores []*regexp.Regexp
|
|
|
|
}
|
|
|
|
|
2018-05-07 11:05:41 +00:00
|
|
|
func ctorStub(kernelSrc, kernelObj string, symbols map[string][]symbolizer.Symbol,
|
2017-10-17 16:08:39 +00:00
|
|
|
ignores []*regexp.Regexp) (Reporter, error) {
|
2018-05-07 11:05:41 +00:00
|
|
|
ctx := &stub{
|
2017-10-17 16:08:39 +00:00
|
|
|
kernelSrc: kernelSrc,
|
|
|
|
kernelObj: kernelObj,
|
|
|
|
symbols: symbols,
|
|
|
|
ignores: ignores,
|
|
|
|
}
|
|
|
|
return ctx, nil
|
|
|
|
}
|
|
|
|
|
2018-05-07 11:05:41 +00:00
|
|
|
func (ctx *stub) ContainsCrash(output []byte) bool {
|
2017-10-17 16:08:39 +00:00
|
|
|
panic("not implemented")
|
|
|
|
}
|
|
|
|
|
2018-05-07 11:05:41 +00:00
|
|
|
func (ctx *stub) Parse(output []byte) *Report {
|
2017-10-17 16:08:39 +00:00
|
|
|
panic("not implemented")
|
|
|
|
}
|
|
|
|
|
2018-05-07 11:05:41 +00:00
|
|
|
func (ctx *stub) Symbolize(rep *Report) error {
|
2017-10-17 16:08:39 +00:00
|
|
|
panic("not implemented")
|
|
|
|
}
|