Skip to content

Commit 07e0993

Browse files
committed
remove one more assumption
1 parent a7bf98c commit 07e0993

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/slayers/path/scion/base.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,7 @@ func (s *Base) DecodeFromBytes(data []byte) (r error) {
137137
if s.PathMeta.SegLen[i] > 0 && s.NumINF == 0 {
138138
s.NumINF = i + 1
139139
}
140-
// (VerifiedSCION) Cannot assert bounds of uint:
141-
// https://github.com/viperproject/gobra/issues/192
142-
//@ assume int(s.PathMeta.SegLen[i]) >= 0
140+
//@ assert 0 <= int(s.PathMeta.SegLen[i])
143141
s.NumHops += int(s.PathMeta.SegLen[i])
144142
}
145143
// We must check the validity of NumHops. It is possible to fit more than 64 hops in

0 commit comments

Comments
 (0)