mirror of
https://github.com/reactos/syzkaller.git
synced 2024-12-18 09:06:58 +00:00
f9a8d567eb
This change makes pkg/report try to detect corrupted reports by using some heuristics.
53 lines
1.2 KiB
Go
53 lines
1.2 KiB
Go
// 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"
|
|
)
|
|
|
|
type akaros struct {
|
|
kernelSrc string
|
|
kernelObj string
|
|
symbols map[string][]symbolizer.Symbol
|
|
ignores []*regexp.Regexp
|
|
}
|
|
|
|
func ctorAkaros(kernelSrc, kernelObj string, symbols map[string][]symbolizer.Symbol,
|
|
ignores []*regexp.Regexp) (Reporter, error) {
|
|
ctx := &akaros{
|
|
kernelSrc: kernelSrc,
|
|
kernelObj: kernelObj,
|
|
symbols: symbols,
|
|
ignores: ignores,
|
|
}
|
|
return ctx, nil
|
|
}
|
|
|
|
func (ctx *akaros) ContainsCrash(output []byte) bool {
|
|
panic("not implemented")
|
|
}
|
|
|
|
func (ctx *akaros) Parse(output []byte) (desc string, text []byte, start int, end int, corrupted bool) {
|
|
panic("not implemented")
|
|
}
|
|
|
|
func (ctx *akaros) Symbolize(text []byte) ([]byte, error) {
|
|
panic("not implemented")
|
|
}
|
|
|
|
func (ctx *akaros) ExtractConsoleOutput(output []byte) (result []byte) {
|
|
panic("not implemented")
|
|
}
|
|
|
|
func (ctx *akaros) ExtractGuiltyFile(report []byte) string {
|
|
panic("not implemented")
|
|
}
|
|
|
|
func (ctx *akaros) GetMaintainers(file string) ([]string, error) {
|
|
panic("not implemented")
|
|
}
|