Skip to content
Permalink
Browse files

tools/syz-trace2syz/parser: parse strace bitsets

Strace decodes bitsets like fd_set or sa_mask into the following structure: [a b c d e].
Before we couldn't parse these structures, but now parse them into the Group IR Type
  • Loading branch information...
shankarapailoor authored and dvyukov committed Dec 23, 2018
1 parent 88f5934 commit dd2986b43bc0024340006833d6a7f05ec94c061c
Showing with 150 additions and 148 deletions.
  1. +1 −0 tools/syz-trace2syz/parser/parser_test.go
  2. +129 −127 tools/syz-trace2syz/parser/strace.go
  3. +20 −21 tools/syz-trace2syz/parser/strace.y
@@ -204,6 +204,7 @@ func TestParseGroupType(t *testing.T) {
tests := []irTest{
{`open({1, 2, 3}) = 0`},
{`open([1, 2, 3]) = 0`},
{`open([1 2 3]) = 0`},
}
for _, test := range tests {
tree, err := ParseData([]byte(test.test))
Oops, something went wrong.

0 comments on commit dd2986b

Please sign in to comment.
You can’t perform that action at this time.