diff options
author | 2024-03-11 10:51:13 +0000 | |
---|---|---|
committer | 2024-03-11 10:51:13 +0000 | |
commit | 8e88ee8d9c3740a76139566837199831dabdf997 (patch) | |
tree | e331d9e0acfb1c975a72aee3105e0f1fba6ca128 /vendor/github.com/klauspost/compress/s2/s2.go | |
parent | [chore]: Bump github.com/go-jose/go-jose/v3 from 3.0.1 to 3.0.3 (#2733) (diff) | |
download | gotosocial-8e88ee8d9c3740a76139566837199831dabdf997.tar.xz |
[chore]: Bump github.com/minio/minio-go/v7 from 7.0.67 to 7.0.69 (#2748)
Diffstat (limited to 'vendor/github.com/klauspost/compress/s2/s2.go')
-rw-r--r-- | vendor/github.com/klauspost/compress/s2/s2.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/klauspost/compress/s2/s2.go b/vendor/github.com/klauspost/compress/s2/s2.go index dae3f731f..72bcb4945 100644 --- a/vendor/github.com/klauspost/compress/s2/s2.go +++ b/vendor/github.com/klauspost/compress/s2/s2.go @@ -37,6 +37,8 @@ package s2 import ( "bytes" "hash/crc32" + + "github.com/klauspost/compress/internal/race" ) /* @@ -112,6 +114,8 @@ var crcTable = crc32.MakeTable(crc32.Castagnoli) // crc implements the checksum specified in section 3 of // https://github.com/google/snappy/blob/master/framing_format.txt func crc(b []byte) uint32 { + race.ReadSlice(b) + c := crc32.Update(0, crcTable, b) return c>>15 | c<<17 + 0xa282ead8 } |