diff --git a/plugin/unmarshal/unmarshal.go b/plugin/unmarshal/unmarshal.go index c06635b349..31d8e7ccfb 100644 --- a/plugin/unmarshal/unmarshal.go +++ b/plugin/unmarshal/unmarshal.go @@ -368,6 +368,11 @@ func (p *unmarshal) mapField(varName string, customType bool, field *descriptor. p.Out() p.P(`}`) p.P(`postStringIndex`, varName, ` := iNdEx + intStringLen`, varName) + p.P(`if postStringIndex`, varName, ` < 0 {`) + p.In() + p.P(`return ErrInvalidLength` + p.localName) + p.Out() + p.P(`}`) p.P(`if postStringIndex`, varName, ` > l {`) p.In() p.P(`return `, p.ioPkg.Use(), `.ErrUnexpectedEOF`) @@ -386,7 +391,7 @@ func (p *unmarshal) mapField(varName string, customType bool, field *descriptor. p.Out() p.P(`}`) p.P(`postmsgIndex := iNdEx + mapmsglen`) - p.P(`if mapmsglen < 0 {`) + p.P(`if postmsgIndex < 0 {`) p.In() p.P(`return ErrInvalidLength` + p.localName) p.Out() @@ -440,6 +445,11 @@ func (p *unmarshal) mapField(varName string, customType bool, field *descriptor. p.Out() p.P(`}`) p.P(`postbytesIndex := iNdEx + intMapbyteLen`) + p.P(`if postbytesIndex < 0 {`) + p.In() + p.P(`return ErrInvalidLength` + p.localName) + p.Out() + p.P(`}`) p.P(`if postbytesIndex > l {`) p.In() p.P(`return `, p.ioPkg.Use(), `.ErrUnexpectedEOF`) @@ -632,6 +642,11 @@ func (p *unmarshal) field(file *generator.FileDescriptor, msg *generator.Descrip p.Out() p.P(`}`) p.P(`postIndex := iNdEx + intStringLen`) + p.P(`if postIndex < 0 {`) + p.In() + p.P(`return ErrInvalidLength` + p.localName) + p.Out() + p.P(`}`) p.P(`if postIndex > l {`) p.In() p.P(`return `, p.ioPkg.Use(), `.ErrUnexpectedEOF`) @@ -661,6 +676,11 @@ func (p *unmarshal) field(file *generator.FileDescriptor, msg *generator.Descrip p.Out() p.P(`}`) p.P(`postIndex := iNdEx + msglen`) + p.P(`if postIndex < 0 {`) + p.In() + p.P(`return ErrInvalidLength` + p.localName) + p.Out() + p.P(`}`) p.P(`if postIndex > l {`) p.In() p.P(`return `, p.ioPkg.Use(), `.ErrUnexpectedEOF`) @@ -1110,6 +1130,11 @@ func (p *unmarshal) field(file *generator.FileDescriptor, msg *generator.Descrip p.Out() p.P(`}`) p.P(`postIndex := iNdEx + byteLen`) + p.P(`if postIndex < 0 {`) + p.In() + p.P(`return ErrInvalidLength` + p.localName) + p.Out() + p.P(`}`) p.P(`if postIndex > l {`) p.In() p.P(`return `, p.ioPkg.Use(), `.ErrUnexpectedEOF`) @@ -1364,6 +1389,11 @@ func (p *unmarshal) Generate(file *generator.FileDescriptor) { p.Out() p.P(`}`) p.P(`postIndex := iNdEx + packedLen`) + p.P(`if postIndex < 0 {`) + p.In() + p.P(`return ErrInvalidLength` + p.localName) + p.Out() + p.P(`}`) p.P(`if postIndex > l {`) p.In() p.P(`return `, p.ioPkg.Use(), `.ErrUnexpectedEOF`) @@ -1459,6 +1489,11 @@ func (p *unmarshal) Generate(file *generator.FileDescriptor) { p.P(`return ErrInvalidLength`, p.localName) p.Out() p.P(`}`) + p.P(`if (iNdEx + skippy) < 0 {`) + p.In() + p.P(`return ErrInvalidLength`, p.localName) + p.Out() + p.P(`}`) p.P(`if (iNdEx + skippy) > l {`) p.In() p.P(`return `, p.ioPkg.Use(), `.ErrUnexpectedEOF`) @@ -1482,6 +1517,11 @@ func (p *unmarshal) Generate(file *generator.FileDescriptor) { p.P(`return ErrInvalidLength`, p.localName) p.Out() p.P(`}`) + p.P(`if (iNdEx + skippy) < 0 {`) + p.In() + p.P(`return ErrInvalidLength`, p.localName) + p.Out() + p.P(`}`) p.P(`if (iNdEx + skippy) > l {`) p.In() p.P(`return `, p.ioPkg.Use(), `.ErrUnexpectedEOF`) @@ -1589,10 +1629,13 @@ func (p *unmarshal) Generate(file *generator.FileDescriptor) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLength` + p.localName + ` } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLength` + p.localName + ` + } return iNdEx, nil case 3: for { @@ -1621,6 +1664,9 @@ func (p *unmarshal) Generate(file *generator.FileDescriptor) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLength` + p.localName + ` + } } return iNdEx, nil case 4: diff --git a/test/asymetric-issue125/asym.pb.go b/test/asymetric-issue125/asym.pb.go index 93e559e27e..cda7b3c040 100644 --- a/test/asymetric-issue125/asym.pb.go +++ b/test/asymetric-issue125/asym.pb.go @@ -451,6 +451,9 @@ func (m *M) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAsym } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAsym + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -469,6 +472,9 @@ func (m *M) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAsym } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAsym + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -520,6 +526,9 @@ func (m *MyType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAsym } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAsym + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -587,10 +596,13 @@ func skipAsym(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthAsym } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthAsym + } return iNdEx, nil case 3: for { @@ -619,6 +631,9 @@ func skipAsym(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthAsym + } } return iNdEx, nil case 4: diff --git a/test/casttype/combos/both/casttype.pb.go b/test/casttype/combos/both/casttype.pb.go index 00a60f5c02..9aa355bee1 100644 --- a/test/casttype/combos/both/casttype.pb.go +++ b/test/casttype/combos/both/casttype.pb.go @@ -1834,6 +1834,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1865,6 +1868,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1911,12 +1917,15 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int - for _, integer := range dAtA { + for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } @@ -1969,6 +1978,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2016,6 +2028,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthCasttype + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -2076,6 +2091,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2123,6 +2141,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthCasttype + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -2183,6 +2204,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2244,7 +2268,7 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthCasttype } if postmsgIndex > l { @@ -2295,6 +2319,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2356,7 +2383,7 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthCasttype } if postmsgIndex > l { @@ -2408,6 +2435,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2423,6 +2453,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthCasttype } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCasttype + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2494,6 +2527,9 @@ func (m *Wilson) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthCasttype } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCasttype + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2561,10 +2597,13 @@ func skipCasttype(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthCasttype } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthCasttype + } return iNdEx, nil case 3: for { @@ -2593,6 +2632,9 @@ func skipCasttype(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthCasttype + } } return iNdEx, nil case 4: diff --git a/test/casttype/combos/unmarshaler/casttype.pb.go b/test/casttype/combos/unmarshaler/casttype.pb.go index 48c2be4146..51dd463340 100644 --- a/test/casttype/combos/unmarshaler/casttype.pb.go +++ b/test/casttype/combos/unmarshaler/casttype.pb.go @@ -1613,6 +1613,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1644,6 +1647,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1690,12 +1696,15 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int - for _, integer := range dAtA { + for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } @@ -1748,6 +1757,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1795,6 +1807,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthCasttype + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -1855,6 +1870,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1902,6 +1920,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthCasttype + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -1962,6 +1983,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2023,7 +2047,7 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthCasttype } if postmsgIndex > l { @@ -2074,6 +2098,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2135,7 +2162,7 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthCasttype } if postmsgIndex > l { @@ -2187,6 +2214,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCasttype } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCasttype + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2202,6 +2232,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthCasttype } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCasttype + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2273,6 +2306,9 @@ func (m *Wilson) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthCasttype } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCasttype + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2340,10 +2376,13 @@ func skipCasttype(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthCasttype } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthCasttype + } return iNdEx, nil case 3: for { @@ -2372,6 +2411,9 @@ func skipCasttype(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthCasttype + } } return iNdEx, nil case 4: diff --git a/test/castvalue/combos/both/castvalue.pb.go b/test/castvalue/combos/both/castvalue.pb.go index a1d1096f02..8c1b0ed8f8 100644 --- a/test/castvalue/combos/both/castvalue.pb.go +++ b/test/castvalue/combos/both/castvalue.pb.go @@ -1085,6 +1085,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCastvalue } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCastvalue + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1146,7 +1149,7 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCastvalue } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthCastvalue } if postmsgIndex > l { @@ -1197,6 +1200,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCastvalue } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCastvalue + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1258,7 +1264,7 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCastvalue } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthCastvalue } if postmsgIndex > l { @@ -1295,6 +1301,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthCastvalue } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCastvalue + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1366,6 +1375,9 @@ func (m *Wilson) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthCastvalue } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCastvalue + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1433,10 +1445,13 @@ func skipCastvalue(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthCastvalue } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthCastvalue + } return iNdEx, nil case 3: for { @@ -1465,6 +1480,9 @@ func skipCastvalue(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthCastvalue + } } return iNdEx, nil case 4: diff --git a/test/castvalue/combos/unmarshaler/castvalue.pb.go b/test/castvalue/combos/unmarshaler/castvalue.pb.go index 93c9c4dd43..c897967949 100644 --- a/test/castvalue/combos/unmarshaler/castvalue.pb.go +++ b/test/castvalue/combos/unmarshaler/castvalue.pb.go @@ -959,6 +959,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCastvalue } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCastvalue + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1020,7 +1023,7 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCastvalue } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthCastvalue } if postmsgIndex > l { @@ -1071,6 +1074,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCastvalue } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCastvalue + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1132,7 +1138,7 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCastvalue } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthCastvalue } if postmsgIndex > l { @@ -1169,6 +1175,9 @@ func (m *Castaway) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthCastvalue } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCastvalue + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1240,6 +1249,9 @@ func (m *Wilson) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthCastvalue } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCastvalue + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1307,10 +1319,13 @@ func skipCastvalue(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthCastvalue } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthCastvalue + } return iNdEx, nil case 3: for { @@ -1339,6 +1354,9 @@ func skipCastvalue(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthCastvalue + } } return iNdEx, nil case 4: diff --git a/test/combos/both/thetest.pb.go b/test/combos/both/thetest.pb.go index b4c38dfb2a..7b5ce4b104 100644 --- a/test/combos/both/thetest.pb.go +++ b/test/combos/both/thetest.pb.go @@ -7010,10 +7010,10 @@ func (this *MyExtendable) Compare(that interface{}) int { thismap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(this) thatmap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(that1) extkeys := make([]int32, 0, len(thismap)+len(thatmap)) - for k, _ := range thismap { + for k := range thismap { extkeys = append(extkeys, k) } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { extkeys = append(extkeys, k) } @@ -7092,10 +7092,10 @@ func (this *OtherExtenable) Compare(that interface{}) int { thismap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(this) thatmap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(that1) extkeys := make([]int32, 0, len(thismap)+len(thatmap)) - for k, _ := range thismap { + for k := range thismap { extkeys = append(extkeys, k) } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { extkeys = append(extkeys, k) } @@ -14555,7 +14555,7 @@ func (this *MyExtendable) VerboseEqual(that interface{}) error { return fmt.Errorf("XXX_InternalExtensions[%v] Not In that", k) } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return fmt.Errorf("XXX_InternalExtensions[%v] Not In this", k) } @@ -14604,7 +14604,7 @@ func (this *MyExtendable) Equal(that interface{}) bool { return false } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return false } @@ -14671,7 +14671,7 @@ func (this *OtherExtenable) VerboseEqual(that interface{}) error { return fmt.Errorf("XXX_InternalExtensions[%v] Not In that", k) } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return fmt.Errorf("XXX_InternalExtensions[%v] Not In this", k) } @@ -14732,7 +14732,7 @@ func (this *OtherExtenable) Equal(that interface{}) bool { return false } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return false } @@ -31956,6 +31956,9 @@ func (m *NidOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31984,6 +31987,9 @@ func (m *NidOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32001,6 +32007,9 @@ func (m *NidOptNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -32279,6 +32288,9 @@ func (m *NinOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32308,6 +32320,9 @@ func (m *NinOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32325,6 +32340,9 @@ func (m *NinOptNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -32397,6 +32415,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32448,6 +32469,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32507,6 +32531,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32580,6 +32607,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32653,6 +32683,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32726,6 +32759,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32800,6 +32836,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32875,6 +32914,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32940,6 +32982,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32989,6 +33034,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33038,6 +33086,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33087,6 +33138,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33145,6 +33199,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33198,6 +33255,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33226,6 +33286,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33241,6 +33304,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -33313,6 +33379,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33364,6 +33433,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33423,6 +33495,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33496,6 +33571,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33569,6 +33647,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33642,6 +33723,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33716,6 +33800,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33791,6 +33878,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33856,6 +33946,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33905,6 +33998,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33954,6 +34050,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34003,6 +34102,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34061,6 +34163,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34114,6 +34219,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34142,6 +34250,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34157,6 +34268,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -34229,6 +34343,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34280,6 +34397,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34339,6 +34459,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34412,6 +34535,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34485,6 +34611,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34558,6 +34687,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34632,6 +34764,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34707,6 +34842,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34772,6 +34910,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34821,6 +34962,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34870,6 +35014,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34919,6 +35066,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34977,6 +35127,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35015,6 +35168,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -35087,6 +35243,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35138,6 +35297,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35197,6 +35359,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35270,6 +35435,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35343,6 +35511,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35416,6 +35587,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35490,6 +35664,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35565,6 +35742,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35630,6 +35810,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35679,6 +35862,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35728,6 +35914,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35777,6 +35966,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35835,6 +36027,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35873,6 +36068,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -35960,6 +36158,9 @@ func (m *NidOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35990,6 +36191,9 @@ func (m *NidOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36060,6 +36264,9 @@ func (m *NidOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36111,6 +36318,9 @@ func (m *NidOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36139,6 +36349,9 @@ func (m *NidOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36156,6 +36369,9 @@ func (m *NidOptStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -36245,6 +36461,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36278,6 +36497,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36352,6 +36574,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36407,6 +36632,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36436,6 +36664,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36453,6 +36684,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -36525,6 +36759,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36576,6 +36813,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36620,6 +36860,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36651,6 +36894,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36697,6 +36943,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36771,6 +37020,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36830,6 +37082,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36876,6 +37131,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36929,6 +37187,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36957,6 +37218,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36972,6 +37236,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -37044,6 +37311,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37095,6 +37365,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37139,6 +37412,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37170,6 +37446,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37216,6 +37495,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37290,6 +37572,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37349,6 +37634,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37395,6 +37683,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37448,6 +37739,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37476,6 +37770,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37491,6 +37788,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -37556,6 +37856,9 @@ func (m *NidEmbeddedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37589,6 +37892,9 @@ func (m *NidEmbeddedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37625,6 +37931,9 @@ func (m *NidEmbeddedStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -37690,6 +37999,9 @@ func (m *NinEmbeddedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37723,6 +38035,9 @@ func (m *NinEmbeddedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37763,6 +38078,9 @@ func (m *NinEmbeddedStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -37828,6 +38146,9 @@ func (m *NidNestedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37858,6 +38179,9 @@ func (m *NidNestedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37875,6 +38199,9 @@ func (m *NidNestedStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -37940,6 +38267,9 @@ func (m *NinNestedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37973,6 +38303,9 @@ func (m *NinNestedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37990,6 +38323,9 @@ func (m *NinNestedStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -38055,6 +38391,9 @@ func (m *NidOptCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38085,6 +38424,9 @@ func (m *NidOptCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38101,6 +38443,9 @@ func (m *NidOptCustom) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -38166,6 +38511,9 @@ func (m *CustomDash) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38184,6 +38532,9 @@ func (m *CustomDash) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -38249,6 +38600,9 @@ func (m *NinOptCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38281,6 +38635,9 @@ func (m *NinOptCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38299,6 +38656,9 @@ func (m *NinOptCustom) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -38364,6 +38724,9 @@ func (m *NidRepCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38396,6 +38759,9 @@ func (m *NidRepCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38414,6 +38780,9 @@ func (m *NidRepCustom) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -38479,6 +38848,9 @@ func (m *NinRepCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38511,6 +38883,9 @@ func (m *NinRepCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38529,6 +38904,9 @@ func (m *NinRepCustom) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -38720,6 +39098,9 @@ func (m *NinOptNativeUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38749,6 +39130,9 @@ func (m *NinOptNativeUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38766,6 +39150,9 @@ func (m *NinOptNativeUnion) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -38855,6 +39242,9 @@ func (m *NinOptStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38888,6 +39278,9 @@ func (m *NinOptStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38984,6 +39377,9 @@ func (m *NinOptStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39013,6 +39409,9 @@ func (m *NinOptStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39030,6 +39429,9 @@ func (m *NinOptStructUnion) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -39095,6 +39497,9 @@ func (m *NinEmbeddedStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39128,6 +39533,9 @@ func (m *NinEmbeddedStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39168,6 +39576,9 @@ func (m *NinEmbeddedStructUnion) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -39233,6 +39644,9 @@ func (m *NinNestedStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39266,6 +39680,9 @@ func (m *NinNestedStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39299,6 +39716,9 @@ func (m *NinNestedStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39318,6 +39738,9 @@ func (m *NinNestedStructUnion) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -39383,6 +39806,9 @@ func (m *Tree) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39416,6 +39842,9 @@ func (m *Tree) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39449,6 +39878,9 @@ func (m *Tree) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39468,6 +39900,9 @@ func (m *Tree) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -39533,6 +39968,9 @@ func (m *OrBranch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39563,6 +40001,9 @@ func (m *OrBranch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39579,6 +40020,9 @@ func (m *OrBranch) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -39644,6 +40088,9 @@ func (m *AndBranch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39674,6 +40121,9 @@ func (m *AndBranch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39690,6 +40140,9 @@ func (m *AndBranch) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -39775,6 +40228,9 @@ func (m *Leaf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39789,6 +40245,9 @@ func (m *Leaf) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -39854,6 +40313,9 @@ func (m *DeepTree) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39887,6 +40349,9 @@ func (m *DeepTree) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39920,6 +40385,9 @@ func (m *DeepTree) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39939,6 +40407,9 @@ func (m *DeepTree) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40004,6 +40475,9 @@ func (m *ADeepBranch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40020,6 +40494,9 @@ func (m *ADeepBranch) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40085,6 +40562,9 @@ func (m *AndDeepBranch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40115,6 +40595,9 @@ func (m *AndDeepBranch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40131,6 +40614,9 @@ func (m *AndDeepBranch) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40196,6 +40682,9 @@ func (m *DeepLeaf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40212,6 +40701,9 @@ func (m *DeepLeaf) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40263,6 +40755,9 @@ func (m *Nil) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40333,6 +40828,9 @@ func (m *NidOptEnum) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40444,6 +40942,9 @@ func (m *NinOptEnum) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40524,6 +41025,9 @@ func (m *NidRepEnum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40590,6 +41094,9 @@ func (m *NidRepEnum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40656,6 +41163,9 @@ func (m *NidRepEnum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40693,6 +41203,9 @@ func (m *NidRepEnum) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40773,6 +41286,9 @@ func (m *NinRepEnum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40839,6 +41355,9 @@ func (m *NinRepEnum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40905,6 +41424,9 @@ func (m *NinRepEnum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40942,6 +41464,9 @@ func (m *NinRepEnum) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41053,6 +41578,9 @@ func (m *NinOptEnumDefault) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41164,6 +41692,9 @@ func (m *AnotherNinOptEnum) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41275,6 +41806,9 @@ func (m *AnotherNinOptEnumDefault) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41360,6 +41894,9 @@ func (m *Timer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41377,6 +41914,9 @@ func (m *Timer) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41457,6 +41997,9 @@ func (m *MyExtendable) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41471,6 +42014,9 @@ func (m *MyExtendable) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41537,6 +42083,9 @@ func (m *OtherExtenable) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41605,6 +42154,9 @@ func (m *OtherExtenable) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41619,6 +42171,9 @@ func (m *OtherExtenable) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41725,6 +42280,9 @@ func (m *NestedDefinition) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41758,6 +42316,9 @@ func (m *NestedDefinition) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41777,6 +42338,9 @@ func (m *NestedDefinition) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41853,6 +42417,9 @@ func (m *NestedDefinition_NestedMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41872,6 +42439,9 @@ func (m *NestedDefinition_NestedMessage) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41938,6 +42508,9 @@ func (m *NestedDefinition_NestedMessage_NestedNestedMsg) Unmarshal(dAtA []byte) return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41953,6 +42526,9 @@ func (m *NestedDefinition_NestedMessage_NestedNestedMsg) Unmarshal(dAtA []byte) if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -42018,6 +42594,9 @@ func (m *NestedScope) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42071,6 +42650,9 @@ func (m *NestedScope) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42090,6 +42672,9 @@ func (m *NestedScope) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -42368,6 +42953,9 @@ func (m *NinOptNativeDefault) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42397,6 +42985,9 @@ func (m *NinOptNativeDefault) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42414,6 +43005,9 @@ func (m *NinOptNativeDefault) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -42479,6 +43073,9 @@ func (m *CustomContainer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42495,6 +43092,9 @@ func (m *CustomContainer) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -42761,6 +43361,9 @@ func (m *CustomNameNidOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42789,6 +43392,9 @@ func (m *CustomNameNidOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42806,6 +43412,9 @@ func (m *CustomNameNidOptNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -43084,6 +43693,9 @@ func (m *CustomNameNinOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43113,6 +43725,9 @@ func (m *CustomNameNinOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43130,6 +43745,9 @@ func (m *CustomNameNinOptNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -43202,6 +43820,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43253,6 +43874,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43312,6 +43936,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43385,6 +44012,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43458,6 +44088,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43531,6 +44164,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43605,6 +44241,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43680,6 +44319,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43745,6 +44387,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43794,6 +44439,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43843,6 +44491,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43892,6 +44543,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43950,6 +44604,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44003,6 +44660,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44031,6 +44691,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44046,6 +44709,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -44135,6 +44801,9 @@ func (m *CustomNameNinStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44168,6 +44837,9 @@ func (m *CustomNameNinStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44240,6 +44912,9 @@ func (m *CustomNameNinStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44295,6 +44970,9 @@ func (m *CustomNameNinStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44324,6 +45002,9 @@ func (m *CustomNameNinStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44341,6 +45022,9 @@ func (m *CustomNameNinStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -44406,6 +45090,9 @@ func (m *CustomNameCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44438,6 +45125,9 @@ func (m *CustomNameCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44470,6 +45160,9 @@ func (m *CustomNameCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44502,6 +45195,9 @@ func (m *CustomNameCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44520,6 +45216,9 @@ func (m *CustomNameCustomType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -44585,6 +45284,9 @@ func (m *CustomNameNinEmbeddedStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44618,6 +45320,9 @@ func (m *CustomNameNinEmbeddedStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44658,6 +45363,9 @@ func (m *CustomNameNinEmbeddedStructUnion) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -44758,6 +45466,9 @@ func (m *CustomNameEnum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44795,6 +45506,9 @@ func (m *CustomNameEnum) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -44875,6 +45589,9 @@ func (m *NoExtensionsMap) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -44889,6 +45606,9 @@ func (m *NoExtensionsMap) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -44956,6 +45676,9 @@ func (m *Unrecognized) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44971,6 +45694,9 @@ func (m *Unrecognized) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -45035,6 +45761,9 @@ func (m *UnrecognizedWithInner) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45067,6 +45796,9 @@ func (m *UnrecognizedWithInner) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45082,6 +45814,9 @@ func (m *UnrecognizedWithInner) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -45153,6 +45888,9 @@ func (m *UnrecognizedWithInner_Inner) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -45217,6 +45955,9 @@ func (m *UnrecognizedWithEmbed) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45248,6 +45989,9 @@ func (m *UnrecognizedWithEmbed) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45263,6 +46007,9 @@ func (m *UnrecognizedWithEmbed) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -45334,6 +46081,9 @@ func (m *UnrecognizedWithEmbed_Embedded) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -45399,6 +46149,9 @@ func (m *Node) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45428,6 +46181,9 @@ func (m *Node) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45445,6 +46201,9 @@ func (m *Node) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -45510,6 +46269,9 @@ func (m *NonByteCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45529,6 +46291,9 @@ func (m *NonByteCustomType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -45594,6 +46359,9 @@ func (m *NidOptNonByteCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45610,6 +46378,9 @@ func (m *NidOptNonByteCustomType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -45675,6 +46446,9 @@ func (m *NinOptNonByteCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45694,6 +46468,9 @@ func (m *NinOptNonByteCustomType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -45759,6 +46536,9 @@ func (m *NidRepNonByteCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45776,6 +46556,9 @@ func (m *NidRepNonByteCustomType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -45841,6 +46624,9 @@ func (m *NinRepNonByteCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45858,6 +46644,9 @@ func (m *NinRepNonByteCustomType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -45924,6 +46713,9 @@ func (m *ProtoType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45939,6 +46731,9 @@ func (m *ProtoType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -46006,10 +46801,13 @@ func skipThetest(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthThetest } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthThetest + } return iNdEx, nil case 3: for { @@ -46038,6 +46836,9 @@ func skipThetest(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthThetest + } } return iNdEx, nil case 4: diff --git a/test/combos/marshaler/thetest.pb.go b/test/combos/marshaler/thetest.pb.go index 3713403691..7c39ae9a20 100644 --- a/test/combos/marshaler/thetest.pb.go +++ b/test/combos/marshaler/thetest.pb.go @@ -7009,10 +7009,10 @@ func (this *MyExtendable) Compare(that interface{}) int { thismap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(this) thatmap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(that1) extkeys := make([]int32, 0, len(thismap)+len(thatmap)) - for k, _ := range thismap { + for k := range thismap { extkeys = append(extkeys, k) } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { extkeys = append(extkeys, k) } @@ -7091,10 +7091,10 @@ func (this *OtherExtenable) Compare(that interface{}) int { thismap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(this) thatmap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(that1) extkeys := make([]int32, 0, len(thismap)+len(thatmap)) - for k, _ := range thismap { + for k := range thismap { extkeys = append(extkeys, k) } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { extkeys = append(extkeys, k) } @@ -14554,7 +14554,7 @@ func (this *MyExtendable) VerboseEqual(that interface{}) error { return fmt.Errorf("XXX_InternalExtensions[%v] Not In that", k) } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return fmt.Errorf("XXX_InternalExtensions[%v] Not In this", k) } @@ -14603,7 +14603,7 @@ func (this *MyExtendable) Equal(that interface{}) bool { return false } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return false } @@ -14670,7 +14670,7 @@ func (this *OtherExtenable) VerboseEqual(that interface{}) error { return fmt.Errorf("XXX_InternalExtensions[%v] Not In that", k) } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return fmt.Errorf("XXX_InternalExtensions[%v] Not In this", k) } @@ -14731,7 +14731,7 @@ func (this *OtherExtenable) Equal(that interface{}) bool { return false } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return false } diff --git a/test/combos/unmarshaler/thetest.pb.go b/test/combos/unmarshaler/thetest.pb.go index b18b6c3c6b..8a104f99fc 100644 --- a/test/combos/unmarshaler/thetest.pb.go +++ b/test/combos/unmarshaler/thetest.pb.go @@ -6398,10 +6398,10 @@ func (this *MyExtendable) Compare(that interface{}) int { thismap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(this) thatmap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(that1) extkeys := make([]int32, 0, len(thismap)+len(thatmap)) - for k, _ := range thismap { + for k := range thismap { extkeys = append(extkeys, k) } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { extkeys = append(extkeys, k) } @@ -6480,10 +6480,10 @@ func (this *OtherExtenable) Compare(that interface{}) int { thismap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(this) thatmap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(that1) extkeys := make([]int32, 0, len(thismap)+len(thatmap)) - for k, _ := range thismap { + for k := range thismap { extkeys = append(extkeys, k) } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { extkeys = append(extkeys, k) } @@ -13943,7 +13943,7 @@ func (this *MyExtendable) VerboseEqual(that interface{}) error { return fmt.Errorf("XXX_InternalExtensions[%v] Not In that", k) } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return fmt.Errorf("XXX_InternalExtensions[%v] Not In this", k) } @@ -13992,7 +13992,7 @@ func (this *MyExtendable) Equal(that interface{}) bool { return false } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return false } @@ -14059,7 +14059,7 @@ func (this *OtherExtenable) VerboseEqual(that interface{}) error { return fmt.Errorf("XXX_InternalExtensions[%v] Not In that", k) } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return fmt.Errorf("XXX_InternalExtensions[%v] Not In this", k) } @@ -14120,7 +14120,7 @@ func (this *OtherExtenable) Equal(that interface{}) bool { return false } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return false } @@ -27359,6 +27359,9 @@ func (m *NidOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27387,6 +27390,9 @@ func (m *NidOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27404,6 +27410,9 @@ func (m *NidOptNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -27682,6 +27691,9 @@ func (m *NinOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27711,6 +27723,9 @@ func (m *NinOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27728,6 +27743,9 @@ func (m *NinOptNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -27800,6 +27818,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27851,6 +27872,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27910,6 +27934,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27983,6 +28010,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28056,6 +28086,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28129,6 +28162,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28203,6 +28239,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28278,6 +28317,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28343,6 +28385,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28392,6 +28437,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28441,6 +28489,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28490,6 +28541,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28548,6 +28602,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28601,6 +28658,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28629,6 +28689,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28644,6 +28707,9 @@ func (m *NidRepNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -28716,6 +28782,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28767,6 +28836,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28826,6 +28898,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28899,6 +28974,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28972,6 +29050,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29045,6 +29126,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29119,6 +29203,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29194,6 +29281,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29259,6 +29349,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29308,6 +29401,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29357,6 +29453,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29406,6 +29505,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29464,6 +29566,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29517,6 +29622,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29545,6 +29653,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29560,6 +29671,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -29632,6 +29746,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29683,6 +29800,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29742,6 +29862,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29815,6 +29938,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29888,6 +30014,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29961,6 +30090,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30035,6 +30167,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30110,6 +30245,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30175,6 +30313,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30224,6 +30365,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30273,6 +30417,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30322,6 +30469,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30380,6 +30530,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30418,6 +30571,9 @@ func (m *NidRepPackedNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -30490,6 +30646,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30541,6 +30700,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30600,6 +30762,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30673,6 +30838,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30746,6 +30914,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30819,6 +30990,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30893,6 +31067,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30968,6 +31145,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31033,6 +31213,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31082,6 +31265,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31131,6 +31317,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31180,6 +31369,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31238,6 +31430,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31276,6 +31471,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -31363,6 +31561,9 @@ func (m *NidOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31393,6 +31594,9 @@ func (m *NidOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31463,6 +31667,9 @@ func (m *NidOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31514,6 +31721,9 @@ func (m *NidOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31542,6 +31752,9 @@ func (m *NidOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31559,6 +31772,9 @@ func (m *NidOptStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -31648,6 +31864,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31681,6 +31900,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31755,6 +31977,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31810,6 +32035,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31839,6 +32067,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31856,6 +32087,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -31928,6 +32162,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31979,6 +32216,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32023,6 +32263,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32054,6 +32297,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32100,6 +32346,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32174,6 +32423,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32233,6 +32485,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32279,6 +32534,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32332,6 +32590,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32360,6 +32621,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32375,6 +32639,9 @@ func (m *NidRepStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -32447,6 +32714,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32498,6 +32768,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32542,6 +32815,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32573,6 +32849,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32619,6 +32898,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32693,6 +32975,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32752,6 +33037,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32798,6 +33086,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32851,6 +33142,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32879,6 +33173,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32894,6 +33191,9 @@ func (m *NinRepStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -32959,6 +33259,9 @@ func (m *NidEmbeddedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32992,6 +33295,9 @@ func (m *NidEmbeddedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33028,6 +33334,9 @@ func (m *NidEmbeddedStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -33093,6 +33402,9 @@ func (m *NinEmbeddedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33126,6 +33438,9 @@ func (m *NinEmbeddedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33166,6 +33481,9 @@ func (m *NinEmbeddedStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -33231,6 +33549,9 @@ func (m *NidNestedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33261,6 +33582,9 @@ func (m *NidNestedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33278,6 +33602,9 @@ func (m *NidNestedStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -33343,6 +33670,9 @@ func (m *NinNestedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33376,6 +33706,9 @@ func (m *NinNestedStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33393,6 +33726,9 @@ func (m *NinNestedStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -33458,6 +33794,9 @@ func (m *NidOptCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33488,6 +33827,9 @@ func (m *NidOptCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33504,6 +33846,9 @@ func (m *NidOptCustom) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -33569,6 +33914,9 @@ func (m *CustomDash) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33587,6 +33935,9 @@ func (m *CustomDash) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -33652,6 +34003,9 @@ func (m *NinOptCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33684,6 +34038,9 @@ func (m *NinOptCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33702,6 +34059,9 @@ func (m *NinOptCustom) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -33767,6 +34127,9 @@ func (m *NidRepCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33799,6 +34162,9 @@ func (m *NidRepCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33817,6 +34183,9 @@ func (m *NidRepCustom) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -33882,6 +34251,9 @@ func (m *NinRepCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33914,6 +34286,9 @@ func (m *NinRepCustom) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33932,6 +34307,9 @@ func (m *NinRepCustom) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -34123,6 +34501,9 @@ func (m *NinOptNativeUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34152,6 +34533,9 @@ func (m *NinOptNativeUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34169,6 +34553,9 @@ func (m *NinOptNativeUnion) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -34258,6 +34645,9 @@ func (m *NinOptStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34291,6 +34681,9 @@ func (m *NinOptStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34387,6 +34780,9 @@ func (m *NinOptStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34416,6 +34812,9 @@ func (m *NinOptStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34433,6 +34832,9 @@ func (m *NinOptStructUnion) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -34498,6 +34900,9 @@ func (m *NinEmbeddedStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34531,6 +34936,9 @@ func (m *NinEmbeddedStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34571,6 +34979,9 @@ func (m *NinEmbeddedStructUnion) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -34636,6 +35047,9 @@ func (m *NinNestedStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34669,6 +35083,9 @@ func (m *NinNestedStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34702,6 +35119,9 @@ func (m *NinNestedStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34721,6 +35141,9 @@ func (m *NinNestedStructUnion) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -34786,6 +35209,9 @@ func (m *Tree) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34819,6 +35245,9 @@ func (m *Tree) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34852,6 +35281,9 @@ func (m *Tree) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34871,6 +35303,9 @@ func (m *Tree) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -34936,6 +35371,9 @@ func (m *OrBranch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34966,6 +35404,9 @@ func (m *OrBranch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34982,6 +35423,9 @@ func (m *OrBranch) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -35047,6 +35491,9 @@ func (m *AndBranch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35077,6 +35524,9 @@ func (m *AndBranch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35093,6 +35543,9 @@ func (m *AndBranch) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -35178,6 +35631,9 @@ func (m *Leaf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35192,6 +35648,9 @@ func (m *Leaf) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -35257,6 +35716,9 @@ func (m *DeepTree) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35290,6 +35752,9 @@ func (m *DeepTree) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35323,6 +35788,9 @@ func (m *DeepTree) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35342,6 +35810,9 @@ func (m *DeepTree) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -35407,6 +35878,9 @@ func (m *ADeepBranch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35423,6 +35897,9 @@ func (m *ADeepBranch) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -35488,6 +35965,9 @@ func (m *AndDeepBranch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35518,6 +35998,9 @@ func (m *AndDeepBranch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35534,6 +36017,9 @@ func (m *AndDeepBranch) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -35599,6 +36085,9 @@ func (m *DeepLeaf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35615,6 +36104,9 @@ func (m *DeepLeaf) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -35666,6 +36158,9 @@ func (m *Nil) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -35736,6 +36231,9 @@ func (m *NidOptEnum) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -35847,6 +36345,9 @@ func (m *NinOptEnum) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -35927,6 +36428,9 @@ func (m *NidRepEnum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35993,6 +36497,9 @@ func (m *NidRepEnum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36059,6 +36566,9 @@ func (m *NidRepEnum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36096,6 +36606,9 @@ func (m *NidRepEnum) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -36176,6 +36689,9 @@ func (m *NinRepEnum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36242,6 +36758,9 @@ func (m *NinRepEnum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36308,6 +36827,9 @@ func (m *NinRepEnum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36345,6 +36867,9 @@ func (m *NinRepEnum) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -36456,6 +36981,9 @@ func (m *NinOptEnumDefault) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -36567,6 +37095,9 @@ func (m *AnotherNinOptEnum) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -36678,6 +37209,9 @@ func (m *AnotherNinOptEnumDefault) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -36763,6 +37297,9 @@ func (m *Timer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36780,6 +37317,9 @@ func (m *Timer) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -36860,6 +37400,9 @@ func (m *MyExtendable) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -36874,6 +37417,9 @@ func (m *MyExtendable) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -36980,6 +37526,9 @@ func (m *OtherExtenable) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37008,6 +37557,9 @@ func (m *OtherExtenable) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -37022,6 +37574,9 @@ func (m *OtherExtenable) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -37128,6 +37683,9 @@ func (m *NestedDefinition) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37161,6 +37719,9 @@ func (m *NestedDefinition) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37180,6 +37741,9 @@ func (m *NestedDefinition) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -37256,6 +37820,9 @@ func (m *NestedDefinition_NestedMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37275,6 +37842,9 @@ func (m *NestedDefinition_NestedMessage) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -37341,6 +37911,9 @@ func (m *NestedDefinition_NestedMessage_NestedNestedMsg) Unmarshal(dAtA []byte) return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37356,6 +37929,9 @@ func (m *NestedDefinition_NestedMessage_NestedNestedMsg) Unmarshal(dAtA []byte) if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -37421,6 +37997,9 @@ func (m *NestedScope) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37474,6 +38053,9 @@ func (m *NestedScope) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37493,6 +38075,9 @@ func (m *NestedScope) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -37771,6 +38356,9 @@ func (m *NinOptNativeDefault) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37800,6 +38388,9 @@ func (m *NinOptNativeDefault) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37817,6 +38408,9 @@ func (m *NinOptNativeDefault) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -37882,6 +38476,9 @@ func (m *CustomContainer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37898,6 +38495,9 @@ func (m *CustomContainer) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -38164,6 +38764,9 @@ func (m *CustomNameNidOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38192,6 +38795,9 @@ func (m *CustomNameNidOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38209,6 +38815,9 @@ func (m *CustomNameNidOptNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -38487,6 +39096,9 @@ func (m *CustomNameNinOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38516,6 +39128,9 @@ func (m *CustomNameNinOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38533,6 +39148,9 @@ func (m *CustomNameNinOptNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -38605,6 +39223,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38656,6 +39277,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38715,6 +39339,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38788,6 +39415,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38861,6 +39491,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38934,6 +39567,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39008,6 +39644,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39083,6 +39722,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39148,6 +39790,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39197,6 +39842,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39246,6 +39894,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39295,6 +39946,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39353,6 +40007,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39406,6 +40063,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39434,6 +40094,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39449,6 +40112,9 @@ func (m *CustomNameNinRepNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -39538,6 +40204,9 @@ func (m *CustomNameNinStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39571,6 +40240,9 @@ func (m *CustomNameNinStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39643,6 +40315,9 @@ func (m *CustomNameNinStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39698,6 +40373,9 @@ func (m *CustomNameNinStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39727,6 +40405,9 @@ func (m *CustomNameNinStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39744,6 +40425,9 @@ func (m *CustomNameNinStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -39809,6 +40493,9 @@ func (m *CustomNameCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39841,6 +40528,9 @@ func (m *CustomNameCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39873,6 +40563,9 @@ func (m *CustomNameCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39905,6 +40598,9 @@ func (m *CustomNameCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39923,6 +40619,9 @@ func (m *CustomNameCustomType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -39988,6 +40687,9 @@ func (m *CustomNameNinEmbeddedStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40021,6 +40723,9 @@ func (m *CustomNameNinEmbeddedStructUnion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40061,6 +40766,9 @@ func (m *CustomNameNinEmbeddedStructUnion) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40161,6 +40869,9 @@ func (m *CustomNameEnum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40198,6 +40909,9 @@ func (m *CustomNameEnum) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40278,6 +40992,9 @@ func (m *NoExtensionsMap) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40292,6 +41009,9 @@ func (m *NoExtensionsMap) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40359,6 +41079,9 @@ func (m *Unrecognized) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40374,6 +41097,9 @@ func (m *Unrecognized) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40438,6 +41164,9 @@ func (m *UnrecognizedWithInner) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40470,6 +41199,9 @@ func (m *UnrecognizedWithInner) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40485,6 +41217,9 @@ func (m *UnrecognizedWithInner) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40556,6 +41291,9 @@ func (m *UnrecognizedWithInner_Inner) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40620,6 +41358,9 @@ func (m *UnrecognizedWithEmbed) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40651,6 +41392,9 @@ func (m *UnrecognizedWithEmbed) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40666,6 +41410,9 @@ func (m *UnrecognizedWithEmbed) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40737,6 +41484,9 @@ func (m *UnrecognizedWithEmbed_Embedded) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40802,6 +41552,9 @@ func (m *Node) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40831,6 +41584,9 @@ func (m *Node) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40848,6 +41604,9 @@ func (m *Node) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40913,6 +41672,9 @@ func (m *NonByteCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40932,6 +41694,9 @@ func (m *NonByteCustomType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -40997,6 +41762,9 @@ func (m *NidOptNonByteCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41013,6 +41781,9 @@ func (m *NidOptNonByteCustomType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41078,6 +41849,9 @@ func (m *NinOptNonByteCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41097,6 +41871,9 @@ func (m *NinOptNonByteCustomType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41162,6 +41939,9 @@ func (m *NidRepNonByteCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41179,6 +41959,9 @@ func (m *NidRepNonByteCustomType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41244,6 +42027,9 @@ func (m *NinRepNonByteCustomType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41261,6 +42047,9 @@ func (m *NinRepNonByteCustomType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41327,6 +42116,9 @@ func (m *ProtoType) Unmarshal(dAtA []byte) error { return ErrInvalidLengthThetest } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthThetest + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41342,6 +42134,9 @@ func (m *ProtoType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthThetest } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthThetest + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -41409,10 +42204,13 @@ func skipThetest(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthThetest } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthThetest + } return iNdEx, nil case 3: for { @@ -41441,6 +42239,9 @@ func skipThetest(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthThetest + } } return iNdEx, nil case 4: diff --git a/test/custombytesnonstruct/proto.pb.go b/test/custombytesnonstruct/proto.pb.go index e1396ca746..f3c31d621e 100644 --- a/test/custombytesnonstruct/proto.pb.go +++ b/test/custombytesnonstruct/proto.pb.go @@ -126,6 +126,9 @@ func (m *Object) Unmarshal(dAtA []byte) error { return ErrInvalidLengthProto } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthProto + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -158,6 +161,9 @@ func (m *Object) Unmarshal(dAtA []byte) error { return ErrInvalidLengthProto } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthProto + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -176,6 +182,9 @@ func (m *Object) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthProto } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProto + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -243,10 +252,13 @@ func skipProto(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthProto } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthProto + } return iNdEx, nil case 3: for { @@ -275,6 +287,9 @@ func skipProto(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthProto + } } return iNdEx, nil case 4: diff --git a/test/data/data.pb.go b/test/data/data.pb.go index fce4e85677..ecf20e8771 100644 --- a/test/data/data.pb.go +++ b/test/data/data.pb.go @@ -392,6 +392,9 @@ func (m *MyMessage) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthData } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthData + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -459,10 +462,13 @@ func skipData(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthData } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthData + } return iNdEx, nil case 3: for { @@ -491,6 +497,9 @@ func skipData(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthData + } } return iNdEx, nil case 4: diff --git a/test/empty-issue70/empty.pb.go b/test/empty-issue70/empty.pb.go index d18feff40f..03523f59ec 100644 --- a/test/empty-issue70/empty.pb.go +++ b/test/empty-issue70/empty.pb.go @@ -106,6 +106,9 @@ func (m *TestRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthEmpty } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEmpty + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -173,10 +176,13 @@ func skipEmpty(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthEmpty } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthEmpty + } return iNdEx, nil case 3: for { @@ -205,6 +211,9 @@ func skipEmpty(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthEmpty + } } return iNdEx, nil case 4: diff --git a/test/enumdecl/enumdecl.pb.go b/test/enumdecl/enumdecl.pb.go index 9894547ea4..e168d4848b 100644 --- a/test/enumdecl/enumdecl.pb.go +++ b/test/enumdecl/enumdecl.pb.go @@ -373,6 +373,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthEnumdecl } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEnumdecl + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -440,10 +443,13 @@ func skipEnumdecl(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthEnumdecl } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthEnumdecl + } return iNdEx, nil case 3: for { @@ -472,6 +478,9 @@ func skipEnumdecl(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthEnumdecl + } } return iNdEx, nil case 4: diff --git a/test/enumdecl_all/enumdeclall.pb.go b/test/enumdecl_all/enumdeclall.pb.go index 13d7cac856..806488f3a4 100644 --- a/test/enumdecl_all/enumdeclall.pb.go +++ b/test/enumdecl_all/enumdeclall.pb.go @@ -445,6 +445,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthEnumdeclall } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEnumdeclall + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -512,10 +515,13 @@ func skipEnumdeclall(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthEnumdeclall } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthEnumdeclall + } return iNdEx, nil case 3: for { @@ -544,6 +550,9 @@ func skipEnumdeclall(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthEnumdeclall + } } return iNdEx, nil case 4: diff --git a/test/example/example.pb.go b/test/example/example.pb.go index 8f8ae0c848..209c70e03c 100644 --- a/test/example/example.pb.go +++ b/test/example/example.pb.go @@ -2003,6 +2003,9 @@ func (m *A) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExample } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExample + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2050,6 +2053,9 @@ func (m *A) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExample } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthExample + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2066,6 +2072,9 @@ func (m *A) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthExample } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthExample + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2131,6 +2140,9 @@ func (m *B) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExample } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExample + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2161,6 +2173,9 @@ func (m *B) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExample } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthExample + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2179,6 +2194,9 @@ func (m *B) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthExample } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthExample + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2250,6 +2268,9 @@ func (m *C) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthExample } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthExample + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2315,6 +2336,9 @@ func (m *U) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExample } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExample + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2348,6 +2372,9 @@ func (m *U) Unmarshal(dAtA []byte) error { return ErrInvalidLengthExample } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthExample + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2367,6 +2394,9 @@ func (m *U) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthExample } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthExample + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2427,6 +2457,9 @@ func (m *E) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthExample } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthExample + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2441,6 +2474,9 @@ func (m *E) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthExample } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthExample + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2513,6 +2549,9 @@ func (m *R) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthExample } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthExample + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2583,6 +2622,9 @@ func (m *CastType) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthExample } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthExample + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2650,10 +2692,13 @@ func skipExample(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthExample } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthExample + } return iNdEx, nil case 3: for { @@ -2682,6 +2727,9 @@ func skipExample(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthExample + } } return iNdEx, nil case 4: diff --git a/test/fuzztests/fuzz.pb.go b/test/fuzztests/fuzz.pb.go index a367aeb331..34f1d0f69f 100644 --- a/test/fuzztests/fuzz.pb.go +++ b/test/fuzztests/fuzz.pb.go @@ -1370,6 +1370,9 @@ func (m *Nil) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthFuzz } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFuzz + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1442,6 +1445,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1493,6 +1499,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1552,12 +1561,15 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int - for _, integer := range dAtA { + for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } @@ -1625,12 +1637,15 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int - for _, integer := range dAtA { + for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } @@ -1698,12 +1713,15 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int - for _, integer := range dAtA { + for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } @@ -1771,12 +1789,15 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int - for _, integer := range dAtA { + for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } @@ -1845,12 +1866,15 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int - for _, integer := range dAtA { + for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } @@ -1920,12 +1944,15 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int - for _, integer := range dAtA { + for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } @@ -1985,6 +2012,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2034,6 +2064,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2083,6 +2116,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2132,6 +2168,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2190,6 +2229,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2228,6 +2270,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthFuzz } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFuzz + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2506,6 +2551,9 @@ func (m *NinOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2535,6 +2583,9 @@ func (m *NinOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2552,6 +2603,9 @@ func (m *NinOptNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthFuzz } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFuzz + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2641,6 +2695,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2674,6 +2731,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2748,6 +2808,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2803,6 +2866,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2832,6 +2898,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFuzz } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthFuzz + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2849,6 +2918,9 @@ func (m *NinOptStruct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthFuzz } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFuzz + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2916,10 +2988,13 @@ func skipFuzz(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthFuzz } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthFuzz + } return iNdEx, nil case 3: for { @@ -2948,6 +3023,9 @@ func skipFuzz(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthFuzz + } } return iNdEx, nil case 4: diff --git a/test/importcustom-issue389/imported/a.pb.go b/test/importcustom-issue389/imported/a.pb.go index 70d517bb29..2a0b814476 100644 --- a/test/importcustom-issue389/imported/a.pb.go +++ b/test/importcustom-issue389/imported/a.pb.go @@ -314,6 +314,9 @@ func (m *A) Unmarshal(dAtA []byte) error { return ErrInvalidLengthA } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthA + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -328,6 +331,9 @@ func (m *A) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthA } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthA + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -395,10 +401,13 @@ func skipA(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthA } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthA + } return iNdEx, nil case 3: for { @@ -427,6 +436,9 @@ func skipA(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthA + } } return iNdEx, nil case 4: diff --git a/test/importcustom-issue389/importing/c.pb.go b/test/importcustom-issue389/importing/c.pb.go index dd1a4a669d..cb275bfe67 100644 --- a/test/importcustom-issue389/importing/c.pb.go +++ b/test/importcustom-issue389/importing/c.pb.go @@ -322,6 +322,9 @@ func (m *C) Unmarshal(dAtA []byte) error { return ErrInvalidLengthC } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthC + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -341,6 +344,9 @@ func (m *C) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthC } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthC + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -408,10 +414,13 @@ func skipC(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthC } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthC + } return iNdEx, nil case 3: for { @@ -440,6 +449,9 @@ func skipC(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthC + } } return iNdEx, nil case 4: diff --git a/test/indeximport-issue72/index/index.pb.go b/test/indeximport-issue72/index/index.pb.go index b647d041af..4a7d28b2e7 100644 --- a/test/indeximport-issue72/index/index.pb.go +++ b/test/indeximport-issue72/index/index.pb.go @@ -355,6 +355,9 @@ func (m *IndexQuery) Unmarshal(dAtA []byte) error { return ErrInvalidLengthIndex } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIndex + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -385,6 +388,9 @@ func (m *IndexQuery) Unmarshal(dAtA []byte) error { return ErrInvalidLengthIndex } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIndex + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -400,6 +406,9 @@ func (m *IndexQuery) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthIndex } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIndex + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -467,10 +476,13 @@ func skipIndex(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthIndex } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthIndex + } return iNdEx, nil case 3: for { @@ -499,6 +511,9 @@ func skipIndex(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthIndex + } } return iNdEx, nil case 4: diff --git a/test/indeximport-issue72/indeximport.pb.go b/test/indeximport-issue72/indeximport.pb.go index 8d965bf494..113bedc599 100644 --- a/test/indeximport-issue72/indeximport.pb.go +++ b/test/indeximport-issue72/indeximport.pb.go @@ -336,6 +336,9 @@ func (m *IndexQueries) Unmarshal(dAtA []byte) error { return ErrInvalidLengthIndeximport } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIndeximport + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -353,6 +356,9 @@ func (m *IndexQueries) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthIndeximport } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIndeximport + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -420,10 +426,13 @@ func skipIndeximport(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthIndeximport } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthIndeximport + } return iNdEx, nil case 3: for { @@ -452,6 +461,9 @@ func skipIndeximport(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthIndeximport + } } return iNdEx, nil case 4: diff --git a/test/int64support/object.pb.go b/test/int64support/object.pb.go index 1ee90100c9..dbb07df8df 100644 --- a/test/int64support/object.pb.go +++ b/test/int64support/object.pb.go @@ -396,6 +396,9 @@ func (m *Object) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthObject } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthObject + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -462,10 +465,13 @@ func skipObject(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthObject } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthObject + } return iNdEx, nil case 3: for { @@ -494,6 +500,9 @@ func skipObject(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthObject + } } return iNdEx, nil case 4: diff --git a/test/issue260/issue260.pb.go b/test/issue260/issue260.pb.go index b051b6f567..30bfc30c8d 100644 --- a/test/issue260/issue260.pb.go +++ b/test/issue260/issue260.pb.go @@ -709,6 +709,9 @@ func (m *Dropped) Unmarshal(dAtA []byte) error { return ErrInvalidLengthIssue260 } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIssue260 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -742,6 +745,9 @@ func (m *Dropped) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthIssue260 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIssue260 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -844,6 +850,9 @@ func (m *DroppedWithoutGetters) Unmarshal(dAtA []byte) error { return ErrInvalidLengthIssue260 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIssue260 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -860,6 +869,9 @@ func (m *DroppedWithoutGetters) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthIssue260 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIssue260 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -925,6 +937,9 @@ func (m *Kept) Unmarshal(dAtA []byte) error { return ErrInvalidLengthIssue260 } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIssue260 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -958,6 +973,9 @@ func (m *Kept) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthIssue260 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIssue260 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1024,10 +1042,13 @@ func skipIssue260(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthIssue260 } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthIssue260 + } return iNdEx, nil case 3: for { @@ -1056,6 +1077,9 @@ func skipIssue260(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthIssue260 + } } return iNdEx, nil case 4: diff --git a/test/issue261/issue261.pb.go b/test/issue261/issue261.pb.go index 42e90fa798..eace0b2c6e 100644 --- a/test/issue261/issue261.pb.go +++ b/test/issue261/issue261.pb.go @@ -329,6 +329,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthIssue261 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIssue261 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -390,7 +393,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthIssue261 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthIssue261 } if postmsgIndex > l { @@ -426,6 +429,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthIssue261 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIssue261 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -492,10 +498,13 @@ func skipIssue261(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthIssue261 } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthIssue261 + } return iNdEx, nil case 3: for { @@ -524,6 +533,9 @@ func skipIssue261(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthIssue261 + } } return iNdEx, nil case 4: diff --git a/test/issue262/timefail.pb.go b/test/issue262/timefail.pb.go index 85589f612b..96549982de 100644 --- a/test/issue262/timefail.pb.go +++ b/test/issue262/timefail.pb.go @@ -274,6 +274,9 @@ func (m *TimeFail) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTimefail } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTimefail + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -293,6 +296,9 @@ func (m *TimeFail) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTimefail } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTimefail + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -359,10 +365,13 @@ func skipTimefail(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTimefail } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthTimefail + } return iNdEx, nil case 3: for { @@ -391,6 +400,9 @@ func skipTimefail(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthTimefail + } } return iNdEx, nil case 4: diff --git a/test/issue322/issue322.pb.go b/test/issue322/issue322.pb.go index 99d596afff..e817a991b4 100644 --- a/test/issue322/issue322.pb.go +++ b/test/issue322/issue322.pb.go @@ -488,6 +488,9 @@ func (m *OneofTest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthIssue322 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIssue322 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -555,10 +558,13 @@ func skipIssue322(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthIssue322 } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthIssue322 + } return iNdEx, nil case 3: for { @@ -587,6 +593,9 @@ func skipIssue322(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthIssue322 + } } return iNdEx, nil case 4: diff --git a/test/issue330/issue330.pb.go b/test/issue330/issue330.pb.go index 893ad780cb..b194732402 100644 --- a/test/issue330/issue330.pb.go +++ b/test/issue330/issue330.pb.go @@ -318,6 +318,9 @@ func (m *Object) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthIssue330 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIssue330 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -385,10 +388,13 @@ func skipIssue330(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthIssue330 } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthIssue330 + } return iNdEx, nil case 3: for { @@ -417,6 +423,9 @@ func skipIssue330(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthIssue330 + } } return iNdEx, nil case 4: diff --git a/test/issue34/proto.pb.go b/test/issue34/proto.pb.go index d6b3313459..e84ec77a10 100644 --- a/test/issue34/proto.pb.go +++ b/test/issue34/proto.pb.go @@ -169,6 +169,9 @@ func (m *Foo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthProto } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthProto + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -186,6 +189,9 @@ func (m *Foo) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthProto } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProto + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -251,6 +257,9 @@ func (m *FooWithRepeated) Unmarshal(dAtA []byte) error { return ErrInvalidLengthProto } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthProto + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -266,6 +275,9 @@ func (m *FooWithRepeated) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthProto } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProto + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -333,10 +345,13 @@ func skipProto(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthProto } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthProto + } return iNdEx, nil case 3: for { @@ -365,6 +380,9 @@ func skipProto(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthProto + } } return iNdEx, nil case 4: diff --git a/test/issue42order/issue42.pb.go b/test/issue42order/issue42.pb.go index ad9bdece4e..18eced18bc 100644 --- a/test/issue42order/issue42.pb.go +++ b/test/issue42order/issue42.pb.go @@ -455,6 +455,9 @@ func (m *UnorderedFields) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthIssue42 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIssue42 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -537,6 +540,9 @@ func (m *OrderedFields) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthIssue42 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIssue42 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -604,10 +610,13 @@ func skipIssue42(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthIssue42 } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthIssue42 + } return iNdEx, nil case 3: for { @@ -636,6 +645,9 @@ func skipIssue42(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthIssue42 + } } return iNdEx, nil case 4: diff --git a/test/issue449/issue449.pb.go b/test/issue449/issue449.pb.go index a58b0109e9..fa6771fd50 100644 --- a/test/issue449/issue449.pb.go +++ b/test/issue449/issue449.pb.go @@ -477,6 +477,9 @@ func (m *CodeGenMsg) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthIssue449 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIssue449 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -550,10 +553,13 @@ func skipIssue449(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthIssue449 } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthIssue449 + } return iNdEx, nil case 3: for { @@ -582,6 +588,9 @@ func skipIssue449(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthIssue449 + } } return iNdEx, nil case 4: diff --git a/test/issue503/Makefile b/test/issue503/Makefile new file mode 100644 index 0000000000..00e39f73f4 --- /dev/null +++ b/test/issue503/Makefile @@ -0,0 +1,31 @@ +# Protocol Buffers for Go with Gadgets +# +# Copyright (c) 2019, The GoGo Authors. All rights reserved. +# http://github.com/gogo/protobuf +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following disclaimer +# in the documentation and/or other materials provided with the +# distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +regenerate: + go install github.com/gogo/protobuf/protoc-gen-gogo + protoc --gogo_out=. --proto_path=../../../../../:../../protobuf/:. *.proto diff --git a/test/issue503/issue503.pb.go b/test/issue503/issue503.pb.go new file mode 100644 index 0000000000..b3833d69bd --- /dev/null +++ b/test/issue503/issue503.pb.go @@ -0,0 +1,865 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: issue503.proto + +package issue503 + +import ( + bytes "bytes" + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package + +type Foo struct { + Num1 []int64 `protobuf:"varint,1,rep,packed,name=num1,proto3" json:"num1,omitempty"` + Num2 []int32 `protobuf:"varint,2,rep,packed,name=num2,proto3" json:"num2,omitempty"` + Str1 []string `protobuf:"bytes,3,rep,name=str1,proto3" json:"str1,omitempty"` + Dat1 [][]byte `protobuf:"bytes,4,rep,name=dat1,proto3" json:"dat1,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Foo) Reset() { *m = Foo{} } +func (m *Foo) String() string { return proto.CompactTextString(m) } +func (*Foo) ProtoMessage() {} +func (*Foo) Descriptor() ([]byte, []int) { + return fileDescriptor_8886d01c7a4b3fa8, []int{0} +} +func (m *Foo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Foo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Foo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Foo) XXX_Merge(src proto.Message) { + xxx_messageInfo_Foo.Merge(m, src) +} +func (m *Foo) XXX_Size() int { + return m.Size() +} +func (m *Foo) XXX_DiscardUnknown() { + xxx_messageInfo_Foo.DiscardUnknown(m) +} + +var xxx_messageInfo_Foo proto.InternalMessageInfo + +func (m *Foo) GetNum1() []int64 { + if m != nil { + return m.Num1 + } + return nil +} + +func (m *Foo) GetNum2() []int32 { + if m != nil { + return m.Num2 + } + return nil +} + +func (m *Foo) GetStr1() []string { + if m != nil { + return m.Str1 + } + return nil +} + +func (m *Foo) GetDat1() [][]byte { + if m != nil { + return m.Dat1 + } + return nil +} + +func init() { + proto.RegisterType((*Foo)(nil), "issue503.Foo") +} + +func init() { proto.RegisterFile("issue503.proto", fileDescriptor_8886d01c7a4b3fa8) } + +var fileDescriptor_8886d01c7a4b3fa8 = []byte{ + // 171 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0x2c, 0x2e, 0x2e, + 0x4d, 0x35, 0x35, 0x30, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x80, 0xf1, 0xa5, 0x74, + 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xd3, 0xf3, 0xd3, 0xf3, 0xf5, + 0xc1, 0x0a, 0x92, 0x4a, 0xd3, 0xc0, 0x3c, 0x30, 0x07, 0xcc, 0x82, 0x68, 0x54, 0x0a, 0xe5, 0x62, + 0x76, 0xcb, 0xcf, 0x17, 0x12, 0xe2, 0x62, 0xc9, 0x2b, 0xcd, 0x35, 0x94, 0x60, 0x54, 0x60, 0xd6, + 0x60, 0x0e, 0x02, 0xb3, 0xa1, 0x62, 0x46, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 0xac, 0x60, 0x31, 0x23, + 0x90, 0x58, 0x71, 0x49, 0x91, 0xa1, 0x04, 0xb3, 0x02, 0xb3, 0x06, 0x67, 0x10, 0x98, 0x0d, 0x12, + 0x4b, 0x49, 0x2c, 0x31, 0x94, 0x60, 0x51, 0x60, 0xd6, 0xe0, 0x09, 0x02, 0xb3, 0x9d, 0x24, 0x1e, + 0x3c, 0x94, 0x63, 0xfc, 0xf1, 0x50, 0x8e, 0x71, 0xc5, 0x23, 0x39, 0xc6, 0x13, 0x8f, 0xe4, 0x18, + 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x31, 0x89, 0x0d, 0x6c, 0xaf, 0x31, 0x20, 0x00, + 0x00, 0xff, 0xff, 0xe2, 0xf0, 0x54, 0xb4, 0xc2, 0x00, 0x00, 0x00, +} + +func (this *Foo) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Foo) + if !ok { + that2, ok := that.(Foo) + if ok { + that1 = &that2 + } else { + return fmt.Errorf("that is not of type *Foo") + } + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Foo but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Foo but is not nil && this == nil") + } + if len(this.Num1) != len(that1.Num1) { + return fmt.Errorf("Num1 this(%v) Not Equal that(%v)", len(this.Num1), len(that1.Num1)) + } + for i := range this.Num1 { + if this.Num1[i] != that1.Num1[i] { + return fmt.Errorf("Num1 this[%v](%v) Not Equal that[%v](%v)", i, this.Num1[i], i, that1.Num1[i]) + } + } + if len(this.Num2) != len(that1.Num2) { + return fmt.Errorf("Num2 this(%v) Not Equal that(%v)", len(this.Num2), len(that1.Num2)) + } + for i := range this.Num2 { + if this.Num2[i] != that1.Num2[i] { + return fmt.Errorf("Num2 this[%v](%v) Not Equal that[%v](%v)", i, this.Num2[i], i, that1.Num2[i]) + } + } + if len(this.Str1) != len(that1.Str1) { + return fmt.Errorf("Str1 this(%v) Not Equal that(%v)", len(this.Str1), len(that1.Str1)) + } + for i := range this.Str1 { + if this.Str1[i] != that1.Str1[i] { + return fmt.Errorf("Str1 this[%v](%v) Not Equal that[%v](%v)", i, this.Str1[i], i, that1.Str1[i]) + } + } + if len(this.Dat1) != len(that1.Dat1) { + return fmt.Errorf("Dat1 this(%v) Not Equal that(%v)", len(this.Dat1), len(that1.Dat1)) + } + for i := range this.Dat1 { + if !bytes.Equal(this.Dat1[i], that1.Dat1[i]) { + return fmt.Errorf("Dat1 this[%v](%v) Not Equal that[%v](%v)", i, this.Dat1[i], i, that1.Dat1[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Foo) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Foo) + if !ok { + that2, ok := that.(Foo) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if len(this.Num1) != len(that1.Num1) { + return false + } + for i := range this.Num1 { + if this.Num1[i] != that1.Num1[i] { + return false + } + } + if len(this.Num2) != len(that1.Num2) { + return false + } + for i := range this.Num2 { + if this.Num2[i] != that1.Num2[i] { + return false + } + } + if len(this.Str1) != len(that1.Str1) { + return false + } + for i := range this.Str1 { + if this.Str1[i] != that1.Str1[i] { + return false + } + } + if len(this.Dat1) != len(that1.Dat1) { + return false + } + for i := range this.Dat1 { + if !bytes.Equal(this.Dat1[i], that1.Dat1[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (m *Foo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Foo) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Num1) > 0 { + dAtA2 := make([]byte, len(m.Num1)*10) + var j1 int + for _, num1 := range m.Num1 { + num := uint64(num1) + for num >= 1<<7 { + dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA2[j1] = uint8(num) + j1++ + } + dAtA[i] = 0xa + i++ + i = encodeVarintIssue503(dAtA, i, uint64(j1)) + i += copy(dAtA[i:], dAtA2[:j1]) + } + if len(m.Num2) > 0 { + dAtA4 := make([]byte, len(m.Num2)*10) + var j3 int + for _, num1 := range m.Num2 { + num := uint64(num1) + for num >= 1<<7 { + dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j3++ + } + dAtA4[j3] = uint8(num) + j3++ + } + dAtA[i] = 0x12 + i++ + i = encodeVarintIssue503(dAtA, i, uint64(j3)) + i += copy(dAtA[i:], dAtA4[:j3]) + } + if len(m.Str1) > 0 { + for _, s := range m.Str1 { + dAtA[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + if len(m.Dat1) > 0 { + for _, b := range m.Dat1 { + dAtA[i] = 0x22 + i++ + i = encodeVarintIssue503(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) + } + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func encodeVarintIssue503(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func NewPopulatedFoo(r randyIssue503, easy bool) *Foo { + this := &Foo{} + v1 := r.Intn(10) + this.Num1 = make([]int64, v1) + for i := 0; i < v1; i++ { + this.Num1[i] = int64(r.Int63()) + if r.Intn(2) == 0 { + this.Num1[i] *= -1 + } + } + v2 := r.Intn(10) + this.Num2 = make([]int32, v2) + for i := 0; i < v2; i++ { + this.Num2[i] = int32(r.Int31()) + if r.Intn(2) == 0 { + this.Num2[i] *= -1 + } + } + v3 := r.Intn(10) + this.Str1 = make([]string, v3) + for i := 0; i < v3; i++ { + this.Str1[i] = string(randStringIssue503(r)) + } + v4 := r.Intn(10) + this.Dat1 = make([][]byte, v4) + for i := 0; i < v4; i++ { + v5 := r.Intn(100) + this.Dat1[i] = make([]byte, v5) + for j := 0; j < v5; j++ { + this.Dat1[i][j] = byte(r.Intn(256)) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedIssue503(r, 5) + } + return this +} + +type randyIssue503 interface { + Float32() float32 + Float64() float64 + Int63() int64 + Int31() int32 + Uint32() uint32 + Intn(n int) int +} + +func randUTF8RuneIssue503(r randyIssue503) rune { + ru := r.Intn(62) + if ru < 10 { + return rune(ru + 48) + } else if ru < 36 { + return rune(ru + 55) + } + return rune(ru + 61) +} +func randStringIssue503(r randyIssue503) string { + v6 := r.Intn(100) + tmps := make([]rune, v6) + for i := 0; i < v6; i++ { + tmps[i] = randUTF8RuneIssue503(r) + } + return string(tmps) +} +func randUnrecognizedIssue503(r randyIssue503, maxFieldNumber int) (dAtA []byte) { + l := r.Intn(5) + for i := 0; i < l; i++ { + wire := r.Intn(4) + if wire == 3 { + wire = 5 + } + fieldNumber := maxFieldNumber + r.Intn(100) + dAtA = randFieldIssue503(dAtA, r, fieldNumber, wire) + } + return dAtA +} +func randFieldIssue503(dAtA []byte, r randyIssue503, fieldNumber int, wire int) []byte { + key := uint32(fieldNumber)<<3 | uint32(wire) + switch wire { + case 0: + dAtA = encodeVarintPopulateIssue503(dAtA, uint64(key)) + v7 := r.Int63() + if r.Intn(2) == 0 { + v7 *= -1 + } + dAtA = encodeVarintPopulateIssue503(dAtA, uint64(v7)) + case 1: + dAtA = encodeVarintPopulateIssue503(dAtA, uint64(key)) + dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + case 2: + dAtA = encodeVarintPopulateIssue503(dAtA, uint64(key)) + ll := r.Intn(100) + dAtA = encodeVarintPopulateIssue503(dAtA, uint64(ll)) + for j := 0; j < ll; j++ { + dAtA = append(dAtA, byte(r.Intn(256))) + } + default: + dAtA = encodeVarintPopulateIssue503(dAtA, uint64(key)) + dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + } + return dAtA +} +func encodeVarintPopulateIssue503(dAtA []byte, v uint64) []byte { + for v >= 1<<7 { + dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80)) + v >>= 7 + } + dAtA = append(dAtA, uint8(v)) + return dAtA +} +func (m *Foo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Num1) > 0 { + l = 0 + for _, e := range m.Num1 { + l += sovIssue503(uint64(e)) + } + n += 1 + sovIssue503(uint64(l)) + l + } + if len(m.Num2) > 0 { + l = 0 + for _, e := range m.Num2 { + l += sovIssue503(uint64(e)) + } + n += 1 + sovIssue503(uint64(l)) + l + } + if len(m.Str1) > 0 { + for _, s := range m.Str1 { + l = len(s) + n += 1 + l + sovIssue503(uint64(l)) + } + } + if len(m.Dat1) > 0 { + for _, b := range m.Dat1 { + l = len(b) + n += 1 + l + sovIssue503(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovIssue503(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozIssue503(x uint64) (n int) { + return sovIssue503(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Foo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIssue503 + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Foo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Foo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIssue503 + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Num1 = append(m.Num1, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIssue503 + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthIssue503 + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthIssue503 + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Num1) == 0 { + m.Num1 = make([]int64, 0, elementCount) + } + for iNdEx < postIndex { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIssue503 + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Num1 = append(m.Num1, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Num1", wireType) + } + case 2: + if wireType == 0 { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIssue503 + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Num2 = append(m.Num2, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIssue503 + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthIssue503 + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthIssue503 + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Num2) == 0 { + m.Num2 = make([]int32, 0, elementCount) + } + for iNdEx < postIndex { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIssue503 + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Num2 = append(m.Num2, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Num2", wireType) + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Str1", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIssue503 + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIssue503 + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIssue503 + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Str1 = append(m.Str1, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dat1", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIssue503 + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthIssue503 + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthIssue503 + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Dat1 = append(m.Dat1, make([]byte, postIndex-iNdEx)) + copy(m.Dat1[len(m.Dat1)-1], dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIssue503(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthIssue503 + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIssue503 + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipIssue503(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIssue503 + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIssue503 + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIssue503 + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthIssue503 + } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthIssue503 + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIssue503 + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipIssue503(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthIssue503 + } + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthIssue503 = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowIssue503 = fmt.Errorf("proto: integer overflow") +) diff --git a/test/issue503/issue503.proto b/test/issue503/issue503.proto new file mode 100644 index 0000000000..bcf54a2ff5 --- /dev/null +++ b/test/issue503/issue503.proto @@ -0,0 +1,47 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2019, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package issue503; + +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; + +option (gogoproto.equal_all) = true; +option (gogoproto.verbose_equal_all) = true; +option (gogoproto.marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.unmarshaler_all) = true; +option (gogoproto.populate_all) = true; + +message Foo { + repeated int64 num1 = 1; + repeated int32 num2 = 2; + repeated string str1 = 3; + repeated bytes dat1 = 4; +} \ No newline at end of file diff --git a/test/issue503/issue503_test.go b/test/issue503/issue503_test.go new file mode 100644 index 0000000000..3ca9c761d6 --- /dev/null +++ b/test/issue503/issue503_test.go @@ -0,0 +1,75 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2019, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package issue503 + +import ( + "fmt" + "github.com/gogo/protobuf/proto" + "math/rand" + "testing" +) + +// Original test case submitted by issue creator +func TestOOMIssue(t *testing.T) { + // all repeated filed total has 10+10 elements + a := &Foo{ + Num1: []int64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, + Num2: []int32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, + } + dat, err := a.Marshal() + if err != nil { + t.Fatal(err) + } + dst := &Foo{} + if err := dst.Unmarshal(dat); err != nil { + t.Fatal(err) + } + if !a.Equal(dst) { + t.Fatal("message is not equals") + } + fmt.Printf("%v\n", dst.String()) +} + +func BenchmarkOOMIssue(b *testing.B) { + popr := rand.New(rand.NewSource(616)) + total := 0 + pops := make([]*Foo, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedFoo(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} diff --git a/test/issue8/proto.pb.go b/test/issue8/proto.pb.go index 9fe7d1e56a..6d3f86d708 100644 --- a/test/issue8/proto.pb.go +++ b/test/issue8/proto.pb.go @@ -254,6 +254,9 @@ func (m *Foo) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthProto } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProto + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -324,10 +327,13 @@ func skipProto(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthProto } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthProto + } return iNdEx, nil case 3: for { @@ -356,6 +362,9 @@ func skipProto(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthProto + } } return iNdEx, nil case 4: diff --git a/test/mapdefaults/combos/both/map.pb.go b/test/mapdefaults/combos/both/map.pb.go index 03733a113d..9343d8dfd9 100644 --- a/test/mapdefaults/combos/both/map.pb.go +++ b/test/mapdefaults/combos/both/map.pb.go @@ -1148,6 +1148,9 @@ func (m *MapTest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMap } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMap + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1195,6 +1198,9 @@ func (m *MapTest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMap } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMap + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -1221,6 +1227,9 @@ func (m *MapTest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMap } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthMap + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -1252,6 +1261,9 @@ func (m *MapTest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMap } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMap + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1317,6 +1329,9 @@ func (m *FakeMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMap } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMap + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1334,6 +1349,9 @@ func (m *FakeMap) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMap } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMap + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1400,6 +1418,9 @@ func (m *FakeMapEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMap } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMap + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1429,6 +1450,9 @@ func (m *FakeMapEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMap } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMap + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1458,6 +1482,9 @@ func (m *FakeMapEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMap } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMap + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1472,6 +1499,9 @@ func (m *FakeMapEntry) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMap } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMap + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1539,10 +1569,13 @@ func skipMap(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthMap } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthMap + } return iNdEx, nil case 3: for { @@ -1571,6 +1604,9 @@ func skipMap(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthMap + } } return iNdEx, nil case 4: diff --git a/test/mapdefaults/combos/unmarshaler/map.pb.go b/test/mapdefaults/combos/unmarshaler/map.pb.go index 679eee966f..7334d1a58b 100644 --- a/test/mapdefaults/combos/unmarshaler/map.pb.go +++ b/test/mapdefaults/combos/unmarshaler/map.pb.go @@ -1002,6 +1002,9 @@ func (m *MapTest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMap } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMap + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1049,6 +1052,9 @@ func (m *MapTest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMap } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMap + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -1075,6 +1081,9 @@ func (m *MapTest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMap } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthMap + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -1106,6 +1115,9 @@ func (m *MapTest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMap } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMap + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1171,6 +1183,9 @@ func (m *FakeMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMap } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMap + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1188,6 +1203,9 @@ func (m *FakeMap) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMap } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMap + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1254,6 +1272,9 @@ func (m *FakeMapEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMap } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMap + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1283,6 +1304,9 @@ func (m *FakeMapEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMap } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMap + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1312,6 +1336,9 @@ func (m *FakeMapEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMap } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMap + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1326,6 +1353,9 @@ func (m *FakeMapEntry) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMap } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMap + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1393,10 +1423,13 @@ func skipMap(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthMap } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthMap + } return iNdEx, nil case 3: for { @@ -1425,6 +1458,9 @@ func skipMap(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthMap + } } return iNdEx, nil case 4: diff --git a/test/mapsproto2/combos/both/mapsproto2.pb.go b/test/mapsproto2/combos/both/mapsproto2.pb.go index c616be2ee3..a9ad2c61fb 100644 --- a/test/mapsproto2/combos/both/mapsproto2.pb.go +++ b/test/mapsproto2/combos/both/mapsproto2.pb.go @@ -4704,6 +4704,9 @@ func (m *FloatingPoint) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMapsproto2 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMapsproto2 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -4769,6 +4772,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4817,6 +4823,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -4843,6 +4852,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -4890,6 +4902,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4938,6 +4953,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -4964,6 +4982,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -5011,6 +5032,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5059,6 +5083,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -5085,6 +5112,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -5132,6 +5162,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5180,6 +5213,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -5206,6 +5242,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -5239,6 +5278,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMapsproto2 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMapsproto2 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5304,6 +5346,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5351,6 +5396,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -5404,6 +5452,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5451,6 +5502,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -5504,6 +5558,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5600,6 +5657,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5696,6 +5756,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5792,6 +5855,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5888,6 +5954,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5990,6 +6059,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6092,6 +6164,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6170,6 +6245,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6248,6 +6326,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6326,6 +6407,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6404,6 +6488,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6504,6 +6591,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6551,6 +6641,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -6577,6 +6670,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -6622,6 +6718,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6669,6 +6768,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -6695,6 +6797,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -6741,6 +6846,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6788,6 +6896,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -6848,6 +6959,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6895,6 +7009,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -6920,7 +7037,7 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthMapsproto2 } if postmsgIndex > l { @@ -6957,6 +7074,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMapsproto2 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMapsproto2 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7022,6 +7142,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7069,6 +7192,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -7122,6 +7248,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7169,6 +7298,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -7222,6 +7354,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7318,6 +7453,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7414,6 +7552,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7510,6 +7651,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7606,6 +7750,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7708,6 +7855,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7810,6 +7960,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7888,6 +8041,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7966,6 +8122,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8044,6 +8203,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8122,6 +8284,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8222,6 +8387,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8269,6 +8437,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -8295,6 +8466,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -8340,6 +8514,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8387,6 +8564,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -8413,6 +8593,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -8459,6 +8642,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8506,6 +8692,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -8566,6 +8755,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8613,6 +8805,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -8638,7 +8833,7 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthMapsproto2 } if postmsgIndex > l { @@ -8675,6 +8870,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMapsproto2 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMapsproto2 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8742,10 +8940,13 @@ func skipMapsproto2(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthMapsproto2 } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthMapsproto2 + } return iNdEx, nil case 3: for { @@ -8774,6 +8975,9 @@ func skipMapsproto2(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthMapsproto2 + } } return iNdEx, nil case 4: diff --git a/test/mapsproto2/combos/unmarshaler/mapsproto2.pb.go b/test/mapsproto2/combos/unmarshaler/mapsproto2.pb.go index 3350da0b3c..f22790d4b1 100644 --- a/test/mapsproto2/combos/unmarshaler/mapsproto2.pb.go +++ b/test/mapsproto2/combos/unmarshaler/mapsproto2.pb.go @@ -3776,6 +3776,9 @@ func (m *FloatingPoint) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMapsproto2 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMapsproto2 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3841,6 +3844,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3889,6 +3895,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -3915,6 +3924,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -3962,6 +3974,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4010,6 +4025,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -4036,6 +4054,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -4083,6 +4104,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4131,6 +4155,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -4157,6 +4184,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -4204,6 +4234,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4252,6 +4285,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -4278,6 +4314,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -4311,6 +4350,9 @@ func (m *CustomMap) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMapsproto2 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMapsproto2 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -4376,6 +4418,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4423,6 +4468,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -4476,6 +4524,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4523,6 +4574,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -4576,6 +4630,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4672,6 +4729,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4768,6 +4828,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4864,6 +4927,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4960,6 +5026,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5062,6 +5131,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5164,6 +5236,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5242,6 +5317,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5320,6 +5398,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5398,6 +5479,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5476,6 +5560,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5576,6 +5663,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5623,6 +5713,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -5649,6 +5742,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -5694,6 +5790,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5741,6 +5840,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -5767,6 +5869,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -5813,6 +5918,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5860,6 +5968,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -5920,6 +6031,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5967,6 +6081,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -5992,7 +6109,7 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthMapsproto2 } if postmsgIndex > l { @@ -6029,6 +6146,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMapsproto2 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMapsproto2 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -6094,6 +6214,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6141,6 +6264,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -6194,6 +6320,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6241,6 +6370,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -6294,6 +6426,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6390,6 +6525,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6486,6 +6624,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6582,6 +6723,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6678,6 +6822,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6780,6 +6927,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6882,6 +7032,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6960,6 +7113,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7038,6 +7194,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7116,6 +7275,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7194,6 +7356,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7294,6 +7459,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7341,6 +7509,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -7367,6 +7538,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -7412,6 +7586,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7459,6 +7636,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -7485,6 +7665,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -7531,6 +7714,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7578,6 +7764,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -7638,6 +7827,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMapsproto2 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7685,6 +7877,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMapsproto2 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -7710,7 +7905,7 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMapsproto2 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthMapsproto2 } if postmsgIndex > l { @@ -7747,6 +7942,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMapsproto2 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMapsproto2 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7814,10 +8012,13 @@ func skipMapsproto2(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthMapsproto2 } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthMapsproto2 + } return iNdEx, nil case 3: for { @@ -7846,6 +8047,9 @@ func skipMapsproto2(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthMapsproto2 + } } return iNdEx, nil case 4: diff --git a/test/nopackage/nopackage.pb.go b/test/nopackage/nopackage.pb.go index f2a25650e4..3b0d3755c6 100644 --- a/test/nopackage/nopackage.pb.go +++ b/test/nopackage/nopackage.pb.go @@ -221,6 +221,9 @@ func (m *M) Unmarshal(dAtA []byte) error { return ErrInvalidLengthNopackage } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNopackage + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -268,6 +271,9 @@ func (m *M) Unmarshal(dAtA []byte) error { return ErrInvalidLengthNopackage } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthNopackage + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -307,6 +313,9 @@ func (m *M) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthNopackage } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthNopackage + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -374,10 +383,13 @@ func skipNopackage(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthNopackage } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthNopackage + } return iNdEx, nil case 3: for { @@ -406,6 +418,9 @@ func skipNopackage(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthNopackage + } } return iNdEx, nil case 4: diff --git a/test/oneof/combos/both/one.pb.go b/test/oneof/combos/both/one.pb.go index 38fe39410b..337a136317 100644 --- a/test/oneof/combos/both/one.pb.go +++ b/test/oneof/combos/both/one.pb.go @@ -4824,6 +4824,9 @@ func (m *Subby) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4839,6 +4842,9 @@ func (m *Subby) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOne } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOne + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5114,6 +5120,9 @@ func (m *AllTypesOneOf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5142,6 +5151,9 @@ func (m *AllTypesOneOf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5172,6 +5184,9 @@ func (m *AllTypesOneOf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5190,6 +5205,9 @@ func (m *AllTypesOneOf) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOne } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOne + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5298,6 +5316,9 @@ func (m *TwoOneofs) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5326,6 +5347,9 @@ func (m *TwoOneofs) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5356,6 +5380,9 @@ func (m *TwoOneofs) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5374,6 +5401,9 @@ func (m *TwoOneofs) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOne } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOne + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5440,6 +5470,9 @@ func (m *CustomOneof) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5468,6 +5501,9 @@ func (m *CustomOneof) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5527,6 +5563,9 @@ func (m *CustomOneof) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOne } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOne + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5594,10 +5633,13 @@ func skipOne(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthOne } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthOne + } return iNdEx, nil case 3: for { @@ -5626,6 +5668,9 @@ func skipOne(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthOne + } } return iNdEx, nil case 4: diff --git a/test/oneof/combos/unmarshaler/one.pb.go b/test/oneof/combos/unmarshaler/one.pb.go index 2a5922bb21..0b52eb3691 100644 --- a/test/oneof/combos/unmarshaler/one.pb.go +++ b/test/oneof/combos/unmarshaler/one.pb.go @@ -4418,6 +4418,9 @@ func (m *Subby) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4433,6 +4436,9 @@ func (m *Subby) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOne } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOne + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -4708,6 +4714,9 @@ func (m *AllTypesOneOf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4736,6 +4745,9 @@ func (m *AllTypesOneOf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4766,6 +4778,9 @@ func (m *AllTypesOneOf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4784,6 +4799,9 @@ func (m *AllTypesOneOf) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOne } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOne + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -4892,6 +4910,9 @@ func (m *TwoOneofs) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4920,6 +4941,9 @@ func (m *TwoOneofs) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4950,6 +4974,9 @@ func (m *TwoOneofs) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4968,6 +4995,9 @@ func (m *TwoOneofs) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOne } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOne + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5034,6 +5064,9 @@ func (m *CustomOneof) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5062,6 +5095,9 @@ func (m *CustomOneof) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5121,6 +5157,9 @@ func (m *CustomOneof) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOne } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOne + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5188,10 +5227,13 @@ func skipOne(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthOne } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthOne + } return iNdEx, nil case 3: for { @@ -5220,6 +5262,9 @@ func skipOne(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthOne + } } return iNdEx, nil case 4: diff --git a/test/oneof3/combos/both/one.pb.go b/test/oneof3/combos/both/one.pb.go index bb78c3d29e..e79baa08b3 100644 --- a/test/oneof3/combos/both/one.pb.go +++ b/test/oneof3/combos/both/one.pb.go @@ -2941,6 +2941,9 @@ func (m *Subby) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2955,6 +2958,9 @@ func (m *Subby) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOne } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOne + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3230,6 +3236,9 @@ func (m *SampleOneOf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3258,6 +3267,9 @@ func (m *SampleOneOf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3288,6 +3300,9 @@ func (m *SampleOneOf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3306,6 +3321,9 @@ func (m *SampleOneOf) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOne } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOne + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3373,10 +3391,13 @@ func skipOne(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthOne } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthOne + } return iNdEx, nil case 3: for { @@ -3405,6 +3426,9 @@ func skipOne(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthOne + } } return iNdEx, nil case 4: diff --git a/test/oneof3/combos/unmarshaler/one.pb.go b/test/oneof3/combos/unmarshaler/one.pb.go index fc2c9cc9b3..322483365c 100644 --- a/test/oneof3/combos/unmarshaler/one.pb.go +++ b/test/oneof3/combos/unmarshaler/one.pb.go @@ -2722,6 +2722,9 @@ func (m *Subby) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2736,6 +2739,9 @@ func (m *Subby) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOne } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOne + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3011,6 +3017,9 @@ func (m *SampleOneOf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3039,6 +3048,9 @@ func (m *SampleOneOf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3069,6 +3081,9 @@ func (m *SampleOneOf) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOne } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOne + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3087,6 +3102,9 @@ func (m *SampleOneOf) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOne } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOne + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3154,10 +3172,13 @@ func skipOne(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthOne } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthOne + } return iNdEx, nil case 3: for { @@ -3186,6 +3207,9 @@ func skipOne(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthOne + } } return iNdEx, nil case 4: diff --git a/test/packed/packed.pb.go b/test/packed/packed.pb.go index c95493fe2d..7eaa5a5775 100644 --- a/test/packed/packed.pb.go +++ b/test/packed/packed.pb.go @@ -1220,6 +1220,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1271,6 +1274,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1330,6 +1336,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1403,6 +1412,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1476,6 +1488,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1549,6 +1564,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1623,6 +1641,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1698,6 +1719,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1763,6 +1787,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1812,6 +1839,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1861,6 +1891,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1910,6 +1943,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1968,6 +2004,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2006,6 +2045,9 @@ func (m *NinRepNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthPacked } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPacked + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2078,6 +2120,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2129,6 +2174,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2188,6 +2236,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2261,6 +2312,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2334,6 +2388,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2407,6 +2464,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2481,6 +2541,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2556,6 +2619,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2621,6 +2687,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2670,6 +2739,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2719,6 +2791,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2768,6 +2843,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2826,6 +2904,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2864,6 +2945,9 @@ func (m *NinRepPackedNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthPacked } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPacked + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2936,6 +3020,9 @@ func (m *NinRepNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2987,6 +3074,9 @@ func (m *NinRepNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3046,6 +3136,9 @@ func (m *NinRepNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3119,6 +3212,9 @@ func (m *NinRepNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3192,6 +3288,9 @@ func (m *NinRepNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3265,6 +3364,9 @@ func (m *NinRepNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3339,6 +3441,9 @@ func (m *NinRepNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3414,6 +3519,9 @@ func (m *NinRepNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3479,6 +3587,9 @@ func (m *NinRepNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3528,6 +3639,9 @@ func (m *NinRepNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3577,6 +3691,9 @@ func (m *NinRepNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3626,6 +3743,9 @@ func (m *NinRepNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3684,6 +3804,9 @@ func (m *NinRepNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3722,6 +3845,9 @@ func (m *NinRepNativeUnsafe) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthPacked } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPacked + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3794,6 +3920,9 @@ func (m *NinRepPackedNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3845,6 +3974,9 @@ func (m *NinRepPackedNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3904,6 +4036,9 @@ func (m *NinRepPackedNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3977,6 +4112,9 @@ func (m *NinRepPackedNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4050,6 +4188,9 @@ func (m *NinRepPackedNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4123,6 +4264,9 @@ func (m *NinRepPackedNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4197,6 +4341,9 @@ func (m *NinRepPackedNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4272,6 +4419,9 @@ func (m *NinRepPackedNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4337,6 +4487,9 @@ func (m *NinRepPackedNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4386,6 +4539,9 @@ func (m *NinRepPackedNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4435,6 +4591,9 @@ func (m *NinRepPackedNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4484,6 +4643,9 @@ func (m *NinRepPackedNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4542,6 +4704,9 @@ func (m *NinRepPackedNativeUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPacked } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPacked + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4580,6 +4745,9 @@ func (m *NinRepPackedNativeUnsafe) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthPacked } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPacked + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -4647,10 +4815,13 @@ func skipPacked(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthPacked } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthPacked + } return iNdEx, nil case 3: for { @@ -4679,6 +4850,9 @@ func skipPacked(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthPacked + } } return iNdEx, nil case 4: diff --git a/test/protosize/protosize.pb.go b/test/protosize/protosize.pb.go index e04a17f73b..22501ea572 100644 --- a/test/protosize/protosize.pb.go +++ b/test/protosize/protosize.pb.go @@ -486,6 +486,9 @@ func (m *SizeMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthProtosize } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtosize + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -501,6 +504,9 @@ func (m *SizeMessage) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthProtosize } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtosize + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -568,10 +574,13 @@ func skipProtosize(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthProtosize } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthProtosize + } return iNdEx, nil case 3: for { @@ -600,6 +609,9 @@ func skipProtosize(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthProtosize + } } return iNdEx, nil case 4: diff --git a/test/required/requiredexample.pb.go b/test/required/requiredexample.pb.go index a38d3151a3..289cab7074 100644 --- a/test/required/requiredexample.pb.go +++ b/test/required/requiredexample.pb.go @@ -1232,6 +1232,9 @@ func (m *RequiredExample) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRequiredexample } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequiredexample + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1263,6 +1266,9 @@ func (m *RequiredExample) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRequiredexample } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequiredexample + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1293,6 +1299,9 @@ func (m *RequiredExample) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRequiredexample } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequiredexample + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1307,6 +1316,9 @@ func (m *RequiredExample) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthRequiredexample } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequiredexample + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1590,6 +1602,9 @@ func (m *NidOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRequiredexample } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequiredexample + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1619,6 +1634,9 @@ func (m *NidOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRequiredexample } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRequiredexample + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1637,6 +1655,9 @@ func (m *NidOptNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthRequiredexample } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequiredexample + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1974,6 +1995,9 @@ func (m *NinOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRequiredexample } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequiredexample + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2004,6 +2028,9 @@ func (m *NinOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRequiredexample } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRequiredexample + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2022,6 +2049,9 @@ func (m *NinOptNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthRequiredexample } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequiredexample + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2132,6 +2162,9 @@ func (m *NestedNinOptNative) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRequiredexample } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequiredexample + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2149,6 +2182,9 @@ func (m *NestedNinOptNative) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthRequiredexample } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequiredexample + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2216,10 +2252,13 @@ func skipRequiredexample(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthRequiredexample } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthRequiredexample + } return iNdEx, nil case 3: for { @@ -2248,6 +2287,9 @@ func skipRequiredexample(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthRequiredexample + } } return iNdEx, nil case 4: diff --git a/test/sizeunderscore/sizeunderscore.pb.go b/test/sizeunderscore/sizeunderscore.pb.go index 4e52687618..12173e8e3c 100644 --- a/test/sizeunderscore/sizeunderscore.pb.go +++ b/test/sizeunderscore/sizeunderscore.pb.go @@ -433,6 +433,9 @@ func (m *SizeMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSizeunderscore } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSizeunderscore + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -448,6 +451,9 @@ func (m *SizeMessage) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthSizeunderscore } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSizeunderscore + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -515,10 +521,13 @@ func skipSizeunderscore(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthSizeunderscore } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthSizeunderscore + } return iNdEx, nil case 3: for { @@ -547,6 +556,9 @@ func skipSizeunderscore(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthSizeunderscore + } } return iNdEx, nil case 4: diff --git a/test/theproto3/combos/both/theproto3.pb.go b/test/theproto3/combos/both/theproto3.pb.go index 9d90395a29..74c07f51dd 100644 --- a/test/theproto3/combos/both/theproto3.pb.go +++ b/test/theproto3/combos/both/theproto3.pb.go @@ -6613,6 +6613,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6679,6 +6682,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6725,12 +6731,15 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int - for _, integer := range dAtA { + for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } @@ -6783,6 +6792,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6866,6 +6878,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6927,7 +6942,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTheproto3 } if postmsgIndex > l { @@ -6978,6 +6993,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7011,6 +7029,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7072,7 +7093,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTheproto3 } if postmsgIndex > l { @@ -7109,6 +7130,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7175,6 +7199,9 @@ func (m *Nested) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7189,6 +7216,9 @@ func (m *Nested) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7254,6 +7284,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7301,6 +7334,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -7354,6 +7390,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7401,6 +7440,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -7454,6 +7496,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7550,6 +7595,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7646,6 +7694,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7742,6 +7793,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7838,6 +7892,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7940,6 +7997,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8042,6 +8102,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8120,6 +8183,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8198,6 +8264,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8276,6 +8345,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8354,6 +8426,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8454,6 +8529,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8501,6 +8579,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -8527,6 +8608,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -8572,6 +8656,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8619,6 +8706,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -8645,6 +8735,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -8691,6 +8784,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8738,6 +8834,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -8798,6 +8897,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8845,6 +8947,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -8870,7 +8975,7 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTheproto3 } if postmsgIndex > l { @@ -8907,6 +9012,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8972,6 +9080,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9019,6 +9130,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -9072,6 +9186,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9119,6 +9236,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -9172,6 +9292,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9268,6 +9391,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9364,6 +9490,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9460,6 +9589,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9556,6 +9688,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9658,6 +9793,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9760,6 +9898,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9838,6 +9979,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9916,6 +10060,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9994,6 +10141,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10072,6 +10222,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10172,6 +10325,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10219,6 +10375,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -10245,6 +10404,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -10290,6 +10452,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10337,6 +10502,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -10363,6 +10531,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -10409,6 +10580,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10456,6 +10630,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -10516,6 +10693,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10563,6 +10743,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -10588,7 +10771,7 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTheproto3 } if postmsgIndex > l { @@ -10625,6 +10808,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -10690,6 +10876,9 @@ func (m *MessageWithMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10752,6 +10941,9 @@ func (m *MessageWithMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -10797,6 +10989,9 @@ func (m *MessageWithMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10861,7 +11056,7 @@ func (m *MessageWithMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTheproto3 } if postmsgIndex > l { @@ -10912,6 +11107,9 @@ func (m *MessageWithMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10976,6 +11174,9 @@ func (m *MessageWithMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -11008,6 +11209,9 @@ func (m *MessageWithMap) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11070,6 +11274,9 @@ func (m *FloatingPoint) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11135,6 +11342,9 @@ func (m *Uint128Pair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11165,6 +11375,9 @@ func (m *Uint128Pair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11183,6 +11396,9 @@ func (m *Uint128Pair) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11234,6 +11450,9 @@ func (m *ContainsNestedMap) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11299,6 +11518,9 @@ func (m *ContainsNestedMap_NestedMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11346,6 +11568,9 @@ func (m *ContainsNestedMap_NestedMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -11385,6 +11610,9 @@ func (m *ContainsNestedMap_NestedMap) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11465,12 +11693,15 @@ func (m *NotPacked) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int - for _, integer := range dAtA { + for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } @@ -11509,6 +11740,9 @@ func (m *NotPacked) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11576,10 +11810,13 @@ func skipTheproto3(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTheproto3 } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthTheproto3 + } return iNdEx, nil case 3: for { @@ -11608,6 +11845,9 @@ func skipTheproto3(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthTheproto3 + } } return iNdEx, nil case 4: diff --git a/test/theproto3/combos/unmarshaler/theproto3.pb.go b/test/theproto3/combos/unmarshaler/theproto3.pb.go index fae08f44a9..7b4f5dede6 100644 --- a/test/theproto3/combos/unmarshaler/theproto3.pb.go +++ b/test/theproto3/combos/unmarshaler/theproto3.pb.go @@ -5356,6 +5356,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5422,6 +5425,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5518,12 +5524,15 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int - for _, integer := range dAtA { + for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } @@ -5576,6 +5585,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5609,6 +5621,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5670,7 +5685,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTheproto3 } if postmsgIndex > l { @@ -5721,6 +5736,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5754,6 +5772,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5815,7 +5836,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTheproto3 } if postmsgIndex > l { @@ -5852,6 +5873,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5918,6 +5942,9 @@ func (m *Nested) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5932,6 +5959,9 @@ func (m *Nested) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5997,6 +6027,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6044,6 +6077,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -6097,6 +6133,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6144,6 +6183,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -6197,6 +6239,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6293,6 +6338,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6389,6 +6437,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6485,6 +6536,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6581,6 +6635,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6683,6 +6740,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6785,6 +6845,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6863,6 +6926,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6941,6 +7007,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7019,6 +7088,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7097,6 +7169,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7197,6 +7272,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7244,6 +7322,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -7270,6 +7351,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -7315,6 +7399,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7362,6 +7449,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -7388,6 +7478,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -7434,6 +7527,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7481,6 +7577,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -7541,6 +7640,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7588,6 +7690,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -7613,7 +7718,7 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTheproto3 } if postmsgIndex > l { @@ -7650,6 +7755,9 @@ func (m *AllMaps) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7715,6 +7823,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7762,6 +7873,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -7815,6 +7929,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7862,6 +7979,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -7915,6 +8035,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8011,6 +8134,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8107,6 +8233,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8203,6 +8332,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8299,6 +8431,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8401,6 +8536,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8503,6 +8641,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8581,6 +8722,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8659,6 +8803,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8737,6 +8884,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8815,6 +8965,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8915,6 +9068,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8962,6 +9118,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -8988,6 +9147,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -9033,6 +9195,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9080,6 +9245,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -9106,6 +9274,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -9152,6 +9323,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9199,6 +9373,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -9259,6 +9436,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9306,6 +9486,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -9331,7 +9514,7 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTheproto3 } if postmsgIndex > l { @@ -9368,6 +9551,9 @@ func (m *AllMapsOrdered) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -9433,6 +9619,9 @@ func (m *MessageWithMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9495,6 +9684,9 @@ func (m *MessageWithMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -9540,6 +9732,9 @@ func (m *MessageWithMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9604,7 +9799,7 @@ func (m *MessageWithMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTheproto3 } if postmsgIndex > l { @@ -9655,6 +9850,9 @@ func (m *MessageWithMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9719,6 +9917,9 @@ func (m *MessageWithMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -9751,6 +9952,9 @@ func (m *MessageWithMap) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -9813,6 +10017,9 @@ func (m *FloatingPoint) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -9878,6 +10085,9 @@ func (m *Uint128Pair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9908,6 +10118,9 @@ func (m *Uint128Pair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9926,6 +10139,9 @@ func (m *Uint128Pair) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -9977,6 +10193,9 @@ func (m *ContainsNestedMap) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -10042,6 +10261,9 @@ func (m *ContainsNestedMap_NestedMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10089,6 +10311,9 @@ func (m *ContainsNestedMap_NestedMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTheproto3 + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -10128,6 +10353,9 @@ func (m *ContainsNestedMap_NestedMap) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -10208,12 +10436,15 @@ func (m *NotPacked) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTheproto3 } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTheproto3 + } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int - for _, integer := range dAtA { + for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } @@ -10252,6 +10483,9 @@ func (m *NotPacked) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTheproto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTheproto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -10319,10 +10553,13 @@ func skipTheproto3(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTheproto3 } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthTheproto3 + } return iNdEx, nil case 3: for { @@ -10351,6 +10588,9 @@ func skipTheproto3(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthTheproto3 + } } return iNdEx, nil case 4: diff --git a/test/thetest.pb.go b/test/thetest.pb.go index d6a54c99db..321ec558ac 100644 --- a/test/thetest.pb.go +++ b/test/thetest.pb.go @@ -6395,10 +6395,10 @@ func (this *MyExtendable) Compare(that interface{}) int { thismap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(this) thatmap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(that1) extkeys := make([]int32, 0, len(thismap)+len(thatmap)) - for k, _ := range thismap { + for k := range thismap { extkeys = append(extkeys, k) } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { extkeys = append(extkeys, k) } @@ -6477,10 +6477,10 @@ func (this *OtherExtenable) Compare(that interface{}) int { thismap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(this) thatmap := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(that1) extkeys := make([]int32, 0, len(thismap)+len(thatmap)) - for k, _ := range thismap { + for k := range thismap { extkeys = append(extkeys, k) } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { extkeys = append(extkeys, k) } @@ -13940,7 +13940,7 @@ func (this *MyExtendable) VerboseEqual(that interface{}) error { return fmt.Errorf("XXX_InternalExtensions[%v] Not In that", k) } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return fmt.Errorf("XXX_InternalExtensions[%v] Not In this", k) } @@ -13989,7 +13989,7 @@ func (this *MyExtendable) Equal(that interface{}) bool { return false } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return false } @@ -14056,7 +14056,7 @@ func (this *OtherExtenable) VerboseEqual(that interface{}) error { return fmt.Errorf("XXX_InternalExtensions[%v] Not In that", k) } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return fmt.Errorf("XXX_InternalExtensions[%v] Not In this", k) } @@ -14117,7 +14117,7 @@ func (this *OtherExtenable) Equal(that interface{}) bool { return false } } - for k, _ := range thatmap { + for k := range thatmap { if _, ok := thismap[k]; !ok { return false } diff --git a/test/typedecl/typedecl.pb.go b/test/typedecl/typedecl.pb.go index 9da13d1f52..765e4f7da7 100644 --- a/test/typedecl/typedecl.pb.go +++ b/test/typedecl/typedecl.pb.go @@ -683,6 +683,9 @@ func (m *Dropped) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypedecl } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypedecl + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -716,6 +719,9 @@ func (m *Dropped) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypedecl } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypedecl + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -804,6 +810,9 @@ func (m *DroppedWithoutGetters) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypedecl } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypedecl + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -869,6 +878,9 @@ func (m *Kept) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypedecl } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypedecl + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -902,6 +914,9 @@ func (m *Kept) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypedecl } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypedecl + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -968,10 +983,13 @@ func skipTypedecl(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTypedecl } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthTypedecl + } return iNdEx, nil case 3: for { @@ -1000,6 +1018,9 @@ func skipTypedecl(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthTypedecl + } } return iNdEx, nil case 4: diff --git a/test/typedecl_all/typedeclall.pb.go b/test/typedecl_all/typedeclall.pb.go index 7f7296684a..46deb82edf 100644 --- a/test/typedecl_all/typedeclall.pb.go +++ b/test/typedecl_all/typedeclall.pb.go @@ -683,6 +683,9 @@ func (m *Dropped) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypedeclall } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypedeclall + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -716,6 +719,9 @@ func (m *Dropped) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypedeclall } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypedeclall + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -804,6 +810,9 @@ func (m *DroppedWithoutGetters) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypedeclall } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypedeclall + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -869,6 +878,9 @@ func (m *Kept) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypedeclall } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypedeclall + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -902,6 +914,9 @@ func (m *Kept) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypedeclall } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypedeclall + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -968,10 +983,13 @@ func skipTypedeclall(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTypedeclall } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthTypedeclall + } return iNdEx, nil case 3: for { @@ -1000,6 +1018,9 @@ func skipTypedeclall(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthTypedeclall + } } return iNdEx, nil case 4: diff --git a/test/types/combos/both/types.pb.go b/test/types/combos/both/types.pb.go index 7dac6c10f3..a15a04f600 100644 --- a/test/types/combos/both/types.pb.go +++ b/test/types/combos/both/types.pb.go @@ -12109,6 +12109,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12142,6 +12145,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12175,6 +12181,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12208,6 +12217,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12241,6 +12253,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12274,6 +12289,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12307,6 +12325,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12340,6 +12361,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12373,6 +12397,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12406,6 +12433,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12439,6 +12469,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12458,6 +12491,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -12523,6 +12559,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12556,6 +12595,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12589,6 +12631,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12622,6 +12667,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12655,6 +12703,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12688,6 +12739,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12721,6 +12775,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12754,6 +12811,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12787,6 +12847,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12820,6 +12883,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12853,6 +12919,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12886,6 +12955,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12916,6 +12988,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12946,6 +13021,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12976,6 +13054,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13006,6 +13087,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13036,6 +13120,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13066,6 +13153,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13096,6 +13186,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13126,6 +13219,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13156,6 +13252,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13186,6 +13285,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13202,6 +13304,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -13267,6 +13372,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13300,6 +13408,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13333,6 +13444,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13366,6 +13480,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13399,6 +13516,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13432,6 +13552,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13465,6 +13588,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13498,6 +13624,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13531,6 +13660,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13564,6 +13696,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13597,6 +13732,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13630,6 +13768,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13660,6 +13801,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13690,6 +13834,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13720,6 +13867,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13750,6 +13900,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13780,6 +13933,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13810,6 +13966,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13840,6 +13999,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13870,6 +14032,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13900,6 +14065,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13930,6 +14098,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13946,6 +14117,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -14011,6 +14185,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14042,6 +14219,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14073,6 +14253,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14104,6 +14287,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14135,6 +14321,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14166,6 +14355,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14197,6 +14389,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14228,6 +14423,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14259,6 +14457,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14290,6 +14491,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14321,6 +14525,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14352,6 +14559,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14383,6 +14593,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14414,6 +14627,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14445,6 +14661,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14476,6 +14695,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14507,6 +14729,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14538,6 +14763,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14569,6 +14797,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14600,6 +14831,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14631,6 +14865,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14662,6 +14899,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14679,6 +14919,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -14744,6 +14987,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14775,6 +15021,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14806,6 +15055,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14837,6 +15089,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14868,6 +15123,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14899,6 +15157,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14930,6 +15191,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14961,6 +15225,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14992,6 +15259,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15023,6 +15293,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15054,6 +15327,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15085,6 +15361,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15116,6 +15395,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15147,6 +15429,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15178,6 +15463,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15209,6 +15497,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15240,6 +15531,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15271,6 +15565,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15302,6 +15599,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15333,6 +15633,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15364,6 +15667,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15395,6 +15701,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15412,6 +15721,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -15477,6 +15789,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15538,7 +15853,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -15589,6 +15904,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15650,7 +15968,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -15701,6 +16019,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15762,7 +16083,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -15813,6 +16134,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15874,7 +16198,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -15925,6 +16249,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15986,7 +16313,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16037,6 +16364,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16098,7 +16428,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16149,6 +16479,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16210,7 +16543,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16261,6 +16594,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16322,7 +16658,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16373,6 +16709,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16434,7 +16773,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16485,6 +16824,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16546,7 +16888,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16597,6 +16939,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16658,7 +17003,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16709,6 +17054,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16770,7 +17118,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16821,6 +17169,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16882,7 +17233,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16933,6 +17284,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16994,7 +17348,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17045,6 +17399,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17106,7 +17463,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17157,6 +17514,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17218,7 +17578,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17269,6 +17629,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17330,7 +17693,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17381,6 +17744,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17442,7 +17808,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17493,6 +17859,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17554,7 +17923,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17605,6 +17974,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17666,7 +18038,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17717,6 +18089,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17778,7 +18153,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17829,6 +18204,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17890,7 +18268,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17927,6 +18305,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -17992,6 +18373,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18053,7 +18437,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -18103,6 +18487,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18164,7 +18551,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -18214,6 +18601,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18275,7 +18665,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -18325,6 +18715,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18386,7 +18779,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -18436,6 +18829,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18497,7 +18893,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -18547,6 +18943,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18608,7 +19007,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -18658,6 +19057,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18719,7 +19121,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -18769,6 +19171,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18830,7 +19235,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -18880,6 +19285,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18941,7 +19349,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -18991,6 +19399,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19052,7 +19463,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -19102,6 +19513,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19163,7 +19577,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -19213,6 +19627,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19274,7 +19691,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -19324,6 +19741,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19385,7 +19805,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -19435,6 +19855,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19496,7 +19919,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -19546,6 +19969,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19607,7 +20033,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -19657,6 +20083,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19718,7 +20147,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -19768,6 +20197,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19829,7 +20261,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -19879,6 +20311,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19940,7 +20375,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -19990,6 +20425,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20051,7 +20489,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -20101,6 +20539,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20162,7 +20603,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -20212,6 +20653,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20273,7 +20717,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -20323,6 +20767,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20384,7 +20831,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -20420,6 +20867,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -20485,6 +20935,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20517,6 +20970,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20549,6 +21005,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20581,6 +21040,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20613,6 +21075,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20645,6 +21110,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20677,6 +21145,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20709,6 +21180,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20741,6 +21215,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20773,6 +21250,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20805,6 +21285,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20823,6 +21306,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -20888,6 +21374,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20920,6 +21409,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20952,6 +21444,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20984,6 +21479,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21016,6 +21514,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21048,6 +21549,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21080,6 +21584,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21112,6 +21619,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21144,6 +21654,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21176,6 +21689,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21208,6 +21724,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21226,6 +21745,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -21293,10 +21815,13 @@ func skipTypes(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTypes } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthTypes + } return iNdEx, nil case 3: for { @@ -21325,6 +21850,9 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthTypes + } } return iNdEx, nil case 4: diff --git a/test/types/combos/unmarshaler/types.pb.go b/test/types/combos/unmarshaler/types.pb.go index 38cdf43619..27b499254c 100644 --- a/test/types/combos/unmarshaler/types.pb.go +++ b/test/types/combos/unmarshaler/types.pb.go @@ -9244,6 +9244,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9277,6 +9280,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9310,6 +9316,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9343,6 +9352,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9376,6 +9388,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9409,6 +9424,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9442,6 +9460,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9475,6 +9496,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9508,6 +9532,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9541,6 +9568,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9574,6 +9604,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9593,6 +9626,9 @@ func (m *KnownTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -9658,6 +9694,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9691,6 +9730,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9724,6 +9766,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9757,6 +9802,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9790,6 +9838,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9823,6 +9874,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9856,6 +9910,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9889,6 +9946,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9922,6 +9982,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9955,6 +10018,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9988,6 +10054,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10021,6 +10090,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10051,6 +10123,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10081,6 +10156,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10111,6 +10189,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10141,6 +10222,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10171,6 +10255,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10201,6 +10288,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10231,6 +10321,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10261,6 +10354,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10291,6 +10387,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10321,6 +10420,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10337,6 +10439,9 @@ func (m *ProtoTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -10402,6 +10507,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10435,6 +10543,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10468,6 +10579,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10501,6 +10615,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10534,6 +10651,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10567,6 +10687,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10600,6 +10723,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10633,6 +10759,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10666,6 +10795,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10699,6 +10831,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10732,6 +10867,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10765,6 +10903,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10795,6 +10936,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10825,6 +10969,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10855,6 +11002,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10885,6 +11035,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10915,6 +11068,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10945,6 +11101,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10975,6 +11134,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11005,6 +11167,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11035,6 +11200,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11065,6 +11233,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11081,6 +11252,9 @@ func (m *StdTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11146,6 +11320,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11177,6 +11354,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11208,6 +11388,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11239,6 +11422,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11270,6 +11456,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11301,6 +11490,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11332,6 +11524,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11363,6 +11558,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11394,6 +11592,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11425,6 +11626,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11456,6 +11660,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11487,6 +11694,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11518,6 +11728,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11549,6 +11762,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11580,6 +11796,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11611,6 +11830,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11642,6 +11864,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11673,6 +11898,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11704,6 +11932,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11735,6 +11966,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11766,6 +12000,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11797,6 +12034,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11814,6 +12054,9 @@ func (m *RepProtoTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11879,6 +12122,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11910,6 +12156,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11941,6 +12190,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11972,6 +12224,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12003,6 +12258,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12034,6 +12292,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12065,6 +12326,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12096,6 +12360,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12127,6 +12394,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12158,6 +12428,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12189,6 +12462,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12220,6 +12496,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12251,6 +12530,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12282,6 +12564,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12313,6 +12598,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12344,6 +12632,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12375,6 +12666,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12406,6 +12700,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12437,6 +12734,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12468,6 +12768,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12499,6 +12802,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12530,6 +12836,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12547,6 +12856,9 @@ func (m *RepStdTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -12612,6 +12924,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12673,7 +12988,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -12724,6 +13039,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12785,7 +13103,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -12836,6 +13154,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12897,7 +13218,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -12948,6 +13269,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13009,7 +13333,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -13060,6 +13384,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13121,7 +13448,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -13172,6 +13499,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13233,7 +13563,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -13284,6 +13614,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13345,7 +13678,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -13396,6 +13729,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13457,7 +13793,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -13508,6 +13844,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13569,7 +13908,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -13620,6 +13959,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13681,7 +14023,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -13732,6 +14074,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13793,7 +14138,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -13844,6 +14189,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13905,7 +14253,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -13956,6 +14304,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14017,7 +14368,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -14068,6 +14419,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14129,7 +14483,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -14180,6 +14534,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14241,7 +14598,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -14292,6 +14649,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14353,7 +14713,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -14404,6 +14764,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14465,7 +14828,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -14516,6 +14879,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14577,7 +14943,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -14628,6 +14994,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14689,7 +15058,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -14740,6 +15109,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14801,7 +15173,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -14852,6 +15224,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14913,7 +15288,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -14964,6 +15339,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15025,7 +15403,7 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -15062,6 +15440,9 @@ func (m *MapProtoTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -15127,6 +15508,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15188,7 +15572,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -15238,6 +15622,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15299,7 +15686,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -15349,6 +15736,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15410,7 +15800,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -15460,6 +15850,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15521,7 +15914,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -15571,6 +15964,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15632,7 +16028,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -15682,6 +16078,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15743,7 +16142,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -15793,6 +16192,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15854,7 +16256,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -15904,6 +16306,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15965,7 +16370,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16015,6 +16420,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16076,7 +16484,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16126,6 +16534,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16187,7 +16598,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16237,6 +16648,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16298,7 +16712,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16348,6 +16762,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16409,7 +16826,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16459,6 +16876,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16520,7 +16940,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16570,6 +16990,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16631,7 +17054,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16681,6 +17104,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16742,7 +17168,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16792,6 +17218,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16853,7 +17282,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -16903,6 +17332,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16964,7 +17396,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17014,6 +17446,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17075,7 +17510,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17125,6 +17560,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17186,7 +17624,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17236,6 +17674,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17297,7 +17738,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17347,6 +17788,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17408,7 +17852,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17458,6 +17902,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17519,7 +17966,7 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthTypes } if postmsgIndex > l { @@ -17555,6 +18002,9 @@ func (m *MapStdTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -17620,6 +18070,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17652,6 +18105,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17684,6 +18140,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17716,6 +18175,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17748,6 +18210,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17780,6 +18245,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17812,6 +18280,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17844,6 +18315,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17876,6 +18350,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17908,6 +18385,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17940,6 +18420,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17958,6 +18441,9 @@ func (m *OneofProtoTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -18023,6 +18509,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18055,6 +18544,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18087,6 +18579,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18119,6 +18614,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18151,6 +18649,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18183,6 +18684,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18215,6 +18719,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18247,6 +18754,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18279,6 +18789,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18311,6 +18824,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18343,6 +18859,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18361,6 +18880,9 @@ func (m *OneofStdTypes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -18428,10 +18950,13 @@ func skipTypes(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTypes } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthTypes + } return iNdEx, nil case 3: for { @@ -18460,6 +18985,9 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthTypes + } } return iNdEx, nil case 4: diff --git a/test/unmarshalmerge/unmarshalmerge.pb.go b/test/unmarshalmerge/unmarshalmerge.pb.go index 7e9af7f58a..ee1bdc7220 100644 --- a/test/unmarshalmerge/unmarshalmerge.pb.go +++ b/test/unmarshalmerge/unmarshalmerge.pb.go @@ -1015,6 +1015,9 @@ func (m *Big) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnmarshalmerge } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUnmarshalmerge + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1054,6 +1057,9 @@ func (m *Big) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnmarshalmerge } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnmarshalmerge + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1119,6 +1125,9 @@ func (m *BigUnsafe) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnmarshalmerge } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUnmarshalmerge + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1158,6 +1167,9 @@ func (m *BigUnsafe) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnmarshalmerge } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnmarshalmerge + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1229,6 +1241,9 @@ func (m *Sub) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnmarshalmerge } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnmarshalmerge + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1463,6 +1478,9 @@ func (m *IntMerge) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnmarshalmerge } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnmarshalmerge + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1542,10 +1560,13 @@ func skipUnmarshalmerge(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthUnmarshalmerge } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthUnmarshalmerge + } return iNdEx, nil case 3: for { @@ -1574,6 +1595,9 @@ func skipUnmarshalmerge(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthUnmarshalmerge + } } return iNdEx, nil case 4: diff --git a/test/unrecognized/unrecognized.pb.go b/test/unrecognized/unrecognized.pb.go index fde3845ae8..b2f3f6998f 100644 --- a/test/unrecognized/unrecognized.pb.go +++ b/test/unrecognized/unrecognized.pb.go @@ -3161,6 +3161,9 @@ func (m *A) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3198,6 +3201,9 @@ func (m *A) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnrecognized } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnrecognized + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3262,6 +3268,9 @@ func (m *B) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3295,6 +3304,9 @@ func (m *B) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3328,6 +3340,9 @@ func (m *B) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3347,6 +3362,9 @@ func (m *B) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnrecognized } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnrecognized + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3418,6 +3436,9 @@ func (m *D) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnrecognized } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnrecognized + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3496,6 +3517,9 @@ func (m *C) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3537,6 +3561,9 @@ func (m *C) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3593,6 +3620,9 @@ func (m *C) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3623,6 +3653,9 @@ func (m *C) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnrecognized } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnrecognized + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3695,6 +3728,9 @@ func (m *U) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3745,6 +3781,9 @@ func (m *U) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnrecognized } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnrecognized + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3809,6 +3848,9 @@ func (m *OldA) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3846,6 +3888,9 @@ func (m *OldA) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnrecognized } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnrecognized + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3910,6 +3955,9 @@ func (m *OldB) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3943,6 +3991,9 @@ func (m *OldB) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3962,6 +4013,9 @@ func (m *OldB) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnrecognized } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnrecognized + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -4060,6 +4114,9 @@ func (m *OldC) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4116,6 +4173,9 @@ func (m *OldC) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4146,6 +4206,9 @@ func (m *OldC) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnrecognized } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnrecognized + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -4212,6 +4275,9 @@ func (m *OldU) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4248,6 +4314,9 @@ func (m *OldU) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognized } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthUnrecognized + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4278,6 +4347,9 @@ func (m *OldU) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnrecognized } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnrecognized + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -4345,10 +4417,13 @@ func skipUnrecognized(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthUnrecognized } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthUnrecognized + } return iNdEx, nil case 3: for { @@ -4377,6 +4452,9 @@ func skipUnrecognized(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthUnrecognized + } } return iNdEx, nil case 4: diff --git a/test/unrecognizedgroup/unrecognizedgroup.pb.go b/test/unrecognizedgroup/unrecognizedgroup.pb.go index 9b347ddfd3..f741d1a41b 100644 --- a/test/unrecognizedgroup/unrecognizedgroup.pb.go +++ b/test/unrecognizedgroup/unrecognizedgroup.pb.go @@ -1575,6 +1575,9 @@ func (m *NewNoGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognizedgroup } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthUnrecognizedgroup + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1619,6 +1622,9 @@ func (m *NewNoGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthUnrecognizedgroup } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUnrecognizedgroup + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1638,6 +1644,9 @@ func (m *NewNoGroup) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnrecognizedgroup } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnrecognizedgroup + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1709,6 +1718,9 @@ func (m *A) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthUnrecognizedgroup } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthUnrecognizedgroup + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1776,10 +1788,13 @@ func skipUnrecognizedgroup(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthUnrecognizedgroup } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthUnrecognizedgroup + } return iNdEx, nil case 3: for { @@ -1808,6 +1823,9 @@ func skipUnrecognizedgroup(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthUnrecognizedgroup + } } return iNdEx, nil case 4: diff --git a/types/any.pb.go b/types/any.pb.go index ef5484f008..664d7f45e7 100644 --- a/types/any.pb.go +++ b/types/any.pb.go @@ -540,6 +540,9 @@ func (m *Any) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAny } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAny + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -568,6 +571,9 @@ func (m *Any) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAny } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAny + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -585,6 +591,9 @@ func (m *Any) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAny } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAny + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -652,10 +661,13 @@ func skipAny(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthAny } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthAny + } return iNdEx, nil case 3: for { @@ -684,6 +696,9 @@ func skipAny(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthAny + } } return iNdEx, nil case 4: diff --git a/types/api.pb.go b/types/api.pb.go index ced668ac8a..57759d1524 100644 --- a/types/api.pb.go +++ b/types/api.pb.go @@ -1423,6 +1423,9 @@ func (m *Api) Unmarshal(dAtA []byte) error { return ErrInvalidLengthApi } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApi + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1451,6 +1454,9 @@ func (m *Api) Unmarshal(dAtA []byte) error { return ErrInvalidLengthApi } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApi + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1482,6 +1488,9 @@ func (m *Api) Unmarshal(dAtA []byte) error { return ErrInvalidLengthApi } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApi + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1514,6 +1523,9 @@ func (m *Api) Unmarshal(dAtA []byte) error { return ErrInvalidLengthApi } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApi + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1542,6 +1554,9 @@ func (m *Api) Unmarshal(dAtA []byte) error { return ErrInvalidLengthApi } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApi + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1575,6 +1590,9 @@ func (m *Api) Unmarshal(dAtA []byte) error { return ErrInvalidLengthApi } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApi + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1611,6 +1629,9 @@ func (m *Api) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthApi } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthApi + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1677,6 +1698,9 @@ func (m *Method) Unmarshal(dAtA []byte) error { return ErrInvalidLengthApi } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApi + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1706,6 +1730,9 @@ func (m *Method) Unmarshal(dAtA []byte) error { return ErrInvalidLengthApi } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApi + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1755,6 +1782,9 @@ func (m *Method) Unmarshal(dAtA []byte) error { return ErrInvalidLengthApi } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApi + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1803,6 +1833,9 @@ func (m *Method) Unmarshal(dAtA []byte) error { return ErrInvalidLengthApi } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApi + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1839,6 +1872,9 @@ func (m *Method) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthApi } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthApi + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1905,6 +1941,9 @@ func (m *Mixin) Unmarshal(dAtA []byte) error { return ErrInvalidLengthApi } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApi + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1934,6 +1973,9 @@ func (m *Mixin) Unmarshal(dAtA []byte) error { return ErrInvalidLengthApi } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApi + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1948,6 +1990,9 @@ func (m *Mixin) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthApi } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthApi + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2015,10 +2060,13 @@ func skipApi(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthApi } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthApi + } return iNdEx, nil case 3: for { @@ -2047,6 +2095,9 @@ func skipApi(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthApi + } } return iNdEx, nil case 4: diff --git a/types/duration.pb.go b/types/duration.pb.go index 8919fbd75f..69256cf753 100644 --- a/types/duration.pb.go +++ b/types/duration.pb.go @@ -416,6 +416,9 @@ func (m *Duration) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDuration } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDuration + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -483,10 +486,13 @@ func skipDuration(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthDuration } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthDuration + } return iNdEx, nil case 3: for { @@ -515,6 +521,9 @@ func skipDuration(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthDuration + } } return iNdEx, nil case 4: diff --git a/types/empty.pb.go b/types/empty.pb.go index 918e3c996f..ed371ff4bf 100644 --- a/types/empty.pb.go +++ b/types/empty.pb.go @@ -361,6 +361,9 @@ func (m *Empty) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthEmpty } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEmpty + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -428,10 +431,13 @@ func skipEmpty(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthEmpty } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthEmpty + } return iNdEx, nil case 3: for { @@ -460,6 +466,9 @@ func skipEmpty(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthEmpty + } } return iNdEx, nil case 4: diff --git a/types/field_mask.pb.go b/types/field_mask.pb.go index 4bb69d6526..9acc48a8a0 100644 --- a/types/field_mask.pb.go +++ b/types/field_mask.pb.go @@ -626,6 +626,9 @@ func (m *FieldMask) Unmarshal(dAtA []byte) error { return ErrInvalidLengthFieldMask } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFieldMask + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -640,6 +643,9 @@ func (m *FieldMask) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthFieldMask } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFieldMask + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -707,10 +713,13 @@ func skipFieldMask(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthFieldMask } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthFieldMask + } return iNdEx, nil case 3: for { @@ -739,6 +748,9 @@ func skipFieldMask(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthFieldMask + } } return iNdEx, nil case 4: diff --git a/types/source_context.pb.go b/types/source_context.pb.go index 775d28af21..83f5dac52a 100644 --- a/types/source_context.pb.go +++ b/types/source_context.pb.go @@ -405,6 +405,9 @@ func (m *SourceContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSourceContext } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSourceContext + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -419,6 +422,9 @@ func (m *SourceContext) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthSourceContext } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSourceContext + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -486,10 +492,13 @@ func skipSourceContext(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthSourceContext } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthSourceContext + } return iNdEx, nil case 3: for { @@ -518,6 +527,9 @@ func skipSourceContext(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthSourceContext + } } return iNdEx, nil case 4: diff --git a/types/struct.pb.go b/types/struct.pb.go index 434c6e4ac4..b792e75f31 100644 --- a/types/struct.pb.go +++ b/types/struct.pb.go @@ -1478,6 +1478,9 @@ func (m *Struct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStruct } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStruct + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1525,6 +1528,9 @@ func (m *Struct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStruct } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthStruct + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -1550,7 +1556,7 @@ func (m *Struct) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStruct } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthStruct } if postmsgIndex > l { @@ -1587,6 +1593,9 @@ func (m *Struct) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStruct } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStruct + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1684,6 +1693,9 @@ func (m *Value) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStruct } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthStruct + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1733,6 +1745,9 @@ func (m *Value) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStruct } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStruct + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1765,6 +1780,9 @@ func (m *Value) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStruct } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStruct + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1783,6 +1801,9 @@ func (m *Value) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStruct } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStruct + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1848,6 +1869,9 @@ func (m *ListValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStruct } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStruct + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1865,6 +1889,9 @@ func (m *ListValue) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStruct } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStruct + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1932,10 +1959,13 @@ func skipStruct(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthStruct } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthStruct + } return iNdEx, nil case 3: for { @@ -1964,6 +1994,9 @@ func skipStruct(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthStruct + } } return iNdEx, nil case 4: diff --git a/types/timestamp.pb.go b/types/timestamp.pb.go index 325caa24c7..e9d2b44644 100644 --- a/types/timestamp.pb.go +++ b/types/timestamp.pb.go @@ -436,6 +436,9 @@ func (m *Timestamp) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTimestamp } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTimestamp + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -503,10 +506,13 @@ func skipTimestamp(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTimestamp } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthTimestamp + } return iNdEx, nil case 3: for { @@ -535,6 +541,9 @@ func skipTimestamp(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthTimestamp + } } return iNdEx, nil case 4: diff --git a/types/type.pb.go b/types/type.pb.go index 0a0ba5dc1a..be88b6b0d9 100644 --- a/types/type.pb.go +++ b/types/type.pb.go @@ -2238,6 +2238,9 @@ func (m *Type) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2266,6 +2269,9 @@ func (m *Type) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2298,6 +2304,9 @@ func (m *Type) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2326,6 +2335,9 @@ func (m *Type) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2357,6 +2369,9 @@ func (m *Type) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2395,6 +2410,9 @@ func (m *Type) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthType } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthType + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2518,6 +2536,9 @@ func (m *Field) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2547,6 +2568,9 @@ func (m *Field) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2614,6 +2638,9 @@ func (m *Field) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2646,6 +2673,9 @@ func (m *Field) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2675,6 +2705,9 @@ func (m *Field) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2689,6 +2722,9 @@ func (m *Field) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthType } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthType + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2755,6 +2791,9 @@ func (m *Enum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2783,6 +2822,9 @@ func (m *Enum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2814,6 +2856,9 @@ func (m *Enum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2845,6 +2890,9 @@ func (m *Enum) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2883,6 +2931,9 @@ func (m *Enum) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthType } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthType + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2949,6 +3000,9 @@ func (m *EnumValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2996,6 +3050,9 @@ func (m *EnumValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3013,6 +3070,9 @@ func (m *EnumValue) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthType } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthType + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3079,6 +3139,9 @@ func (m *Option) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3107,6 +3170,9 @@ func (m *Option) Unmarshal(dAtA []byte) error { return ErrInvalidLengthType } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthType + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3126,6 +3192,9 @@ func (m *Option) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthType } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthType + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3193,10 +3262,13 @@ func skipType(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthType } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthType + } return iNdEx, nil case 3: for { @@ -3225,6 +3297,9 @@ func skipType(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthType + } } return iNdEx, nil case 4: diff --git a/types/wrappers.pb.go b/types/wrappers.pb.go index 3d5de6f83c..5c5b509312 100644 --- a/types/wrappers.pb.go +++ b/types/wrappers.pb.go @@ -1971,6 +1971,9 @@ func (m *DoubleValue) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthWrappers } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthWrappers + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2033,6 +2036,9 @@ func (m *FloatValue) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthWrappers } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthWrappers + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2103,6 +2109,9 @@ func (m *Int64Value) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthWrappers } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthWrappers + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2173,6 +2182,9 @@ func (m *UInt64Value) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthWrappers } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthWrappers + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2243,6 +2255,9 @@ func (m *Int32Value) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthWrappers } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthWrappers + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2313,6 +2328,9 @@ func (m *UInt32Value) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthWrappers } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthWrappers + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2384,6 +2402,9 @@ func (m *BoolValue) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthWrappers } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthWrappers + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2450,6 +2471,9 @@ func (m *StringValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthWrappers } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthWrappers + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2464,6 +2488,9 @@ func (m *StringValue) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthWrappers } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthWrappers + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2529,6 +2556,9 @@ func (m *BytesValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthWrappers } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthWrappers + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2546,6 +2576,9 @@ func (m *BytesValue) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthWrappers } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthWrappers + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2613,10 +2646,13 @@ func skipWrappers(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthWrappers } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthWrappers + } return iNdEx, nil case 3: for { @@ -2645,6 +2681,9 @@ func skipWrappers(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthWrappers + } } return iNdEx, nil case 4: diff --git a/vanity/test/fast/gogovanity.pb.go b/vanity/test/fast/gogovanity.pb.go index 5799fc68ed..476ae4f8b9 100644 --- a/vanity/test/fast/gogovanity.pb.go +++ b/vanity/test/fast/gogovanity.pb.go @@ -241,6 +241,9 @@ func (m *B) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGogovanity } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGogovanity + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -296,6 +299,9 @@ func (m *B) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthGogovanity } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGogovanity + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -363,10 +369,13 @@ func skipGogovanity(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthGogovanity } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthGogovanity + } return iNdEx, nil case 3: for { @@ -395,6 +404,9 @@ func skipGogovanity(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthGogovanity + } } return iNdEx, nil case 4: diff --git a/vanity/test/fast/proto3.pb.go b/vanity/test/fast/proto3.pb.go index 91dce1ae23..29e1a0acc0 100644 --- a/vanity/test/fast/proto3.pb.go +++ b/vanity/test/fast/proto3.pb.go @@ -202,6 +202,9 @@ func (m *Aproto3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthProto3 } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -216,6 +219,9 @@ func (m *Aproto3) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthProto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -283,10 +289,13 @@ func skipProto3(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthProto3 } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthProto3 + } return iNdEx, nil case 3: for { @@ -315,6 +324,9 @@ func skipProto3(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthProto3 + } } return iNdEx, nil case 4: diff --git a/vanity/test/fast/vanity.pb.go b/vanity/test/fast/vanity.pb.go index 9166601717..447edab40d 100644 --- a/vanity/test/fast/vanity.pb.go +++ b/vanity/test/fast/vanity.pb.go @@ -223,6 +223,9 @@ func (m *A) Unmarshal(dAtA []byte) error { return ErrInvalidLengthVanity } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVanity + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -259,6 +262,9 @@ func (m *A) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthVanity } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVanity + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -329,10 +335,13 @@ func skipVanity(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthVanity } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthVanity + } return iNdEx, nil case 3: for { @@ -361,6 +370,9 @@ func skipVanity(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthVanity + } } return iNdEx, nil case 4: diff --git a/vanity/test/faster/gogovanity.pb.go b/vanity/test/faster/gogovanity.pb.go index ac1fbd9408..f62dda917e 100644 --- a/vanity/test/faster/gogovanity.pb.go +++ b/vanity/test/faster/gogovanity.pb.go @@ -229,6 +229,9 @@ func (m *B) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGogovanity } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGogovanity + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -283,6 +286,9 @@ func (m *B) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthGogovanity } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGogovanity + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -349,10 +355,13 @@ func skipGogovanity(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthGogovanity } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthGogovanity + } return iNdEx, nil case 3: for { @@ -381,6 +390,9 @@ func skipGogovanity(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthGogovanity + } } return iNdEx, nil case 4: diff --git a/vanity/test/faster/proto3.pb.go b/vanity/test/faster/proto3.pb.go index 994d1c779f..f63795d751 100644 --- a/vanity/test/faster/proto3.pb.go +++ b/vanity/test/faster/proto3.pb.go @@ -193,6 +193,9 @@ func (m *Aproto3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthProto3 } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -207,6 +210,9 @@ func (m *Aproto3) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthProto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -273,10 +279,13 @@ func skipProto3(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthProto3 } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthProto3 + } return iNdEx, nil case 3: for { @@ -305,6 +314,9 @@ func skipProto3(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthProto3 + } } return iNdEx, nil case 4: diff --git a/vanity/test/faster/vanity.pb.go b/vanity/test/faster/vanity.pb.go index 9ca5283485..fc059a2735 100644 --- a/vanity/test/faster/vanity.pb.go +++ b/vanity/test/faster/vanity.pb.go @@ -205,6 +205,9 @@ func (m *A) Unmarshal(dAtA []byte) error { return ErrInvalidLengthVanity } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVanity + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -239,6 +242,9 @@ func (m *A) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthVanity } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVanity + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -308,10 +314,13 @@ func skipVanity(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthVanity } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthVanity + } return iNdEx, nil case 3: for { @@ -340,6 +349,9 @@ func skipVanity(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthVanity + } } return iNdEx, nil case 4: diff --git a/vanity/test/slick/gogovanity.pb.go b/vanity/test/slick/gogovanity.pb.go index 6636a8f7c6..3cc57bc7fd 100644 --- a/vanity/test/slick/gogovanity.pb.go +++ b/vanity/test/slick/gogovanity.pb.go @@ -318,6 +318,9 @@ func (m *B) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGogovanity } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGogovanity + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -372,6 +375,9 @@ func (m *B) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthGogovanity } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGogovanity + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -438,10 +444,13 @@ func skipGogovanity(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthGogovanity } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthGogovanity + } return iNdEx, nil case 3: for { @@ -470,6 +479,9 @@ func skipGogovanity(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthGogovanity + } } return iNdEx, nil case 4: diff --git a/vanity/test/slick/proto3.pb.go b/vanity/test/slick/proto3.pb.go index 87b0919634..e0efcfe35a 100644 --- a/vanity/test/slick/proto3.pb.go +++ b/vanity/test/slick/proto3.pb.go @@ -256,6 +256,9 @@ func (m *Aproto3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthProto3 } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProto3 + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -270,6 +273,9 @@ func (m *Aproto3) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthProto3 } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProto3 + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -336,10 +342,13 @@ func skipProto3(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthProto3 } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthProto3 + } return iNdEx, nil case 3: for { @@ -368,6 +377,9 @@ func skipProto3(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthProto3 + } } return iNdEx, nil case 4: diff --git a/vanity/test/slick/vanity.pb.go b/vanity/test/slick/vanity.pb.go index 13e55652ee..8c0f8608bc 100644 --- a/vanity/test/slick/vanity.pb.go +++ b/vanity/test/slick/vanity.pb.go @@ -273,6 +273,9 @@ func (m *A) Unmarshal(dAtA []byte) error { return ErrInvalidLengthVanity } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVanity + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -307,6 +310,9 @@ func (m *A) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthVanity } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVanity + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -376,10 +382,13 @@ func skipVanity(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthVanity } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthVanity + } return iNdEx, nil case 3: for { @@ -408,6 +417,9 @@ func skipVanity(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthVanity + } } return iNdEx, nil case 4: