help the bounds checker in le64dec
parent
79b27a1530
commit
70a9bfa87d
|
@ -91,6 +91,7 @@ func (d *digest) Sum(b []byte) []byte {
|
||||||
}
|
}
|
||||||
|
|
||||||
func le64dec(b []byte) uint64 {
|
func le64dec(b []byte) uint64 {
|
||||||
|
_ = b[7]
|
||||||
return uint64(b[0])<<0 | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56
|
return uint64(b[0])<<0 | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue