Skip to content

Instantly share code, notes, and snippets.

@tbg
Created August 4, 2015 16:41
Show Gist options
  • Save tbg/fdaa61ab2521d0c0aba9 to your computer and use it in GitHub Desktop.
Save tbg/fdaa61ab2521d0c0aba9 to your computer and use it in GitHub Desktop.
AST: (*parser.Select)(0x2084a6000)({
Distinct: (string) "",
Exprs: (parser.SelectExprs) (len=1 cap=1) {
(*parser.NonStarExpr)(0x2084f0020)({
Expr: (*parser.QualifiedName)(0x2084f4060)({
Base: (parser.Name) (len=5) "\xc8rray",
Indirect: (parser.Indirection) (len=1 cap=1) {
(*parser.ArrayIndirection)(0x2084f0000)({
Begin: (parser.Expr) <nil>,
End: (parser.Expr) <nil>
})
}
}),
As: (parser.Name) ""
})
},
From: (parser.TableExprs) <nil>,
Where: (*parser.Where)(<nil>),
GroupBy: (parser.GroupBy) <nil>,
Having: (*parser.Where)(<nil>),
OrderBy: (parser.OrderBy) <nil>,
Limit: (*parser.Limit)(<nil>),
Lock: (string) "",
tableSelect: (bool) false
})
data0: "SELECT \xc8rray%!s(PANIC=runtime error: invalid memory address or nil pointer dereference)"
panic: syntax error at or near "!"
SELECT Èrray%!s(PANIC=runtime error: invalid memory address or nil pointer dereference)
^
goroutine 1 [running]:
github.com/cockroachdb/cockroach/sql/parser/fuzzparse.fuzzSingle(0x2208481b90, 0x2084a6000, 0x2084c8070)
/var/folders/yy/4q8rrssd27vdgbr59w9qbffr0000gn/T/go-fuzz-build330135787/src/github.com/cockroachdb/cockroach/sql/parser/fuzzparse/main.go:83 +0x538
github.com/cockroachdb/cockroach/sql/parser/fuzzparse.Fuzz(0x2208630000, 0x16, 0x200000, 0x3)
/var/folders/yy/4q8rrssd27vdgbr59w9qbffr0000gn/T/go-fuzz-build330135787/src/github.com/cockroachdb/cockroach/sql/parser/fuzzparse/main.go:32 +0x3d3
github.com/dvyukov/go-fuzz/go-fuzz-dep.Main(0x319fc0)
/Users/tschottdorf/go/src/github.com/dvyukov/go-fuzz/go-fuzz-dep/main.go:44 +0x13d
main.main()
/var/folders/yy/4q8rrssd27vdgbr59w9qbffr0000gn/T/go-fuzz-build330135787/src/go-fuzz-main/main.go:10 +0x2a
exit status 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment