Skip to content

Commit

Permalink
fixed another fuzz test
Browse files Browse the repository at this point in the history
  • Loading branch information
awalterschulze committed Sep 16, 2015
1 parent ea8e832 commit 2093b57
Show file tree
Hide file tree
Showing 51 changed files with 1,229 additions and 90 deletions.
5 changes: 4 additions & 1 deletion plugin/unmarshal/unmarshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,10 @@ func (p *unmarshal) Generate(file *generator.FileDescriptor) {
wireType := int(wire & 0x7)
switch wireType {
case 0:
for {
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflow` + p.localName + `
}
if iNdEx >= l {
return 0, ` + p.ioPkg.Use() + `.ErrUnexpectedEOF
}
Expand Down
5 changes: 4 additions & 1 deletion test/casttype/combos/both/casttype.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion test/casttype/combos/unmarshaler/casttype.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion test/casttype/combos/unsafeboth/casttype.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion test/casttype/combos/unsafeunmarshaler/casttype.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion test/combos/both/thetest.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion test/combos/unmarshaler/thetest.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion test/combos/unsafeboth/thetest.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion test/combos/unsafeunmarshaler/thetest.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion test/custombytesnonstruct/proto.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion test/empty-issue70/empty.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion test/example/example.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2093b57

Please sign in to comment.